Opened 17 years ago

Closed 16 years ago

Last modified 16 years ago

#13343 closed defect (fixed)

grep 2.5.3_0 won't install; 2.5.1a_1 worked fine

Reported by: ryandesign (Ryan Carsten Schmidt) Owned by: waqar@…
Priority: Normal Milestone:
Component: ports Version: 1.6.0
Keywords: Cc: ryandesign (Ryan Carsten Schmidt), spovich@…, bretthoerner@…, ocroquette (Olivier Croquette)
Port:

Description

grep 2.5.3_0 won't install. Here's what I get with MacPorts 1.6.0-rc1 on Mac OS X 10.4.10 with Xcode 2.4.1 on a macbookpro3,1:

$ sudo port install grep
--->  Fetching grep
--->  Verifying checksum(s) for grep
--->  Extracting grep
--->  Configuring grep
--->  Building grep with target all
--->  Staging grep into destroot
Error: Target org.macports.destroot returned: shell command " cd "/opt/local/var/macports/build/_Users_rschmidt_macports_dports_sysutils_grep/work/grep-2.5.3" && make install DESTDIR=/opt/local/var/macports/build/_Users_rschmidt_macports_dports_sysutils_grep/work/destroot " returned error 2
Command output:   : ; \
fi
if test "grep" = "gettext"; then \
  /bin/sh `case "./mkinstalldirs" in /*) echo "./mkinstalldirs" ;; *) echo ".././mkinstalldirs" ;; esac` /opt/local/var/macports/build/_Users_rschmidt_macports_dports_sysutils_grep/work/destroot/opt/local/share/gettext/intl; \
  /usr/bin/install -m 644 VERSION /opt/local/var/macports/build/_Users_rschmidt_macports_dports_sysutils_grep/work/destroot/opt/local/share/gettext/intl/VERSION; \
  /usr/bin/install -m 644 ChangeLog.inst /opt/local/var/macports/build/_Users_rschmidt_macports_dports_sysutils_grep/work/destroot/opt/local/share/gettext/intl/ChangeLog; \
  dists="COPYING.LIB-2.0 COPYING.LIB-2.1 Makefile.in config.charset locale.alias ref-add.sin ref-del.sin gmo.h gettextP.h hash-string.h plural-exp.h eval-plural.h os2compat.h libgnuintl.h loadinfo.h bindtextdom.c dcgettext.c dgettext.c gettext.c finddomain.c loadmsgcat.c localealias.c textdomain.c l10nflist.c explodename.c dcigettext.c dcngettext.c dngettext.c ngettext.c plural.y plural-exp.c localcharset.c localename.c osdep.c os2compat.c intl-compat.c"; \
  for file in $dists; do \
    /usr/bin/install -m 644 ./$file \
                    /opt/local/var/macports/build/_Users_rschmidt_macports_dports_sysutils_grep/work/destroot/opt/local/share/gettext/intl/$file; \
  done; \
  chmod a+x /opt/local/var/macports/build/_Users_rschmidt_macports_dports_sysutils_grep/work/destroot/opt/local/share/gettext/intl/config.charset; \
  dists="plural.c"; \
  for file in $dists; do \
    if test -f $file; then dir=.; else dir=.; fi; \
    /usr/bin/install -m 644 $dir/$file \
                    /opt/local/var/macports/build/_Users_rschmidt_macports_dports_sysutils_grep/work/destroot/opt/local/share/gettext/intl/$file; \
  done; \
  dists="xopen-msg.sed linux-msg.sed po2tbl.sed.in cat-compat.c COPYING.LIB-2 gettext.h libgettext.h plural-eval.c"; \
  for file in $dists; do \
    rm -f /opt/local/var/macports/build/_Users_rschmidt_macports_dports_sysutils_grep/work/destroot/opt/local/share/gettext/intl/$file; \
  done; \
else \
  : ; \
fi
Making install in po
/./install-sh -c -d /opt/local/var/macports/build/_Users_rschmidt_macports_dports_sysutils_grep/work/destroot//opt/local/share
make[1]: /./install-sh: Command not found
make[1]: *** [install-data-yes] Error 127
make: *** [install-recursive] Error 1

Error: Status 1 encountered during processing.

Here are the versions of grep's dependencies I have installed:

$ port installed pcre gettext libiconv expat
The following ports are currently installed:
  pcre @7.4_0+universal (active)
  gettext @0.17_1+universal (active)
  libiconv @1.12_0+darwin_8+universal (active)
  expat @2.0.1_0+examples+universal (active)
$

If I backdate the grep port to r24969, grep 2.5.1a_1 installs just fine.

Change History (17)

comment:1 Changed 17 years ago by ryandesign (Ryan Carsten Schmidt)

Even grep 2.5.1a_1+nls installs ok.

comment:2 Changed 17 years ago by waqar@…

Status: newassigned

I tested on leopard, i will check on Tiger and make sure that it works.

comment:3 Changed 17 years ago by spovich@…

Waqar,

please add me as to cc list on this since #13206 has been closed. Unless I'm blind, this trac setup here doesn't allow regular folks to add cc's.

Thanks!

comment:4 Changed 17 years ago by waqar@…

Cc: ryandesign@… added

comment:5 Changed 17 years ago by waqar@…

If you have an account then you can add yourself. At the very top there is a button for Register.

comment:6 Changed 17 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: spovich@… added

comment:7 in reply to:  6 ; Changed 17 years ago by spovich@…

Replying to ryandesign@macports.org: Yea, I have already registered. You can't reply to a ticket without being logged in. It is probably different permissions or regular users vs committers. For me, the whole top section of the ticket view is not editable, the only option available for a ticket is to post comments like this ;-)

It also looks like once you post a comment, you get cc'd on future updates to the ticket even if you aren't on the cc list.

Anyway, thanks!

comment:8 Changed 17 years ago by waqar@…

Well i just built it on Tiger, and it built fine for me. I am running 1.5.2 version of MacPorts, maybe that works fine, and 1.6 does not?

xanax:/opt/macports/dports/sysutils/grep admin$ uname -a
Darwin xanax.local 8.11.0 Darwin Kernel Version 8.11.0: Wed Oct 10 18:26:00 PDT 2007; root:xnu-792.24.17~1/RELEASE_PPC Power Macintosh powerpc
xanax:/opt/macports/dports/sysutils/grep admin$ cat Portfile
# $Id: Portfile 31013 2007-11-13 20:21:29Z waqar@macports.org $

PortSystem 1.0
name            grep
version         2.5.3
platforms       darwin
categories	sysutils
maintainers	waqar@macports.org
description     GNU grep, the \"fastest grep in the west\" (we hope).
long_description \
    Grep searches one or more input files for lines containing a match  \
    to a specified pattern. By default, grep prints the matching lines.
homepage        http://www.gnu.org/software/grep/grep.html
platforms       darwin
master_sites    gnu
use_bzip2       yes
checksums       md5 27061ce1fde82876970b6549a156da8b \
                sha1 53227ca9a01d5548448372f9b2e9111adf159f3b \
                rmd160 dafa692fd67dfcd1c94115e9831d291b29fa7729
configure.args  --infodir=${prefix}/share/info \
                --mandir=${prefix}/share/man

configure.cppflags-append   -I${prefix}/include
configure.ldflags-append    -L${prefix}/lib

depends_lib     port:pcre port:gettext

test.run        yes
test.target     check
xanax:/opt/macports/dports/sysutils/grep admin$ port build
--->  Fetching grep
--->  Verifying checksum(s) for grep
--->  Extracting grep
--->  Configuring grep
--->  Building grep with target all
xanax:/opt/macports/dports/sysutils/grep admin$ 

comment:9 Changed 17 years ago by waqar@…

Duh, Never mind it is an install issue not a build issue.

comment:10 in reply to:  7 Changed 17 years ago by jmpalacios (Juan Manuel Palacios)

Replying to spovich@gmail.com:

Replying to ryandesign@macports.org: You can't reply to a ticket without being logged in. It is probably different permissions or regular users vs committers. For me, the whole top section of the ticket view is not editable, the only option available for a ticket is to post comments like this ;-)

Yes, it's a different set of permission for project members, they are naturally allowed to tweak more ticket details than those solely holding trac accounts. We're working on a new setup to allow some aspects of a ticket to be editable by just anyone with any type of account, like the Cc field, working our way up from there in a more fine-grained fashion to full ticket modification privileges depending on who you are and your affiliation to your project... but we aint there just yet ;-) Such a system is still in the cooking, sorry about that!

It also looks like once you post a comment, you get cc'd on future updates to the ticket even if you aren't on the cc list.

Please don't count on that behavior, it may likely change in the future to only those on the Cc field (plus reported and assignee, of course) being notified of ticket updates.

-jmpp

comment:11 Changed 17 years ago by bretthoerner@…

Using MacPorts 1.520 on OS X 10.5.1 I get the same(ish),

--->  Staging grep 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)
Making install in intl
if test "grep" = "gettext" \
	   && test '' = 'intl-compat.o'; then \
	  /bin/sh `case "./mkinstalldirs" in /*) echo "./mkinstalldirs" ;; *) echo ".././mkinstalldirs" ;; esac` /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_sysutils_grep/work/destroot/opt/local/lib /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_sysutils_grep/work/destroot/opt/local/include; \
	  /usr/bin/install -c -m 644 libintl.h /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_sysutils_grep/work/destroot/opt/local/include/libintl.h; \
	  @LIBTOOL@ --mode=install \
	    /usr/bin/install -c -m 644 libintl.a /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_sysutils_grep/work/destroot/opt/local/lib/libintl.a; \
	else \
	  : ; \
	fi
if test 'no' = yes; then \
	  test no != no || /bin/sh `case "./mkinstalldirs" in /*) echo "./mkinstalldirs" ;; *) echo ".././mkinstalldirs" ;; esac` /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_sysutils_grep/work/destroot/opt/local/lib; \
	  temp=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_sysutils_grep/work/destroot/opt/local/lib/t-charset.alias; \
	  dest=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_sysutils_grep/work/destroot/opt/local/lib/charset.alias; \
	  if test -f /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_sysutils_grep/work/destroot/opt/local/lib/charset.alias; then \
	    orig=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_sysutils_grep/work/destroot/opt/local/lib/charset.alias; \
	    sed -f ref-add.sed $orig > $temp; \
	    /usr/bin/install -c -m 644 $temp $dest; \
	    rm -f $temp; \
	  else \
	    if test no = no; then \
	      orig=charset.alias; \
	      sed -f ref-add.sed $orig > $temp; \
	      /usr/bin/install -c -m 644 $temp $dest; \
	      rm -f $temp; \
	    fi; \
	  fi; \
	  /bin/sh `case "./mkinstalldirs" in /*) echo "./mkinstalldirs" ;; *) echo ".././mkinstalldirs" ;; esac` /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_sysutils_grep/work/destroot/opt/local/share/locale; \
	  test -f /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_sysutils_grep/work/destroot/opt/local/share/locale/locale.alias \
	    && orig=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_sysutils_grep/work/destroot/opt/local/share/locale/locale.alias \
	    || orig=./locale.alias; \
	  temp=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_sysutils_grep/work/destroot/opt/local/share/locale/t-locale.alias; \
	  dest=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_sysutils_grep/work/destroot/opt/local/share/locale/locale.alias; \
	  sed -f ref-add.sed $orig > $temp; \
	  /usr/bin/install -c -m 644 $temp $dest; \
	  rm -f $temp; \
	else \
	  : ; \
	fi
if test "grep" = "gettext"; then \
	  /bin/sh `case "./mkinstalldirs" in /*) echo "./mkinstalldirs" ;; *) echo ".././mkinstalldirs" ;; esac` /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_sysutils_grep/work/destroot/opt/local/share/gettext/intl; \
	  /usr/bin/install -c -m 644 VERSION /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_sysutils_grep/work/destroot/opt/local/share/gettext/intl/VERSION; \
	  /usr/bin/install -c -m 644 ChangeLog.inst /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_sysutils_grep/work/destroot/opt/local/share/gettext/intl/ChangeLog; \
	  dists="COPYING.LIB-2.0 COPYING.LIB-2.1 Makefile.in config.charset locale.alias ref-add.sin ref-del.sin gmo.h gettextP.h hash-string.h plural-exp.h eval-plural.h os2compat.h libgnuintl.h loadinfo.h bindtextdom.c dcgettext.c dgettext.c gettext.c finddomain.c loadmsgcat.c localealias.c textdomain.c l10nflist.c explodename.c dcigettext.c dcngettext.c dngettext.c ngettext.c plural.y plural-exp.c localcharset.c localename.c osdep.c os2compat.c intl-compat.c"; \
	  for file in $dists; do \
	    /usr/bin/install -c -m 644 ./$file \
			    /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_sysutils_grep/work/destroot/opt/local/share/gettext/intl/$file; \
	  done; \
	  chmod a+x /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_sysutils_grep/work/destroot/opt/local/share/gettext/intl/config.charset; \
	  dists="plural.c"; \
	  for file in $dists; do \
	    if test -f $file; then dir=.; else dir=.; fi; \
	    /usr/bin/install -c -m 644 $dir/$file \
			    /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_sysutils_grep/work/destroot/opt/local/share/gettext/intl/$file; \
	  done; \
	  dists="xopen-msg.sed linux-msg.sed po2tbl.sed.in cat-compat.c COPYING.LIB-2 gettext.h libgettext.h plural-eval.c"; \
	  for file in $dists; do \
	    rm -f /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_sysutils_grep/work/destroot/opt/local/share/gettext/intl/$file; \
	  done; \
	else \
	  : ; \
	fi
Making install in po
/./install-sh -c -d /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_sysutils_grep/work/destroot//opt/local/share
make[1]: /./install-sh: Command not found
make[1]: *** [install-data-yes] Error 127
make: *** [install-recursive] Error 1
Error: Target org.macports.destroot returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_sysutils_grep/work/grep-2.5.3" && make install DESTDIR=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_sysutils_grep/work/destroot " returned error 2
Command output: 	  : ; \
	fi
if test "grep" = "gettext"; then \
	  /bin/sh `case "./mkinstalldirs" in /*) echo "./mkinstalldirs" ;; *) echo ".././mkinstalldirs" ;; esac` /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_sysutils_grep/work/destroot/opt/local/share/gettext/intl; \
	  /usr/bin/install -c -m 644 VERSION /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_sysutils_grep/work/destroot/opt/local/share/gettext/intl/VERSION; \
	  /usr/bin/install -c -m 644 ChangeLog.inst /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_sysutils_grep/work/destroot/opt/local/share/gettext/intl/ChangeLog; \
	  dists="COPYING.LIB-2.0 COPYING.LIB-2.1 Makefile.in config.charset locale.alias ref-add.sin ref-del.sin gmo.h gettextP.h hash-string.h plural-exp.h eval-plural.h os2compat.h libgnuintl.h loadinfo.h bindtextdom.c dcgettext.c dgettext.c gettext.c finddomain.c loadmsgcat.c localealias.c textdomain.c l10nflist.c explodename.c dcigettext.c dcngettext.c dngettext.c ngettext.c plural.y plural-exp.c localcharset.c localename.c osdep.c os2compat.c intl-compat.c"; \
	  for file in $dists; do \
	    /usr/bin/install -c -m 644 ./$file \
			    /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_sysutils_grep/work/destroot/opt/local/share/gettext/intl/$file; \
	  done; \
	  chmod a+x /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_sysutils_grep/work/destroot/opt/local/share/gettext/intl/config.charset; \
	  dists="plural.c"; \
	  for file in $dists; do \
	    if test -f $file; then dir=.; else dir=.; fi; \
	    /usr/bin/install -c -m 644 $dir/$file \
			    /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_sysutils_grep/work/destroot/opt/local/share/gettext/intl/$file; \
	  done; \
	  dists="xopen-msg.sed linux-msg.sed po2tbl.sed.in cat-compat.c COPYING.LIB-2 gettext.h libgettext.h plural-eval.c"; \
	  for file in $dists; do \
	    rm -f /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_sysutils_grep/work/destroot/opt/local/share/gettext/intl/$file; \
	  done; \
	else \
	  : ; \
	fi
Making install in po
/./install-sh -c -d /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_sysutils_grep/work/destroot//opt/local/share
make[1]: /./install-sh: Command not found
make[1]: *** [install-data-yes] Error 127
make: *** [install-recursive] Error 1

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

Could I be added to the CC also?

comment:12 Changed 17 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: bretthoerner@… added

comment:13 Changed 17 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: ocroquette@… added

Olivier Croquette also reported this problem on macports-users. His email also includes a workaround; perhaps the port could employ this workaround until the developers release a fixed version?

comment:14 Changed 17 years ago by ocroquette (Olivier Croquette)

Just to complete my report, I am using:

  • gcc version 4.0.1
  • autoconf (GNU Autoconf) 2.59
  • automake (GNU automake) 1.6.3

Version of grep compiled:

  • GNU grep 2.5.3

The problem is at:

/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_sysutils_grep/work/grep-2.5.3/po

There is this strange part:

MKDIR_P = .././install-sh -c -d
mkdir_p = $(top_builddir)/./install-sh -c -d 

If I replace it with:

MKDIR_P = .././install-sh -c -d
mkdir_p = .././install-sh -c -d

and then resume the port install, it installs correctly.

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

Here's the upstream bug report for this issue.

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

Resolution: fixed
Status: assignedclosed

No response from maintainer in > 72 hours so I committed a fix for this in r37524.

comment:17 Changed 16 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

Note: See TracTickets for help on using tickets.