You are not logged in.

#1 2011-11-06 19:54:52

gspe
Member
Registered: 2011-10-15
Posts: 12

Error in .install file

I've found that lot of packages have this error.

In the .install file the follow line:

update-mime-database usr/share/mime > /dev/null 2>&1

should be:

update-mime-database /usr/share/mime > /dev/null 2>&1

because if you are not in the / root when you use pacman the mime type aren't updated correctly

Offline

#2 2011-11-06 19:57:15

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Error in .install file

You already reported https://bugs.archlinux.org/task/26768 :-)

Offline

#3 2011-11-06 20:11:48

JokerBoy
Member
From: România
Registered: 2009-09-24
Posts: 641

Re: Error in .install file

I think it's a feature for a proper installation when using the --root flag. smile

Offline

#4 2011-11-06 22:00:25

gspe
Member
Registered: 2011-10-15
Posts: 12

Re: Error in .install file

JokerBoy wrote:

I think it's a feature for a proper installation when using the --root flag. smile

Sorry but it doesn't make any sense, since if i'm the person that make the PKGBUILD  i know where i'm installing my packages

Offline

#5 2011-11-06 22:08:11

Pierre
Developer
From: Bonn
Registered: 2004-07-05
Posts: 1,967
Website

Re: Error in .install file

pacman changes to / before running the install script. So this call is perfectly fine and even preferred; there is no bug here.

Offline

#6 2011-11-06 22:38:32

gspe
Member
Registered: 2011-10-15
Posts: 12

Re: Error in .install file

Pierre wrote:

pacman changes to / before running the install script. So this call is perfectly fine and even preferred; there is no bug here.


So, just for curiosity why in the same .install file there is one call with / and one call without /

gtk-update-icon-cache -f -q /usr/share/icons/hicolor
update-desktop-database -q
update-mime-database usr/share/mime > /dev/null 2>&1

Offline

#7 2011-11-07 08:15:20

ilpianista
Fellow developer
Registered: 2007-10-06
Posts: 568
Website

Re: Error in .install file

gspe wrote:

So, just for curiosity why in the same .install file there is one call with / and one call without /

gtk-update-icon-cache -f -q /usr/share/icons/hicolor
update-desktop-database -q
update-mime-database usr/share/mime > /dev/null 2>&1

That's a bug. The first '/' should be removed. We are slowly fixing them.

Offline

#8 2011-11-07 14:08:37

gspe
Member
Registered: 2011-10-15
Posts: 12

Re: Error in .install file

bash wrote:
gspe wrote:

So, just for curiosity why in the same .install file there is one call with / and one call without /

gtk-update-icon-cache -f -q /usr/share/icons/hicolor
update-desktop-database -q
update-mime-database usr/share/mime > /dev/null 2>&1

That's a bug. The first '/' should be removed. We are slowly fixing them.


Thanks for your reply.
Now everything it's more clear

Offline

#9 2011-11-07 22:13:59

Radioactiveman
Member
From: Germany
Registered: 2010-05-13
Posts: 389

Re: Error in .install file

What's with this example from vlc.install:

rm -f usr/lib/vlc/plugins/plugins-*.dat

With or without '/' before 'usr'?

Offline

#10 2011-11-07 22:18:08

wonder
Developer
From: Bucharest, Romania
Registered: 2006-07-05
Posts: 5,941
Website

Re: Error in .install file

works both ways this days

Last edited by wonder (2011-11-07 22:18:33)


Give what you have. To someone, it may be better than you dare to think.

Offline

Board footer

Powered by FluxBB