Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 933610

Summary: dev-libs/iniparser-4.2.2 is not slot-aware
Product: Gentoo Linux Reporter: Yury Katuar <ave>
Component: Current packagesAssignee: Gentoo's SAMBA Team <samba>
Status: UNCONFIRMED ---    
Severity: normal CC: Adrian.Bassett, ionen, toralf
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Yury Katuar 2024-06-05 13:00:13 UTC
net-misc/ubridge-0.9.18 needs to be rebuilt after updating its dependency dev-libs/iniparser:4. However, it's not possible since net-misc/ubridge ebuild applies a patch to use a slotted version of iniparser:

src/ubridge.c:29:10: fatal error: iniparser4/iniparser.h: No such file or directory
   29 | #include <iniparser4/iniparser.h>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~

dev-libs/iniparser-4.2.2 altered its file paths, e.g. the aforementioned header file is installed to /usr/include/iniparser/iniparser.h

Trying to emerge iniparser:0 also leads to a file collision:

 * Detected file collision(s):
 *
 * 	/usr/lib64/libiniparser.so
 *
 * Searching all installed packages for file collisions...
 *
 * Press Ctrl-C to Stop
 *
 * dev-libs/iniparser-4.2.2:4::gentoo
 * 	/usr/lib64/libiniparser.so
 *
 * Package 'dev-libs/iniparser-3.1-r3' NOT merged due to file collisions.

Reproducible: Always
Comment 1 Ben Kohler gentoo-dev 2024-06-05 14:52:25 UTC
*** Bug 933611 has been marked as a duplicate of this bug. ***
Comment 2 Larry the Git Cow gentoo-dev 2024-06-05 14:53:17 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e730035656b234cb1204e6d593677f8625296b28

commit e730035656b234cb1204e6d593677f8625296b28
Author:     Ben Kohler <bkohler@gentoo.org>
AuthorDate: 2024-06-05 14:50:44 +0000
Commit:     Ben Kohler <bkohler@gentoo.org>
CommitDate: 2024-06-05 14:53:11 +0000

    dev-libs/iniparser: unkeyword 4.2.2
    
    Slotting logic isn't in place yet.
    
    Bug: https://bugs.gentoo.org/933610
    Signed-off-by: Ben Kohler <bkohler@gentoo.org>

 dev-libs/iniparser/iniparser-4.2.2.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Comment 3 Ionen Wolkens gentoo-dev 2024-06-05 15:24:29 UTC
Ideally should get rid of slots entirely, a lot of packages depend on the old one not because they are not compatible with the new (I'd hope so anyway), but because they need a workaround to find the "modified" iniparser with slotting logic.

e.g. media-sound/cava is forced to use a patch to use the old iniparser:4, and 4.2.2 allowed me to drop that patch (well, it's still there for now but limited to <4.2.2, not that I couldn't drop that if slot logic is re-added).