FS#59378 - Split package with debug package inherent provide and conflict from the first package
Attached to Project:
Pacman
Opened by Yichao Yu (yuyichao) - Wednesday, 18 July 2018, 13:11 GMT
Last edited by Doug Newgard (Scimmia) - Wednesday, 18 July 2018, 14:01 GMT
Opened by Yichao Yu (yuyichao) - Wednesday, 18 July 2018, 13:11 GMT
Last edited by Doug Newgard (Scimmia) - Wednesday, 18 July 2018, 14:01 GMT
|
Details
Summary and Info:
When building a split package that has debug package enabled (i.e. strip and debug in options), the split package built in pacman 5.1 inherent the provide and conflict from the first package. This is a problem since the package may provide and conflict the same alternative package and when inherented by the debug package, making it impossible to install the debug package with the base package. Steps to Reproduce: PKGBUILD: ``` pkgbase=test0 pkgname=(test test2) pkgver=0.1 pkgrel=1 pkgdesc="test" provides=() conflicts=() arch=('x86_64') url="" license=('GPL') options=(debug strip) source=(test.c) md5sums=('790cd3aa6d52ae2fdda43539c973442c') build() { gcc -Wall -Wextra -O2 test.c -o test1 gcc -Wall -Wextra -O0 test.c -o test2 } package_test() { provides=(other-test) conflicts=(other-test) install -Dm755 test1 "$pkgdir/usr/bin/test1" } package_test2() { install -Dm755 test2 "$pkgdir/usr/bin/test2" } ``` test.c ``` // int main() { return 0; } ``` The debug package built has `other-test` in `conflict` and `provides` making it not installable with `test`. |
This task depends upon
Closed by Doug Newgard (Scimmia)
Wednesday, 18 July 2018, 14:01 GMT
Reason for closing: Duplicate
Additional comments about closing: FS#59060
Wednesday, 18 July 2018, 14:01 GMT
Reason for closing: Duplicate
Additional comments about closing: