Opened 17 years ago

Closed 15 years ago

#15308 closed defect (worksforme)

grep-2.5.3 build error

Reported by: kngspook@… Owned by: waqar@…
Priority: Normal Milestone:
Component: ports Version: 1.6.0
Keywords: build error Cc: kngspook@…
Port: grep

Description

I'm guessing the install script broke; but I really don't know.

[Users/me] > install grep
--->  Staging grep into destroot
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 -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 -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 -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 -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: Status 1 encountered during processing.

On a side note, I can't find grep on the

Attachments (1)

detailed_error.txt (40.4 KB) - added by kngspook@… 17 years ago.
Verbose-Debug Output

Download all attachments as: .zip

Change History (12)

comment:1 Changed 17 years ago by kngspook@…

Last sentence was supposed to be: "On a side note, I can't find grep on the website listing of portfiles."

comment:2 in reply to:  1 Changed 17 years ago by jmroot (Joshua Root)

Cc: waqar@… removed
Owner: changed from macports-tickets@… to waqar@…

Replying to kngspook@gmail.com:

Last sentence was supposed to be: "On a side note, I can't find grep on the website listing of portfiles."

Turns out that a lot of ports are missing from the website. I opened a new ticket about that, #15309.

comment:3 Changed 17 years ago by raimue (Rainer Müller)

grep installs fine for me on Mac OS X 10.5 Leopard with Xcode 3.0.

comment:4 Changed 17 years ago by kngspook@…

I just tried a clean install, same error. I'm not terribly familiar with MacPorts, but this last line looks suspicious to me: "/./install-sh -c -d /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_sysutils_grep/work/destrootopt/local/share "

It looks like it's trying to run a script in the current directory, but since there's a leading slash, the command actually tries to run a script effectively out of root. Could that be it?

I'm on OS X 10.5.2, Xcode 3.0 as well.

What other output would be helpful?

Changed 17 years ago by kngspook@…

Attachment: detailed_error.txt added

Verbose-Debug Output

comment:5 Changed 17 years ago by kngspook@…

I've attached a more detailed log of the error, by means of:

sudo port clean grep -all
sudo port -vd install grep

comment:6 Changed 16 years ago by dwmarshall (David Marshall)

Workaround:

Go to the work directory, then edit po/Makefile. Change mkdir_p to look like MKDIR_P on the line above it. Then proceed with installation. Activation failed for me until I did 'sudo port -f activate grep'

comment:7 Changed 16 years ago by kngspook@…

I just went to the po/Makefile, and the following line near the top.

top_builddir = ..

Problem was the variable was empty, to the '/' that was used after the variable referred to root instead of being a directory delimiter as intended.

I didn't run into any activation failure when I did it (and thus did not need 'sudo port -f activate grep'). Thanks though.

comment:8 Changed 16 years ago by kngspook@…

Cc: kngspook@… added

Cc Me!

comment:9 Changed 16 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

comment:10 Changed 16 years ago by blb@…

Keywords: grep removed
Port: grep added

Can you reproduce this with a newer (1.7 or 1.7.1) version of MacPorts? Could be the Tcl env bug, #13930.

comment:11 Changed 15 years ago by tobypeterson

Resolution: worksforme
Status: newclosed

Closing as worksforme - no response from reporter in 2 months, and it does work for me.

Note: See TracTickets for help on using tickets.