Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 790140 - app-backup/bacula-9.6.7 - x86_64-pc-linux-gnu-g++: error: unrecognized command-line option -soname
Summary: app-backup/bacula-9.6.7 - x86_64-pc-linux-gnu-g++: error: unrecognized comman...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Thomas Beierlein
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks: slibtool
  Show dependency tree
 
Reported: 2021-05-14 07:20 UTC by Toralf Förster
Modified: 2022-06-03 07:58 UTC (History)
1 user (show)

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


Attachments
emerge-info.txt (emerge-info.txt,18.44 KB, text/plain)
2021-05-14 07:20 UTC, Toralf Förster
Details
app-backup:bacula-9.6.7:20210514-010838.log (app-backup:bacula-9.6.7:20210514-010838.log,97.02 KB, text/plain)
2021-05-14 07:20 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,302.24 KB, text/plain)
2021-05-14 07:20 UTC, Toralf Förster
Details
environment (environment,84.58 KB, text/plain)
2021-05-14 07:20 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,27.36 KB, application/x-bzip)
2021-05-14 07:20 UTC, Toralf Förster
Details
logs.tar.bz2 (logs.tar.bz2,22.97 KB, application/x-bzip)
2021-05-14 07:20 UTC, Toralf Förster
Details
temp.tar.bz2 (temp.tar.bz2,30.69 KB, application/x-bzip)
2021-05-14 07:20 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2021-05-14 07:20:42 UTC
rdlibtool --silent --tag=CXX --mode=link /usr/bin/x86_64-pc-linux-gnu-g++ -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 -o libbaccats-sqlite3.la sqlite.lo -export-dynamic -rpath /usr/lib64 -release 9.6.7 -soname libbaccats-9.6.7.so -R /usr/lib64 -L/usr/lib64 -lsqlite3

x86_64-pc-linux-gnu-g++: error: unrecognized command-line option ‘-soname’
rdlibtool: exec error upon slbt_exec_link_create_library(), line 1572: (see child process error messages).
rdlibtool: < returned to > slbt_exec_link(), line 2084.
make[1]: *** [Makefile:247: libbaccats-sqlite3.la] Error 2
make[1]: Leaving directory '/var/tmp/portage/app-backup/bacula-9.6.7/work/bacula-9.6.7/src/cats'

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1-j2-20210510-164358

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-7.3.1
 [2] x86_64-pc-linux-gnu-11.1.0 *
clang version 12.0.0
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/12/bin
/usr/lib/llvm/12
12.0.0
Python 3.8.10
Available Ruby profiles:
  [1]   ruby26 (with Rubygems)
  [2]   ruby30 (with Rubygems) *
Available Rust versions:
  [1]   rust-bin-1.52.1 *
The following VMs are available for generation-2:
*)	AdoptOpenJDK 8.292_p10 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8  system-vm

The Glorious Glasgow Haskell Compilation System, version 8.10.4

  timestamp(s) of HEAD at this tinderbox image:
/var/db/repos/gentoo	Thu May 13 23:35:26 UTC 2021

emerge -qpvO app-backup/bacula
[ebuild  N    ] app-backup/bacula-9.6.7  USE="X acl batch-insert ipv6 readline sqlite ssl tcpd -bacula-clientonly -bacula-nodir -bacula-nosd -examples -logwatch -mysql -postgres -qt5 -static -vim-syntax"
Comment 1 Toralf Förster gentoo-dev 2021-05-14 07:20:43 UTC
Created attachment 708324 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2021-05-14 07:20:45 UTC
Created attachment 708327 [details]
app-backup:bacula-9.6.7:20210514-010838.log
Comment 3 Toralf Förster gentoo-dev 2021-05-14 07:20:46 UTC
Created attachment 708330 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2021-05-14 07:20:48 UTC
Created attachment 708333 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2021-05-14 07:20:49 UTC
Created attachment 708336 [details]
etc.portage.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2021-05-14 07:20:50 UTC
Created attachment 708339 [details]
logs.tar.bz2
Comment 7 Toralf Förster gentoo-dev 2021-05-14 07:20:51 UTC
Created attachment 708342 [details]
temp.tar.bz2
Comment 8 Larry the Git Cow gentoo-dev 2022-05-17 01:06:42 UTC
The bug has been referenced in the following commit(s):

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

commit 86bdb5ca9634d10a4bcf7d24d2869508987af78d
Author:     orbea <orbea@riseup.net>
AuthorDate: 2022-05-08 15:35:37 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-05-17 01:06:30 +0000

    app-backup/bacula: Fix build with slibtool
    
    Bug: https://bugs.gentoo.org/790140
    Signed-off-by: orbea <orbea@riseup.net>
    Closes: https://github.com/gentoo/gentoo/pull/25386
    Signed-off-by: Sam James <sam@gentoo.org>

 app-backup/bacula/bacula-11.0.6.ebuild            |   3 +
 app-backup/bacula/files/bacula-fix-slibtool.patch | 126 ++++++++++++++++++++++
 2 files changed, 129 insertions(+)
Comment 9 Larry the Git Cow gentoo-dev 2022-05-17 01:12:10 UTC
The bug has been referenced in the following commit(s):

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

commit ad6b7ed0acb9732706787cbdbbaee3e0be931c82
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2022-05-17 01:12:02 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-05-17 01:12:02 +0000

    app-backup/bacula: add link to upstream slibtool bug
    
    Bug: https://bugs.gentoo.org/790140
    Signed-off-by: Sam James <sam@gentoo.org>

 app-backup/bacula/files/bacula-fix-slibtool.patch | 2 ++
 1 file changed, 2 insertions(+)
Comment 10 Larry the Git Cow gentoo-dev 2022-05-17 06:10:07 UTC
The bug has been referenced in the following commit(s):

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

commit 8dcf61a9bbe52845be829ba9f49680d5f1932e32
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2022-05-17 06:09:36 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-05-17 06:09:57 +0000

    app-backup/bacula: add -r1 w/o slibtool patch
    
    Just temporarily.
    
    Bug: https://bugs.gentoo.org/790140
    Bug: https://bugs.gentoo.org/845126
    Signed-off-by: Sam James <sam@gentoo.org>

 ...acula-11.0.6.ebuild => bacula-11.0.6-r1.ebuild} |   3 -
 app-backup/bacula/files/bacula-fix-slibtool.patch  | 128 ---------------------
 2 files changed, 131 deletions(-)
Comment 11 orbea 2022-05-17 20:20:37 UTC
Opening this again since the commit was reverted.

See: https://bugs.gentoo.org/845126
Comment 12 Larry the Git Cow gentoo-dev 2022-06-03 07:58:22 UTC
The bug has been closed via the following commit(s):

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

commit e453613efdefbc2fbac2ed0454c3571e68276ceb
Author:     Thomas Beierlein <tomjbe@gentoo.org>
AuthorDate: 2022-06-03 07:51:10 +0000
Commit:     Thomas Beierlein <tomjbe@gentoo.org>
CommitDate: 2022-06-03 07:58:06 +0000

    app-backup/bacula: Fix soname in libbaccat.so i
    
    Actual libtool needs a patch to accept '-soname' command line switch,
    otherwise it will ignored.
    slibtool in contrast responds with error and is not easy to patch.
    
    Solution here drops the '-soname' switch and uses patchelf program to
    fix the SONAME after the library is build.
    
    Closes: https://bugs.gentoo.org/790140
    Closes: https://bugs.gentoo.org/845126
    Signed-off-by: Thomas Beierlein <tomjbe@gentoo.org>

 app-backup/bacula/bacula-11.0.6-r2.ebuild          | 417 +++++++++++++++++++++
 .../bacula/files/bacula-fix-sonames-new.patch      |  37 ++
 2 files changed, 454 insertions(+)