Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 762997 - dev-libs/crypto++-8.2.0-r2 - /sbin/ldconfig -n /var/tmp/portage/dev-libs/crypto++-8.2.0-r2/image/usr/lib: Unimplemented option: -n (on musl)
Summary: dev-libs/crypto++-8.2.0-r2 - /sbin/ldconfig -n /var/tmp/portage/dev-libs/cryp...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Sam James
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks: musl-porting
  Show dependency tree
 
Reported: 2021-01-02 00:15 UTC by ernsteiswuerfel
Modified: 2021-02-08 14:54 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (crypto++-8.2.0-r2:20210102-000008.log,30.03 KB, text/plain)
2021-01-02 00:15 UTC, ernsteiswuerfel
Details
emerge --info (file_762997.txt,6.44 KB, text/plain)
2021-01-02 00:15 UTC, ernsteiswuerfel
Details
musl-soname-links.patch (musl-soname-links.patch,1.12 KB, patch)
2021-02-08 11:23 UTC, ernsteiswuerfel
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description ernsteiswuerfel archtester 2021-01-02 00:15:22 UTC
Created attachment 680560 [details]
build.log

[...]
x86_64-gentoo-linux-musl-g++ -o cryptest.exe -Os -march=x86-64 -msse3 -mtune=athlon64-sse3 -pipe -fPIC -pthread -pipe adhoc.o test.o bench1.o bench2.o bench3.o datatest.o dlltest.o fipsalgt.o validat0.o validat1.o validat2.o validat3.o validat4.o validat5.o validat6.o validat7.o validat8.o validat9.o validat10.o regtest1.o regtest2.o regtest3.o regtest4.o ./libcryptopp.a -Wl,-O1 -Wl,--as-needed 
make: Nothing to be done for 'shared'.
>>> Source compiled.
>>> Test phase [not enabled]: dev-libs/crypto++-8.2.0-r2

>>> Install dev-libs/crypto++-8.2.0-r2 into /var/tmp/portage/dev-libs/crypto++-8.2.0-r2/image
make -j1 DESTDIR=/var/tmp/portage/dev-libs/crypto++-8.2.0-r2/image install 
Using testing flags: -Os -march=x86-64 -msse3 -mtune=athlon64-sse3 -pipe
cp *.h /var/tmp/portage/dev-libs/crypto++-8.2.0-r2/image/usr/include/cryptopp
chmod 0644 /var/tmp/portage/dev-libs/crypto++-8.2.0-r2/image/usr/include/cryptopp/*.h
cp libcryptopp.a /var/tmp/portage/dev-libs/crypto++-8.2.0-r2/image/usr/lib
chmod 0644 /var/tmp/portage/dev-libs/crypto++-8.2.0-r2/image/usr/lib/libcryptopp.a
cp libcryptopp.so.8.2.0 /var/tmp/portage/dev-libs/crypto++-8.2.0-r2/image/usr/lib
chmod 0755 /var/tmp/portage/dev-libs/crypto++-8.2.0-r2/image/usr/lib/libcryptopp.so.8.2.0
ln -sf libcryptopp.so.8.2.0 /var/tmp/portage/dev-libs/crypto++-8.2.0-r2/image/usr/lib/libcryptopp.so
/sbin/ldconfig -n /var/tmp/portage/dev-libs/crypto++-8.2.0-r2/image/usr/lib
Unimplemented option: -n
make: *** [GNUmakefile:1249: install-lib] Error 1
 * ERROR: dev-libs/crypto++-8.2.0-r2::gentoo failed (install phase):
 *   emake failed
Comment 1 ernsteiswuerfel archtester 2021-01-02 00:15:55 UTC
Created attachment 680563 [details]
emerge --info
Comment 2 ernsteiswuerfel archtester 2021-02-08 10:45:39 UTC
Same for crypto++-8.4.0.
Comment 3 ernsteiswuerfel archtester 2021-02-08 11:23:29 UTC
Created attachment 686034 [details, diff]
musl-soname-links.patch

Patch was taken from https://github.com/void-ppc/void-packages/blob/master/srcpkgs/crypto++/patches/musl-soname-links.patch

Fixes 8.2.0-r2 and 8.4.0 build.
Comment 4 Larry the Git Cow gentoo-dev 2021-02-08 14:54:10 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d1542c922ef3e2f1588a1bf3ab6cb8716dbacef0

commit d1542c922ef3e2f1588a1bf3ab6cb8716dbacef0
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2021-02-08 13:50:07 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2021-02-08 14:53:58 +0000

    dev-libs/crypto++: fix musl build
    
    Closes: https://bugs.gentoo.org/762997
    Package-Manager: Portage-3.0.14, Repoman-3.0.2
    Signed-off-by: Sam James <sam@gentoo.org>

 dev-libs/crypto++/crypto++-8.2.0-r2.ebuild         |  3 ++-
 dev-libs/crypto++/crypto++-8.4.0.ebuild            |  4 ++++
 .../files/crypto++-8.2.0-musl-ldconfig.patch       | 24 ++++++++++++++++++++++
 3 files changed, 30 insertions(+), 1 deletion(-)