Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 677772 - dev-lang/vala-0.42.5 - src_prepare(): ACCESS DENIED: open_wr: /.git/index.lock
Summary: dev-lang/vala-0.42.5 - src_prepare(): ACCESS DENIED: open_wr: /.git/ind...
Status: RESOLVED DUPLICATE of bug 483134
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-02-12 03:51 UTC by Drunkard Zhang
Modified: 2019-05-18 15:46 UTC (History)
1 user (show)

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


Attachments
build.log (build.log,3.34 KB, text/plain)
2019-02-12 03:53 UTC, Drunkard Zhang
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Drunkard Zhang 2019-02-12 03:51:51 UTC
dev-lang/vala-0.42.5 build fails when /.git/ exists.

Reproducible: Always

Steps to Reproduce:
1. mkdir -p /.git
2. emerge =dev-lang/vala-0.42.5
Actual Results:  
Build fails:

[...]
F: open_wr
S: deny
P: /.git/index.lock
A: /.git/index.lock
R: /.git/index.lock
C: git status 


# emerge --info =dev-lang/vala-0.42.5
Portage 2.3.60 (python 3.6.6-final-0, default/linux/amd64/17.0/desktop/gnome/systemd, gcc-8.2.0, glibc-2.28-r5, 4.20.6-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.20.6-gentoo-x86_64-Intel-R-_Core-TM-_i7-6700HQ_CPU_@_2.60GHz-with-gentoo-2.6
KiB Mem:    24543228 total,    904816 free
KiB Swap:    8388604 total,   8388092 free
Head commit of repository gentoo: 5ccf4fece388767d437e0095d10cac2fd957b490

sh bash 5.0_p2
ld GNU ld (Gentoo 2.31.1 p5) 2.31.1
app-shells/bash:          5.0_p2::gentoo
dev-java/java-config:     2.2.0-r4::gentoo
dev-lang/perl:            5.28.0::gentoo
dev-lang/python:          2.7.15::gentoo, 3.5.5-r1::gentoo, 3.6.6::gentoo, 3.7.0::gentoo
dev-util/cmake:           3.13.4::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.6-r1::gentoo
sys-apps/openrc:          0.40.3::gentoo
sys-apps/sandbox:         2.15::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.9.6-r5::gentoo, 1.16.1-r1::gentoo
sys-devel/binutils:       2.31.1-r3::gentoo
sys-devel/gcc:            8.2.0-r6::gentoo
sys-devel/gcc-config:     2.0::gentoo
sys-devel/libtool:        2.4.6-r5::gentoo
sys-devel/make:           4.2.1-r4::gentoo
sys-kernel/linux-headers: 4.20::gentoo (virtual/os-headers)
sys-libs/glibc:           2.28-r5::gentoo
Repositories:

anyc
    location: /var/lib/layman/anyc
    masters: gentoo
    priority: 50

pentoo
    location: /var/lib/layman/pentoo
    masters: gentoo
    priority: 50

tlp
    location: /var/lib/layman/tlp
    masters: gentoo
    priority: 60

drunkard
    location: /var/lib/layman/drunkard
    masters: gentoo
    priority: 80

gentoo
    location: /usr/portage
    sync-type: git
    sync-uri: git://anongit.gentoo.org/repo/gentoo.git
    priority: 9999

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=haswell -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /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 /etc/terminfo"
CXXFLAGS="-O2 -march=haswell -pipe"
DISTDIR="/usr/portage/distfiles"
ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs config-protect-if-modified distlocks downgrade-backup ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news nodoc noinfo parallel-fetch pid-sandbox preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://mirrors.163.com/gentoo/ http://mirrors.sohu.com/gentoo/ http://mirrors.aliyun.com/gentoo/ http://mirrors.kernel.org/gentoo/ "
LANG="en_US.utf8"
LC_ALL="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="zh zh-CN zh-HK zh-TW zh_CN zh_HK zh_TW en ru de bo ug"
MAKEOPTS="-j9"
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"
USE="X a52 aac aalib accessibility acl acpi aio alsa amd64 amr amrenc ao ap apm audit bash-completion berkdb bluetooth bluray branding broadway bzip2 cairo caps cdda cjk cleartype cli colord cracklib crypt cups cxx dbus dga djvu dri dri3 drm dts dvd dvdr eds egl emboss encode epoll evo exif fam ffmpeg flac flite fontconfig fortran gallium gconf gdbm gegl geoip gif gimp glamor gles gles2 gnome gnome-keyring gnome-online-accounts gpm gstreamer gtk gtk3 hidpi http2 iconv icu idn imagemagick inotify introspection ipv6 jack jit jpeg jpeg2k kdbus kms lcms libass libbluray libinput libnotify libsecret libtirpc linguas_bo linguas_de linguas_en linguas_ru linguas_ug linguas_zh linguas_zh_CN linguas_zh_HK linguas_zh_TW lz4 lzma lzo mad mime minizip mmap mng mp3 mp4 mpeg mpi mtp multilib natspec nautilus ncurses networkmanager nls nptl ogg openal opencc opencl openexr opengl openmp opus pam pango pcre pdf png policykit postgres postscript ppds pulseaudio raw readline realtime sdl seccomp sftp smp ssh ssl startup-notification svg systemd theora threads tiff tracker truetype udev udisks unicode upower urandom usb usbredir v4l v4l2 vaapi vdpau vim-syntax vorbis vpx vulkan wayland webp wifi wxwidgets x264 x265 xattr xcb xinerama xkb xml xmp xpm xrandr xv xvid xvmc zlib" ABI_X86="64" ALSA_CARDS="hda-intel" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache 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 f16c fma3 mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" CURL_SSL="openssl" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="efi-64 pc" INPUT_DEVICES="evdev keyboard libinput mouse" KERNEL="linux" L10N="zh zh-CN zh-HK zh-TW zh_CN zh_HK zh_TW en ru de bo ug" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" NETBEANS_MODULES="apisupport cnd groovy gsf harness ide identity j2ee java mobility nb php profiler soa visualweb webcommon websvccommon xml" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6 php7-1" POSTGRES_TARGETS="postgres9_5 postgres10" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python2_7 python3_6 python3_7" QEMU_SOFTMMU_TARGETS="i386 x86_64" QEMU_USER_TARGETS="i386 x86_64" RUBY_TARGETS="ruby25 ruby26" SANE_BACKENDS="hp hp3500" USERLAND="GNU" VIDEO_CARDS="nouveau intel i965 v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

=================================================================
                        Package Settings
=================================================================

dev-lang/vala-0.42.5::gentoo was built with the following:
USE="-test -valadoc" ABI_X86="(64)"
Comment 1 Drunkard Zhang 2019-02-12 03:53:18 UTC
Created attachment 564866 [details]
build.log
Comment 2 Mart Raudsepp gentoo-dev 2019-02-16 16:20:25 UTC
vala is like the only package where I didn't get around to reverting unauthorized commit that added `export GIT_CEILING_DIRECTORIES="${WORKDIR}"` to supposedly fix this. So it's quite surprising that you get issues with this now.
Either way, if you have a /.git, then you get to deal with the results. In this case you'll need to add allowance for it in sandbox configuration. Also, don't do .git at rootfs...

*** This bug has been marked as a duplicate of bug 483134 ***
Comment 3 Sami Loone 2019-05-17 17:28:24 UTC
Using git sync for portage and vala refuses to compile now

>>> Preparing source in /usr/portage/tmp/portage/dev-lang/vala-0.42.7/work/vala-0.42.7 ...
 * Applying 0.40-Allow-disabling-the-build-of-valadoc.patch ...                                                                                                                                                                                                                                                                                                       [ ok ]
 * Applying 0.40-valadoc-doclets-data-parallel-installable.patch ...                                                                                                                                                                                                                                                                                                  [ ok ]
 * Disabling deprecation warnings ...                                                                                                                                                                                                                                                                                                                                 [ ok ]
 * ACCESS DENIED:  open_wr:      /usr/portage/.git/index.lock
 * Running eautoreconf in '/usr/portage/tmp/portage/dev-lang/vala-0.42.7/work/vala-0.42.7' ...
 * Running libtoolize --install --copy --force --automake ...
 * ACCESS DENIED:  open_wr:      /usr/portage/.git/index.lock
 * ACCESS DENIED:  open_wr:      /usr/portage/.git/index.lock
 * ACCESS DENIED:  open_wr:      /usr/portage/.git/index.lock
 * ACCESS DENIED:  open_wr:      /usr/portage/.git/index.lock
 * ACCESS DENIED:  open_wr:      /usr/portage/.git/index.lock
 * ACCESS DENIED:  open_wr:      /usr/portage/.git/index.lock
 * ACCESS DENIED:  open_wr:      /usr/portage/.git/index.lock                                                                                                                                                                                                                                                                                                         [ ok ]
 * Running aclocal --install -I m4 ...
 * ACCESS DENIED:  open_wr:      /usr/portage/.git/index.lock
 * ACCESS DENIED:  open_wr:      /usr/portage/.git/index.lock
 * ACCESS DENIED:  open_wr:      /usr/portage/.git/index.lock                                                                                                                                                                                                                                                                                                         [ ok ]
 * ACCESS DENIED:  open_wr:      /usr/portage/.git/index.lock
 * Running autoconf --force ...
 * ACCESS DENIED:  open_wr:      /usr/portage/.git/index.lock                                                                                                                                                                                                                                                                                                         [ ok ]
 * Running autoheader ...                                                                                                                                                                                                                                                                                                                                             [ ok ]
 * Running automake --add-missing --copy --force-missing ...
 * ACCESS DENIED:  open_wr:      /usr/portage/.git/index.lock                                                                                                                                                                                                                                                                                                         [ ok ]
 * Running elibtoolize in: vala-0.42.7/
 * Running elibtoolize in: vala-0.42.7/build-aux/
 *   Applying portage/1.2.0 patch ...
 *   Applying sed/1.5.6 patch ...
 *   Applying as-needed/2.4.3 patch ...
>>> Source prepared.
 * --------------------------- ACCESS VIOLATION SUMMARY ---------------------------
 * LOG FILE: "/var/log/sandbox/sandbox-4.log"
 *
VERSION 1.0
FORMAT: F - Function called
FORMAT: S - Access Status
FORMAT: P - Path as passed to function
FORMAT: A - Absolute Path (not canonical)
FORMAT: R - Canonical Path
FORMAT: C - Command Line
Comment 4 Sami Loone 2019-05-17 17:31:02 UTC
Caused due to the tmpdir being under the same directory tree?
Comment 5 Mart Raudsepp gentoo-dev 2019-05-17 21:01:25 UTC
A parent directory of PORTAGE_TMPDIR having a .git/ will trigger this issue, yes. Don't do that or configure sandbox to not trip up on it.
Comment 6 Sami Loone 2019-05-18 15:46:27 UTC
For future readers, vala will not build if you have

repos.conf configured to use git

location = /usr/portage
sync-type = git

make.conf with PORTAGE_TMPDIR set under the same directory tree

PORTAGE_TMPDIR=/usr/portage/tmp