Opened 9 years ago

Closed 9 years ago

#33252 closed defect (worksforme)

help2man - configure: error: gettext required

Reported by: gustafn Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.0.3
Keywords: Cc: ryandesign (Ryan Schmidt), public@…
Port: help2man

Description

After a selfupdate today (feb 14, 2012) help2man runs into a problem with gettext. The problem seems to be different to Ticket #33105, since

port uninstall p5.12-locale-gettext; port clean p5.12-locale-gettext

did not help. This happens in Mac OS X 10.7.2:

version:1
:debug:main epoch: in tree: 0 installed: 0
:debug:main perl5.12 5.12.3_3 exists in the ports tree
:debug:main perl5.12 5.12.3_3  is the latest installed
:debug:main perl5.12 5.12.3_3  is active
:debug:main Merging existing variants '' into variants
:debug:main new fully merged portvariants: 
:debug:main Changing to port directory: /opt/local/var/macports/sources/rsync.macports.org/release/ports/lang/perl5.12
:debug:main OS darwin/11.2.0 (Mac OS X 10.7) arch i386
:debug:main org.macports.load registered provides 'load', a pre-existing procedure. Target override will not be provided
:debug:main org.macports.unload registered provides 'unload', a pre-existing procedure. Target override will not be provided
:debug:main org.macports.distfiles registered provides 'distfiles', a pre-existing procedure. Target override will not be provided
:debug:main adding the default universal variant
:debug:main Reading variant descriptions from /opt/local/var/macports/sources/rsync.macports.org/release/ports/_resources/port1.0/variant_descriptions.conf
:debug:main No need to upgrade! perl5.12 5.12.3_3 >= perl5.12 5.12.3_3
:debug:main epoch: in tree: 0 installed: 0
:debug:main gdbm 1.10_1 exists in the ports tree
:debug:main gdbm 1.10_1  is the latest installed
:debug:main gdbm 1.10_1  is active
:debug:main Merging existing variants '' into variants
:debug:main new fully merged portvariants: 
:debug:main Changing to port directory: /opt/local/var/macports/sources/rsync.macports.org/release/ports/databases/gdbm
:debug:main OS darwin/11.2.0 (Mac OS X 10.7) arch i386
:debug:main org.macports.load registered provides 'load', a pre-existing procedure. Target override will not be provided
:debug:main org.macports.unload registered provides 'unload', a pre-existing procedure. Target override will not be provided
:debug:main org.macports.distfiles registered provides 'distfiles', a pre-existing procedure. Target override will not be provided
:debug:main adding the default universal variant
:debug:main Reading variant descriptions from /opt/local/var/macports/sources/rsync.macports.org/release/ports/_resources/port1.0/variant_descriptions.conf
:debug:main No need to upgrade! gdbm 1.10_1 >= gdbm 1.10_1
:debug:main epoch: in tree: 0 installed: 0
:debug:main gettext 0.18.1.1_2 exists in the ports tree
:debug:main gettext 0.18.1.1_2  is the latest installed
:debug:main gettext 0.18.1.1_2  is active
:debug:main Merging existing variants '' into variants
:debug:main new fully merged portvariants: 
:debug:main Changing to port directory: /opt/local/var/macports/sources/rsync.macports.org/release/ports/devel/gettext
:debug:main OS darwin/11.2.0 (Mac OS X 10.7) arch i386
:debug:main org.macports.load registered provides 'load', a pre-existing procedure. Target override will not be provided
:debug:main org.macports.unload registered provides 'unload', a pre-existing procedure. Target override will not be provided
:debug:main org.macports.distfiles registered provides 'distfiles', a pre-existing procedure. Target override will not be provided
:debug:main Using group file /opt/local/var/macports/sources/rsync.macports.org/release/ports/_resources/port1.0/group/muniversal-1.0.tcl
:debug:main Reading variant descriptions from /opt/local/var/macports/sources/rsync.macports.org/release/ports/_resources/port1.0/variant_descriptions.conf
:debug:main Using group file /opt/local/var/macports/sources/rsync.macports.org/release/ports/_resources/port1.0/group/archcheck-1.0.tcl
:debug:main universal variant already exists, so not adding the default one
:debug:main No need to upgrade! gettext 0.18.1.1_2 >= gettext 0.18.1.1_2
:debug:main epoch: in tree: 0 installed: 0
:debug:main libiconv 1.14_0 exists in the ports tree
:debug:main libiconv 1.14_0  is the latest installed
:debug:main libiconv 1.14_0  is active
:debug:main Merging existing variants '' into variants
:debug:main new fully merged portvariants: 
:debug:main Changing to port directory: /opt/local/var/macports/sources/rsync.macports.org/release/ports/textproc/libiconv
:debug:main OS darwin/11.2.0 (Mac OS X 10.7) arch i386
:debug:main org.macports.load registered provides 'load', a pre-existing procedure. Target override will not be provided
:debug:main org.macports.unload registered provides 'unload', a pre-existing procedure. Target override will not be provided
:debug:main org.macports.distfiles registered provides 'distfiles', a pre-existing procedure. Target override will not be provided
:debug:main Using group file /opt/local/var/macports/sources/rsync.macports.org/release/ports/_resources/port1.0/group/muniversal-1.0.tcl
:debug:main Reading variant descriptions from /opt/local/var/macports/sources/rsync.macports.org/release/ports/_resources/port1.0/variant_descriptions.conf
:debug:main universal variant already exists, so not adding the default one
:debug:main No need to upgrade! libiconv 1.14_0 >= libiconv 1.14_0
:debug:main epoch: in tree: 0 installed: 0
:debug:main ncurses 5.9_1 exists in the ports tree
:debug:main ncurses 5.9_1  is the latest installed
:debug:main ncurses 5.9_1 +universal is active
:debug:main Merging existing variants '+universal' into variants
:debug:main new fully merged portvariants: universal +
:debug:main Changing to port directory: /opt/local/var/macports/sources/rsync.macports.org/release/ports/devel/ncurses
:debug:main OS darwin/11.2.0 (Mac OS X 10.7) arch i386
:debug:main org.macports.load registered provides 'load', a pre-existing procedure. Target override will not be provided
:debug:main org.macports.unload registered provides 'unload', a pre-existing procedure. Target override will not be provided
:debug:main org.macports.distfiles registered provides 'distfiles', a pre-existing procedure. Target override will not be provided
:debug:main adding the default universal variant
:debug:main Reading variant descriptions from /opt/local/var/macports/sources/rsync.macports.org/release/ports/_resources/port1.0/variant_descriptions.conf
:debug:main Executing variant universal provides universal
:debug:main No need to upgrade! ncurses 5.9_1 >= ncurses 5.9_1
:debug:main epoch: in tree: 0 installed: 0
:debug:main expat 2.0.1_1 exists in the ports tree
:debug:main expat 2.0.1_1  is the latest installed
:debug:main expat 2.0.1_1  is active
:debug:main Merging existing variants '' into variants
:debug:main new fully merged portvariants: 
:debug:main Changing to port directory: /opt/local/var/macports/sources/rsync.macports.org/release/ports/textproc/expat
:debug:main OS darwin/11.2.0 (Mac OS X 10.7) arch i386
:debug:main org.macports.load registered provides 'load', a pre-existing procedure. Target override will not be provided
:debug:main org.macports.unload registered provides 'unload', a pre-existing procedure. Target override will not be provided
:debug:main org.macports.distfiles registered provides 'distfiles', a pre-existing procedure. Target override will not be provided
:debug:main adding the default universal variant
:debug:main Reading variant descriptions from /opt/local/var/macports/sources/rsync.macports.org/release/ports/_resources/port1.0/variant_descriptions.conf
:debug:main No need to upgrade! expat 2.0.1_1 >= expat 2.0.1_1
:debug:main epoch: in tree: 0 installed: 0
:debug:main p5.12-locale-gettext 1.50.0_6 exists in the ports tree
:debug:main p5.12-locale-gettext 1.50.0_6  is the latest installed
:debug:main p5.12-locale-gettext 1.50.0_6  is active
:debug:main Merging existing variants '' into variants
:debug:main new fully merged portvariants: 
:debug:main Changing to port directory: /opt/local/var/macports/sources/rsync.macports.org/release/ports/perl/p5-locale-gettext
:debug:main OS darwin/11.2.0 (Mac OS X 10.7) arch i386
:debug:main org.macports.load registered provides 'load', a pre-existing procedure. Target override will not be provided
:debug:main org.macports.unload registered provides 'unload', a pre-existing procedure. Target override will not be provided
:debug:main org.macports.distfiles registered provides 'distfiles', a pre-existing procedure. Target override will not be provided
:debug:main Using group file /opt/local/var/macports/sources/rsync.macports.org/release/ports/_resources/port1.0/group/perl5-1.0.tcl
:debug:main Re-registering default for livecheck.version
:debug:main Re-registering default for configure.universal_args
:debug:main adding the default universal variant
:debug:main Reading variant descriptions from /opt/local/var/macports/sources/rsync.macports.org/release/ports/_resources/port1.0/variant_descriptions.conf
:debug:main No need to upgrade! p5.12-locale-gettext 1.50.0_6 >= p5.12-locale-gettext 1.50.0_6
:msg:main --->  Computing dependencies for help2man:info:main .:debug:main Searching for dependency: perl5.12
:debug:main Found Dependency: receipt exists for perl5.12
:debug:main Searching for dependency: p5.12-locale-gettext
:debug:main Found Dependency: receipt exists for p5.12-locale-gettext
:debug:main Searching for dependency: gettext
:debug:main Found Dependency: receipt exists for gettext
:debug:main Searching for dependency: libiconv
:debug:main Found Dependency: receipt exists for libiconv
:msg:main 
:debug:main Executing org.macports.main (help2man)
:debug:main changing euid/egid - current euid: 0 - current egid: 0
:debug:main egid changed to: 501
:debug:main euid changed to: 506
:debug:archivefetch archivefetch phase started at Tue Feb 14 21:30:46 CET 2012
:msg:archivefetch --->  Fetching archive for help2man
:debug:archivefetch Executing org.macports.archivefetch (help2man)
:debug:archivefetch euid/egid changed to: 0/0
:debug:archivefetch chowned /opt/local/var/macports/software/help2man to macports
:debug:archivefetch euid/egid changed to: 506/501
:debug:archivefetch euid/egid changed to: 0/0
:debug:archivefetch chowned /opt/local/var/macports/incoming to macports
:debug:archivefetch euid/egid changed to: 506/501
:info:archivefetch --->  help2man-1.40.5_0.darwin_11.x86_64.tgz doesn't seem to exist in /opt/local/var/macports/software/help2man
:msg:archivefetch --->  Attempting to fetch help2man-1.40.5_0.darwin_11.x86_64.tgz from http://packages.macports.org/help2man
:debug:archivefetch Fetching archive failed:: The requested URL returned error: 404
:debug:archivefetch Privilege de-escalation not attempted as not running as root.
:debug:fetch fetch phase started at Tue Feb 14 21:30:46 CET 2012
:notice:fetch --->  Fetching help2man
:debug:fetch euid/egid changed to: 0/0
:debug:fetch chowned /opt/local/var/macports/distfiles/help2man to macports
:debug:fetch euid/egid changed to: 506/501
:debug:fetch Executing org.macports.fetch (help2man)
:debug:fetch Privilege de-escalation not attempted as not running as root.
:debug:checksum checksum phase started at Tue Feb 14 21:30:46 CET 2012
:notice:checksum --->  Verifying checksum(s) for help2man
:debug:checksum Executing org.macports.checksum (help2man)
:info:checksum --->  Checksumming help2man-1.40.5.tar.gz
:debug:checksum Correct (rmd160) checksum for help2man-1.40.5.tar.gz
:debug:checksum Correct (sha256) checksum for help2man-1.40.5.tar.gz
:debug:checksum Privilege de-escalation not attempted as not running as root.
:debug:extract extract phase started at Tue Feb 14 21:30:46 CET 2012
:notice:extract --->  Extracting help2man
:debug:extract Executing org.macports.extract (help2man)
:info:extract --->  Extracting help2man-1.40.5.tar.gz
:debug:extract setting option extract.args to '/opt/local/var/macports/distfiles/help2man/help2man-1.40.5.tar.gz'
:debug:extract Environment: CPATH='/opt/local/include' CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_textproc_help2man/help2man/work/.CC_PRINT_OPTIONS' LIBRARY_PATH='/opt/local/lib' CC_PRINT_OPTIONS='YES' MACOSX_DEPLOYMENT_TARGET='10.7'
:debug:extract Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_textproc_help2man/help2man/work" && /usr/bin/gzip -dc '/opt/local/var/macports/distfiles/help2man/help2man-1.40.5.tar.gz' | /usr/bin/gnutar --no-same-owner -xf -'
:debug:extract Executing command line:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_textproc_help2man/help2man/work" && /usr/bin/gzip -dc '/opt/local/var/macports/distfiles/help2man/help2man-1.40.5.tar.gz' | /usr/bin/gnutar --no-same-owner -xf - 
:debug:extract euid/egid changed to: 0/0
:debug:extract chowned /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_textproc_help2man/help2man/work to macports
:debug:extract euid/egid changed to: 506/501
:debug:extract Privilege de-escalation not attempted as not running as root.
:debug:patch patch phase started at Tue Feb 14 21:30:46 CET 2012
:debug:patch Executing org.macports.patch (help2man)
:debug:patch Executing proc-post-org.macports.patch-patch-0
:debug:patch euid/egid changed to: 0/0
:debug:patch chowned /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_textproc_help2man/help2man/work/help2man-1.40.5/Makefile.in to macports
:debug:patch euid/egid changed to: 506/501
:debug:patch euid/egid changed to: 0/0
:debug:patch setting attributes on /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_textproc_help2man/help2man/work/help2man-1.40.5/Makefile.in
:debug:patch euid/egid changed to: 506/501
:debug:patch Privilege de-escalation not attempted as not running as root.
:debug:configure configure phase started at Tue Feb 14 21:30:46 CET 2012
:notice:configure --->  Configuring help2man
:debug:configure Using compiler 'Mac OS X clang'
:debug:configure Executing org.macports.configure (help2man)
:debug:configure Environment: CPATH='/opt/local/include' CFLAGS='-O2 -arch x86_64' CPPFLAGS='-I/opt/local/include' CXXFLAGS='-O2 -arch x86_64' LIBRARY_PATH='/opt/local/lib' MACOSX_DEPLOYMENT_TARGET='10.7' PERL='/opt/local/bin/perl5.12' CXX='/Developer/usr/bin/clang++' CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_textproc_help2man/help2man/work/.CC_PRINT_OPTIONS' F90FLAGS='-O2 -m64' LDFLAGS='-L/opt/local/lib -arch x86_64' OBJC='/Developer/usr/bin/clang' FCFLAGS='-O2 -m64' INSTALL='/usr/bin/install -c' OBJCFLAGS='-O2 -arch x86_64' FFLAGS='-O2 -m64' CC_PRINT_OPTIONS='YES' CC='/Developer/usr/bin/clang'
:debug:configure Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_textproc_help2man/help2man/work/help2man-1.40.5" && ./configure --prefix=/opt/local --enable-nls'
:debug:configure Executing command line:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_textproc_help2man/help2man/work/help2man-1.40.5" && ./configure --prefix=/opt/local --enable-nls 
:info:configure checking for perl... /opt/local/bin/perl5.12
:info:configure checking for module Locale::gettext... yes
:info:configure checking for msgfmt... no
:info:configure checking for gcc... /Developer/usr/bin/clang
:info:configure checking whether the C compiler works... yes
:info:configure checking for C compiler default output file name... a.out
:info:configure checking for suffix of executables... 
:info:configure checking whether we are cross compiling... no
:info:configure checking for suffix of object files... o
:info:configure checking whether we are using the GNU C compiler... yes
:info:configure checking whether /Developer/usr/bin/clang accepts -g... yes
:info:configure checking for /Developer/usr/bin/clang option to accept ISO C89... none needed
:info:configure checking for library containing dlsym... none required
:info:configure checking for library containing bindtextdomain... -lintl
:info:configure configure: error: gettext required
:info:configure shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_textproc_help2man/help2man/work/help2man-1.40.5" && ./configure --prefix=/opt/local --enable-nls " returned error 1
:error:configure Target org.macports.configure returned: configure failure: shell command failed (see log for details)
:debug:configure Backtrace: configure failure: shell command failed (see log for details)
    while executing
"$procedure $targetname"
:info:configure Warning: the following items did not execute (for help2man): org.macports.activate org.macports.configure org.macports.build org.macports.destroot org.macports.install
:notice:configure Log for help2man is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_textproc_help2man/help2man/main.log

Change History (7)

comment:1 Changed 9 years ago by public@…

I have the same problem. The Port is pointing to a file that does not exist.

comment:2 in reply to:  1 Changed 9 years ago by ryandesign (Ryan Schmidt)

Cc: public@… added

Replying to public@…:

The Port is pointing to a file that does not exist.

What file are you referring to?

comment:3 Changed 9 years ago by public@…

The file is:

help2man-1.40.5_0.darwin_11.x86_64.tgz from http://packages.macports.org/help2man

although the exact file is not listed in the port. It is the link built with it. In that location there are only darwin_10 files

Furthermore the files are compressed as with bzip2 but the missing file suggest that is expected to find a gziped file

comment:4 Changed 9 years ago by ryandesign (Ryan Schmidt)

That has nothing to do with the problem. We don't have any packages for any ports for Lion yet. Also, we only offer tbz2 packages, so you should set portarchivetype to tbz2 in macports.conf. When a pre-built package is not found on our server, MacPorts tries to build it on your computer. That's what's failing; that's what we're trying to fix.

comment:5 in reply to:  4 Changed 9 years ago by gustafn

i tried various things on the machine, but the problem persists:

a) removed all perl versions and perl modules (p5-*, perl5) and all dependent ports, remove all *gettext* ports.

b) updated the machine to 10.7.3 and XCode 4.3 and 4.3.1

i did not really expect (b) to help, but i am somewhat surprised, that (a) did not help either. There are really many ports depending on help2man, which are blocked due to this.

comment:6 Changed 9 years ago by gustafn

I found a solution for this problem. When i remove binpath in /opt/local/etc/macports/macports.conf

#binpath ${prefix}/bin/no_default_gcc:${prefix}/bin:${prefix}/sbin:/bin:/sbin:/usr/bin:/usr/sbin

everything compiles and installs fine. The setup of /opt/local/bin/no_default_gcc is as recommended:

% ll /opt/local/bin/no_default_gcc 
ls -l /opt/local/bin/no_default_gcc
total 40
drwxr-xr-x  8 root  admin  272 14 Feb 21:00 .svn
lrwxr-xr-x  1 root  admin    2 14 Feb 21:00 c++ -> cc
-rwxr-xr-x  1 root  admin  350 14 Feb 21:00 cc
lrwxr-xr-x  1 root  admin    2 14 Feb 21:00 cpp -> cc
lrwxr-xr-x  1 root  admin    2 14 Feb 21:00 g++ -> cc
lrwxr-xr-x  1 root  admin    2 14 Feb 21:00 gcc -> cc

comment:7 Changed 9 years ago by jmroot (Joshua Root)

Resolution: worksforme
Status: newclosed

Changing binpath is unsupported. Closing given the lack of a config.log and the fact that a newer version of help2man is now available.

Note: See TracTickets for help on using tickets.