Opened 18 years ago

Closed 18 years ago

Last modified 16 years ago

#11459 closed defect (fixed)

BUG: coreutils/diffutils/m4 +with_default_names installation fails

Reported by: vinc17@… Owned by: pipping@…
Priority: Normal Milestone:
Component: ports Version: 1.4
Keywords: Cc: vinc17@…
Port:

Description

I tried to install coreutils with the with_default_names variant and got the following error:

Error: Target com.apple.destroot returned: could not create new link "[": that path already exists
Warning: the following items did not execute (for coreutils): com.apple.activate com.apple.destroot com.apple.archive com.apple.install

Change History (17)

comment:1 Changed 18 years ago by vinc17@…

Summary: BUG: coreutils +with_default_names installation failsBUG: coreutils/diffutils +with_default_names installation fails

Same problem wit diffutils:

Error: Target com.apple.destroot returned: could not create new link "cmp": that path already exists
Warning: the following items did not execute (for diffutils): com.apple.activate com.apple.destroot com.apple.archive com.apple.install

comment:2 Changed 18 years ago by vinc17@…

Also, though I can't try, it seems that these ports forget to add links for the man pages in the with_default_names variant.

comment:3 Changed 18 years ago by pipping@…

Also, though I can't try, it seems that these ports forget to add links for the man pages in the with_default_names variant.

that wasn't intended. there's no reason to move the manpages

could not create new link "[": that path already exists

the old links from +normal-install-names still exist. they aren't removed upon uninstallation. i could make sure whatever there is is overwritten - some package provided md5sum, e.g., too, so how should that be dealt with?

comment:4 Changed 18 years ago by pipping@…

Owner: changed from macports-dev@… to pipping@…
Status: newassigned

comment:5 Changed 18 years ago by vinc17@…

that wasn't intended. there's no reason to move the manpages

There's a good reason: to have the man page associated with the command. In fact, I'd like the with_default_names variant to use the latest coreutils version only (not the one provided by Mac OS X). So it is normal to get the latest version of the man pages too. Using "man gls" is a workaround, but I'd like to completely ignore gls and so on. Moreover the man command can also be used in scripts, e.g. under zsh, typing "ls" then invoking run-help will run "man ls".

the old links from +normal-install-names still exist. they aren't removed upon uninstallation.

This is bad. Anyway this doesn't explain the bug since I've never used +normal-install-names (I had a script that installed symbolic links in /usr/local -- note: /usr/local, not /opt/local). For instance:

prunille:~> where [
[: shell built-in command
/usr/local/bin/[
/bin/[

comment:6 Changed 18 years ago by pipping@…

i've taken care of the naming issue in r22431.

no idea how come you have a file '[' in /opt/local/bin.

comment:7 Changed 18 years ago by vinc17@…

no idea how come you have a file '[' in /opt/local/bin.

I don't have one. So, I don't know why port complains. Ditto for the diffutils port: I get an error concerning cmp, though I don't have a /opt/local/bin/cmp file.

BTW, the error is in destroot. At this time, files in /opt/local/bin shouldn't matter anyway.

comment:8 Changed 18 years ago by vinc17@…

Summary: BUG: coreutils/diffutils +with_default_names installation failsBUG: coreutils/diffutils/m4 +with_default_names installation fails

Same problem with m4.

comment:9 Changed 18 years ago by pipping@…

welll... i can't reproduce this, hence i can't fix it.

my advise is not to use the variant.

comment:10 Changed 18 years ago by vinc17@…

Upgrading to MacPorts 1.4 rc2 solved the problem (at least for m4). Which MacPorts version did you use?

comment:11 Changed 18 years ago by pipping@…

Milestone: Available Ports
Version: 1.4

comment:12 Changed 18 years ago by pipping@…

i'm using the latest version from the trunk.

comment:13 Changed 18 years ago by vinc17@…

This explains you didn't get any problem. The bug seems to be in MacPorts 1.3.2, but this will no longer matter once MacPorts 1.4 is released.

comment:14 Changed 18 years ago by pipping@…

so, can i close this ticket?

comment:15 Changed 18 years ago by vinc17@…

Resolution: fixed
Status: assignedclosed

Problem fixed in the future MacPorts 1.4.

comment:16 Changed 18 years ago by jmpalacios (Juan Manuel Palacios)

Milestone: Available PortsPort Bugs

comment:17 Changed 16 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

Note: See TracTickets for help on using tickets.