Bug 195467 - net-misc/hylafax-4.3.0 and net-dialup/mgetty-1.1.35-r2 collide
Bug#: 195467 Product:  Gentoo Linux Version: unspecified Platform: All
OS/Version: All Status: RESOLVED Severity: major Priority: P2
Resolution: FIXED Assigned To: nerdboy@gentoo.org Reported By: fauli@gentoo.org
Component: Ebuilds
URL: 
Summary: net-misc/hylafax-4.3.0 and net-dialup/mgetty-1.1.35-r2 collide
Keywords:  
Status Whiteboard: 
Opened: 2007-10-11 06:10 0000
Description:   Opened: 2007-10-11 06:10 0000
* This package is blocked because it wants to overwrite
* files belonging to other packages (see list below).
* If you have no clue what this is all about report it
* as a bug for this package on http://bugs.gentoo.org

package net-misc/hylafax-4.3.0 NOT merged

Detected file collision(s):

     '/usr/bin/faxrm'
     '/usr/share/man/man1/faxrm.1.bz2'

Searching all installed packages for file collisions...
Press Ctrl-C to Stop

 * net-dialup/mgetty-1.1.35-r2:

     '/usr/bin/faxrm'
     '/usr/share/man/man1/faxrm.1.bz2'

------- Comment #1 From Christian Faulhammer 2007-10-11 06:28:34 0000 -------
versions in ~arch have the same problem

------- Comment #2 From Alin Năstac 2007-11-12 16:07:19 0000 -------
The way I see this bug fixed:
 - add a "fax" USE flag to mgetty, depending on which fax-related stuff is
installed or not
 - hylafax will die in pkg_setup if mgetty with fax support is installed,
asking user to disable fax support in mgetty.
 - mgetty will die in pkg_setup if fax USE flag is enabled and hylafax is
installed

Steve, what is your opinion?

------- Comment #3 From Steve Arnold 2007-11-19 07:21:11 0000 -------
Basically, mgetty can provide either getty support, without fax if hylafax is
installed, or mgetty can handle everything on its own (but only without
Hylafax).  So checking for Hylafax in the mgetty ebuild and removing the
offending binaries if necessary should do it, along with the USE flag for
"nofax" or whatever...

Feel free to implement something if you want, or else I'll get to it shortly
(probably Tuesday or Wednesday).

------- Comment #4 From Alin Năstac 2007-11-25 08:31:17 0000 -------
I've added nofax USE flag to mgetty-1.1.36, which disable installation of fax
related files.

hylafax should have this test added to its pkg_setup:
        if ! built_with_use --missing true net-dialup/mgetty nofax; then
                eerror "net-dialup/mgetty must be installed with USE=nofax"
                die "bla bla"
        fi

------- Comment #5 From Ulrich Müller 2007-11-27 11:56:40 0000 -------
(In reply to comment #4)
> I've added nofax USE flag to mgetty-1.1.36, which disable installation of fax
> related files.

I thought we were getting rid of all "no*" USE flags? Can't you invert the
logic and add IUSE="fax" instead?

------- Comment #6 From Alin Năstac 2007-11-27 12:24:02 0000 -------
I want fax support to be enabled by default. Currently there is no way of doing
that.

------- Comment #7 From Christian Faulhammer 2007-11-27 13:09:55 0000 -------
(In reply to comment #6)
> I want fax support to be enabled by default. Currently there is no way of doing
> that.

profiles/base $ head package.use
# This file requires >=portage-2.1.2 (see bug #61732)

# Strongly recommended, otherwise all logos, icons, etc. appear in b/w.
app-editors/emacs xpm
app-editors/emacs-cvs xpm

# 2007/10/11 - Christian Heim <phreak@gentoo.org>
# Nearly everything linking against dev-scheme/guile-1.8 needs USE=deprecated
# for a sucessful build (see #163921)
=dev-scheme/guile-1.8* deprecated

------- Comment #8 From Alin Năstac 2007-11-27 14:22:50 0000 -------
I've replaced nofax with fax. Thanks for the clue!

------- Comment #9 From Christian Faulhammer 2008-02-04 09:48:50 0000 -------
(In reply to comment #4)
> hylafax should have this test added to its pkg_setup:
>         if ! built_with_use --missing true net-dialup/mgetty nofax; then
>                 eerror "net-dialup/mgetty must be installed with USE=nofax"
>                 die "bla bla"
>         fi

 I added the check to the latest hylafax ebuild.  Closing.  Maybe a new round
of stabilisations for mgetty and hylafax?

------- Comment #10 From Steve Arnold 2008-02-04 17:45:34 0000 -------
Hmm... Guess I didn't get to it shortly...  Thanks for taking care of this...