[MacPorts] #63736: libtool @2.4.6_13 complains about incorrectly used utility xattrs of PPC Tiger, Mac OS X 10.4.11

MacPorts noreply at macports.org
Tue Dec 6 14:24:33 UTC 2022


#63736: libtool @2.4.6_13 complains about incorrectly used utility xattrs of PPC
Tiger, Mac OS X 10.4.11
------------------------+--------------------
  Reporter:  ballapete  |      Owner:  (none)
      Type:  defect     |     Status:  new
  Priority:  Normal     |  Milestone:
 Component:  ports      |    Version:  2.7.1
Resolution:             |   Keywords:  tiger
      Port:  libtool    |
------------------------+--------------------

Comment (by ballapete):

 `libtool @2.4.7_0` still has problems:

 {{{
 Executing:  cd
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_devel_libtool/libtool/work/libtool-2.4.7"
 && ./configure --prefix=/opt/local --disable-silent-rules --program-
 prefix=g
 DEBUG: system:  cd
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_devel_libtool/libtool/work/libtool-2.4.7"
 && ./configure --prefix=/opt/local --disable-silent-rules --program-
 prefix=g
 expr: brackets ([ ]) not balanced
 ## ------------------------- ##
 ## Configuring libtool 2.4.7 ##
 ## ------------------------- ##
 }}}

 The bug is in `libtool-2.4.7/build-aux/git-version-gen`:

 {{{
    74   me=$0
    75
    76   year=`expr "$scriptversion" : '\([^-]*\)'`
    77   version="git-version-gen $scriptversion
 }}}

 as this output shows:

 {{{
 ++ /bin/sh -x build-aux/git-version-gen .tarball-version
 + scriptversion=2022-01-27.18
 + me=build-aux/git-version-gen
 ++ expr 2022-01-27.18 : '\([^-]*\)'
 expr: brackets ([ ]) not balanced
 + year=
 + version=git-version-gen 2022-01-27.18
 }}}

 This expression works for me in old bashes, version 3.x, and returns the
 value of year, i.e. 2022. The variable is exactly once used here:
 `Copyright (C) ${year} Free Software Foundation, Inc.`. Version of
 `/bin/sh` is:

 {{{
 GNU bash, version 2.05b.0(1)-release (powerpc-apple-darwin8.0)
 }}}

 `echo $scriptversion | cut -d - -f 1` can deliver the searched for value.

-- 
Ticket URL: <https://trac.macports.org/ticket/63736#comment:3>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list