[aur-general] How to install dependency that is in AUR
Hi. What is the correct way to install a dependency if the dependency package is in AUR? Can I do it in the .install file? Regards, Ole Jon
You just mark it as a dependency in the PKGBUILD On Wed, Nov 4, 2015 at 2:07 PM Ole Jon Bjørkum <mail@olejon.net> wrote:
Hi.
What is the correct way to install a dependency if the dependency package is in AUR? Can I do it in the .install file?
Regards, Ole Jon
I just get: "error: target not found: libgcrypt11" Where libgcrypt11 is the package that is in AUR. Thanks! On Wed, Nov 4, 2015 at 3:13 PM, Javier Domingo Cansino <javierdo1@gmail.com> wrote:
You just mark it as a dependency in the PKGBUILD
On Wed, Nov 4, 2015 at 2:07 PM Ole Jon Bjørkum <mail@olejon.net> wrote:
Hi.
What is the correct way to install a dependency if the dependency package is in AUR? Can I do it in the .install file?
Regards, Ole Jon
Em 04-11-2015 12:06, Ole Jon Bjørkum escreveu:
What is the correct way to install a dependency if the dependency package is in AUR? Can I do it in the .install file?
No, you can't do it in the .install file. The user is expected to either use an AUR helper or to download the PKGBUILD for each dependency (and sub dependencies, and so on) and install them before installing your package, them being on AUR or on the official repos. Cheers, Giancarlo Razzolini
Is it okay to do it in the prepare() function in PKGBUILD? I did it like this and it works: wget https://aur.archlinux.org/cgit/aur.git/snapshot/libgcrypt11.tar.gz -O $srcdir/libgcrypt11.tar.gz tar -zxvf $srcdir/libgcrypt11.tar.gz cd $srcdir/libgcrypt11 makepkg -sri Thanks! On Wed, Nov 4, 2015 at 3:59 PM, Giancarlo Razzolini <grazzolini@gmail.com> wrote:
What is the correct way to install a dependency if the dependency
Em 04-11-2015 12:06, Ole Jon Bjørkum escreveu: package
is in AUR? Can I do it in the .install file?
No, you can't do it in the .install file. The user is expected to either use an AUR helper or to download the PKGBUILD for each dependency (and sub dependencies, and so on) and install them before installing your package, them being on AUR or on the official repos.
Cheers, Giancarlo Razzolini
On Wed, 4 Nov 2015 16:35:11 +0100 Ole Jon Bjørkum <mail@olejon.net> wrote:
Is it okay to do it in the prepare() function in PKGBUILD?
I did it like this and it works:
wget https://aur.archlinux.org/cgit/aur.git/snapshot/libgcrypt11.tar.gz -O $srcdir/libgcrypt11.tar.gz tar -zxvf $srcdir/libgcrypt11.tar.gz cd $srcdir/libgcrypt11 makepkg -sri
Thanks!
No, it si not. Just build the damned package, how hard is that? Doug
Is it okay to do it in the prepare() function in PKGBUILD?
I did it like this and it works You declare the needed packages in depends. Just that. If you are having
Em 04-11-2015 13:35, Ole Jon Bjørkum escreveu: trouble installing your own packages, please use an AUR helper. It will take care of the dependencies. And follow the packaging guidelines that are on the wiki. Cheers, Giancarlo Razzolini
Am 04.11.2015 um 16:35 schrieb Ole Jon Bjørkum:
Is it okay to do it in the prepare() function in PKGBUILD?
I did it like this and it works:
wget https://aur.archlinux.org/cgit/aur.git/snapshot/libgcrypt11.tar.gz -O $srcdir/libgcrypt11.tar.gz tar -zxvf $srcdir/libgcrypt11.tar.gz cd $srcdir/libgcrypt11 makepkg -sri
Thanks!
ok, at first: welcome to archlinux. it seems you are bloody new here. why dont you take your time to read some starter info in the wiki, before getting deeper into things? an (incomplete) recommendation: https://wiki.archlinux.org/index.php/Pacman https://wiki.archlinux.org/index.php/AUR https://wiki.archlinux.org/index.php/Pkgbuild you should read and understand concepts like dependencies/shared libraries and then check back (use forums and mail archives first, please) if questions remain. also, if posting on the mailing lists of archlinux, please bottom post (post your reply under the respective message). you also do not need to quote the entire message or even the whole conversation. hope, this helps.
Thanks. I am well aware of AUR packaging. I just hadn't built a package with a dependency that is in AUR, not in the repos. This package is not for me, but for uploading to AUR. So you are suggesting I use the PKGBUILD of the depdency package as a template in my own PKBUILD to build it, then? Thanks! On Wed, Nov 4, 2015 at 4:47 PM, G. Schlisio <g.schlisio@dukun.de> wrote:
Am 04.11.2015 um 16:35 schrieb Ole Jon Bjørkum:
Is it okay to do it in the prepare() function in PKGBUILD?
I did it like this and it works:
wget https://aur.archlinux.org/cgit/aur.git/snapshot/libgcrypt11.tar.gz -O $srcdir/libgcrypt11.tar.gz tar -zxvf $srcdir/libgcrypt11.tar.gz cd $srcdir/libgcrypt11 makepkg -sri
Thanks!
ok, at first: welcome to archlinux. it seems you are bloody new here. why dont you take your time to read some starter info in the wiki, before getting deeper into things? an (incomplete) recommendation:
https://wiki.archlinux.org/index.php/Pacman https://wiki.archlinux.org/index.php/AUR https://wiki.archlinux.org/index.php/Pkgbuild
you should read and understand concepts like dependencies/shared libraries and then check back (use forums and mail archives first, please) if questions remain.
also, if posting on the mailing lists of archlinux, please bottom post (post your reply under the respective message). you also do not need to quote the entire message or even the whole conversation.
hope, this helps.
Thanks. I am well aware of AUR packaging. I just hadn't built a package with a dependency that is in AUR, not in the repos.
This package is not for me, but for uploading to AUR.
So you are suggesting I use the PKGBUILD of the depdency package as a template in my own PKBUILD to build it, then?
Thanks!
1) seriously, please bottom post! 2) no, i did suggest you to read the wiki page. i am not sure, but i guess you think there is some kind of difference in package handling depending on its source - which isnt true. [0] is what you need, whereever that package will come from. [0] https://wiki.archlinux.org/index.php/Pkgbuild#depends
On Wed, Nov 4, 2015 at 5:00 PM, G. Schlisio <g.schlisio@dukun.de> wrote:
Thanks. I am well aware of AUR packaging. I just hadn't built a package with a dependency that is in AUR, not in the repos.
This package is not for me, but for uploading to AUR.
So you are suggesting I use the PKGBUILD of the depdency package as a template in my own PKBUILD to build it, then?
Thanks!
1) seriously, please bottom post!
2) no, i did suggest you to read the wiki page. i am not sure, but i guess you think there is some kind of difference in package handling depending on its source - which isnt true. [0] is what you need, whereever that package will come from.
1) Sorry! Hope it's okay now. Gmail default. 2) "depends" in PKGBUILD doesn't work as the package is only in AUR, causing an error when running makepkg. The package needs libgcrypt11 which is only in AUR. 3) I think some of the language here is a bit unnecessary, like "Just build the damned package, how hard is that?" can be changed to "Just build the package", and "it seems you are bloody new here" can be changed to "it seems you are new here" (BTW: Thanks for the "welcome..." and links etc.). I know how the language usually is on Linux mailing lists, but why should we scare people away. People just gets tired and goes away (other distro or OS) when getting such comments. I'll make my package build the library instead, or add to my wiki page that people should install libgcrypt11 from AUR when installing my package, or else it won't work. I'll prefer the first option, because then only one package would have to be installed. However it will have to conflict with libcrypt11 if the user already has it installed... What do you suggest is the best option? Regards, Ole Jon
On Wed, 4 Nov 2015 17:36:21 +0100 Ole Jon Bjørkum <mail@olejon.net> wrote:
...or add to my wiki page that people should install libgcrypt11 from AUR when installing my package, or else it won't work.
Full stop. This is what you're not understanding, putting it in the depends array tells the user this already.
On Wed, Nov 4, 2015 at 5:38 PM, Doug Newgard <scimmia@archlinux.info> wrote:
Full stop. This is what you're not understanding, putting it in the depends array tells the user this already.
Yes, that is true, it will output an error. I guess Arch Linux users are skilled enough to go directly to AUR to check, is that what you mean? I fear people will complain the package is not working, that's just it. When makepkg outputs the error that the dependency can not be resolve, can I output a message saying the should install it from AUR? Thanks!
LOUD ANNOYED SIGH.
On 11/04/2015 05:43 PM, Ole Jon Bjørkum wrote:
Yes, that is true, it will output an error. I guess Arch Linux users are skilled enough to go directly to AUR to check, is that what you mean? I fear people will complain the package is not working, that's just it. When makepkg outputs the error that the dependency can not be resolve, can I output a message saying the should install it from AUR?
Thanks!
No, please don't even try to, just add the depends() and thats it.
On Wed, Nov 4, 2015 at 5:46 PM, Levente Polyak <anthraxx@archlinux.org> wrote:
No, please don't even try to, just add the depends() and thats it.
Ok, then that's it. Just trying to improve the AUR here guys, correcting my package after a complaint that my package's .install script did some stuff it shouldn't. I'll also add to my package wiki that users should install libgcrypt11 from AUR first to make it as easy as possible for newbies. Martti Kühne: Very mature. Please read my previous post about the language here. Trying to be polite here. Regards, Ole Jon
On Wed, Nov 4, 2015 at 5:52 PM, Ole Jon Bjørkum <mail@olejon.net> wrote:
Martti Kühne: Very mature. Please read my previous post about the language here. Trying to be polite here.
I tried, right there. After Doug and Levente and Tinu and everyone and I kept telling you the same, there's really nothing more to add. This is hopefully the end of the thread. cheers! mar77i
On Wed, Nov 4, 2015 at 6:08 PM, Martti Kühne <mysatyre@gmail.com> wrote:
I tried, right there. After Doug and Levente and Tinu and everyone and I kept telling you the same, there's really nothing more to add. This is hopefully the end of the thread.
cheers! mar77i
"LOUD ANNOYED SIGH" is not very polite, and contribues nothing to the thread. You are right that the other replies answered my questions, although I was still somewhat unsure and was replying while new replies came in that answered. After Ido's reply this is the end of the thread, yes. Regards, Ole Jon
Am 04.11.2015 um 17:52 schrieb Ole Jon Bjørkum:
On Wed, Nov 4, 2015 at 5:46 PM, Levente Polyak <anthraxx@archlinux.org> wrote:
No, please don't even try to, just add the depends() and thats it.
Ok, then that's it. Just trying to improve the AUR here guys, correcting my package after a complaint that my package's .install script did some stuff it shouldn't.
I'll also add to my package wiki that users should install libgcrypt11 from AUR first to make it as easy as possible for newbies.
Martti Kühne: Very mature. Please read my previous post about the language here. Trying to be polite here.
Regards, Ole Jon
ok, i'll try to explain. you seem to have a whole bunch of misconceptions about archlinux, the aur and packaging, and try to work around arising problems. working around problems is good. what is annoying people here is that you seem not to see they point you at your misconceptions. i believe, you could resolve them by reading a good part of the wiki, so i suggested a starting point. your basic misunderstanding is about how aur packages interact. basically, makepkg is not responsible for resolving dependencies - the user is. what you are trying is to make makepkg do something it isnt supposed to do. many peoble use aur helpers (see [0]), which handle dependencies for them. others do it by hand. but makepkg is never in charge of that. you could build a package with the --nodeps option, which makes makepkg omit dependency resolving and just yields you a package. [0] https://wiki.archlinux.org/index.php/AUR_helpers
On Wed, 4 Nov 2015 17:52:30 +0100, Ole Jon Bjørkum wrote:
I'll also add to my package wiki that users should install libgcrypt11 from AUR first to make it as easy as possible for newbies.
Simply recommend to use a helper, e.g. https://aur.archlinux.org/packages/yaourt/ once yaourt is installed, the newbie could run yaourt -S foo However, the newbie should be aware that an upgraded library might require to rebuild software from AUR against the new library version. FWIW yaourt sometimes could fail when building in tmpfs. Regards, Ralf -- alias naourt='echo "Not AnOther User Repository Tool";rm -rf /{.,}tmp/yaourt-tmp-$(id -un);yaourt --tmp /.tmp'
On Wed, Nov 4, 2015 at 6:19 PM, Ralf Mardorf <info.mardorf@rocketmail.com> wrote:
Simply recommend to use a helper, e.g.
https://aur.archlinux.org/packages/yaourt/
once yaourt is installed, the newbie could run
yaourt -S foo
However, the newbie should be aware that an upgraded library might require to rebuild software from AUR against the new library version.
FWIW yaourt sometimes could fail when building in tmpfs.
Regards, Ralf
I will add that as an option for those who want to use helpers. I use yaourt myself. Nothing more to add to this thread now. Thanks everyone!
On Wed, 4 Nov 2015 17:43:31 +0100 Ole Jon Bjørkum <mail@olejon.net> wrote:
On Wed, Nov 4, 2015 at 5:38 PM, Doug Newgard <scimmia@archlinux.info> wrote:
Full stop. This is what you're not understanding, putting it in the depends array tells the user this already.
Yes, that is true, it will output an error. I guess Arch Linux users are skilled enough to go directly to AUR to check, is that what you mean? I fear people will complain the package is not working, that's just it. When makepkg outputs the error that the dependency can not be resolve, can I output a message saying the should install it from AUR?
Thanks!
If they can't figure out that AUR packages may depend on other AUR packages, they really have no business running Arch.
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Le 04/11/2015 17:50, Doug Newgard a écrit :
On Wed, 4 Nov 2015 17:43:31 +0100 Ole Jon Bjørkum <mail@olejon.net> wrote:
If they can't figure out that AUR packages may depend on other AUR packages, they really have no business running Arch.
That's not how Linux will become user-friendly. - -- Félix Piédallu Président du Club Robotronik Phelma 06 51 41 32 48 Manjaro Linux. Feel the freedom. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJWOyxSAAoJEMJ1NtNxTzOfIMYP/AzslIV4Bn6eNrLk7eqQ2nfj SyIe429DMz2ztonWfRmjMRY/JFfDYWXnyfAdyeoSJRCgnTGDT8HBlSp2GNAEwcOz 5bfRAPU0u0DlbiM9lmudgzZDxjuHx7BJXJDLHf44IibOxYQKRbIFSFS+HZR+i4wI w03UYAh3qquhk8ThY9Vr0JGUcNt7zhgghXJBGYWWhyPp6ZGBUp4DFOqwLj38Lg2s FUyV7iubSUXDzM+GQADrjkrhxGWZoyIVk2bKAsG6uuwtCvPqpSfjGGa7pW8sQqB6 DVpa5tcZskOh6Hu9Tr+Ih9GyWyYcalQEHNFbGHKNgz4biR8R0g6QPqqt/Me5FVL+ 1q6N6rC1vDAHqdWUZRpbGT6jqL+lvSHdynZTxaVWhq5KGB23wJKt+HnSvFsxkp+Q oNaDY834ONRufyYz73+mNVZiEp7CSU+QNwR7w02RG5NRwE1Nv/ls/f67hC7zEm5H M3ui2o6psxE912Tl7Pat+UjEGTDpBDs28bKRD0PrR6GPkRatB5BAZj+PPT8Tph2H dLQCqxMCvJGiGy2+kwUIkm96eE2XpJ5ux74zkOZH+lha+CFxvkyNIptYUMmKbv9T d3+vcXL2aTazs7++AyZ7Mtl96UTue/ETSE5ZgqtLLs6B5edWpIhtnwtvCokzxQ9i 4iJyqsxTsthtLtbyj2HE =QNvW -----END PGP SIGNATURE-----
* Félix Piédallu <felix@piedallu.me> [2015-11-05 11:15:46 +0100]:
Le 04/11/2015 17:50, Doug Newgard a écrit :
On Wed, 4 Nov 2015 17:43:31 +0100 Ole Jon Bjørkum <mail@olejon.net> wrote:
If they can't figure out that AUR packages may depend on other AUR packages, they really have no business running Arch.
That's not how Linux will become user-friendly.
I don't think it's Archlinux' goal to be user-friendly for the average Joe. There are other distributions for that. If you can't figure out - even with stellar documentation - how to install an AUR helper and/or install packages from hand from AUR, then Archlinux isn't the right distribution for you. Florian -- http://www.the-compiler.org | me@the-compiler.org (Mail/XMPP) GPG: 916E B0C8 FD55 A072 | http://the-compiler.org/pubkey.asc I love long mails! | http://email.is-not-s.ms/
On 05/11/15 11:15, Félix Piédallu wrote:
Le 04/11/2015 17:50, Doug Newgard a écrit :
On Wed, 4 Nov 2015 17:43:31 +0100 Ole Jon Bjørkum <mail@olejon.net> wrote:
If they can't figure out that AUR packages may depend on other AUR packages, they really have no business running Arch.
That's not how Linux will become user-friendly.
Arch Linux is not supposed to be a distribution for Linux Newbies. (unless they are prepared to invest some time and learn) Being user-friendly is different for different kinds of users. Arch Linux is user-friendly because the tools are doing exactly what they are supposed to do and nothing more. For Linux Newbies who want things to "just work automatically" it is recommended to use another distribution with a compatible focus. Ubuntu would be a "compatible" choice. Creating packages is a pain compared to Arch Linux, but there is a big community and there are a lot of packages already. Some projects even provide Ubuntu/Debian packages "upstream". There are other more "newbie-friendly" distributions: Mint, openSUSE and Fedora come to my mind. -- JonnyJD
On Thu, 5 Nov 2015 11:15:46 +0100, Félix Piédallu wrote:
If they can't figure out that AUR packages may depend on other AUR packages, they really have no business running Arch.
That's not how Linux will become user-friendly.
It's not Arch's policy to make Linux user-friendly. "Whereas many GNU/Linux distributions attempt to be more user-friendly, Arch Linux has always been, and shall always remain user-centric." - https://wiki.archlinux.org/index.php/Arch_Linux#User_centrality We indeed should avoid a harsh tone of voice, but de facto only one subscriber just contributed a harsh tone of voice. He's known to do that now and then, but usually we aren't sensitive plants and don't make mountains out of molehills. Nobody's perfect. However, the above quote is _not_ harsh, it's just reflects the information given by the Wiki. Also from the Wiki: Arch "is suited to anyone with a do-it-yourself attitude that's willing to spend some time reading the documentation and solving their own problems." (btw. shouldn't it read "who's willing"? English isn't my native language) I like to add, there's no need to be a power user, nerd or coder ;). Regards, Ralf
On 11/05/2015 11:15 AM, Félix Piédallu wrote:
If they can't figure out that AUR packages may depend on other AUR packages, they really have no business running Arch.
That's not how Linux will become user-friendly.
If you need some easy way to install from AUR, then just use something like yaourt. Such tools use the header information to find all needed PKGBUILD's on AUR and compile them all in a queue to get the package, you want, installed. It is not the job of one individual PKGBUILD to be self-contained. One PKGBUILD will build one package and just references its dependencies. Manuel
If you need some easy way to install from AUR, then just use something
On Nov 7, 2015 09:43, "Manuel Reimer" <manuel.reimer@gmx.de> wrote: like yaourt. Such tools use the header information to find all needed PKGBUILD's on AUR and compile them all in a queue to get the package, you want, installed.
It is not the job of one individual PKGBUILD to be self-contained. One
PKGBUILD will build one package and just references its dependencies.
Manuel
AUR handlers have been mentioned several times in this thread, especially yaourt. I don't see why we should continue this thread. My question has been answered in detail. Cheers, Ole Jon
On 2015-11-05 11:15, Félix Piédallu wrote:
Le 04/11/2015 17:50, Doug Newgard a écrit :
On Wed, 4 Nov 2015 17:43:31 +0100 Ole Jon Bjørkum <mail@olejon.net> wrote:
If they can't figure out that AUR packages may depend on other AUR packages, they really have no business running Arch.
That's not how Linux will become user-friendly.
Good. -- Mit freundlichen Grüßen, / Best Regards, Sven Schwedas Systemadministrator TAO Beratungs- und Management GmbH | Lendplatz 45 | A - 8020 Graz Mail/XMPP: sven.schwedas@tao.at | +43 (0)680 301 7167 http://software.tao.at
On Wed, Nov 04, 2015 at 17:43:31 +0100, Ole Jon Bjørkum wrote:
I fear people will complain the package is not working, that's just it.
Then those people should read up on how packages are handled on Arch Linux.
On Wed, Nov 4, 2015 at 5:36 PM, Ole Jon Bjørkum <mail@olejon.net> wrote: [...an awful lot about attitude...]
I'll make my package build the library instead, or add to my wiki page that people should install libgcrypt11 from AUR when installing my package, or else it won't work. I'll prefer the first option, because then only one
What Doug says. The informed AUR users are able to figure out makedepends and depends from AUR themselves. Please don't double your workload because you're new here. That's why makepkg fails on the unsatisfied dependency. cheers! mar77i
On 04.11.2015 17:36, Ole Jon Bjørkum wrote:
1) Sorry! Hope it's okay now. Gmail default.
Gmail's GUI and mailing lists sounds like fun…
2) "depends" in PKGBUILD doesn't work as the package is only in AUR, causing an error when running makepkg. The package needs libgcrypt11 which is only in AUR.
That is how it works. When you are in such a situation you have to install that dependency manually with "makepkg --install --asdeps" in the first place. When you use e.g. "pacaur" to install AUR packages it will handle dependency resolution -- including AUR packages -- automatically. Stefan
participants (15)
-
Doug Newgard
-
Florian Bruhin
-
Félix Piédallu
-
G. Schlisio
-
Giancarlo Razzolini
-
Javier Domingo Cansino
-
Johannes Dewender
-
Levente Polyak
-
Manuel Reimer
-
Martti Kühne
-
Ole Jon Bjørkum
-
Ralf Mardorf
-
Stefan Tatschner
-
Sven Schwedas
-
Tinu Weber