Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 827290 - app-doc/kicad-doc-6.0.X has issues with USE="pdf"
Summary: app-doc/kicad-doc-6.0.X has issues with USE="pdf"
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Zoltan Puskas
URL:
Whiteboard:
Keywords:
Depends on: 697450
Blocks:
  Show dependency tree
 
Reported: 2021-11-25 15:38 UTC by Miroslav Šulc
Modified: 2022-01-18 10:09 UTC (History)
4 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Miroslav Šulc gentoo-dev 2021-11-25 15:38:31 UTC
>>> Emerging (1 of 1) app-doc/kicad-doc-6.0.0_rc1::gentoo
 * kicad-doc-6.0.0_rc1.tar.gz BLAKE2B SHA512 size ;-) ...                                                                                                                                                                                                                                                            [ ok ]
>>> Unpacking source...
>>> Unpacking kicad-doc-6.0.0_rc1.tar.gz to /var/tmp/portage/app-doc/kicad-doc-6.0.0_rc1/work
>>> Source unpacked in /var/tmp/portage/app-doc/kicad-doc-6.0.0_rc1/work
>>> Preparing source in /var/tmp/portage/app-doc/kicad-doc-6.0.0_rc1/work/kicad-doc-6.0.0-rc1 ...
 * Source directory (CMAKE_USE_DIR): "/var/tmp/portage/app-doc/kicad-doc-6.0.0_rc1/work/kicad-doc-6.0.0-rc1"
 * Build directory  (BUILD_DIR):     "/var/tmp/portage/app-doc/kicad-doc-6.0.0_rc1/work/kicad-doc-6.0.0_rc1_build"
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/app-doc/kicad-doc-6.0.0_rc1/work/kicad-doc-6.0.0-rc1 ...
 * Source directory (CMAKE_USE_DIR): "/var/tmp/portage/app-doc/kicad-doc-6.0.0_rc1/work/kicad-doc-6.0.0-rc1"
 * Build directory  (BUILD_DIR):     "/var/tmp/portage/app-doc/kicad-doc-6.0.0_rc1/work/kicad-doc-6.0.0_rc1_build"
cmake -C /var/tmp/portage/app-doc/kicad-doc-6.0.0_rc1/work/kicad-doc-6.0.0_rc1_build/gentoo_common_config.cmake -G Ninja -DCMAKE_INSTALL_PREFIX=/usr -DBUILD_FORMATS=;pdf -DSINGLE_LANGUAGE=en -DKICAD_DOC_PATH=/usr/share/doc/kicad-doc-6.0.0_rc1/help -DCMAKE_BUILD_TYPE=Gentoo -DCMAKE_TOOLCHAIN_FILE=/var/tmp/portage/app-doc/kicad-doc-6.0.0_rc1/work/kicad-doc-6.0.0_rc1_build/gentoo_toolchain.cmake  /var/tmp/portage/app-doc/kicad-doc-6.0.0_rc1/work/kicad-doc-6.0.0-rc1
loading initial cache file /var/tmp/portage/app-doc/kicad-doc-6.0.0_rc1/work/kicad-doc-6.0.0_rc1_build/gentoo_common_config.cmake
CMake Deprecation Warning at CMakeLists.txt:10 (cmake_minimum_required):
  Compatibility with CMake < 2.8.12 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.


CMake Warning (dev) at CMakeLists.txt:22 (set):
  implicitly converting 'LIST' to 'STRING' type.
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at CMakeLists.txt:25 (set):
  implicitly converting 'LIST' to 'STRING' type.
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Error at /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
  Could NOT find ASCIIDOCTORPDF (missing: ASCIIDOCTORPDF_COMMAND)
Call Stack (most recent call first):
  /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:594 (_FPHSA_FAILURE_MESSAGE)
  CMakeModules/FindASCIIDOCTORPDF.cmake:44 (find_package_handle_standard_args)
  CMakeLists.txt:63 (find_package)


# emerge -pqv '=app-doc/kicad-doc-6.0.0_rc1::gentoo'
[ebuild     U ] app-doc/kicad-doc-6.0.0_rc1 [5.1.11] USE="pdf -html" L10N="en -ca -de -es -fr -id -it -ja -pl -ru -zh" 


# emerge --info '=app-doc/kicad-doc-6.0.0_rc1::gentoo'
Portage 3.0.28 (python 3.10.0-final-0, default/linux/amd64/17.1/hardened, gcc-11.2.0, glibc-2.34-r2, 5.15.4-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-5.15.4-gentoo-x86_64-11th_Gen_Intel-R-_Core-TM-_i9-11900K_@_3.50GHz-with-glibc2.34
KiB Mem:   131749268 total,   7190732 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Thu, 25 Nov 2021 14:40:01 +0000
Head commit of repository gentoo: c78b9de8b1ddc158726693813bf1de6b52f405a1
sh bash 5.1_p12
ld GNU ld (Gentoo 2.37_p1 p1) 2.37
app-shells/bash:          5.1_p12::gentoo
dev-java/java-config:     2.3.1::gentoo
dev-lang/perl:            5.34.0-r5::gentoo
dev-lang/python:          2.7.18_p13::gentoo, 3.8.12_p1::gentoo, 3.9.9::gentoo, 3.10.0_p1::gentoo
dev-lang/rust:            1.56.1::gentoo
dev-util/cmake:           3.22.0::gentoo
sys-apps/baselayout:      2.8::gentoo
sys-apps/openrc:          0.44.8::gentoo
sys-apps/sandbox:         2.29::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.71-r1::gentoo
sys-devel/automake:       1.16.5::gentoo
sys-devel/binutils:       2.37_p1-r1::gentoo
sys-devel/gcc:            11.2.0::gentoo
sys-devel/gcc-config:     2.5-r1::gentoo
sys-devel/libtool:        2.4.6-r6::gentoo
sys-devel/make:           4.3::gentoo
sys-kernel/linux-headers: 5.15::gentoo (virtual/os-headers)
sys-libs/glibc:           2.34-r2::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-verify-jobs: 1
    sync-rsync-extra-opts: 
    sync-rsync-verify-max-age: 24
    sync-rsync-verify-metamanifest: yes

fordfrog
    location: /usr/src/fordfrog.git
    masters: gentoo
    priority: 0

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

brother-overlay
    location: /var/lib/layman/brother-overlay
    masters: gentoo
    priority: 50

ceamac
    location: /var/lib/layman/ceamac
    masters: gentoo
    priority: 50

flavour
    location: /var/lib/layman/flavour
    masters: gentoo
    priority: 50

waebbl
    location: /var/lib/layman/waebbl
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe -frecord-gcc-switches"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /opt/brother/scanner/brscan4/brsanenetdevice4.cfg /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/maven-bin-3.8/conf"
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 /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=native -O2 -pipe -frecord-gcc-switches"
DISTDIR="/var/db/repos/gentoo/distfiles"
EMERGE_DEFAULT_OPTS="--misspell-suggestions n"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN GOPATH 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="-march=native -O2 -pipe -frecord-gcc-switches"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-march=native -O2 -pipe -frecord-gcc-switches"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="cs_CZ.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="cs cs_CZ en en_US en_UK"
MAKEOPTS="-j17"
PKGDIR="/var/db/repos/gentoo/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 aacplus acl alsa amd64 aubio bluetooth bzip2 cdda cddb cdr color-management colord crypt cuda cups dbus dia dssi dvb dvd elogind exif ffmpeg flac gegl gif gphoto2 gsm gtk gtk3 hardened hddtemp http2 ibus iconv icu id3tag ipv6 jack jack-dbus jacksession javafx jpeg ladspa lastfm latex lcms libass libglvnd libnotify libproxy libsamplerate libtirpc lilypond lm-sensors lv2 mad modplug mp3 mpeg mpi mtp multilib musepack ncurses nls nptl ocr ogg openexr opengl openmp opus osc pam pcre pdf pie png policykit pulseaudio qt5 raw readline rubberband samba scanner screencast seccomp sf2 sndfile soundio speex spell split-usr ssl ssp startup-notification svg svg2 taglib theora tiff timidity tk tray truetype udev unicode usb vamp visio vorbis vpx vst vulkan wavpack webp widevine wmf x264 x265 xattr xinerama xmp xtpax xv xvid zlib" ABI_X86="32 64" ADA_TARGET="gnat_2020" APACHE2_MODULES="alias auth_basic authn_core authn_file authz_core authz_host authz_user cgi cgid deflate dir expires filter headers http2 include info log_config mime mime_magic negotiation proxy proxy_ajp rewrite setenvif socache_shmcb status unixd vhost_alias" APACHE2_MPMS="event" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 avx512f avx512dq avx512cd avx512bw avx512vl avx512vbmi f16c fma3 mmx mmxext pclmul popcnt rdrand sha sse sse2 sse3 sse4_1 sse4_2 ssse3" 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="evdev libinput synaptics wacom" KERNEL="linux" L10N="cs cs-CZ en en-US en-UK" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LLVM_TARGETS="NVPTX" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-3 php7-4" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_9" PYTHON_TARGETS="python3_7 python3_8 python3_9 python3_10" RUBY_TARGETS="ruby26 ruby27 ruby30" SANE_BACKENDS="genesys" USERLAND="GNU" VIDEO_CARDS="intel i915 i965 nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, LC_ALL, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RUSTFLAGS
Comment 1 Paul Jewell 2021-11-26 08:51:29 UTC
Same problem here. Looks like a missing dependency, plus possibly some adjustment to the cmake script. From https://lists.launchpad.net/kicad-developers/msg45138.html, I understand that dev-ruby/asciidoctor is a missing dependency, however installing this did not make the build work. I will have a look at this later to see if I can find out more!
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-11-26 08:54:07 UTC
(In reply to Paul Jewell from comment #1)
> Same problem here. Looks like a missing dependency, plus possibly some
> adjustment to the cmake script. From
> https://lists.launchpad.net/kicad-developers/msg45138.html, I understand
> that dev-ruby/asciidoctor is a missing dependency, however installing this
> did not make the build work. I will have a look at this later to see if I
> can find out more!

Ah, I meant to check the asciidoctor thing. I'm sorry, I thought had.

Please do investigate if you can, but I can try look later on.
Comment 3 Larry the Git Cow gentoo-dev 2021-11-26 10:45:42 UTC
The bug has been referenced in the following commit(s):

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

commit b65ae6bff344129414304ca53d486a4c16afd50d
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2021-11-26 10:44:49 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2021-11-26 10:45:14 +0000

    app-doc/kicad-doc: change IUSE default to +html, not +pdf in 6.0.0_rc1
    
    ... because we can't build +pdf right now due to an unpackaged dep.
    
    Bug: https://bugs.gentoo.org/827290
    Signed-off-by: Sam James <sam@gentoo.org>

 app-doc/kicad-doc/kicad-doc-6.0.0_rc1.ebuild | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

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

commit 6d24980ccc61f80db91c0bb56947e6a33753e7ef
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2021-11-26 10:44:13 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2021-11-26 10:45:13 +0000

    profiles/base: mask kicad-doc[pdf]
    
    Needs an unpackaged dependency (asciidoctor-pdf).
    
    Bug: https://bugs.gentoo.org/827290
    Signed-off-by: Sam James <sam@gentoo.org>

 profiles/base/package.use.mask | 5 +++++
 1 file changed, 5 insertions(+)

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

commit d93ecfa213b7752e06d02dd1f14da7be82e764eb
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2021-11-26 10:43:09 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2021-11-26 10:45:12 +0000

    app-doc/kicad-doc: BDEPEND on asciidoctor for 6.0.0_rc1
    
    Bug: https://bugs.gentoo.org/827290
    Signed-off-by: Sam James <sam@gentoo.org>

 app-doc/kicad-doc/kicad-doc-6.0.0_rc1.ebuild | 2 ++
 1 file changed, 2 insertions(+)
Comment 4 Fabio Rossi 2021-12-01 14:03:29 UTC
Actually it should be possible to produce PDFs by using another backend. Even if the default backend is asciidoctorpdf, it's simply enough to add -DPDF_GENERATOR="DBLATEX" to the cmake options for kicad-doc. This will solve this bug now and avoid waiting for #697450
Comment 5 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-12-01 15:17:58 UTC
(In reply to Fabio Rossi from comment #4)
> Actually it should be possible to produce PDFs by using another backend.
> Even if the default backend is asciidoctorpdf, it's simply enough to add
> -DPDF_GENERATOR="DBLATEX" to the cmake options for kicad-doc. This will
> solve this bug now and avoid waiting for #697450

Thanks for the tip! Sadly, it fails to build for me as reported at https://gitlab.com/kicad/services/kicad-doc/-/issues/808.
Comment 6 Fabio Rossi 2021-12-01 15:50:12 UTC
(In reply to Sam James from comment #5)
> (In reply to Fabio Rossi from comment #4)
> > Actually it should be possible to produce PDFs by using another backend.
> > Even if the default backend is asciidoctorpdf, it's simply enough to add
> > -DPDF_GENERATOR="DBLATEX" to the cmake options for kicad-doc. This will
> > solve this bug now and avoid waiting for #697450
> 
> Thanks for the tip! Sadly, it fails to build for me as reported at
> https://gitlab.com/kicad/services/kicad-doc/-/issues/808.

Oh, I see. I forgot to say I am working with a personal kicad-doc-9999.ebuild and it works, I can build the PDFs. As we have kicad-9999 in portage maybe it make sense to follow upstream also on the doc side.
Comment 7 Larry the Git Cow gentoo-dev 2021-12-27 01:19:19 UTC
The bug has been referenced in the following commit(s):

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

commit 469197fae79659e03789e6c58e57597a9ecda82c
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2021-12-27 01:16:09 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2021-12-27 01:19:06 +0000

    app-doc/kicad-doc: use asciidoc, use ${PF} for docs
    
    - Use asciidoc for now (not clear if upstream will continue to allow it though)
    - ${PF} should work now with a corresponding change in kicad
    (https://gitlab.com/kicad/code/kicad/-/commit/c5e77e9739424837540469780cef3ffb66eadbf3)
    
    Bug: https://bugs.gentoo.org/827290
    Bug: https://bugs.gentoo.org/830024
    Signed-off-by: Sam James <sam@gentoo.org>

 .../{kicad-doc-6.0.0.ebuild => kicad-doc-6.0.0-r1.ebuild}        | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)