Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 762811 - sys-apps/bat-0.17.1 : = note: /.../ld: /.../libgit2.so: undefined reference to git_load
Summary: sys-apps/bat-0.17.1 : = note: /.../ld: /.../libgit2.so: undefined reference ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: J Pz
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2020-12-31 16:05 UTC by Toralf Förster
Modified: 2021-01-16 22:01 UTC (History)
1 user (show)

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


Attachments
emerge-info.txt (emerge-info.txt,17.98 KB, text/plain)
2020-12-31 16:05 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,436.32 KB, text/plain)
2020-12-31 16:05 UTC, Toralf Förster
Details
environment (environment,76.83 KB, text/plain)
2020-12-31 16:05 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,32.36 KB, application/x-bzip)
2020-12-31 16:05 UTC, Toralf Förster
Details
sys-apps:bat-0.17.1:20201231-152336.log (sys-apps:bat-0.17.1:20201231-152336.log,127.73 KB, text/plain)
2020-12-31 16:05 UTC, Toralf Förster
Details
temp.tbz2 (temp.tbz2,27.56 KB, application/x-bzip)
2020-12-31 16:05 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 2020-12-31 16:05:08 UTC
  = note: /usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib64/libgit2.so: undefined reference to `git___load'
          collect2: error: ld returned 1 exit status
          


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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1-libressl_abi32+64-20201219-101624

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

gcc-config -l:
 [1] x86_64-pc-linux-gnu-7.3.1
 [2] x86_64-pc-linux-gnu-10.2.0 *
clang version 11.0.0
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/11/bin
/usr/lib/llvm/11
11.0.0
Available Python interpreters, in order of preference:
  [1]   python3.9
  [2]   python3.8 (fallback)
  [3]   python2.7 (fallback)
Available Ruby profiles:
  [1]   ruby25 (with Rubygems)
  [2]   ruby26 (with Rubygems)
  [3]   ruby27 (with Rubygems) *
Available Rust versions:
  [1]   rust-1.48.0 *
The following VMs are available for generation-2:
*)	AdoptOpenJDK 8.272_p10 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8  system-vm

The Glorious Glasgow Haskell Compilation System, version 8.8.4

  timestamp(s) of HEAD at this tinderbox image:
/var/db/repos/gentoo	Thu Dec 31 03:05:21 PM UTC 2020
/var/db/repos/libressl	Mon Dec 28 11:05:14 PM UTC 2020

emerge -qpvO sys-apps/bat
[ebuild  N    ] sys-apps/bat-0.17.1  USE="-debug"
Comment 1 Toralf Förster gentoo-dev 2020-12-31 16:05:10 UTC
Created attachment 680449 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2020-12-31 16:05:12 UTC
Created attachment 680452 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2020-12-31 16:05:13 UTC
Created attachment 680455 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2020-12-31 16:05:14 UTC
Created attachment 680458 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2020-12-31 16:05:16 UTC
Created attachment 680461 [details]
sys-apps:bat-0.17.1:20201231-152336.log
Comment 6 Toralf Förster gentoo-dev 2020-12-31 16:05:17 UTC
Created attachment 680464 [details]
temp.tbz2
Comment 7 J Pz 2021-01-15 23:23:10 UTC
It looks like this is due to the tinderbox script applying a global `-threads`. I hadn't caught this since my profile has `+threads` by default.

In libgit2, `git___load` is conditionally defined based on `+threads`, so I'll add that to the USE constraint in the dependency for dev-libs/libgit2 in the ebuild.
Comment 8 Larry the Git Cow gentoo-dev 2021-01-16 22:01:01 UTC
The bug has been closed via the following commit(s):

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

commit 606f06618a7838ab0eb1884a77ba7c6c2fc27fc6
Author:     toshokan <toshokan@shojigate.net>
AuthorDate: 2021-01-16 03:50:37 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2021-01-16 21:49:14 +0000

    sys-apps/bat: Bump dev-libs/libgit2 version and +threads
    
    This is the version recommended by upstream at
    https://github.com/rust-lang/git2-rs/blob/master/README.md#version-of-libgit2
    
    Closes: https://bugs.gentoo.org/762811
    Package-Manager: Portage-3.0.12, Repoman-3.0.2
    Signed-off-by: Jason Pizzuco <toshokan@shojigate.net>
    Closes: https://github.com/gentoo/gentoo/pull/19075
    Signed-off-by: Sam James <sam@gentoo.org>

 sys-apps/bat/bat-0.17.1-r1.ebuild | 200 ++++++++++++++++++++++++++++++++++++++
 1 file changed, 200 insertions(+)