Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 566320 - x11-misc/xdg-utils with app-text/xmlto-0.0.28 www-client/links - No way to convert HTML to text found.
Summary: x11-misc/xdg-utils with app-text/xmlto-0.0.28 www-client/links - No way to co...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal with 1 vote (vote)
Assignee: Freedesktop bugs
URL:
Whiteboard:
Keywords:
: 566760 (view as bug list)
Depends on:
Blocks:
 
Reported: 2015-11-20 10:46 UTC by iGentoo
Modified: 2015-12-02 16:04 UTC (History)
4 users (show)

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


Attachments
xdg-utils-1.1.1-build.log (xdg-utils-1.1.1-build.log,8.26 KB, text/plain)
2015-11-20 10:46 UTC, iGentoo
Details
xmlto-0.0.28-r1.ebuild (xmlto-0.0.28-r1.ebuild,1.46 KB, text/plain)
2015-11-25 17:54 UTC, Oleh
Details
0.0.28-to-0.0.28-r1-diff (xmlto-diff.txt,448 bytes, text/plain)
2015-11-25 17:54 UTC, Oleh
Details

Note You need to log in before you can comment on or make changes to this bug.
Description iGentoo 2015-11-20 10:46:29 UTC
Created attachment 417458 [details]
xdg-utils-1.1.1-build.log

(cd man;/usr/bin/xmlto --skip-validation man ../desc/xdg-settings.xml)
Warn: AUTHOR sect.: no personblurb|contrib for Mike Mammarella     xdg-settings
Note: AUTHOR sect.: see http://docbook.sf.net/el/contrib           xdg-settings
Note: AUTHOR sect.: see http://docbook.sf.net/el/personblurb       xdg-settings
Note: Writing xdg-settings.1
/usr/bin/xmlto --skip-validation txt desc/xdg-desktop-menu.xml
No way to convert HTML to text found.
Try either installing text web browser(lynx/w3m/links) or use option --with-fop
Makefile:114: recipe for target 'xdg-desktop-menu.txt' failed
make[1]: *** [xdg-desktop-menu.txt] Error 1
make[1]: Leaving directory '/var/tmp/portage/x11-misc/xdg-utils-1.1.1/work/xdg-utils-1.1.1/scripts'
Makefile:25: recipe for target 'scripts' failed
make: *** [scripts] Error 2
 * ERROR: x11-misc/xdg-utils-1.1.1::gentoo failed (compile phase):


# emerge --info
Portage 2.2.25 (python 3.5.0-final-0, default/linux/amd64/13.0, gcc-5.2.0, glibc-2.22-r1, 4.2.6-hardened-r5.x86_64 x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.2.6-hardened-r5.x86_64-x86_64-Intel-R-_Core-TM-2_Quad_CPU_Q9300_@_2.50GHz-with-gentoo-2.2
KiB Mem:     6116276 total,   1649388 free
KiB Swap:   18873332 total,  18871176 free
sh dash 0.5.8.2
ld GNU gold (Gentoo 2.25.1 p1.1 2.25.1) 1.11
ccache version 3.2.4 [disabled]
app-shells/bash:          4.4_beta::gentoo
dev-lang/perl:            5.22.0::gentoo
dev-lang/python:          2.7.10-r4::gentoo, 3.5.0-r3::local-repo
dev-util/ccache:          3.2.4::gentoo
dev-util/cmake:           3.4.0-r1::gentoo
dev-util/pkgconfig:       0.29::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/sandbox:         2.9::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r1::gentoo
sys-devel/automake:       1.15::gentoo
sys-devel/binutils:       2.25.1-r1::gentoo
sys-devel/gcc:            5.2.0::gentoo
sys-devel/gcc-config:     1.8-r1::gentoo
sys-devel/libtool:        2.4.6-r1::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 4.3::gentoo (virtual/os-headers)
sys-libs/glibc:           2.22-r1::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: git
    sync-uri: git://anongit.gentoo.org/repo/gentoo.git
    priority: -1000
    eclass-overrides: local-repo

local-repo
    location: /usr/local/portage
    masters: gentoo

Installed sets: @local
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-Wall -march=native -O2 -pipe -frecord-gcc-switches"
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/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-Wall -march=native -O2 -pipe -frecord-gcc-switches"
DISTDIR="/var/portage/distfiles"
EMERGE_DEFAULT_OPTS="--color=n --oneshot"
FCFLAGS="-Wall -march=native -O2 -pipe -frecord-gcc-switches"
FEATURES="assume-digests binpkg-logs buildpkg collision-protect config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync metadata-transfer multilib-strict news parallel-fetch preserve-libs protect-owned sandbox sfperms split-log strict test-fail-continue unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync webrsync-gpg xattr"
FFLAGS="-Wall -march=native -O2 -pipe -frecord-gcc-switches"
GENTOO_MIRRORS="http://mirrors.xmu.edu.cn/gentoo http://distfiles.gentoo.org"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="V=1 -j9"
PKGDIR="/var/portage/packages"
PORTAGE_BZIP2_COMMAND="lbzip2"
PORTAGE_COMPRESS="xz"
PORTAGE_COMPRESS_FLAGS="-9eT0"
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"
PORTAGE_TMPDIR="/var/tmp"
USE="X acl amd64 audit berkdb bzip2 cli cracklib crypt cxx dbus dri egl fortran gdbm iconv icu ipv6 jpeg mmx mmxext modules multilib ncurses nls nptl opengl openmp pam pax_kernel pcre pic png policykit pulseaudio readline seccomp session sse sse2 ssl systemd tcpd unicode vdpau vim-syntax wayland xattr zlib" ABI_X86="64 32 x32" 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" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2 sse3 sse4_1 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en en_US zh zh_CN" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python3_5" PYTHON_TARGETS="python2_7 python3_5" RUBY_TARGETS="ruby22" USERLAND="GNU" VIDEO_CARDS="nouveau" 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, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON

=================================================================
                        Package Settings
=================================================================

x11-misc/xdg-utils-1.1.1::gentoo was built with the following:
USE="perl -doc" ABI_X86="64"


app-text/xmlto-0.0.28::gentoo was built with the following:
USE="-latex" ABI_X86="64"


www-client/links-2.12::gentoo was built with the following:
USE="X bzip2 ipv6 jpeg ssl unicode zlib -directfb -fbcon -gpm -livecd -lzma (-suid) (-svga) -tiff" ABI_X86="64"
Comment 1 iGentoo 2015-11-20 10:48:13 UTC
# grep 'LINKS_PATH=' /usr/bin/xmlto 
LINKS_PATH=elinks
Comment 2 Oleh 2015-11-24 08:03:38 UTC
downgrade to app-text/xmlto-0.0.26 fixes this.
Comment 3 Oleh 2015-11-24 08:13:09 UTC
http://wiki.linuxfromscratch.org/blfs/ticket/7127 explains what is going on in xmlto.
Comment 4 Oleh 2015-11-25 17:54:06 UTC
Created attachment 417854 [details]
xmlto-0.0.28-r1.ebuild
Comment 5 Oleh 2015-11-25 17:54:44 UTC
Created attachment 417856 [details]
0.0.28-to-0.0.28-r1-diff
Comment 6 Oleh 2015-11-25 17:56:33 UTC
A bug is in xmlto rather than xdg-utils. Attached here a rev bump to ebuild and a diff, which workarounds a bug in xmlto. Update to 0.0.28-r1 allows xdg-utils-1.1.1 compile fine.
Comment 7 Mike Gilbert gentoo-dev 2015-11-25 19:12:25 UTC
These are some weird deps. It seems like xmlto should really RDEPEND on this rather than xdg-utils.

|| ( www-client/links www-client/lynx virtual/w3m )

Also, I have no idea why xmlto stores the full path to the binaries.
Comment 8 Brian Evans (RETIRED) gentoo-dev 2015-11-25 19:23:02 UTC
*** Bug 566760 has been marked as a duplicate of this bug. ***
Comment 9 Mike Gilbert gentoo-dev 2015-11-25 19:28:31 UTC
Here is what I would propose:

In xmlto-0.0.26-r1, add the following to RDEPEND:

|| ( virtual/w3m www-client/lynx www-client/links )

In xmlto-0.0.28-r1, add the following to RDEPEND:

|| ( virtual/w3m www-client/lynx www-client/elinks )

Each of these match upstream's preferred priority for which program to use when converting HTML to text.


We would also remove this from xdg-utils:

DEPEND="|| ( www-client/links www-client/lynx virtual/w3m )"


Does that make sense?
Comment 10 Oleh 2015-11-25 19:34:40 UTC
looks good
Comment 11 Mike Gilbert gentoo-dev 2015-11-25 19:47:38 UTC
Should be fixed now.

commit a42fee669fe50c9c56447ecc5a81fb7dd116ae6f
Author: Mike Gilbert <floppym@gentoo.org>
Date:   Wed Nov 25 14:45:34 2015 -0500

    x11-misc/xdg-utils: Move web browser dep to app-text/xmlto
    
    Bug: https://bugs.gentoo.org/566320
    
    Package-Manager: portage-2.2.25_p7

 x11-misc/xdg-utils/xdg-utils-1.1.0_rc2-r1.ebuild | 3 +--
 x11-misc/xdg-utils/xdg-utils-1.1.0_rc2.ebuild    | 5 ++---
 x11-misc/xdg-utils/xdg-utils-1.1.1.ebuild        | 3 +--
 3 files changed, 4 insertions(+), 7 deletions(-)

commit 675149760a5fab2495534ca4472876fa53830137
Author: Mike Gilbert <floppym@gentoo.org>
Date:   Wed Nov 25 14:39:44 2015 -0500

    app-text/xmlto: RDEPEND on a web browser for HTML to text
    
    Bug: https://bugs.gentoo.org/566320
    
    Package-Manager: portage-2.2.25_p7

 app-text/xmlto/{xmlto-0.0.26.ebuild => xmlto-0.0.26-r1.ebuild} | 3 ++-
 app-text/xmlto/{xmlto-0.0.28.ebuild => xmlto-0.0.28-r1.ebuild} | 3 ++-
 2 files changed, 4 insertions(+), 2 deletions(-)
Comment 12 tot-to 2015-12-01 18:12:54 UTC
During the routine update I just found out, that >xmlto-0.0.26 became hardly dependent on a web-browser. And as far as I understand from comments here, it was added as a resolution of this bug.

But I don't really see the motivation behind it.

On my server I use webapp-config which depends on xmlto and thus by this change become dependent on a web-browser. Why would I need a web-browser on my server in order to install web-apps?

In the changelog https://fedorahosted.org/xmlto/browser/NEWS I can see "links detection changed to elinks" for xmlto-0.0.28, suggesting that this detection was there in previous versions, but webapp-config with xmlto-0.0.26 works just fine for me without any web browser installed.

May be it is possible to introduce some USE-flag(s) for webapp-config and/or xmlto in order to make such a dependency optional?
Comment 13 Mike Gilbert gentoo-dev 2015-12-01 18:44:37 UTC
commit 39c81fd00a4eaf5e9ead0a6f9810cea588d88609
Author: Mike Gilbert <floppym@gentoo.org>
Date:   Tue Dec 1 13:38:05 2015 -0500

    x11-misc/xdg-utils: Depend on xmlto[text]

    Bug: https://bugs.gentoo.org/566320

    Package-Manager: portage-2.2.26_p3

 x11-misc/xdg-utils/xdg-utils-1.1.0_rc2-r1.ebuild | 2 +-
 x11-misc/xdg-utils/xdg-utils-1.1.0_rc2.ebuild    | 2 +-
 x11-misc/xdg-utils/xdg-utils-1.1.1.ebuild        | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

commit 7d3167ee07ff4d56955e872dd82ab1e51d080677
Author: Mike Gilbert <floppym@gentoo.org>
Date:   Tue Dec 1 13:34:22 2015 -0500

    app-text/xmlto: Make the web browser dep optional

    Bug: https://bugs.gentoo.org/566320

    Package-Manager: portage-2.2.26_p3

 app-text/xmlto/metadata.xml           | 3 +++
 app-text/xmlto/xmlto-0.0.26-r1.ebuild | 4 ++--
 app-text/xmlto/xmlto-0.0.28-r1.ebuild | 4 ++--
 3 files changed, 7 insertions(+), 4 deletions(-)
Comment 14 Michael Palimaka (kensington) gentoo-dev 2015-12-02 05:35:20 UTC
I thought runtime-only USE flags are not allowed?
Comment 15 Mike Gilbert gentoo-dev 2015-12-02 15:15:39 UTC
(In reply to Michael Palimaka (kensington) from comment #14)
> I thought runtime-only USE flags are not allowed?

I'm aware of that policy, but this seems like a case where the rule can be reasonably broken. There is no better way for xdg-utils to express a proper dependency here.
Comment 16 tot-to 2015-12-02 15:29:25 UTC
Thank you, Mike, for making the dependency optional. Why not just make a web browser to be a direct dependency of xdg-utils?
Comment 17 Mike Gilbert gentoo-dev 2015-12-02 16:04:48 UTC
(In reply to tot-to from comment #16)
> Thank you, Mike, for making the dependency optional. Why not just make a web
> browser to be a direct dependency of xdg-utils?

Because xdg-utils does not directly depend on it. It depends on xmlto being able to convert XML to text. xmlto requires a web browser to do so, and it requires a different web browser depending on its version: xmlto-0.0.26 wants www-client/links whereas xmlto-0.0.28 wants www-client/elinks.

I partially explained this already in comment 7 and comment 9.