debuginfo install: file /usr/lib/debug from PKG conflicts with file from package gtk2-debuginfo-2.24.22-2.fc19.i686

Frantisek Hanzlik franta at hanzlici.cz
Wed Apr 16 23:39:47 UTC 2014


Michael Schwendt wrote:
> On Wed, 16 Apr 2014 08:15:42 +0200, Frantisek Hanzlik wrote:
> 
>> I did build some rpm package. 
> 
> How exactly?

I wrote .spec file (in him of course isn't nothing about *debuginfo* nor
/usr/lib/debug/ directory tree), an then usual 'rpmbuild -ba MyPKG.spec'

>> Now when I install it's debuginfo rpm
>> (by 'rpm -i PKG-debuginfo-VER-REL.fc19.i686.rpm'), I got lot of errors
>> such as:
>> file /usr/lib/debug from install of PKG-debuginfo-VER-REL.fc19.i686.rpm
>> conflicts with file from package hunspell-debuginfo-1.3.2-13.fc19.i686
>>
>> where files (it are directories) are
>> /usr/lib/debug
>> /usr/lib/debug/.build-id
>> /usr/lib/debug/.build-id/eb
>> /usr/lib/debug/.dwz
>> /usr/lib/debug/usr
>>
>> and it conflict perhaps with all -debuginfo packages which are
>>  installed from Fedora/Rpmfusion/ATrpms repos.
>>
>> It seems as the problem is in directories permissions - in filesystem
>> these are 0755, but in my debuginfo package these rights appear to be
>> 2755.
> 
> Why is it 2755 for you?
What You exactly mean with this question?
For me it are perms which I see on:
- 'rpm -qvlp PKG-debuginfo-VER-REL.fc19.i686.rpm' list on all directories
- 'rpm2cpio PKG-debuginfo-VER-REL.fc19.i686.rpm|cpio -tv' list on all dirs
- are seen on list in midnight commander de-rpm-cpio-vfs-isator

Are you aware of what the leading '2' means?
Yes

> And what are the permissions of the other files/dirs in your packages?
Permissions on all other non-debuginfo packages are OK, permissions
on all debuginfo packages are bad - all have 2755 directory modes.

>> Thus my questions:
>> - debuginfo packages are automatically generated and I not see any
>> option how set permissions at these directories. How is possible set
>> correct values there?
> 
> Have you built with Mock or a similar tool?
No, as I wrote above, I use 'rpmbuild'

> Have you built with a fresh user account?
Yes, but **)

> Is it reproducible when rebuilding one of Fedora's src.rpms?
Yes

> How much trouble-shooting have you done yet?
IMO reasonably - I read some wisdoms at
http://fedoraproject.org/wiki/Packaging:Guidelines
https://fedoraproject.org/wiki/Packaging:Debuginfo
https://fedoraproject.org/wiki/Packaging:Conflicts
, also grep '/etc/rpm/' and '/usr/lib/rpm/' tries to 2755 appearance,
search in rpmbuild outputs, perform some AltaVistings ;)

**) (denouement)
My native and also test accounts ~/rpmbuild (or %_topdir ~/.rpmmacros
value) point (it was symlinks) to directory with 2775 permision rights.
And this is crucial - BUILD/BUILDROOT/RPMS/SOURCES/SPECS/SRPMS dirs
was also created with 2775 perms (my umask is 002), and although all
packages which I build had permissions right, sgid bit perhaps affect
debuginfo pkgs building.
Perhaps it is small rpmbuild bug (I will not say that it is my stupidity,
yes?)

Michael, thanks for guiding me to right direction!

Franta H.



More information about the users mailing list