Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 616094 - media-sound/id3-0.15: cannot change ownership during install in prefixed Gentoo
Summary: media-sound/id3-0.15: cannot change ownership during install in prefixed Gentoo
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Sound Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-04-20 09:15 UTC by Gábor VIDA
Modified: 2017-04-23 11:57 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Gábor VIDA 2017-04-20 09:15:17 UTC
I try to install abcde, which has a dependency: media-sound/id3. This fails to
install in prefixed env where not the root executes the installation steps:

  /usr/bin/install -c  -m 755 -o 0 id3 /home/evidgbo/usr/roots/gentoo/var/tmp/portage/media-sound/id3-0.15/image//usr/bin
  /usr/bin/install: cannot change ownership of ‘/home/evidgbo/usr/roots/gentoo/var/tmp/portage/media-sound/id3-0.15/image//usr/bin/id3’: Operation not permitted
  make: *** [Makefile:38: install] Error 1

The problem is in the package's Makefile, which tries to set the ownership of the id3
binary to root (-o 0), which is not possible in prefixed environment.

I'm not sure media-sound/id3 is still maintained (not touched since 2016). abcde
seems to use it only when needs to tag mp3 files in id3 v1 format. So not strictly
needed, eg. if the user wants to use id3v2, which is the default and set in the
source code of abcde, then the binary of dev-python/eyeD3 is used.

Since id3 belongs to the tools of abcde, probably written by the same author, I found
a similar bug fixed in abcde:

 https://code.google.com/archive/p/abcde/issues/17

If this is fixed (eg. Gentoo patches the source or we manage to push to upstream),
then there will be probably an other bug in the ebuild to fix to be able to install
in prefix. In src_install():

  emake DESTDIR="${D}" install || die "emake install failed."

This should be changed to:

  emake DESTDIR="${ED}" install || die "emake install failed."

But haven't tested so far.