tech-pkg archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: bad package build of gcc10
* On 2024-10-30 at 11:54 GMT, Jonathan Perkin wrote:
Happy to point you at the commit once I've finished testing it all,
but I'm not sure there's a good way to do this that would work on all
OS, unless multilib is disabled.
This is what I've gone with:
https://github.com/TritonDataCenter/pkgsrc-extra/commit/37dea66fd036fc0de3a540cd01c6d40aafeeca0f
Previous:
$ ldd -s /opt/local/lib/libiconv.so
find object=libgcc_s.so.1; required by /opt/local/lib/libiconv.so
search path=/opt/local/gcc13/i486-sun-solaris2.11/lib/.:/opt/local/lib (RUNPATH/RPATH from file /opt/local/lib/libiconv.so)
trying path=/opt/local/gcc13/i486-sun-solaris2.11/lib/./libgcc_s.so.1
libgcc_s.so.1 => /opt/local/gcc13/i486-sun-solaris2.11/lib/./libgcc_s.so.1
Now:
$ ldd -s /home/pbulk/build/converters/libiconv/work/.destdir/opt/local/lib/libiconv.so
find object=libgcc_s.so.1; required by /home/pbulk/build/converters/libiconv/work/.destdir/opt/local/lib/libiconv.so
search path=/opt/local/gcc13/i486-sun-solaris2.11/lib:/opt/local/lib (RUNPATH/RPATH from file /home/pbulk/build/converters/libiconv/work/.destdir/opt/local/lib/libiconv.so)
trying path=/opt/local/gcc13/i486-sun-solaris2.11/lib/libgcc_s.so.1
libgcc_s.so.1 => /opt/local/gcc13/i486-sun-solaris2.11/lib/libgcc_s.so.1
However, despite the path now being "clean" (and probably enough to
resolve your issues) it still doesn't work for me for this particular
package:
===> Building for google-authenticator-compat32-1.0
/usr/bin/env PKG_PATH=/data/packages/SmartOS/trunk/i386/All /opt/tools/sbin/pkg_add -P /home/pbulk/build/extra/google-authenticator-compat32/work/google-authenticator-compat32-1.0/pkg -I -m i386 'google-authenticator'
pkg_add: Missing required library: /opt/local/gcc13/i486-sun-solaris2.11/lib/libgcc_s.so.1
even though the file exists in the prefix:
-rwxr-xr-x 1 root root 173808 Oct 29 15:47 /home/pbulk/build/extra/google-authenticator-compat32/work/google-authenticator-compat32-1.0/pkg/opt/local/gcc13/i486-sun-solaris2.11/lib/libgcc_s.so.1
I think the new checking code needs to be fixed to correctly account for
installing to a prefix, i.e. "pkg_add -P" mode.
--
Jonathan Perkin - mnx.io - pkgsrc.smartos.org
Open Source Complete Cloud www.tritondatacenter.com
Home |
Main Index |
Thread Index |
Old Index