Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 574866 - dev-util/radare2 fails to install docs
Summary: dev-util/radare2 fails to install docs
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Sergei Trofimovich (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-02-16 09:07 UTC by Andrey Golovizin
Modified: 2016-02-18 23:29 UTC (History)
1 user (show)

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


Attachments
the complete build log (build.log,835.41 KB, text/plain)
2016-02-16 09:08 UTC, Andrey Golovizin
Details
build log with MAKEOPTS=-j1 (build.log,834.47 KB, text/x-log)
2016-02-17 23:06 UTC, Andrey Golovizin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andrey Golovizin 2016-02-16 09:07:21 UTC
<...>
>>> Source compiled.
>>> Test phase [not enabled]: dev-util/radare2-0.10.0

>>> Install radare2-0.10.0 into /var/tmp/portage/dev-util/radare2-0.10.0/image/ category dev-util
make -j6 DESTDIR=/var/tmp/portage/dev-util/radare2-0.10.0/image/ install 
fatal: Not a git repository (or any parent up to mount point /var)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
/usr/lib/portage/python2.7/ebuild-helpers/xattr/install -d "/var/tmp/portage/dev-util/radare2-0.10.0/image//usr/share/doc/radare2"
mkdir -p "/var/tmp/portage/dev-util/radare2-0.10.0/image//usr/share/man/man1"
rm -rf "/var/tmp/portage/dev-util/radare2-0.10.0/image//usr/share/radare2/0.10.0/www"
mkdir -p "/var/tmp/portage/dev-util/radare2-0.10.0/image//usr/share/man/man7"
rm -rf "/var/tmp/portage/dev-util/radare2-0.10.0/image//usr/lib64/radare2/0.10.0/www" # old dir
for FILE in doc/* ; do /usr/lib/portage/python2.7/ebuild-helpers/xattr/install -m 644 $FILE "/var/tmp/portage/dev-util/radare2-0.10.0/image//usr/share/doc/radare2" ; done
for FILE in man/*.1 ; do /usr/lib/portage/python2.7/ebuild-helpers/xattr/install -m 444 "$FILE" "/var/tmp/portage/dev-util/radare2-0.10.0/image//usr/share/man/man1" ; done
mkdir -p "/var/tmp/portage/dev-util/radare2-0.10.0/image//usr/share/radare2/0.10.0/www"
cp -rf shlr/www/* "/var/tmp/portage/dev-util/radare2-0.10.0/image//usr/share/radare2/0.10.0/www"
cd "/var/tmp/portage/dev-util/radare2-0.10.0/image//usr/share/man/man1" && ln -fs radare2.1 r2.1
for FILE in man/*.7 ; do /usr/lib/portage/python2.7/ebuild-helpers/xattr/install -m 444 "$FILE" "/var/tmp/portage/dev-util/radare2-0.10.0/image//usr/share/man/man7" ; done
/usr/bin/install: omitting directory ‘doc/node.js’
/usr/bin/install: omitting directory ‘doc/pdb’
/usr/bin/install: omitting directory ‘doc/sandbox’
/usr/bin/install: omitting directory ‘doc/3D’
Makefile:156: recipe for target 'install-doc' failed
make: *** [install-doc] Error 1
 * ERROR: dev-util/radare2-0.10.0::gentoo failed (install phase):
 *   emake failed
 * 
 * If you need support, post the output of `emerge --info '=dev-util/radare2-0.10.0::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-util/radare2-0.10.0::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/dev-util/radare2-0.10.0/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-util/radare2-0.10.0/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-util/radare2-0.10.0/work/radare2-0.10.0'
 * S: '/var/tmp/portage/dev-util/radare2-0.10.0/work/radare2-0.10.0'
Comment 1 Andrey Golovizin 2016-02-16 09:08:08 UTC
Created attachment 425626 [details]
the complete build log
Comment 2 Sergei Trofimovich (RETIRED) gentoo-dev 2016-02-17 22:48:15 UTC
I've failed to reproduce it locally.

Can you run the build with MAKEOPTS=-j1 and post a hew faulty build.log?
It will make it easier to match against my system.
Comment 3 Andrey Golovizin 2016-02-17 23:06:36 UTC
Created attachment 425754 [details]
build log with MAKEOPTS=-j1

Sure. The error is the same with -j1.
Comment 4 Sergei Trofimovich (RETIRED) gentoo-dev 2016-02-18 23:29:40 UTC
OK, i have a theory. The faulty line is in Makefile:156

    for FILE in doc/* ; do ${INSTALL_DATA} $$FILE "${DESTDIR}${DATADIR}/doc/radare2" ; done

returns error code if the expansion doc/* endis with a directory:

  $ for FILE in doc/all68k.r2 doc/3D ; do /usr/lib/portage/python3.4/ebuild-helpers/xattr/install -m 644 $FILE "/tmp/portage/dev-util/radare2-0.10.0/image//usr/share/doc/radare2" ; done && echo OK
  /usr/bin/install: omitting directory 'doc/3D'

  $ for FILE in doc/3D doc/all68k.r2 ; do /usr/lib/portage/python3.4/ebuild-helpers/xattr/install -m 644 $FILE "/tmp/portage/dev-util/radare2-0.10.0/image//usr/share/doc/radare2" ; done && echo OK
  /usr/bin/install: omitting directory 'doc/3D'
  OK

original install does the same:
  $ for FILE in doc/all68k.r2 doc/3D ; do /usr/bin/install -m 644 $FILE "/tmp/portage/dev-util/radare2-0.10.0/image//usr/share/doc/radare2" ; done && echo OK
/usr/bin/install: omitting directory 'doc/3D'

I've pushed a workaround as:

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ed6eeffa475e355955622ab2a0ef6c544b0beba6

Added Anton to a bug for upstream awareness.