FS#53387 - [pacman] makepkg doesn't process makedepends specified within package_pkgname() functions

Attached to Project: Arch Linux
Opened by Erik Johnson (terminalmage) - Monday, 20 March 2017, 17:43 GMT
Last edited by Doug Newgard (Scimmia) - Monday, 20 March 2017, 18:00 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To No-one
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

When building multiple packages, makepkg seems to process "depends" within the package_pkgname() functions, but not "makedepends".


Additional info:

So far this has only been tested when building in a chroot via makechrootpkg.


Steps to reproduce:

1. Create a build chroot: https://wiki.archlinux.org/index.php/DeveloperWiki:Building_in_a_Clean_Chroot
2. Clone https://aur.archlinux.org/python-gitpython.git
3. cd into that repo and ensure that HEAD is pointed at 1d940056d41a077abf78e622a40f7d725d46ca9f (in case the PKGBUILD has been updated since this report has been created)
4. Build the package using: makechrootpkg -c -r /path/to/chroot


You'll notice that none of the Python makedepends get installed during the "Installing missing dependencies..." step. As such, the build fails. Defining the makedepends globally allows for the makedepends to be processed, and for the build to succeed.

Perhaps this is intended behavior, if so then we should update the wiki (https://wiki.archlinux.org/index.php/PKGBUILD#makedepends) to explicitly state that makedepends must be defined globally.
This task depends upon

Closed by  Doug Newgard (Scimmia)
Monday, 20 March 2017, 18:00 GMT
Reason for closing:  Not a bug
Additional comments about closing:  makedepends in the package function makes no sense.
Comment by Dave Reisner (falconindy) - Monday, 20 March 2017, 17:53 GMT
Given that you cannot build only part of a package, what does it mean for a single subpackage to have different makedepends than the rest of the packages in the PKGBUILD?

Loading...