Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug
Bug#: 5096
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Grant Goodyear <g2boojum@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Christian Axelsson <smiler@lanil.mine.nu>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 5096 depends on: Show dependency tree
Bug 5096 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2002-07-16 10:54 0000
After first installed postfix (1.1.11-r1) and then mailx (8.1.1.11) I have
this:

qpkg -f /bin/mail
net-mail/mailx *
qpkg -f /usr/bin/mail
net-mail/postfix *

An obvious collision.
Is it safe to remove /usr/bin/mail? (it's a symlink to /usr/sbin/sendmail)

------- Comment #1 From Grant Goodyear 2002-07-16 12:08:00 0000 -------
Actually, it's _not_ a collision, since /usr/bin/mail and /bin/mail
are certainly different paths.  /usr/bin/mail should point to 
/usr/sbin/sendmail; the lore is that removing that symlink might break things.

------- Comment #2 From Grant Goodyear 2002-07-16 13:31:16 0000 -------
From an e-mail by Christian Axelsson:

Well, both /bin/mail and /usr/bin/mail are in the users path, that's a collision.
If I run 'mail', the program that gets executed will be the last one found in my
$PATH
Please dont tell me that this is the way it is supposed to be?
On all other distributions I've seen, sendmail never have a 'mail' symlink
pointing at it (but sendmail itself can be a symlink).
From applications, sendmail should be referd to as /usr/bin/sendmail or
/usr/sbin/sendmail.

Hmmm.  I had thought that postfix installed the /usr/bin/mail -->
/usr/sbin/sendmail symlink, but it seems that we do.  I've no idea why.
Azarah?

------- Comment #3 From Martin Schlemmer (RETIRED) 2002-07-17 13:24:22 0000 -------
nosferatu init.d # echo $PATH
/usr/bin/ccache:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/X11R6/bin:/opt/blackdown-jdk-1.3.1/bin:/opt/blackdown-jdk-1.3.1/jre/bin:/usr/qt/3/bin:/usr/qt/2/bin
nosferatu init.d # which mail
/bin/mail
nosferatu init.d # 

The one first in $PATH should be executed.  I think the /usr/bin/mail symlink
have its roots from the time when there was not /bin/mail.  If I remember
correctly, mailx was my first ebuild when I started to use Gentoo ;-)

Anyhow, if no other disto have this, I think it should be safe to remove.  I
just do  not have access to boxes with other distro on them, so a bit
difficult for me to verify.

------- Comment #4 From Grant Goodyear 2002-07-19 10:07:18 0000 -------
Fixed on CVS by yanking the symlink.

Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug