Opened 15 years ago

Closed 15 years ago

#23344 closed defect (worksforme)

p5-gettext-locale: org.macports.destroot returned: no such file or directory

Reported by: karel@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.8.2
Keywords: Cc: ryandesign (Ryan Carsten Schmidt)
Port: p5-locale-gettext

Description (last modified by mf2k (Frank Schima))

Hi,

Installation or updating many packages fails for p5-gettext-locale in the staging phase. Below are the relevant lines obtained with port -vd install p5-locale-gettext (run as root):

--->  Staging p5-locale-gettext into destroot
. missing (directory not created: File exists)
./Applications missing (directory not created: File exists)
./Developer missing (directory not created: File exists)
./Library missing (directory not created: File exists)
DEBUG: Executing org.macports.destroot (p5-locale-gettext)
DEBUG: Environment: MACOSX_DEPLOYMENT_TARGET='10.5'
DEBUG: Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_perl_p5-locale-gettext/work/gettext-1.05" && /usr/bin/make pure_install DESTDIR=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_perl_p5-locale-gettext/work/destroot'
Files found in blib/arch: installing files in blib/lib into architecture dependent library tree
Writing /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_perl_p5-locale-gettext/work/destroot/Network/Library/Perl/5.8.8/darwin-thread-multi-2level/auto/Locale/gettext/.packlist
DEBUG: Executing proc-post-org.macports.destroot-destroot-0
Error: Target org.macports.destroot returned: no such file or directory
DEBUG: Backtrace: no such file or directory
    while executing
"$post $targetname"
Warning: the following items did not execute (for p5-locale-gettext): org.macports.activate org.macports.destroot org.macports.install
Error: Status 1 encountered during processing.
To report a bug, see <http://guide.macports.org/#project.tickets>

I haven't found what "$post $targetname" expands to, so I can't debug what's wrong - any pointers appreciated.

Thanks, Karel

Change History (7)

comment:1 Changed 15 years ago by mf2k (Frank Schima)

Description: modified (diff)
Keywords: destroot staging removed
Port: p5-locale-gettext added; p5-gettext-locale removed

comment:2 Changed 15 years ago by karel@…

Hello again, ports wizzards,

Please if you have a pointer where I can find the expansion of "$post $targetname", let me know. I'm very anxious to debug / fix this; this upgrade is blocking all installations of other ports so it's a real showstopper. Any and all info appreciated!

Thanks in advance, Karel

comment:3 Changed 15 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: ryandesign@… added
Summary: p5-gettext-locale failure during Staging p5-locale-gettext into destrootp5-gettext-locale: org.macports.destroot returned: no such file or directory

That's not relevant at all. What's relevant is that it's failing to find a file in the post-destroot procedure. There is no post-destroot procedure in the p5-locale-gettext port, so we're talking about the one in the perl5 portgroup, which reads:

    post-destroot {
        fs-traverse file ${destroot}${perl5.lib} {
            if {[file tail ${file}] eq ".packlist"} {
                ui_info "Fixing packlist ${file}"
                reinplace "s|${destroot}||" ${file}
            }
        }
    }

When I've seen this error before, it was caused by a separate perl installation the user had available in /Network/Library. Do you have a non-MacPorts perl installed somewhere too? If so, that's the problem.

comment:4 Changed 15 years ago by karel@…

Thanks for your reply. This looks like the cause, though I am unclear as to what I can do about it. I have two Perls on my system, one is the standard /usr/bin/perl* that comes shipped with the OS, one is the /opt/local/bin/perl* from MacPorts. No other Perl installations are there.

Versions and so on:

ls -l /usr/bin/perl*
-rwxr-xr-x  1 root  wheel  47504 Jan 28 08:42 /usr/bin/perl
-rwxr-xr-x  1 root  wheel  47504 Jan 28 08:42 /usr/bin/perl5.8.8
-rwxr-xr-x  1 root  wheel  37597 Jan 28 08:42 /usr/bin/perlbug
-rwxr-xr-x  1 root  wheel  17953 Sep 24  2007 /usr/bin/perlcc
-rwxr-xr-x  1 root  wheel    224 Sep 24  2007 /usr/bin/perldoc
-rwxr-xr-x  1 root  wheel  11937 Sep 24  2007 /usr/bin/perlivp

/usr/bin/perl -v
This is perl, v5.8.8 built for darwin-thread-multi-2level
(with 4 registered patches, see perl -V for more detail)
[...]

ls -l /opt/local/bin/perl*
-rwxr-xr-x  2 root  admin  1186584 Oct  8  2009 /opt/local/bin/perl
lrwxr-xr-x  1 root  admin        9 Oct  8  2009 /opt/local/bin/perl5 -> perl5.8.9
lrwxr-xr-x  1 root  admin        9 Jan 18 00:18 /opt/local/bin/perl5.8 -> perl5.8.9
-rwxr-xr-x  2 root  admin  1186584 Oct  8  2009 /opt/local/bin/perl5.8.9
-rwxr-xr-x  2 root  admin    44766 Oct  8  2009 /opt/local/bin/perlbug
-rwxr-xr-x  2 root  admin    17965 Oct  8  2009 /opt/local/bin/perlcc
-rwxr-xr-x  2 root  admin      236 Oct  8  2009 /opt/local/bin/perldoc
-rwxr-xr-x  2 root  admin    12286 Oct  8  2009 /opt/local/bin/perlivp
-rwxr-xr-x  2 root  admin    44766 Oct  8  2009 /opt/local/bin/perlthanks

/opt/local/bin/perl -v
This is perl, v5.8.9 built for darwin-2level
[...]

The directory /Network/Library doesn't exist (yet). Do you have any ideas how to fix this? I am considering removing /usr/bin/perl and linking it to /opt/local/bin/perl and retrying, but that might break something else. All ideas appreciated, thanks!

comment:5 Changed 15 years ago by ryandesign (Ryan Carsten Schmidt)

Well, everybody using MacPorts has the perl that comes with Mac OS X; that's not a problem, and you should not remove it.

Consider cleaning the port and trying to install again with the debug flag and capture the output:

sudo port clean p5-gettext-locale
sudo port -d install p5-gettext-locale build.jobs=1 2>&1 | tee ~/Desktop/p5-gettext-locale.txt

Then assuming it fails again attach p5-gettext-locale.txt from your desktop to this ticket. Maybe that will give us more clues.

comment:6 Changed 15 years ago by karel@…

Yep that did the trick. Thanks a bunch! This ticket can be closed, thanks again, Karel

comment:7 Changed 15 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: worksforme
Status: newclosed

I'm glad you got it working, though we're not sure why it didn't work the first time :)

Note: See TracTickets for help on using tickets.