[arch-projects] [devtools] Question about installing runtime dependencies at build time
Hello Arch developers, After an upstream issue reported by Laurent Carlier (aka lordheavy) Istarted wondering why builds fail on his end and not my (Arch) machine. The key difference seems to be that he's using devtools, whereas I do not. After a further chat, I got the impression that devtools installs runtime dependencies before/alongside(?) as the PKGBUILD build/install target is issued. This doesn't sound quite right to me. Shouldn't it be done, only on runtime scenarios - say the check target? Of course, I could be missing something so if anyone has some pointers that will be appreciated. Thanks Emil
Quoting Emil Velikov via arch-projects (2017-08-08 18:45:20)
Hello Arch developers,
After an upstream issue reported by Laurent Carlier (aka lordheavy) Istarted wondering why builds fail on his end and not my (Arch) machine. The key difference seems to be that he's using devtools, whereas I do not.
After a further chat, I got the impression that devtools installs runtime dependencies before/alongside(?) as the PKGBUILD build/install target is issued.
This doesn't sound quite right to me. Shouldn't it be done, only on runtime scenarios - say the check target?
Of course, I could be missing something so if anyone has some pointers that will be appreciated.
This is slightly confusingly written, but all packages listed in the depends and the makedepends arrays will always be installed before building a package. makedepends should only list packages that are only required when building, not all packages required when building -- Sincerely, Johannes Löthberg PGP Key ID: 0x50FB9B273A9D0BB5 PGP Key FP: 5134 EF9E AF65 F95B 6BB1 608E 50FB 9B27 3A9D 0BB5 https://theos.kyriasis.com/~kyrias/
On 8 August 2017 at 18:28, Johannes Löthberg via arch-projects <arch-projects@archlinux.org> wrote:
Quoting Emil Velikov via arch-projects (2017-08-08 18:45:20)
Hello Arch developers,
After an upstream issue reported by Laurent Carlier (aka lordheavy) Istarted wondering why builds fail on his end and not my (Arch) machine. The key difference seems to be that he's using devtools, whereas I do not.
After a further chat, I got the impression that devtools installs runtime dependencies before/alongside(?) as the PKGBUILD build/install target is issued.
This doesn't sound quite right to me. Shouldn't it be done, only on runtime scenarios - say the check target?
Of course, I could be missing something so if anyone has some pointers that will be appreciated.
This is slightly confusingly written, but all packages listed in the depends and the makedepends arrays will always be installed before building a package. makedepends should only list packages that are only required when building, not all packages required when building
Seems like I've misinterpreted the meaning of depends, hence the awkward wording and confusion. Thanks for the correction Johannes. Emil
participants (2)
-
Emil Velikov
-
Johannes Löthberg