FS#32723 - [makepkg] Install makedepends before depends

Attached to Project: Pacman
Opened by Jan Alexander Steffens (heftig) - Saturday, 17 November 2012, 00:27 GMT
Last edited by Allan McRae (Allan) - Thursday, 31 January 2019, 00:07 GMT
Task Type Bug Report
Category makepkg
Status Closed
Assigned To Allan McRae (Allan)
Architecture All
Severity Low
Priority Normal
Reported Version 4.0.3
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 2
Private No

Details

heftig : just thinking of a possible issue
heftig : say you're building a java app, and you want it to work on both jre6 and jre7. so you build with jre6
heftig : however depending on java-runtime makes it install jre7 first

Support cases where a package depends on a 'virtual' package only provided by other packages, say java-runtime, but has to be built with a specific one.
Then, doing something like "depends=(java-runtime) makedepends=(openjdk6)" will work as expected.
This task depends upon

Closed by  Allan McRae (Allan)
Thursday, 31 January 2019, 00:07 GMT
Reason for closing:  None
Additional comments about closing:  Using depends only in the package() function(s) allows this workflow.

Fix for --rmdeps implemented in 6cf0548128d6d1a8
Comment by Erich Eckner (deepthought) - Sunday, 05 November 2017, 21:44 GMT
The attached patch should take care of it -- at least, if not ( RMDEPS && INSTALL ).
Otherwise it seems hard to get the build time dependencies only w/o installing run time dependencies first.

What do you think?
Comment by Allan McRae (Allan) - Wednesday, 30 January 2019, 00:59 GMT
Looking back at this...

The use-case is already achievable by doing:

makedepends=(openjdk6)

package() {
depends=(java-runtime)
}

The only issues is that --rmdeps my bork if the --install flag is also used. This is a simple fix of adding --unneeded to the pacman call.

Loading...