Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 254029 - dev-util/git-1.6.1 fails to build with USE="-perl"
Summary: dev-util/git-1.6.1 fails to build with USE="-perl"
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Fernando J. Pereda (RETIRED)
URL:
Whiteboard:
Keywords:
: 254963 256303 256496 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-01-07 00:19 UTC by Ryan Tandy
Modified: 2009-03-05 02:01 UTC (History)
24 users (show)

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


Attachments
git-1.6.1-r1 ebuild (git-1.6.1-r1.ebuild,8.31 KB, text/plain)
2009-01-11 13:55 UTC, Bernd Lommerzheim
Details
new version of the git noperl patch for git 1.6.1 (20090111-git-1.6.1-noperl.patch,10.06 KB, patch)
2009-01-11 13:55 UTC, Bernd Lommerzheim
Details | Diff
git-1.6.1-r1 ebuild (git-1.6.1-r1.ebuild,8.31 KB, patch)
2009-01-13 17:28 UTC, Bernd Lommerzheim
Details | Diff
noperl patch for git 1.6.1 (20090113-git-1.6.1-noperl.patch,10.38 KB, patch)
2009-01-13 17:29 UTC, Bernd Lommerzheim
Details | Diff
git-1.6.1-r1 ebuild (20090113-git-1.6.1-noperl.patch,10.38 KB, text/plain)
2009-01-13 17:37 UTC, Bernd Lommerzheim
Details
git-1.6.1-r1 ebuild (git-1.6.1-r1.ebuild,8.31 KB, text/plain)
2009-01-13 22:53 UTC, Bernd Lommerzheim
Details
noperl patch for git 1.6.1.1 (20090126-git-1.6.1.1-noperl.patch,10.38 KB, patch)
2009-01-26 10:26 UTC, Bernd Lommerzheim
Details | Diff
git-1.6.1.1 ebuild (git-1.6.1.1.ebuild,8.31 KB, text/plain)
2009-01-26 10:27 UTC, Bernd Lommerzheim
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ryan Tandy 2009-01-07 00:19:02 UTC
builtin-add.c: In function 'cmd_add':
builtin-add.c:266: warning: implicit declaration of function 'validate_pathspec'
builtin-add.c:266: warning: assignment makes pointer from integer without a cast
builtin-add.c: At top level:
builtin-add.c:18: warning: 'patch_interactive' defined but not used
builtin-add.c:18: warning: 'add_interactive' defined but not used
builtin-add.o: In function `cmd_add':
builtin-add.c:(.text+0x153): undefined reference to `validate_pathspec'
collect2: ld returned 1 exit status
make: *** [git] Error 1

[ebuild     U ] dev-util/git-1.6.1 [1.6.0.6] USE="iconv threads vim-syntax -bash-completion -cgi -curl -cvs -doc -emacs -gtk -mozsha1 -perl (-ppcsha1) -subversion -tk -webdav -xinetd" 0 kB

Portage 2.1.6.4 (default/linux/x86/2008.0/desktop, gcc-4.3.2, glibc-2.9_p20081201-r1, 2.6.28-gentoo i686)
=================================================================
System uname: Linux-2.6.28-gentoo-i686-Genuine_Intel-R-_CPU_T2400_@_1.83GHz-with-glibc2.0
Timestamp of tree: Tue, 06 Jan 2009 23:15:01 +0000
app-shells/bash:     3.2_p48
dev-java/java-config: 1.3.7-r1, 2.1.6-r1
dev-lang/python:     2.5.2-r8
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.4.1-r1
sys-apps/sandbox:    1.3.2
sys-devel/autoconf:  2.13, 2.63
sys-devel/automake:  1.5, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.19
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.28-r1
ACCEPT_KEYWORDS="x86 ~x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-Os -march=native -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-Os -march=native -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://gentoo.osuosl.org/pub/gentoo"
LANG="en_CA.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="en en_US"
MAKEOPTS="-j3 -s"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.ca.gentoo.org/gentoo-portage"
USE="X a52 acpi aio alsa async bzip2 cairo cdio custom-cflags custom-optimization cxx dvd expat fam gecko gif glibc-omitfp glitz hpn iconv id3 idn jpeg mad midi mmx mmxext mp3 multiuser ncurses nethack network-cron nptl nsplugin ogg opengl pam pcre png quicktime readline rtc sha512 sse sse2 ssl ssse3 svg symlink sysvipc theora threads threadsafe truetype unicode urandom vim-syntax vim-with-x vorbis webdav-neon win32codecs x264 x86 xcb xinerama xorg xscreensaver xulrunner xv xvid zlib zsh-completion" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="evdev synaptics" KERNEL="linux" LINGUAS="en en_US" USERLAND="GNU" VIDEO_CARDS="none nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2009-01-07 12:25:42 UTC
Reassigning to / CCing maintainers.
Comment 2 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2009-01-07 13:14:20 UTC
This bug gets triggered when the perl USE flag is unset. Adjusting summary.
Comment 3 Andreas Westin 2009-01-07 18:33:52 UTC
I can confirm this bug.
Comment 4 Duncan 2009-01-10 13:20:21 UTC
I'm seeing it too.
Comment 5 Thomas Sachau gentoo-dev 2009-01-10 18:20:40 UTC
Any progress?
Comment 6 Bernd Lommerzheim 2009-01-11 13:54:02 UTC
I had the same problem while building without the perl use-flag. But I modified the noperl patch in order to work with git 1.6.1 and for me it's working very well. While compiling there are just these two warning like I had in den git 1.6.0.6 ebuild:
builtin-add.c:18: warning: 'patch_interactive' defined but not used
builtin-add.c:18: warning: 'add_interactive' defined but not used
I attach the git-1.6.1-r1.ebuild and a slightly modified noperl patch. I hope it solves this problem for everyone. Have a nice day.
Comment 7 Bernd Lommerzheim 2009-01-11 13:55:00 UTC
Created attachment 178049 [details]
git-1.6.1-r1 ebuild
Comment 8 Bernd Lommerzheim 2009-01-11 13:55:45 UTC
Created attachment 178051 [details, diff]
new version of the git noperl patch for git 1.6.1
Comment 9 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2009-01-11 17:27:57 UTC
This patch works for me.
Comment 10 Bernd Lommerzheim 2009-01-13 17:27:47 UTC
As I wrote in comment 6 the patch throws two warnings while compiling builtin-add.c in line 18. I will attach a new version of the noperl patch for git 1.6.1 and a new git-1.6.1-r1 ebuild which solves these warnings. Have a nice day.
Comment 11 Bernd Lommerzheim 2009-01-13 17:28:22 UTC
Created attachment 178400 [details, diff]
git-1.6.1-r1 ebuild
Comment 12 Bernd Lommerzheim 2009-01-13 17:29:08 UTC
Created attachment 178402 [details, diff]
noperl patch for git 1.6.1
Comment 13 Bernd Lommerzheim 2009-01-13 17:37:37 UTC
Created attachment 178403 [details]
git-1.6.1-r1 ebuild
Comment 14 Bernd Lommerzheim 2009-01-13 22:53:11 UTC
Created attachment 178427 [details]
git-1.6.1-r1 ebuild
Comment 15 Jose daLuz 2009-01-14 02:44:28 UTC
Latest patch and ebuild work for me. Thanks!
Comment 16 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2009-01-14 16:14:38 UTC
*** Bug 254963 has been marked as a duplicate of this bug. ***
Comment 17 Sylvain BERTRAND 2009-01-16 09:41:13 UTC
Latest patch and ebuild work for me.

dev-util/git-1.6.1-r1  USE="bash-completion curl gtk iconv threads vim-syntax -cgi -cvs -doc -emacs -mozsha1 -perl (-ppcsha1) -subversion -tk -webdav -xinetd"
Comment 18 lxg 2009-01-18 22:46:06 UTC
+1

Thank you, Bernd!
Comment 19 Sven Schwyn (svoop) 2009-01-24 13:51:15 UTC
+1 - thanks, Bernd!
Comment 20 Harald van Dijk (RETIRED) gentoo-dev 2009-01-25 12:21:27 UTC
*** Bug 256303 has been marked as a duplicate of this bug. ***
Comment 21 Bernd Lommerzheim 2009-01-26 10:26:04 UTC
A few hours ago git v1.6.1.1 was released [1] with a lot of improvements and bugfixes [2]. Therefore I will attach the git-1.6.1.1.ebuild and the 20090126-git-1.6.1.1-noperl.patch. Have a nice day.

[1] http://www.git-scm.com/
[2] http://www.kernel.org/pub/software/scm/git/docs/RelNotes-1.6.1.1.txt
Comment 22 Bernd Lommerzheim 2009-01-26 10:26:44 UTC
Created attachment 179756 [details, diff]
noperl patch for git 1.6.1.1
Comment 23 Bernd Lommerzheim 2009-01-26 10:27:20 UTC
Created attachment 179757 [details]
git-1.6.1.1 ebuild
Comment 24 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2009-01-26 12:16:41 UTC
incvs.
Thanks, I've just been busy with real life (moving house etc, see my .away)
Comment 25 Sergey Plaksin 2009-01-28 10:42:30 UTC
*** Bug 256496 has been marked as a duplicate of this bug. ***
Comment 26 Caleb Cushing 2009-03-05 00:10:24 UTC
this patch will need updating for 1.6.2 also might I ask why the noperl patch applies when the perl use flag is enabled?
Comment 27 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2009-03-05 02:01:59 UTC
We apply the patch so that we know it always works.
It adds an option to the Git build system, so this way we know it's safe as well.