Created attachment 405870 [details] build log # MAKEOPTS=-j1 USE=cgi emerge git [...] make -j1 BLK_SHA1=YesPlease NO_FINK=YesPlease NO_DARWIN_PORTS=YesPlease INSTALL=install TAR=tar SHELL_PATH=/bin/sh SANE_TOOL_PATH= OLD_ICONV= NO_EXTERNAL_GREP= USE_LIBPCRE=yes INSTALLDIRS=vendor THREADED_DELTA_SEARCH=YesPlease ASCIIDOC8=YesPlease ASCIIDOC_NO_ROFF=YesPlease DESTDIR=/var/tmp/portage/dev-vcs/git-2.4.5/image/ 'OPTCFLAGS=-march=native -O2 -pipe -frecord-gcc-switches' 'OPTLDFLAGS=-Wl,--as-needed -Wl,-O1' OPTCC=x86_64-pc-linux-gnu-gcc OPTAR=x86_64-pc-linux-gnu-ar prefix=/usr htmldir=/usr/share/doc/git-2.4.5/html sysconfdir=/etc PYTHON_PATH=/usr/bin/python2.7 PERL_MM_OPT= GIT_TEST_OPTS=--no-color V=1 gitweb/gitweb.cgi make: *** No rule to make target 'gitweb/gitweb.cgi'. Stop. * ERROR: dev-vcs/git-2.4.5::gentoo failed (compile phase): * emake failed Builds fine when USE=-cgi
exactly the same here...
And here too.
Same here
Affirmative.
It's just a version bump from 2.4.4 to 2.4.5. 'emerge =dev-vcs/git-2.4.4' worked just fine for me, so presumably something in the code has changed. The difference in git versions is https://github.com/git/git/compare/v2.4.4...v2.4.5?diff=unified&name=v2.4.5 In the makefile the git-instaweb target has changed, but the gitweb target seems to be the same. Yep, I've got nothin'.... Sorry.
With old Makefile it compiles fine with cgi useflag.
modifying the ebuild to say: if use perl && use cgi ; then git_emake \ gitweb \ || die "emake gitweb failed" fi in src_compile seems to have gotten it to build. which is basically - gitweb/gitweb.cgi \ + gitweb \ with some padding.
(In reply to Kent Fredric from comment #7) > modifying the ebuild to say: > > if use perl && use cgi ; then > git_emake \ > gitweb \ > || die "emake gitweb failed" > fi > > in src_compile seems to have gotten it to build. > > which is basically > > - gitweb/gitweb.cgi \ > + gitweb \ > > with some padding. This works for me, thanks.
+ 01 Jul 2015; Lars Wendler <polynomial-c@gentoo.org> git-2.4.5.ebuild: + Fixed compilation with cgi USE flag (bug #553438). +