Opened 15 years ago

Closed 15 years ago

Last modified 14 years ago

#16220 closed defect (fixed)

textinfo 4.12 fails to compile

Reported by: cabanela@… Owned by: vincent-opdarw@…
Priority: Normal Milestone:
Component: ports Version: 1.6.0
Keywords: Cc:
Port:

Description

In attempting to upgrade my ports on both my MacBook Pro (Core do, 32 bit) and my Mac Pro (64-bit), I got the following errors:

--->  Fetching texinfo
--->  Verifying checksum(s) for texinfo
--->  Extracting texinfo
--->  Configuring texinfo
Error: Target org.macports.configure returned: configure failure: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_textproc_texinfo/work/texinfo-4.12" && ./configure --prefix=/opt/local " returned error 1
Command output: sh: line 0: cd: /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_textproc_texinfo/work/texinfo-4.12: No such file or directory

Error: Unable to upgrade port: 1

Change History (8)

comment:1 Changed 15 years ago by blb@…

Milestone: Port Bugs
Owner: changed from macports-tickets@… to vincent-opdarw@…

Assigning to maintainer.

Try cleaning it first, then try again:

sudo port clean texinfo

comment:2 Changed 15 years ago by cabanela@…

Actually, I should have been clear, I did in fact 'clean'. I always do if there is a problem. But in any case, here's the capture:

[Baryon:~] username% sudo port clean texinfo
Password:
--->  Cleaning texinfo
[Baryon:~] username% sudo port upgrade texinfo
--->  Fetching texinfo
--->  Verifying checksum(s) for texinfo
--->  Extracting texinfo
--->  Configuring texinfo
Error: Target org.macports.configure returned: configure failure: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_textproc_texinfo/work/texinfo-4.12" && ./configure --prefix=/opt/local " returned error 1
Command output: sh: line 0: cd: /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_textproc_texinfo/work/texinfo-4.12: No such file or directory

Error: Unable to upgrade port: 1

comment:3 Changed 15 years ago by vinc17@…

Could you try with option -v?

sudo port -v upgrade texinfo

Note that you may need to install lzmautils first (unfortunately this cannot be done automatically with the current version of MacPorts). I don't know why MacPorts gives the correct error message and runs the configure target while the extract target has failed.

I'll update the port to display an informational message since MacPorts doesn't do it.

comment:4 in reply to:  3 Changed 15 years ago by vinc17@…

Replying to vinc17@macports.org:

I'll update the port to display an informational message since MacPorts doesn't do it.

Done in r38986.

comment:5 Changed 15 years ago by cabanela@…

I did a

sudo port -d sync

to update the port. Then I did

sudo port -v upgrade texinfo

which returned

--->  Configuring texinfo
sh: line 0: cd: /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_textproc_texinfo/work/texinfo-4.12: No such file or directory
Error: Target org.macports.configure returned: configure failure: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_textproc_texinfo/work/texinfo-4.12" && ./configure --prefix=/opt/local " returned error 1
Command output: sh: line 0: cd: /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_textproc_texinfo/work/texinfo-4.12: No such file or directory

Warning: the following items did not execute (for texinfo): org.macports.destroot org.macports.configure org.macports.build
Error: Unable to upgrade port: 1

Just in case, I did

sudo port install lzmautils

and then

sudo port upgrade texinfo

That did it, it compiled. So that is it. I should note the there was no obvious information message in texinfo, at least to me.

comment:6 Changed 15 years ago by raimue (Rainer Müller)

Replying to vinc17@macports.org:

Note that you may need to install lzmautils first (unfortunately this cannot be done automatically with the current version of MacPorts). I don't know why MacPorts gives the correct error message and runs the configure target while the extract target has failed.

At least it can be done with some workaround. Adding depends_build bin:unlzma:lzmautils will work when running commands like port install or port upgrade, although port extract will still fail without lzmautils. But this workaround would at least make the issue go away for most users.

See also #15161.

comment:7 in reply to:  6 Changed 15 years ago by vinc17@…

Resolution: fixed
Status: newclosed

Replying to raimue@macports.org:

At least it can be done with some workaround. Adding depends_build bin:unlzma:lzmautils will work when running commands like port install or port upgrade, although port extract will still fail without lzmautils. But this workaround would at least make the issue go away for most users.

OK, thanks. I now confirm that this works. Done in r38987.

It seems that I did my previous test with "port extract" first or something like that. Also, depends_build has no effect if lzmautils is just deactivated.

Concerning problems with "port extract", I've reported #16223.

comment:8 Changed 14 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

Note: See TracTickets for help on using tickets.