Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 820164 - app-text/ghostscript-gpl: build fails for lack of gtk header ( ./psi/dxmain.c:35:10: fatal error: gtk/gtk.h: No such file or directory)
Summary: app-text/ghostscript-gpl: build fails for lack of gtk header ( ./psi/dxmain.c...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Codec Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-10-25 08:33 UTC by Michael Mounteney
Modified: 2022-04-17 12:09 UTC (History)
1 user (show)

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


Attachments
build log (build.log,881.88 KB, text/plain)
2021-10-25 08:38 UTC, Michael Mounteney
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Mounteney 2021-10-25 08:33:11 UTC
# cat /tmp/T/portage/app-text/ghostscript-gpl-9.55.0-r1/temp/build.log
[...]
                 from ./pdf/pdf_font1C.c:27:
./pdf/pdf_stack.h:98:27: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
   98 | #define pdfi_countdown(x) pdfi_countdown_impl((pdf_obj *)x)
      |                           ^~~~~~~~~~~~~~~~~~~
./pdf/pdf_font1C.c:211:17: note: in expansion of macro ‘pdfi_countdown’
  211 |                 pdfi_countdown(charstring);
      |                 ^~~~~~~~~~~~~~
./soobj/gconfig.c:211:1: warning: no previous prototype for ‘gs_lib_register_device’ [-Wmissing-prototypes]
  211 | gs_lib_register_device(const gx_device *dev)
      | ^~~~~~~~~~~~~~~~~~~~~~
./psi/dxmain.c:35:10: fatal error: gtk/gtk.h: No such file or directory
   35 | #include <gtk/gtk.h>

Reproducible: Always

Steps to Reproduce:
1. emerge @world
Actual Results:  
Build failure as per description;  full log is attached.

Expected Results:  
The build should succeed and the library be installed.
Comment 1 Michael Mounteney 2021-10-25 08:35:14 UTC
Tried to attach full build log and got:

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator at webmaster@gentoo.org to inform them of the time this error occurred, and the actions you performed just before this error.

More information about this error may be available in the server error log.
Comment 2 Michael Mounteney 2021-10-25 08:35:35 UTC
# emerge --info
Portage 3.0.26 (python 3.9.6-final-0, default/linux/amd64/17.1/desktop/gnome/systemd, gcc-11.2.0, glibc-2.33-r7, 5.11.4-gentoo-6 x86_64)
=================================================================
System uname: Linux-5.11.4-gentoo-6-x86_64-Intel-R-_Core-TM-_i7-4765T_CPU_@_2.00GHz-with-glibc2.33
KiB Mem:    16292920 total,   4781336 free
KiB Swap:   12582900 total,  11091324 free
Timestamp of repository gentoo: Sun, 24 Oct 2021 03:51:28 +0000
Head commit of repository gentoo: 4beca096282abd1549861a983f00ddd1262709f8

Timestamp of repository haskell: Sat, 23 Oct 2021 22:36:19 +0000
Head commit of repository haskell: e9bc04b1da24248d5522803111d03e1df410952a

Timestamp of repository mva: Mon, 18 Oct 2021 19:36:38 +0000
Head commit of repository mva: 54b8e51a260b3e41e42bd4770b705f246aafaa01

Timestamp of repository wine: Sat, 23 Oct 2021 21:21:20 +0000
Head commit of repository wine: df6b9df0ae233b98d6df92a2f10e631d8d75f459

sh bash 5.1_p8
ld GNU ld (Gentoo 2.36.1 p3) 2.36.1
app-shells/bash:          5.1_p8::gentoo
dev-java/java-config:     2.3.1::gentoo
dev-lang/perl:            5.34.0-r3::gentoo
dev-lang/python:          2.7.18_p13::gentoo, 3.8.11::gentoo, 3.9.6::gentoo, 3.10.0_beta3::gentoo
dev-lang/rust:            1.56.0-r1::gentoo
dev-util/cmake:           3.21.3::gentoo
sys-apps/baselayout:      2.8::gentoo
sys-apps/sandbox:         2.27::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r5::gentoo, 2.71-r1::gentoo
sys-devel/automake:       1.16.5::gentoo
sys-devel/binutils:       2.36.1-r1::gentoo, 2.37_p1::gentoo
sys-devel/gcc:            11.2.0::gentoo
sys-devel/gcc-config:     2.4::gentoo
sys-devel/libtool:        2.4.6-r6::gentoo
sys-devel/make:           4.3::gentoo
sys-kernel/linux-headers: 5.14::gentoo (virtual/os-headers)
sys-libs/glibc:           2.33-r7::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/gentoo.git
    priority: -1000
    sync-git-verify-commit-signature: yes

haskell
    location: /var/db/repos/haskell
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/haskell.git
    masters: gentoo

mva
    location: /var/db/repos/mva
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/mva.git
    masters: gentoo

wine
    location: /var/db/repos/wine
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/wine.git
    masters: gentoo

Installed sets: @Cinna-desktop, @iscsi, @metal, @michael, @miit, @uefi, @wayland
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="@FREE unRAR"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-pipe -O2 -march=native -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /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/php/apache2-php7.3/ext-active/ /etc/php/cgi-php7.3/ext-active/ /etc/php/cli-php7.3/ext-active/ /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="-pipe -O2 -march=native -fomit-frame-pointer"
DISTDIR="/var/db/repos/distfiles"
EMERGE_DEFAULT_OPTS="--keep-going --with-bdeps=y --verbose-conflicts --quiet --update --changed-use --autounmask=n --autounmask-write=n --deep"
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="-pipe -O2 -march=native -fomit-frame-pointer"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs 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"
FFLAGS="-pipe -O2 -march=native -fomit-frame-pointer"
GENTOO_MIRRORS="http://ftp.swin.edu.au/gentoo http://mirror.pacific.net.au/linux/Gentoo ftp://ftp.swin.edu.au/gentoo ftp://mirror.pacific.net.au/linux/Gentoo "
LANG="en_GB.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en en_GB"
MAKEOPTS="-j1 -s"
PKGDIR="/var/db/repos/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 ada alsa amd64 autoipd avahi branding bzip2 cairo cdda cdr cjk cli colord context crypt cups dbus detex disk-partition doc dri dts dv dvb dvd dvdr dvi2tty emboss encode epspdf evo exif extras flac fontconfig foomatic fortran freerdp gbm gd gdbm gif git glamor glibc-omitfp gnat_2018 gnome gnome-keyring gnome-online-accounts gnutls gpm graphics gstreamer gtk gtk3 gui humanities iconv icu imap inotify introspection iscsi jadetex jpeg jpeg2k kpathsea lame latex lcms ldap libglvnd libnotify libsecret libtirpc litehtml luatex lzma lzo mad mercurial metapost mmap mms mng mp3 mp4 mpeg msn mtp multilib musepack music nautilus ncurses networkmanager nfsv41 nls nntp npp nptl nsplugin odbc ogg openexr opengl openmp oscar oss pam pango pcre pdf pdfannotextractor pdo png policykit postgres ppds pstricks publishers pulseaudio quicktime rdesktop readline real rss sasl science sdl seccomp slang smime spam-report spamassassin spell split-usr sql ssh ssl startup-notification subversion svg sysprof systemd taglib tcpd tex4ht texi2html theora threads tiff tracker truetype udev udisks unicode upower usb v4l2 vcd vim-syntax vnc vorbis wavpack wayland win32codecs wmf wxwidgets x264 xattr xcb xcomposite xetex xface xine xinerama xml xmp xnest xpm xv xvid yahoo zlib" ABI_X86="64" ADA_TARGET="gnat_2019" ALSA_CARDS="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="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt 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" KERNEL="linux" L10N="en en-GB" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" 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_8" PYTHON_TARGETS="python3_9 pypy3 python3_8" RUBY_TARGETS="ruby30" USERLAND="GNU" VIDEO_CARDS="intel" 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 3 Michael Mounteney 2021-10-25 08:38:17 UTC
Created attachment 746592 [details]
build log
Comment 4 Michael Mounteney 2021-10-25 08:38:38 UTC
Cancel above comment about not being able to attach.
Comment 5 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-04-17 11:57:36 UTC
```
checking for GTK+ 3.x... Package mount was not found in the pkg-config search path.
Perhaps you should add the directory containing `mount.pc'
to the PKG_CONFIG_PATH environment variable
Package 'mount', required by 'gio-2.0', not found
Package 'uuid', required by 'fontconfig', not found
Package 'uuid', required by 'fontconfig', not found
Package 'uuid', required by 'fontconfig', not found
Package 'mount', required by 'gio-2.0', not found
Package 'uuid', required by 'fontconfig', not found
Package 'uuid', required by 'fontconfig', not found
Package 'uuid', required by 'fontconfig', not found
Package 'uuid', required by 'fontconfig', not found
Package 'mount', required by 'gio-2.0', not found
Package 'uuid', required by 'fontconfig', not found
Package 'uuid', required by 'fontconfig', not found
Package 'uuid', required by 'fontconfig', not found
Package 'uuid', required by 'fontconfig', not found
Package 'mount', required by 'gio-2.0', not found
Package 'mount', required by 'gio-2.0', not found
yes
```

Always needs gtk 3 now, I guess.
Comment 6 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-04-17 11:58:09 UTC
(In reply to Sam James from comment #5)
> [...]
> Always needs gtk 3 now, I guess.

ah, it accepts both, but I think we should really be forcing gtk 3 at this point anyway.
Comment 7 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-04-17 12:04:20 UTC
(In reply to Sam James from comment #6)
> (In reply to Sam James from comment #5)
> > [...]
> > Always needs gtk 3 now, I guess.
> 
> ah, it accepts both, but I think we should really be forcing gtk 3 at this
> point anyway.

actually, sorry, obviously the dep in the ebuild is wrong anyway -- you can't use || ( ... ) for things which aren't ABI compatible.
Comment 8 Larry the Git Cow gentoo-dev 2022-04-17 12:09:08 UTC
The bug has been closed via the following commit(s):

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

commit 463ee510db265bbd373aadce60112eca3d062c8d
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2022-04-17 12:06:58 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-04-17 12:08:59 +0000

    app-text/ghostscript-gpl: add 9.56.1
    
    (Done the font bit anyway for 502566).
    
    Closes: https://bugs.gentoo.org/820164
    Bug: https://bugs.gentoo.org/784173
    Bug: https://bugs.gentoo.org/502566
    Signed-off-by: Sam James <sam@gentoo.org>

 app-text/ghostscript-gpl/Manifest                  |   2 +
 .../ghostscript-gpl/ghostscript-gpl-9.56.1.ebuild  | 180 +++++++++++++++++++++
 2 files changed, 182 insertions(+)