Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 952004 - =dev-vcs/git-2.49.0-r1 fails to emerge when dev-util/coccinelle is installed
Summary: =dev-vcs/git-2.49.0-r1 fails to emerge when dev-util/coccinelle is installed
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Robin Johnson
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2025-03-24 20:01 UTC by Amadeusz Sławiński
Modified: 2025-03-28 19:48 UTC (History)
2 users (show)

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


Attachments
build.log (build.log,10.86 KB, text/x-log)
2025-03-24 20:01 UTC, Amadeusz Sławiński
Details
meson-log.txt (meson-log.txt,81.43 KB, text/plain)
2025-03-24 20:02 UTC, Amadeusz Sławiński
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Amadeusz Sławiński 2025-03-24 20:01:16 UTC
I have dev-util/coccinelle installed and =dev-vcs/git-2.49.0-r1 fails to emerge after detecting that spatch is present on system and running some script.

From meson-log.txt it seems that it somehow assumes that source is in git repository:
Program spatch found: YES (/usr/bin/spatch)
Running command: /usr/bin/git -C /var/tmp/portage/dev-vcs/git-2.49.0-r1/work/git-2.49.0 ls-files --deduplicate '*.c' ':!contrib' ':!compat/inet_ntop.c' ':!compat/inet_pton.c' ':!compat/nedmalloc' ':!compat/obstack.*' ':!compat/poll' ':!compat/regex' ':!sha1collisiondetection' ':!sha1dc' ':!t/unit-tests/clar' ':!t/unit-tests/clar' ':!t/t[0-9][0-9][0-9][0-9]*'
--- stdout ---

--- stderr ---
fatal: not a git repository (or any of the parent directories): .git



contrib/coccinelle/meson.build:54:17: ERROR: Command `/usr/bin/git -C /var/tmp/portage/dev-vcs/git-2.49.0-r1/work/git-2.49.0 ls-files --deduplicate '*.c' ':!contrib' ':!compat/inet_ntop.c' ':!compat/inet_pton.c' ':!compat/nedmalloc' ':!compat/obstack.*' ':!compat/poll' ':!compat/regex' ':!sha1collisiondetection' ':!sha1dc' ':!t/unit-tests/clar' ':!t/unit-tests/clar' ':!t/t[0-9][0-9][0-9][0-9]*'` failed with status 128.


Reproducible: Always

Steps to Reproduce:
1. Install dev-util/coccinelle-1.1.1-r5
2. Try to emerge =dev-vcs/git-2.49.0-r1
Actual Results:  
Git installs fine

Expected Results:  
Fails to install

Portage 3.0.67 (python 3.12.9-final-0, default/linux/amd64/23.0/hardened, gcc-14, glibc-2.41-r1, 6.13.2-gentoo x86_64)
=================================================================
System uname: Linux-6.13.2-gentoo-x86_64-Intel-R-_Core-TM-_i7-4790K_CPU_@_4.00GHz-with-glibc2.41
KiB Mem:    32670820 total,   9237192 free
KiB Swap:          0 total,         0 free
Head commit of repository steam-overlay: d93137ae2575727f9df5d43ce6e0368d44b6c0e7

Timestamp of repository gentoo: Mon, 24 Mar 2025 09:15:01 +0000
Head commit of repository gentoo: fde06c1d6af19902fa40fd1bcd18abe3e2995b66
sh bash 5.2_p37
ld GNU ld (Gentoo 2.44 p1) 2.44.0
app-misc/pax-utils:        1.3.8::gentoo
app-shells/bash:           5.2_p37::gentoo
dev-build/autoconf:        2.71-r7::gentoo, 2.72-r1::gentoo
dev-build/automake:        1.16.5-r2::gentoo, 1.17-r2::gentoo
dev-build/cmake:           3.31.6-r1::gentoo
dev-build/libtool:         2.5.4::gentoo
dev-build/make:            4.4.1-r100::gentoo
dev-build/meson:           1.7.0::gentoo
dev-lang/perl:             5.40.1::gentoo
dev-lang/python:           3.11.11_p2::gentoo, 3.12.9::gentoo, 3.13.2::gentoo, 3.13.2-r100::gentoo
dev-lang/rust:             1.84.1-r1::gentoo, 1.85.0-r1::gentoo, 1.85.1::gentoo
dev-lang/rust-bin:         1.84.1-r1::gentoo, 1.85.0-r1::gentoo, 1.85.1::gentoo
llvm-core/clang:           19.1.7::gentoo, 20.1.1::gentoo
llvm-core/lld:             15.0.7::gentoo, 16.0.6::gentoo, 19.1.7::gentoo
llvm-core/llvm:            15.0.7-r7::gentoo, 16.0.6-r5::gentoo, 19.1.7::gentoo, 20.1.1::gentoo
sys-apps/baselayout:       2.17::gentoo
sys-apps/openrc:           0.61::gentoo
sys-apps/sandbox:          2.45::gentoo
sys-devel/binutils:        2.44::gentoo
sys-devel/binutils-config: 5.5.2::gentoo
sys-devel/gcc:             13.3.1_p20250301::gentoo, 14.2.1_p20250301::gentoo
sys-devel/gcc-config:      2.12.1::gentoo
sys-kernel/linux-headers:  6.13::gentoo (virtual/os-headers)
sys-libs/glibc:            2.41-r1::gentoo
Repositories:

local-overlay
location: /home/amade/overlay
masters: gentoo
priority: 10
volatile: True

crossdev
location: /usr/local/portage/crossdev
masters: gentoo local-overlay
priority: 50
volatile: True

steam-overlay
location: /usr/local/portage/steam-overlay
sync-type: git
sync-uri: https://github.com/anyc/steam-overlay.git
masters: gentoo
priority: 50
volatile: True

gentoo
location: /usr/portage
sync-type: rsync
sync-uri: rsync://rsync.gentoo.org/gentoo-portage
priority: 51
volatile: True
sync-rsync-verify-jobs: 1
sync-rsync-verify-max-age: 3
sync-rsync-extra-opts:
sync-rsync-verify-metamanifest: yes

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="@FREE google-chrome Spotify teamspeak3 Vivaldi"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=native -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt /var/bind"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d"
CXXFLAGS="-O2 -march=native -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--autounmask=n"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GDK_PIXBUF_MODULE_FILE GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR XDG_STATE_HOME"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg-live clean-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync merge-wait multilib-strict network-sandbox news parallel-fetch pid-sandbox pkgdir-index-trusted preserve-libs protect-owned qa-unresolved-soname-deps sandbox splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs -fuse-ld=mold"
LEX="flex"
MAKEOPTS="-j8"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
SHELL="/bin/zsh"
USE="X acl acpi activities alsa amd64 audit bzip2 caps cet colord crypt cups dbus elogind ffmpeg flac gdbm gif git glamor gnutls gold gpg gstreamer hardened ibus iconv icu introspection ipv6 jpeg jpeg2k kde kf6compat kwallet libnotify libtirpc mng mp3 multilib ncurses nls ogg opengl openmp pam pcre pic pie pipewire png policykit pulseaudio qml qt6 readline screencast seccomp semantic-desktop ssl ssp svg taglib test-rust theora threads tiff udev udisks unicode upower usb v4l vaapi vdpau vim-syntax vorbis vulkan wayland webp x264 xattr xcb xft xinerama xml xpm xrandr xtpax zlib zsh-completion" ABI_X86="32 64" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_anon authn_dbm authn_file authz_dbm authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir env expires ext_filter file_cache filter headers include info log_config logio mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 fma3 mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax navcom oceanserver oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 tsip tripmate tnt ublox" GUILE_SINGLE_TARGET="3-0" GUILE_TARGETS="3-0" INPUT_DEVICES="libinput" KERNEL="linux" L10N="en en-GB pl" LCD_DEVICES="bayrad cfontz glk hd44780 lb216 lcdm001 mtxorb text" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-2" POSTGRES_TARGETS="postgres16" PYTHON_SINGLE_TARGET="python3_12" PYTHON_TARGETS="python3_12" QEMU_SOFTMMU_TARGETS="arm aarch64 i386 ppc ppc64 riscv32 riscv64 x86_64" RUBY_TARGETS="ruby26" VIDEO_CARDS="fbdev intel i965 amdgpu radeon radeonsi" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipp2p iface geoip fuzzy condition tarpit sysrq proto logmark ipmark dhcpmac delude chaos account"
Unset:  ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PYTHONPATH, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS
Comment 1 Amadeusz Sławiński 2025-03-24 20:01:49 UTC
Created attachment 922546 [details]
build.log
Comment 2 Amadeusz Sławiński 2025-03-24 20:02:44 UTC
Created attachment 922547 [details]
meson-log.txt
Comment 3 Larry the Git Cow gentoo-dev 2025-03-25 04:36:39 UTC
The bug has been closed via the following commit(s):

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

commit e858811683a367e7f81c0b487ee2a3638fa74629
Author:     Stephen Reaves <reaves735@gmail.com>
AuthorDate: 2025-03-24 23:09:18 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2025-03-25 04:28:41 +0000

    dev-vcs/git: Don't use coccinelle for non-live ebuilds
    
    contrib/coccinelle assumes we are in a git directory and fails
    otherwise, but non-live ebuilds are downloaded via tarballs.
    
    [sam: Add missing die and sync live.]
    
    Closes: https://bugs.gentoo.org/952004
    Signed-off-by: Stephen Reaves <reaves735@gmail.com>
    Closes: https://github.com/gentoo/gentoo/pull/41273
    Signed-off-by: Sam James <sam@gentoo.org>

 dev-vcs/git/git-2.49.0-r1.ebuild | 9 +++++++++
 dev-vcs/git/git-9999-r1.ebuild   | 9 +++++++++
 dev-vcs/git/git-9999-r2.ebuild   | 9 +++++++++
 dev-vcs/git/git-9999-r3.ebuild   | 9 +++++++++
 dev-vcs/git/git-9999.ebuild      | 9 +++++++++
 5 files changed, 45 insertions(+)
Comment 4 Larry the Git Cow gentoo-dev 2025-03-28 19:48:16 UTC
The bug has been referenced in the following commit(s):

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

commit cca6ecd44446ed3c0bb8258eee614dbbc89989f3
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2025-03-28 18:28:49 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2025-03-28 19:47:54 +0000

    dev-vcs/git: sync live
    
    Bug: https://bugs.gentoo.org/952004
    Signed-off-by: Sam James <sam@gentoo.org>

 dev-vcs/git/git-9999-r1.ebuild | 4 +++-
 dev-vcs/git/git-9999-r2.ebuild | 4 +++-
 dev-vcs/git/git-9999-r3.ebuild | 4 +++-
 dev-vcs/git/git-9999.ebuild    | 4 +++-
 4 files changed, 12 insertions(+), 4 deletions(-)

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

commit cf40b4c4dbdd499bd3c88c3fbf6119dd2519d00b
Author:     Stephen Reaves <reaves735@gmail.com>
AuthorDate: 2025-03-25 23:15:20 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2025-03-28 19:47:54 +0000

    dev-vcs/git: Use emesonargs instead of sed to disable coccinelle
    
    Bug: https://bugs.gentoo.org/952004
    Signed-off-by: Stephen Reaves <reaves735@gmail.com>
    Closes: https://github.com/gentoo/gentoo/pull/41296
    Signed-off-by: Sam James <sam@gentoo.org>

 dev-vcs/git/git-2.49.0-r1.ebuild | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)