[MacPorts] #69112: libpaper-utils uses rpath instead of the absolute path and installs a broken paperconf binary

MacPorts noreply at macports.org
Tue Feb 6 10:50:56 UTC 2024


#69112: libpaper-utils uses rpath instead of the absolute path and installs a
broken paperconf binary
-----------------------------+--------------------------
  Reporter:  barracuda156    |      Owner:  barracuda156
      Type:  defect          |     Status:  reopened
  Priority:  Normal          |  Milestone:
 Component:  ports           |    Version:  2.8.1
Resolution:                  |   Keywords:
      Port:  libpaper-utils  |
-----------------------------+--------------------------

Comment (by barracuda156):

 Replying to [comment:3 ballapete]:
 > I see a related problem when building on PPC Tiger, Mac OS X 10.4.11:
 >
 > {{{
 > make[3]: Entering directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_print_libpaper/libpaper/work/libpaper-2.1.2/src'
 > /opt/local/bin/gcc-apple-4.2 -std=gnu99 -DHAVE_CONFIG_H -I. -I..
 -DINSTALLDIR=\"/opt/local/bin\" -I../src/libgnu -I../src/libgnu -I../lib
 -I../lib -DREAL_INSTALLPREFIX="\"/opt/local\""
 -isystem/opt/local/include/LegacySupport -I/opt/local/include  -pipe -Os
 -arch ppc -MT paper-paper.o -MD -MP -MF .deps/paper-paper.Tpo -c -o paper-
 paper.o `test -f 'paper.c' || echo './'`paper.c
 > mv -f .deps/paper-paper.Tpo .deps/paper-paper.Po
 > /bin/sh .././build-aux//libtool-reloc /bin/sh ../libtool  --tag=CC
 --mode=link /opt/local/bin/gcc-apple-4.2 -std=gnu99  -pipe -Os -arch ppc
 `".././build-aux//reloc-ldflags" "powerpc-apple-darwin8.11.0"
 "/opt/local/lib" /opt/local/bin` -Wl,-headerpad_max_install_names
 -L/opt/local/lib -lMacportsLegacySupport -arch ppc -o paper paper-paper.o
 ../lib/libpaper.la ../src/libgnu/libgnupaper.la
 > libtool: link: /opt/local/bin/gcc-apple-4.2 -std=gnu99 -pipe -Os -arch
 ppc -Wl,-rpath -Wl, at loader_path/../lib -Wl,-headerpad_max_install_names
 -arch ppc -o .libs/paper paper-paper.o  -L/opt/local/lib
 ../lib/.libs/libpaper.dylib ../src/libgnu/.libs/libgnupaper.a
 -lMacportsLegacySupport
 > ld: -rpath can only be used when targeting Mac OS X 10.5 or later
 > collect2: ld returned 1 exit status
 > make[3]: *** [paper] Error 1
 > make[3]: Leaving directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_print_libpaper/libpaper/work/libpaper-2.1.2/src'
 > }}}

 Well, Tiger needs a dedicated fix, since currently `rpath` is removed
 after the build, but Tiger cannot even build with it.

 The portfile works, it just does not work exclusively on Tiger.

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


More information about the macports-tickets mailing list