Opened 17 years ago

Closed 17 years ago

Last modified 9 years ago

#13206 closed update (fixed)

upgrade 'grep' port to 2.5.3

Reported by: spovich@… Owned by: waqar@…
Priority: Normal Milestone:
Component: ports Version: 1.5.0
Keywords: Cc: waqar@…, nox@…
Port: grep

Description (last modified by ryandesign (Ryan Carsten Schmidt))

grep 2.5.3 was released in August 2007 and adds a very nice new feature '--exclude-dir'. This is super nice for grep'ing things like svn repo's so you can exclude '.svn' directories.

Here is a patch to the portfile to upgrade to 2.5.3

Thanks!

--- Portfile.orig       2007-05-09 08:52:17.000000000 -0700
+++ Portfile    2007-11-08 20:21:49.000000000 -0800
@@ -2,7 +2,7 @@
 
 PortSystem 1.0
 name            grep
-version         2.5.1a
+version         2.5.3
 revision        1
 platforms          darwin
 categories         sysutils
@@ -15,9 +15,9 @@
 platforms       darwin
 master_sites    gnu
 use_bzip2       yes
-checksums       md5 52202fe462770fa6be1bb667bd6cf30c \
-                sha1 2cd082775d30be463c0ac674a00595eb56fda22e \
-                rmd160 f02c36c5a1efe805eafb0b4c0171ddb7ff15fbeb
+checksums       md5 27061ce1fde82876970b6549a156da8b \
+                sha1 53227ca9a01d5548448372f9b2e9111adf159f3b \
+                rmd160 dafa692fd67dfcd1c94115e9831d291b29fa7729 
 configure.args  --infodir=${prefix}/share/info \
                 --mandir=${prefix}/share/man \
                 --disable-nls

Attachments (1)

Portfile-grep.diff (858 bytes) - added by spovich@… 17 years ago.
patch (unified diff)

Download all attachments as: .zip

Change History (11)

Changed 17 years ago by spovich@…

Attachment: Portfile-grep.diff added

patch (unified diff)

comment:1 Changed 17 years ago by nox@…

Cc: waqar@… added
Milestone: Port Updates

comment:2 Changed 17 years ago by nox@…

Cc: nox@… added

Please notice the revision line should be removed from the Portfile.

comment:3 Changed 17 years ago by waqar@…

Status: newassigned

comment:4 Changed 17 years ago by waqar@…

Resolution: fixed
Status: assignedclosed

Fix checked in.

comment:5 Changed 17 years ago by spovich@…

Resolution: fixed
Status: closedreopened

Not sure why, but 'sudo port install grep' is now failing. Tried on two different intel OS X 10.4.11 machines:

spov@mac->sudo port install grep
Portfile changed since last build; discarding previous state.
--->  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/_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

Error: Status 1 encountered during processing.

comment:6 Changed 17 years ago by waqar@…

I am working on this one. I tested on Leopard, I need to double check on Tiger.

comment:7 Changed 17 years ago by nox@…

Resolution: fixed
Status: reopenedclosed

There's already an open ticket for this issue (#13343). I'm closing this one again.

comment:8 Changed 16 years ago by jmroot (Joshua Root)

Type: enhancementupdate

comment:9 Changed 16 years ago by (none)

Milestone: Port Updates

Milestone Port Updates deleted

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

Description: modified (diff)
Port: grep added
Note: See TracTickets for help on using tickets.