Opened 2 years ago

Last modified 2 months ago

#63736 new defect

libtool @2.4.6_13 complains about incorrectly used utility xattrs of PPC Tiger, Mac OS X 10.4.11

Reported by: ballapete (Peter "Pete" Dyballa) Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.7.1
Keywords: tiger Cc: larryv (Lawrence Velázquez), michaelld (Michael Dickens), evanmiller (Evan Miller)
Port: libtool

Description

xinstall: THANKS -> /opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_devel_libtool/libtool/work/destroot/opt/local/share/doc/libtool/THANKS
xinstall: TODO -> /opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_devel_libtool/libtool/work/destroot/opt/local/share/doc/libtool/TODO
DEBUG: system -W /opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_devel_libtool/libtool/work/destroot: xattr -d com.dropbox.attributes $(find . -type f -print0 | xargs -0 xattr | grep com.dropbox.attributes | awk '{ print $1 }' | sed -e 's@:$@@g')
usage: xattr <operation [options]> <files>
       operations: --set --set-data --copy --delete --list --list-parseable

            --set: [-s]  key value
                   specify a key/value attribute pair

       --set-data: [-sd] key path
                   specify a key/value attribute pair
                   the value is the data located at "path"
                   the data has a maximum allowable size of 4K

           --copy: [-c]  key path
                   copy a key/value attribute pair from "path"

         --delete: [-d -rm] key
                   delete a key/value attribute pair

           --list: [-l]  list all key/value attribute pairs

 --list-parseable: [-lp] list all key/value attribute pairs in a parseable format

            --get: [-g]  key path
                   print key/value pair

  --get-parseable: [-gp] key path
                   print key/value pair in a parseable format

DEBUG: Executing portdestroot::destroot_finish
DEBUG: Deleting stray share/info/dir file.
DEBUG: Fixing glibtool .la files in destroot for libtool
DEBUG: Clearing dependency_libs in libltdl.la
--->  Patching libltdl.la: /dependency_libs/ s/'.*'/''/

No log file left.

Attachments (1)

build-aux_git-version-gen_Tiger.patch (537 bytes) - added by ballapete (Peter "Pete" Dyballa) 17 months ago.
Patch to make expr in GNU bash, version 2.05b.0(1)-release of Tiger, Mac OS X 10.4.11, work here

Download all attachments as: .zip

Change History (7)

comment:1 Changed 2 years ago by evanmiller (Evan Miller)

Cc: evanmiller added

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

Cc: larryv michaelld added; larryv@… michaelld@… removed

The way that xattrs is invoked in the libtool port was recently changed for compatibility with macOS Monterey Beta, although I think the problem was solved in a later beta and does not exist in the final release, so perhaps the change that was made can be reverted, or another solution can be found.

comment:3 Changed 17 months ago by ballapete (Peter "Pete" Dyballa)

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.

comment:4 Changed 17 months ago by ballapete (Peter "Pete" Dyballa)

Anyway, this ticket can be closed.

comment:5 Changed 17 months ago by ballapete (Peter "Pete" Dyballa)

Here is a patch that fixes expr on Tiger/bash 2.

Changed 17 months ago by ballapete (Peter "Pete" Dyballa)

Patch to make expr in GNU bash, version 2.05b.0(1)-release of Tiger, Mac OS X 10.4.11, work here

comment:6 Changed 2 months ago by ballapete (Peter "Pete" Dyballa)

Meanwhile libtool @2.4.7_1 (active) requested_variants='' platform='darwin 8' archs='ppc' date='2024-01-30T20:43:37+0100' is installed and so this ticket can be closed.

Note: See TracTickets for help on using tickets.