Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 726400 - app-backup/snapper-0.8.7: fails to build because of missing xsltproc
Summary: app-backup/snapper-0.8.7: fails to build because of missing xsltproc
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Dainius Masiliūnas
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-05-31 08:43 UTC by Stefan Langenmaier
Modified: 2020-06-04 02:48 UTC (History)
3 users (show)

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


Attachments
build.log (file_726400.txt,154.90 KB, text/plain)
2020-05-31 20:52 UTC, Stefan Langenmaier
Details
build-with-libxslt-installed.log (file_726400.txt,313.58 KB, text/plain)
2020-06-01 10:40 UTC, Stefan Langenmaier
Details
patch-for-snapper-0.8.9.ebuild (file_726400.txt,461 bytes, patch)
2020-06-02 21:25 UTC, Stefan Langenmaier
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Stefan Langenmaier 2020-05-31 08:43:34 UTC
I'm building snapper with the ROOT and PORTAGE_CONFIGROOT env variables, the following error message appeared during compilation and the package was not installed

Reproducible: Always

Steps to Reproduce:
1. ROOT=/build/rootfs PORTAGE_CONFIGROOT=/build/portage-configroot emerge snapper

Actual Results:  
make[2]: Entering directory '/var/tmp/portage/app-backup/snapper-0.8.7/work/snapper-0.8.7/doc'
/usr/bin/xsltproc --nonet manpages.xsl snapper.xml
make[2]: /usr/bin/xsltproc: Command not found
make[2]: *** [Makefile:621: snapper.8] Error 127
make[2]: Leaving directory '/var/tmp/portage/app-backup/snapper-0.8.7/work/snapper-0.8.7/doc'
make[1]: *** [Makefile:553: all-recursive] Error 1
make[1]: Leaving directory '/var/tmp/portage/app-backup/snapper-0.8.7/work/snapper-0.8.7'
make: *** [Makefile:458: all] Error 2
 * ERROR: app-backup/snapper-0.8.7::gentoo failed (compile phase):
 *   emake failed
 * 
 * If you need support, post the output of `emerge --info '=app-backup/snapper-0.8.7::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=app-backup/snapper-0.8.7::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/app-backup/snapper-0.8.7/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/app-backup/snapper-0.8.7/temp/environment'.
 * Working directory: '/var/tmp/portage/app-backup/snapper-0.8.7/work/snapper-0.8.7'
 * S: '/var/tmp/portage/app-backup/snapper-0.8.7/work/snapper-0.8.7'

Expected Results:  
The package should have all dependencies ready/installed to complete the installation
Comment 1 Stefan Langenmaier 2020-05-31 09:20:58 UTC
Portage 2.3.99 (python 3.7.7-final-0, default/linux/arm/17.0/armv7a, gcc-9.3.0, glibc-2.30-r8, 5.4.38-gentoo-cuboxi armv7l)
=================================================================
System uname: Linux-5.4.38-gentoo-cuboxi-armv7l-ARMv7_Processor_rev_10_-v7l-with-gentoo-2.6
KiB Mem:     2049212 total,    826212 free
KiB Swap:    2047996 total,   1843452 free
Timestamp of repository gentoo: Sat, 30 May 2020 23:07:23 +0000
Head commit of repository gentoo: e61c33c5ad32edbf9f58284883263c727e6ea56e

sh bash 5.0_p17
ld GNU ld (Gentoo 2.33.1 p2) 2.33.1
app-shells/bash:          5.0_p17::gentoo
dev-lang/perl:            5.30.1::gentoo
dev-lang/python:          2.7.18::gentoo, 3.7.7-r2::gentoo
sys-apps/baselayout:      2.6-r1::gentoo
sys-apps/openrc:          0.42.1::gentoo
sys-apps/sandbox:         2.13::gentoo
sys-devel/autoconf:       2.69-r4::gentoo
sys-devel/automake:       1.16.1-r1::gentoo
sys-devel/binutils:       2.33.1-r1::gentoo
sys-devel/gcc:            9.3.0::gentoo
sys-devel/gcc-config:     2.2.1::gentoo
sys-devel/libtool:        2.4.6-r6::gentoo
sys-devel/make:           4.2.1-r4::gentoo
sys-kernel/linux-headers: 5.4::gentoo (virtual/os-headers)
sys-libs/glibc:           2.30-r8::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/gentoo
    priority: -1000

Installed sets: @container_set
ACCEPT_KEYWORDS="arm"
ACCEPT_LICENSE="@FREE"
CBUILD="armv7a-unknown-linux-gnueabihf"
CFLAGS="-O2 -pipe -march=armv7-a -mfpu=neon -mfloat-abi=hard"
CHOST="armv7a-unknown-linux-gnueabihf"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe -march=armv7-a -mfpu=neon -mfloat-abi=hard"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS=" --usepkg --binpkg-respect-use=y --binpkg-changed-deps=y"
ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-O2 -pipe -march=armv7-a"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync multilib-strict news parallel-fetch preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe -march=armv7-a"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
PKGDIR="/usr/portage/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="acl arm berkdb bzip2 cli crypt dri fortran gdbm iconv ipv6 ncurses nls nptl openmp pam pcre readline seccomp split-usr ssl tcpd unicode xattr zlib" ADA_TARGET="gnat_2018" 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="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_ARM="edsp thumb thumb2 v4 v5 v6 v7 vfp" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis 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" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-2" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_7" PYTHON_TARGETS="python2_7 python3_7" RUBY_TARGETS="ruby24 ruby25" USERLAND="GNU" VIDEO_CARDS="exynos fbdev omap dummy v4l" 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, INSTALL_MASK, LANG, LC_ALL, LINGUAS, MAKEOPTS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 2 Jonas Stein gentoo-dev 2020-05-31 17:29:22 UTC
Thank you for the report. We need to have all information at hand before ticket assignment. That is why I ask you to 
* attach the logs 
as described on https://wiki.gentoo.org/wiki/Attach_the_logs_to_the_bug_ticket
Comment 3 Stefan Langenmaier 2020-05-31 20:52:33 UTC
Created attachment 642924 [details]
build.log
Comment 4 Stefan Langenmaier 2020-05-31 20:56:59 UTC
The output of 

ROOT=/build/rootfs/ PORTAGE_CONFIGROOT=/build/portage-configroot/ emerge -pqv '=app-backup/snapper-0.8.7::gentoo'

is

[ebuild     U ] app-backup/snapper-0.8.7 [0.8.6] to /build/rootfs/ USE="pam xattr -lvm" 

Thanks for looking into it.
Comment 5 Yixun Lan archtester gentoo-dev 2020-06-01 03:17:12 UTC
building doc require dev-libs/libxslt

does "emerge dev-libs/libxslt" solve your problem?

another better idea probably is providing a "doc" configure option, but I'm not sure if upstream developer like this idea or not, personally I don't want to maintain this patch downstream ..
Comment 6 Stefan Langenmaier 2020-06-01 10:40:28 UTC
Created attachment 643006 [details]
build-with-libxslt-installed.log
Comment 7 Stefan Langenmaier 2020-06-01 10:42:09 UTC
I have tried to install dev-libs/libxslt but this seems to cause another bug/issue.

xsltproc has the "--nonet" flag but it still tries to download files.
Comment 8 Stefan Langenmaier 2020-06-02 21:25:41 UTC
Created attachment 643176 [details, diff]
patch-for-snapper-0.8.9.ebuild

The added dependency for libxslt wasn't enough. With app-text/docbook-xsl-stylesheets it builds successfully for me. The package installs the missing xsl files.
Comment 9 Larry the Git Cow gentoo-dev 2020-06-04 02:48:20 UTC
The bug has been closed via the following commit(s):

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

commit 4e6945a5f8f316a51bb46c95aee23f0f72e73bda
Author:     Yixun Lan <dlan@gentoo.org>
AuthorDate: 2020-06-04 02:43:54 +0000
Commit:     Yixun Lan <dlan@gentoo.org>
CommitDate: 2020-06-04 02:44:18 +0000

    app-backup/snapper: fix the missing dependency
    
    missing app-text/docbook-xsl-stylesheets will
    cause fail to build the doc of snapper.
    
    thanks 'Stefan Langenmaier' for testing/fixing
    
    Closes: https://bugs.gentoo.org/726400
    Package-Manager: Portage-2.3.100, Repoman-2.3.22
    Signed-off-by: Yixun Lan <dlan@gentoo.org>

 app-backup/snapper/{snapper-0.8.9.ebuild => snapper-0.8.9-r1.ebuild} | 1 +
 1 file changed, 1 insertion(+)