Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 625154 - dev-vcs/git-2.13.3[doc] does not build
Summary: dev-vcs/git-2.13.3[doc] does not build
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:
Depends on:
Blocks:
 
Reported: 2017-07-15 02:13 UTC by Marien Zwart
Modified: 2017-07-15 21:25 UTC (History)
1 user (show)

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


Attachments
build.log (build.log,272.19 KB, text/plain)
2017-07-15 02:13 UTC, Marien Zwart
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Marien Zwart 2017-07-15 02:13:51 UTC
Created attachment 484684 [details]
build.log

Comparing the git-2.13.2 and git-2.13.3 ebuild, the new one adds:

+       cd "${S}"/contrib/diff-highlight || die                                                                         
+       git_emake                                           
+       use doc && git_emake doc

But the diff-highlight Makefile does not have a "doc" target, so if USE=doc is set the build fails:

make -j8 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= NO_TCLTK=YesPlease INSTALLDIRS=vendor NO_SVN_TESTS=YesPlease THREADED_DELTA_SEARCH=YesPlease NO_CVS=YesPlease ASCIIDOC8=YesPlease ASCIIDOC_NO_ROFF=YesPlease DESTDIR=/var/tmp/portage/dev-vcs/git-2.13.3/image/ 'OPTCFLAGS=-ggdb -O2 -pipe -march=native' 'OPTLDFLAGS=-Wl,--hash-style=gnu -Wl,-O1 -Wl,--as-needed' OPTCC=x86_64-pc-linux-gnu-gcc OPTAR=x86_64-pc-linux-gnu-ar prefix=/usr htmldir=/usr/share/doc/git-2.13.3/html sysconfdir=/etc PYTHON_PATH=/usr/bin/python2.7 PERL_MM_OPT= GIT_TEST_OPTS=--no-color V=1 
cat shebang.perl DiffHighlight.pm diff-highlight.perl >diff-highlight+                                                  
chmod +x diff-highlight+      
mv diff-highlight+ diff-highlight                           
make -j8 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= NO_TCLTK=YesPlease INSTALLDIRS=vendor NO_SVN_TESTS=YesPlease THREADED_DELTA_SEARCH=YesPlease NO_CVS=YesPlease ASCIIDOC8=YesPlease ASCIIDOC_NO_ROFF=YesPlease DESTDIR=/var/tmp/portage/dev-vcs/git-2.13.3/image/ 'OPTCFLAGS=-ggdb -O2 -pipe -march=native' 'OPTLDFLAGS=-Wl,--hash-style=gnu -Wl,-O1 -Wl,--as-needed' OPTCC=x86_64-pc-linux-gnu-gcc OPTAR=x86_64-pc-linux-gnu-ar prefix=/usr htmldir=/usr/share/doc/git-2.13.3/html sysconfdir=/etc PYTHON_PATH=/usr/bin/python2.7 PERL_MM_OPT= GIT_TEST_OPTS=--no-color V=1 doc 
make: *** No rule to make target 'doc'.  Stop.              
 * ERROR: dev-vcs/git-2.13.3::gentoo failed (compile phase):                                                            
 *   emake failed

It doesn't look like diff-highlight has documentation other than the README file, which is already installed even with USE=-doc.

Portage 2.3.6 (python 2.7.13-final-0, default/linux/amd64/13.0/desktop/gnome/systemd, gcc-6.3.0, glibc-2.24-r3, 4.12.0-gentoo-m22 x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.12.0-gentoo-m22-x86_64-Intel-R-_Core-TM-_i7-4771_CPU_@_3.50GHz-with-gentoo-2.4.1
KiB Mem:    16376584 total,  11758564 free
KiB Swap:    2097148 total,   2097148 free
Timestamp of repository gentoo: Sat, 15 Jul 2017 00:45:01 +0000
sh bash 4.4_p12
ld GNU ld (Gentoo 2.28 p1.2) 2.28
ccache version 3.3.4 [disabled]
app-shells/bash:          4.4_p12::gentoo
dev-lang/perl:            5.24.1-r2::gentoo
dev-lang/python:          2.7.13::gentoo, 3.5.3::gentoo, 3.6.1-r1::gentoo
dev-util/ccache:          3.3.4::gentoo
dev-util/cmake:           3.8.2::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.4.1::gentoo
sys-apps/sandbox:         2.10-r4::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r3::gentoo
sys-devel/automake:       1.11.6-r2::gentoo, 1.15.1::gentoo
sys-devel/binutils:       2.28-r2::gentoo
sys-devel/gcc:            6.3.0::gentoo
sys-devel/gcc-config:     1.8-r1::gentoo
sys-devel/libtool:        2.4.6-r4::gentoo
sys-devel/make:           4.2.1-r1::gentoo
sys-kernel/linux-headers: 4.10::gentoo (virtual/os-headers)
sys-libs/glibc:           2.24-r3::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000

marienz
    location: /usr/local/portage/private
    masters: gentoo

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="@FREE @BINARY-REDISTRIBUTABLE fping freedist google-chrome unRAR repoze MSttfEULA linux-firmware"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-ggdb -O2 -pipe -march=native"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/chromium/policies/managed/chrome-gnome-shell.json /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/opt/chrome/policies/managed/chrome-gnome-shell.json /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="-ggdb -O2 -pipe -march=native"
DISTDIR="/var/cache/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs candy collision-protect compressdebug config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync multilib-strict news parallel-fetch preserve-libs protect-owned sandbox sfperms sign splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://mirror.internode.on.net/pub/gentoo/"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,--hash-style=gnu -Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j8"
PKGDIR="/var/tmp/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 acl acpi adns alsa amd64 avahi branding btrfs bzip2 cairo canberra caps cdda cdio cdr clang cli clutter colord corefonts crypt cxx dbus device-mapper distinct-l doc dos dot dri dri3 drm dts dvd dvdr dvi eds efi egl emacs emboss encode equalizer evo exif expat ffmpeg firefox flac fontconfig fortran fuse g3dvl gbm gegl gflags ghcbootstrap gif git glamor gles gles2 gmp gnome gnome-keyring gnome-online-accounts gnuefi go google gpg gstreamer gtk gtk3 gtkstyle http iconv icu idn imap inotify introspection ipv6 irc jpeg lame latex lcms libass libcaca libffi libinput libkms libnotify libressl libsecret libvisual llvm llvm-shared-libs lua lzma mad maildir minizip mng modules mp3 mp4 mpeg mtp multilib multimedia ncurses nfsidmap nls nptl numpy objc ogg opengl openmp opus pam pango pch pdf playlist png policykit postscript ppds prelink preview-latex projectm pulseaudio python python3 qml readline realtime s3tc sandbox schroedinger seccomp semantic-desktop session sip smtp speex spell spice sqlite ssl startup-notification svc svg symlink system-harfbuzz system-icu system-jflex system-jpeg system-jsoncpp systemd sysv-utils theora tiff tokyocabinet toolkit-scroll-bars tools truetype udev udisks udisks2 uefi unicode unicode3 unwind upower urwid usb usbredir vaapi vala valgrind vorbis vpx wayland webkit webp widevine widgets wxwidgets x264 xattr xcb xcomposite xetex xft xinerama xml xmp xv xvmc xwayland zeroconf zlib zsh-completion" 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="kexi words flow plan sheets stage tables krita karbon braindump author" 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="nss" 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" INPUT_DEVICES="libinput" KERNEL="linux" L10N="en en-GB en-US nl fy" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en en_GB en_US nl fy fy_NL" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6" POSTGRES_TARGETS="postgres9_5" PYTHON_SINGLE_TARGET="python3_5" PYTHON_TARGETS="python2_7 python3_5 python3_6 pypy pypy3" QEMU_SOFTMMU_TARGETS="x86_64" RUBY_TARGETS="ruby22" SANE_BACKENDS="u12" USERLAND="GNU" VIDEO_CARDS="intel i965" 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, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON

[ebuild     U ] dev-vcs/git-2.13.3 [2.13.2] USE="blksha1 curl doc gnome-keyring gpg iconv libressl nls perl python threads webdav -cgi -cvs -emacs -highlight -mediawiki -mediawiki-experimental -pcre (-ppcsha1) -subversion {-test} -tk -xinetd" LINGUAS="-bg -ca -de -fr -is -it -ko -pt_PT -ru -sv -vi -zh_CN" PYTHON_TARGETS="python2_7"
Comment 1 Juergen Rose 2017-07-15 07:11:48 UTC
I have the same issue.
Comment 2 Greg Turner 2017-07-15 19:48:44 UTC
I don't perl much, so I doubt I am the right dude to fundamentally understand/fix this but...

# cat /etc/portage/patches/dev-vcs/git-2.13.3/gmthack-fix-contrib-Makefile-bullshit-thing.patch                                                           
diff -urpN git-2.13.3.orig/contrib/diff-highlight/Makefile git-2.13.3/contrib/diff-highlight/Makefile                                                                
--- git-2.13.3.orig/contrib/diff-highlight/Makefile     2017-07-12 15:59:17.000000000 -0700                                                                          
+++ git-2.13.3/contrib/diff-highlight/Makefile  2017-07-15 12:44:33.382468258 -0700                                                                                  
@@ -18,3 +18,5 @@ test: all                                                                                                                                          
        $(MAKE) -C t                                                                                                                                                 
                                                                                                                                                                     
 .PHONY: FORCE
+
+doc: /bin/true

--
worked around it for me, to coin a phrase :)
Comment 3 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2017-07-15 21:25:21 UTC
commit a174106ca7ac67baee24a96c1fbb006325247c4b (HEAD -> master, origin/master, origin/HEAD)
Author: Lars Wendler <polynomial-c@gentoo.org>
Date:   Sat Jul 15 23:24:40 2017

    dev-vcs/git: Fixed build with USE="doc" (bug #625154).

    Package-Manager: Portage-2.3.6, Repoman-2.3.2