Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Ebuild file collisions, not sure why [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
audiodef
Watchman
Watchman


Joined: 06 Jul 2005
Posts: 6656
Location: The soundosphere

PostPosted: Sat Mar 24, 2018 7:47 pm    Post subject: Ebuild file collisions, not sure why [SOLVED] Reply with quote

Rescuing a pro-audio overlay ebuild:

media-sound/zita-ajbridge-0.7.0.ebuild:
Code:

# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI=5
inherit base toolchain-funcs

DESCRIPTION="Bridge ALSA devices to Jack clients, to provide additional capture (a2j) or playba$
HOMEPAGE="http://kokkinizita.linuxaudio.org/linuxaudio/"
SRC_URI="http://kokkinizita.linuxaudio.org/linuxaudio/downloads/${P}.tar.bz2"

LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64"
IUSE=""

DEPEND="media-libs/alsa-lib
        >=media-libs/zita-alsa-pcmi-0.2.0
        >=media-libs/zita-resampler-1.3.0
        virtual/jack"

S=${WORKDIR}/${P}/source
RESTRICT="mirror"

src_compile() {
        CXX="$(tc-getCXX)" base_src_make
}

src_install() {
        base_src_install PREFIX="${EPREFIX}/usr"
}


Emerging this pkg results in:
Code:

 * dev-libs/sord-0.16.0-r1:0::gentoo
 *    /usr/bin
 *    /usr/share/man/man1
 *
 * app-misc/c_rehash-1.7-r1:0::gentoo
 *    /usr/bin
 *
 * x11-libs/pango-1.40.14:0::gentoo
 *    /usr/bin
 *    /usr/share/man/man1
 *
 * app-admin/eselect-1.4.11:0::gentoo
 *    /usr/bin
 *    /usr/share/man/man1
 *
 * dev-libs/libevdev-1.5.7:0::gentoo
 *    /usr/bin
 *
 * dev-libs/nss-3.29.5:0::gentoo
 *    /usr/bin
 *
 * net-libs/libproxy-0.4.13-r2:0::gentoo
 *    /usr/bin
 *    /usr/share/man/man1
 *
 * Package 'media-sound/zita-ajbridge-0.7.0' NOT merged due to file
 * collisions. If necessary, refer to your elog messages for the whole
 * content of the above message.


It goes on like that way past my scroll buffer.

What's happening and how do I address it?
_________________
decibel Linux: https://decibellinux.org
Github: https://github.com/Gentoo-Music-and-Audio-Technology
Facebook: https://www.facebook.com/decibellinux
Discord: https://discord.gg/73XV24dNPN


Last edited by audiodef on Sun Mar 25, 2018 1:04 pm; edited 1 time in total
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54665
Location: 56N 3W

PostPosted: Sat Mar 24, 2018 8:17 pm    Post subject: Reply with quote

audiodef,

Pick a few colliding filenames.
Make a note of the name of the package that wants to install them.

Use
Code:
equery b <colliding filename>
to see what owns the file.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 22918

PostPosted: Sat Mar 24, 2018 8:47 pm    Post subject: Reply with quote

Those are odd collisions. What files is this package installing? List the contents of $D/ to see them (or the image/ directory after src_install runs).
Back to top
View user's profile Send private message
krinn
Watchman
Watchman


Joined: 02 May 2003
Posts: 7470

PostPosted: Sat Mar 24, 2018 11:02 pm    Post subject: Reply with quote

Agree with Hu, collision about /usr/bin seriously?
Looks like your package is not installing a file and try create /usr/bin which is of course own as anyone installing anything in /usr/bin will be mark as owner.
Back to top
View user's profile Send private message
mv
Watchman
Watchman


Joined: 20 Apr 2005
Posts: 6780

PostPosted: Sun Mar 25, 2018 5:46 am    Post subject: Reply with quote

Just a conjecture: It might be that the build system of the package is broken and installs e.g. the binary as ${ED}/usr/bin instread as ${ED}/usr/bin/some_binary_name.
Usually, this happens because the author of the build system forgot to create the parent directories.
So it might help to add
Code:
dodir /usr/bin
dodir /usr/share/man/man1
to src_install (before calling base_src_install ....). If this is the case, the issue should also be reported upstream ;)
Back to top
View user's profile Send private message
audiodef
Watchman
Watchman


Joined: 06 Jul 2005
Posts: 6656
Location: The soundosphere

PostPosted: Sun Mar 25, 2018 1:03 pm    Post subject: Reply with quote

mv wrote:

Code:
dodir /usr/bin
dodir /usr/share/man/man1


This is what did the trick.

Thank you all for your replies. :)
_________________
decibel Linux: https://decibellinux.org
Github: https://github.com/Gentoo-Music-and-Audio-Technology
Facebook: https://www.facebook.com/decibellinux
Discord: https://discord.gg/73XV24dNPN
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum