New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #13206 (closed update: fixed)

Opened 6 years ago

Last modified 4 years ago

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:

Description

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

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

Change History

Changed 6 years ago by spovich@…

patch (unified diff)

comment:1 Changed 6 years ago by nox@…

  • Cc waqar@… added
  • Milestone set to Port Updates

comment:2 Changed 6 years ago by nox@…

  • Cc nox@… added

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

comment:3 Changed 6 years ago by waqar@…

  • Status changed from new to assigned

comment:4 Changed 6 years ago by waqar@…

  • Status changed from assigned to closed
  • Resolution set to fixed

Fix checked in.

comment:5 Changed 6 years ago by spovich@…

  • Status changed from closed to reopened
  • Resolution fixed deleted

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 6 years ago by waqar@…

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

comment:7 Changed 6 years ago by nox@…

  • Status changed from reopened to closed
  • Resolution set to fixed

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

comment:8 Changed 4 years ago by jmr@…

  • Type changed from enhancement to update

comment:9 Changed 4 years ago by anonymous

  • Milestone Port Updates deleted

Milestone Port Updates deleted

Note: See TracTickets for help on using tickets.