[aur-dev] ./configure --prefix Conventions
Hi, I was browsing some PKGBUILD on AUR and it seems there are two ways of running the autoconf configure script. One, is the more frequent `./configure --prefix=/usr` and the other is `./configure --prefix=$pkgdir/usr`. I was wondering if one is more correct than the other? Are there any downsides to using the second one? Thanks, Jashandeep Sohi
The first one will build and install it (root needed) and the second one will build it for packaging (which is later installed as root). I'm new to Arch too but I think the way AUR used to work is it used to build as root so it could install directly like that. Which may indicate out of date PKGBUILDs. These days though the second one is more common because you build as non-root into $pkgdir then later install into /usr as root via pacman. Sent using [1]CloudMagic On Wed, Feb 11, 2015 at 9:22 PM, Jashandeep Sohi <[2]jashandeep.s.sohi@gmail.com> wrote: Hi, I was browsing some PKGBUILD on AUR and it seems there are two ways of running the autoconf configure script. One, is the more frequent `./configure --prefix=/usr` and the other is `./configure --prefix=$pkgdir/usr`. I was wondering if one is more correct than the other? Are there any downsides to using the second one? Thanks, Jashandeep Sohi References 1. https://cloudmagic.com/k/d/mailapp?ct=pa&cv=6.0.6.1&pv=4.4.2 2. mailto:jashandeep.s.sohi@gmail.com
Relevant ML thread is relevant [1]. More specifically, my first message in that thread [2] sums up most cases. Besides which, this thread doesn't belong on this list. This list (aur-dev) is for discussion about the development of the AUR web interface, not AUR packages or PKGBUILDs themselves. Cheers [1] https://lists.archlinux.org/pipermail/aur-general/2015-February/030277.html [2] https://lists.archlinux.org/pipermail/aur-general/2015-February/030278.html -- Four word witty remark
One, is the more frequent `./configure --prefix=/usr` and the other is `./configure --prefix=$pkgdir/usr`.
I was wondering if one is more correct than the other? Are there any downsides to using the second one?
Thanks, Jashandeep Sohi
This question has nothing to do with AUR developement and therefore should go to the aur-general mailing list. But to give an answer: This is not a question of choice. If the one or the other way works at all depends on how upstream implements their build process. Best Regard Stefan
participants (4)
-
David Phillips
-
Jashandeep Sohi
-
Simon Thorpe
-
stefan-husmann@t-online.de