FS#18666 - [makepkg] add PKGBUILD option to disable fakeroot
Attached to Project:
Pacman
Opened by Tomas Mudrunka (harvie) - Saturday, 13 March 2010, 14:45 GMT
Last edited by Dan McGee (toofishes) - Sunday, 14 March 2010, 20:43 GMT
Opened by Tomas Mudrunka (harvie) - Saturday, 13 March 2010, 14:45 GMT
Last edited by Dan McGee (toofishes) - Sunday, 14 March 2010, 20:43 GMT
|
Details
Summary and Info: I have package (riak nosql database
engine) that can't be maked within fakeroot (don't know
why).
please add something like options=(!fakeroot) i will make package without fakeroot and then i will move it to pkgdir and change owner using fakeroot myself... i've tried to escape fakeroot like this: build() { unset LD_LIBRARY_PATH unset LD_PRELOAD unset FAKEROOTKEY unset FAKED_MODE make ... ... } with no success :-( Steps to Reproduce: 1.) try to make riak. - works great 2.) try to make riak using PKGBUILD + makepkg. - does not work thanks |
This task depends upon
2. If you "disable fakeroot", you'll end up with a package with permissions of your user. This is a terrible idea.
The "workaround" here is to build as root, but that is a rather bad idea. Honestly this sounds like a riak problem and not a makepkg problem, unless you think the ~4500 other packages in our repositories are doing it wrong. You've also failed to include a PKGBUILD or a link to one here so you're not going to get a whole lot of help.
1.) it's just option, so does not matter how stupid it is, it's just matter of freedom.
2.) i said that i can build package without fakeroot and then change owner and permissions to root using fakeroot myself.
are you sure it works? many packages are using separate build() and package() functions, they all are not using fakeroot? how can you package (fake)root-owned files without fakeroot and without loosing ilusion of root owner?