Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 482334 - net-wireless/iw-3.10 - ./version.sh version.c: fatal: No names found, cannot describe anything.
Summary: net-wireless/iw-3.10 - ./version.sh version.c: fatal: No names found, cannot ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Bjarke Istrup Pedersen (RETIRED)
URL: http://forums.gentoo.org/viewtopic-t-...
Whiteboard:
Keywords:
: 482818 (view as bug list)
Depends on:
Blocks:
 
Reported: 2013-08-24 14:33 UTC by Davide
Modified: 2015-12-24 14:04 UTC (History)
4 users (show)

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


Attachments
ebuild environment (ebuild.environment,32.12 KB, text/plain)
2013-08-24 14:34 UTC, Davide
Details
build log (build.log,4.45 KB, text/x-log)
2013-08-24 14:34 UTC, Davide
Details
check for .git (0001-Don-t-get-iw-version-from-git-if-there-is-no-.git.patch,1005 bytes, patch)
2013-09-01 17:00 UTC, Florian Schmaus
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Davide 2013-08-24 14:33:56 UTC
When emerging net-wireless/iw-3.10, it looks like the script 'version.sh' causes an access violation for the file /.git/index.lock
I asked for help on the gentoo portage forums, and it was suggested that this could be a bug in the ebuild.



Reproducible: Always

Steps to Reproduce:
1.emerge -1av   net-wireless/iw

Actual Results:  

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild     U  ] net-wireless/iw-3.10 [3.3] 0 kB

Total: 1 package (1 upgrade), Size of downloads: 0 kB

Would you like to merge these packages? [Yes/No] y
>>> Verifying ebuild manifests
>>> Emerging (1 of 1) net-wireless/iw-3.10
>>> Failed to emerge net-wireless/iw-3.10, Log file:
>>>  '/var/tmp/portage/net-wireless/iw-3.10/temp/build.log'
>>> Jobs: 0 of 1 complete, 1 failed                 Load avg: 0.61, 0.27, 0.19
 * Package:    net-wireless/iw-3.10
 * Repository: gentoo
 * Maintainer: gurligebis@gentoo.org zerochaos@gentoo.org,netmon@gentoo.org
 * USE:        elibc_glibc kernel_linux userland_GNU x86
 * FEATURES:   preserve-libs
>>> Unpacking source...
>>> Unpacking iw-3.10.tar.xz to /var/tmp/portage/net-wireless/iw-3.10/work
>>> Source unpacked in /var/tmp/portage/net-wireless/iw-3.10/work
>>> Preparing source in /var/tmp/portage/net-wireless/iw-3.10/work/iw-3.10 ...
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/net-wireless/iw-3.10/work/iw-3.10 ...
>>> Source configured.
>>> Compiling source in /var/tmp/portage/net-wireless/iw-3.10/work/iw-3.10 ...
make -j5 V=1 
i686-pc-linux-gnu-gcc -O2 -march=i686 -pipe -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -DCONFIG_LIBNL30 -I/usr/include/libnl3  -c -o iw.o iw.c
i686-pc-linux-gnu-gcc -O2 -march=i686 -pipe -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -DCONFIG_LIBNL30 -I/usr/include/libnl3  -c -o genl.o genl.c
i686-pc-linux-gnu-gcc -O2 -march=i686 -pipe -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -DCONFIG_LIBNL30 -I/usr/include/libnl3  -c -o event.o event.c
i686-pc-linux-gnu-gcc -O2 -march=i686 -pipe -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -DCONFIG_LIBNL30 -I/usr/include/libnl3  -c -o info.o info.c
i686-pc-linux-gnu-gcc -O2 -march=i686 -pipe -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -DCONFIG_LIBNL30 -I/usr/include/libnl3  -c -o phy.o phy.c
i686-pc-linux-gnu-gcc -O2 -march=i686 -pipe -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -DCONFIG_LIBNL30 -I/usr/include/libnl3  -c -o interface.o interface.c
i686-pc-linux-gnu-gcc -O2 -march=i686 -pipe -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -DCONFIG_LIBNL30 -I/usr/include/libnl3  -c -o ibss.o ibss.c
i686-pc-linux-gnu-gcc -O2 -march=i686 -pipe -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -DCONFIG_LIBNL30 -I/usr/include/libnl3  -c -o station.o station.c
i686-pc-linux-gnu-gcc -O2 -march=i686 -pipe -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -DCONFIG_LIBNL30 -I/usr/include/libnl3  -c -o survey.o survey.c
i686-pc-linux-gnu-gcc -O2 -march=i686 -pipe -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -DCONFIG_LIBNL30 -I/usr/include/libnl3  -c -o util.o util.c
i686-pc-linux-gnu-gcc -O2 -march=i686 -pipe -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -DCONFIG_LIBNL30 -I/usr/include/libnl3  -c -o mesh.o mesh.c
i686-pc-linux-gnu-gcc -O2 -march=i686 -pipe -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -DCONFIG_LIBNL30 -I/usr/include/libnl3  -c -o mpath.o mpath.c
i686-pc-linux-gnu-gcc -O2 -march=i686 -pipe -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -DCONFIG_LIBNL30 -I/usr/include/libnl3  -c -o scan.o scan.c
i686-pc-linux-gnu-gcc -O2 -march=i686 -pipe -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -DCONFIG_LIBNL30 -I/usr/include/libnl3  -c -o reg.o reg.c
./version.sh version.c
fatal: No names found, cannot describe anything.
make: *** [version.c] Error 2
make: *** Waiting for unfinished jobs....
 * ERROR: net-wireless/iw-3.10 failed (compile phase):
 *   emake failed
 * 
 * If you need support, post the output of `emerge --info '=net-wireless/iw-3.10'`,
 * the complete build log and the output of `emerge -pqv '=net-wireless/iw-3.10'`.
 * The complete build log is located at '/var/tmp/portage/net-wireless/iw-3.10/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/net-wireless/iw-3.10/temp/environment'.
 * Working directory: '/var/tmp/portage/net-wireless/iw-3.10/work/iw-3.10'
 * S: '/var/tmp/portage/net-wireless/iw-3.10/work/iw-3.10'

 * Messages for package net-wireless/iw-3.10:

 * ERROR: net-wireless/iw-3.10 failed (compile phase):
 *   emake failed
 * 
 * If you need support, post the output of `emerge --info '=net-wireless/iw-3.10'`,
 * the complete build log and the output of `emerge -pqv '=net-wireless/iw-3.10'`.
 * The complete build log is located at '/var/tmp/portage/net-wireless/iw-3.10/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/net-wireless/iw-3.10/temp/environment'.
 * Working directory: '/var/tmp/portage/net-wireless/iw-3.10/work/iw-3.10'
 * S: '/var/tmp/portage/net-wireless/iw-3.10/work/iw-3.10'


Expected Results:  
Successful build

My root directory is a git repository.

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

Portage 2.1.12.2 (default/linux/x86/13.0, gcc-4.6.3, glibc-2.15-r3, 3.8.13-gentoo i686)
=================================================================
System uname: Linux-3.8.13-gentoo-i686-Intel-R-_Core-TM-_i5-3427U_CPU_@_1.80GHz-with-gentoo-2.2
KiB Mem:     3329264 total,    594880 free
KiB Swap:    3999996 total,   3579692 free
Timestamp of tree: Fri, 23 Aug 2013 19:15:01 +0000
ld GNU ld (GNU Binutils) 2.23.1
app-shells/bash:          4.2_p45
dev-java/java-config:     2.1.12-r1
dev-lang/python:          2.7.5-r2, 3.2.5-r2
dev-util/cmake:           2.8.10.2-r2
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.11.8
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.9.6-r3, 1.11.6, 1.12.6
sys-devel/binutils:       2.23.1
sys-devel/gcc:            4.5.4, 4.6.3
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.7 (virtual/os-headers)
sys-libs/glibc:           2.15-r3
Repositories: gentoo zugaina dev-zero science ramereth x-portage
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="* -@EULA"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=i686 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/polkit-1/actions"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -march=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -march=i686 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-O2 -march=i686 -pipe"
GENTOO_MIRRORS="http://mirror.mcs.anl.gov/pub/gentoo/ rsync://mirror.mcs.anl.gov/gentoo/ ftp://mirror.mcs.anl.gov/pub/gentoo/"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/zugaina /var/lib/layman/dev-zero /var/lib/layman/science /var/lib/layman/ramereth /usr/local/portage"
SYNC="rsync://rsync.us.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa berkdb bzip2 cdr cli consolekit cracklib crypt cxx dbus divx dri dvd flac fortran gdbm gif iconv icu id3 ipv6 kde lame midi modules mp3 mp4 mplayer mudflap ncurses nls nptl ogg opengl openmp pam pcre policykit pulseaudio qt3support qt4 readline realmedia session ssl svg tcpd udev unicode v4l v4l2 video webkit wmp x86 zlib" ABI_X86="32" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" RUBY_TARGETS="ruby19 ruby18" USERLAND="GNU" VIDEO_CARDS="intel" 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:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 1 Davide 2013-08-24 14:34:31 UTC
Created attachment 356872 [details]
ebuild environment
Comment 2 Davide 2013-08-24 14:34:55 UTC
Created attachment 356874 [details]
build log
Comment 3 Jeroen Roovers (RETIRED) gentoo-dev 2013-08-29 02:22:19 UTC
*** Bug 482818 has been marked as a duplicate of this bug. ***
Comment 4 Bjarke Istrup Pedersen (RETIRED) gentoo-dev 2013-09-01 15:28:19 UTC
This seems to be more of a git problem whan iw.

Following up on the forum thread, I'll say the same thing as Hu - don't put a .git in your root folder.

Please try the suggestion he has $GIT_DIR, and see if that solves the issue.
If not, feel free to reopen.
Comment 5 Florian Schmaus gentoo-dev 2013-09-01 17:00:11 UTC
IMO it is an problem of the build system of iw together with default git behavior. Luckily the fix is simple: Check if .git/ exists before calling any git commands in the build process. I have created and attached a patch, which I also send upstream.

The suggestion using $GIT_DIR is just a workaround. Why shouldn't we fix the root cause? And please don't let this lead into a discussion about having a git repository within the root folder. The fact that an ebuild creates a sandbox violation in certain situations should be sufficient.
Comment 6 Florian Schmaus gentoo-dev 2013-09-01 17:00:41 UTC
Created attachment 357570 [details, diff]
check for .git
Comment 7 Bjarke Istrup Pedersen (RETIRED) gentoo-dev 2013-09-01 17:40:48 UTC
I see your point - I have added your patch to 3.10-r1 :-)
Comment 8 Davide 2013-09-02 12:54:06 UTC
Great, thank you!