Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 934635 - dev-qt/qtwebengine-6.7.2 USE="pdfium -pulseaudio": Package 'libpulse' not found
Summary: dev-qt/qtwebengine-6.7.2 USE="pdfium -pulseaudio": Package 'libpulse' not found
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Qt Bug Alias
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-06-20 21:06 UTC by J.Borme
Modified: 2024-06-21 18:39 UTC (History)
2 users (show)

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


Attachments
build log (dev-qt:qtwebengine-6.7.2:20240620-201436.log.xz,10.78 KB, application/x-xz)
2024-06-20 21:08 UTC, J.Borme
Details

Note You need to log in before you can comment on or make changes to this bug.
Description J.Borme 2024-06-20 21:06:32 UTC
dev-qt/qtwebengine-6.7.2 with USE="-pulseaudio" fails to build with missing libpulse.

[ebuild  NS   ~] dev-qt/qtwebengine-6.7.2:6/6.7.2::gentoo [5.15.14_p20240510:5/5.15::gentoo] USE="alsa jumbo-build opengl%* pdfium%* system-icu vulkan%* widgets -accessibility% -bindist -custom-cflags% -designer -geolocation -kerberos -pulseaudio -qml% -screencast -test -vaapi% -webdriver% (-debug%)" 0 KiB

The system has media-sound/apulse (tested with 0.1.13-r2 and 0.1.13-r3)

Log:

Command:
/tmp/var/tmp/portage/dev-qt/qtwebengine-6.7.2/temp/python3.12/bin/python3
/tmp/var/tmp/portage/dev-qt/qtwebengine-6.7.2/work/qtwebengine-everywhere-src-6.7.2/src/3rdparty/chromium/build/config/linux/pkg-config.py
-p /usr/bin/x86_64-pc-linux-gnu-pkg-config libpulse
Returned 1.

stderr:
Package libpulse was not found in the pkg-config search path.
Perhaps you should add the directory containing `libpulse.pc'
to the PKG_CONFIG_PATH environment variable
Package 'libpulse' not found
Could not run pkg-config.

See //media/audio/BUILD.gn:369:3: whence it was called.
  pkg_config("libpulse") {
  ^-----------------------
See //media/media_options.gni:345:3: which caused the file to be included.
  "//media/audio",
  ^--------------


Reproducible: Always




Portage 3.0.63 (python 3.12.3-final-0, default/linux/amd64/23.0/split-usr/desktop, gcc-14, glibc-2.39-r6, 6.9.3-gentoo-x86_64 x86_64)
=================================================================
System uname: Linux-6.9.3-gentoo-x86_64-x86_64-AMD_Ryzen_9_3950X_16-Core_Processor-with-glibc2.39
KiB Mem:   131825248 total,  25340608 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Thu, 20 Jun 2024 18:30:00 +0000
Head commit of repository gentoo: 635bfed92b475c5c1916f8cf24bda0213d0fca79
Head commit of repository supertux88: 9ac4005069087de33ec712ee7be75ecd03344cec

Head commit of repository oubliette: da59471c8aacc8d99ea488a391a39d00d460428b

Head commit of repository palemoon: f3ddb368327153b5826c70f3c986195c78db356f

Head commit of repository pentoo: eb0c8d3fbcd632603076b4cfa30682b49934d834

Head commit of repository pf4public: 50d36fbc21701dc8bd8835f41d827ba3241b69ed

Head commit of repository pg_overlay: 088f29185facdf1426c94b7be981ec0cae8cf62c

Head commit of repository science: 1a7bcd2fee57658709001a7975c22ea5123fe29c

Head commit of repository stuff: 5f6591afe40fa755900616bb0bc473df8573f8ca

sh bash 5.1_p16-r12
ld GNU ld (Gentoo 2.42 p3) 2.42.0
app-misc/pax-utils:        1.3.7::gentoo
app-shells/bash:           5.1_p16-r12::gentoo
dev-build/autoconf:        2.13-r8::gentoo, 2.71-r7::gentoo
dev-build/automake:        1.16.5-r2::gentoo
dev-build/cmake:           3.28.5::gentoo
dev-build/libtool:         2.4.7-r4::gentoo
dev-build/make:            4.4.1-r1::gentoo
dev-build/meson:           1.4.0-r1::gentoo
dev-java/java-config:      2.3.3-r1::gentoo
dev-lang/perl:             5.38.2-r3::gentoo
dev-lang/python:           2.7.18_p16-r2::gentoo, 3.10.14_p1-r1::gentoo, 3.11.9-r1::gentoo, 3.12.3-r1::gentoo
dev-lang/rust:             1.77.1::gentoo
sys-apps/baselayout:       2.15::gentoo
sys-apps/openrc:           0.54::gentoo
sys-apps/sandbox:          2.38::gentoo
sys-devel/binutils:        2.42-r1::gentoo
sys-devel/binutils-config: 5.5::gentoo
sys-devel/clang:           17.0.6::gentoo, 18.1.7::gentoo
sys-devel/gcc:             12.3.1_p20240502::gentoo, 13.3.1_p20240614::gentoo, 14.1.1_p20240615::gentoo
sys-devel/gcc-config:      2.11::gentoo
sys-devel/lld:             17.0.6::gentoo, 18.1.7::gentoo
sys-devel/llvm:            17.0.6::gentoo, 18.1.7::gentoo
sys-kernel/linux-headers:  6.9::gentoo (virtual/os-headers)
sys-libs/glibc:            2.39-r6::gentoo
Repositories:

gentoo
    location: /tmp/repos/gentoo
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    volatile: True
    sync-rsync-verify-jobs: 1
    sync-rsync-verify-max-age: 24
    sync-rsync-extra-opts: --quiet --times --omit-dir-times --omit-link-times
    sync-rsync-verify-metamanifest: yes

localrepo
    location: /var/db/repos/localrepo
    masters: gentoo
    volatile: False

supertux88
    location: /var/db/repos/supertux88
    sync-type: git
    sync-uri: https://github.com/SuperTux88/gentoo-overlay.git
    masters: gentoo
    volatile: False

x-portage
    location: /usr/local/portage
    masters: gentoo
    priority: 0
    volatile: True

oubliette
    location: /var/lib/layman/oubliette
    sync-type: git
    sync-uri: https://github.com/nabbi/oubliette-overlay.git
    masters: gentoo
    priority: 50
    volatile: True

palemoon
    location: /var/lib/layman/palemoon
    sync-type: git
    sync-uri: https://github.com/deu/palemoon-overlay.git
    masters: gentoo
    priority: 50
    volatile: True

pentoo
    location: /var/lib/layman/pentoo
    sync-type: git
    sync-uri: https://github.com/pentoo/pentoo-overlay.git
    masters: gentoo
    priority: 50
    volatile: True

pf4public
    location: /var/lib/layman/pf4public
    sync-type: git
    sync-uri: https://github.com/PF4Public/gentoo-overlay.git
    masters: gentoo
    priority: 50
    volatile: True

pg_overlay
    location: /var/lib/layman/pg_overlay
    sync-type: git
    sync-uri: https://gitlab.com/Perfect_Gentleman/PG_Overlay.git
    masters: gentoo
    priority: 50
    volatile: True

science
    location: /var/lib/layman/science
    sync-type: git
    sync-uri: https://anongit.gentoo.org/git/proj/sci.git
    masters: gentoo
    priority: 50
    volatile: True

stuff
    location: /var/lib/layman/stuff
    sync-type: git
    sync-uri: https://github.com/istitov/stuff.git
    masters: gentoo
    priority: 50
    volatile: True

Binary Repositories:

binhost
    priority: 9999
    sync-uri: https://ftp.rnl.tecnico.ulisboa.pt/pub/gentoo/gentoo-distfiles/releases/amd64/binpackages/23.0/x86-64-v3

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="@FREE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=native"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /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 /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -pipe -march=native"
DISTDIR="/tmp/var/cache/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps=y --complete-graph --keep-going --jobs 10 --load-average 30"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GDK_PIXBUF_MODULE_FILE 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 XDG_STATE_HOME"
FCFLAGS="-O2 -pipe -march=native"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg-live config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync merge-wait multilib-strict network-sandbox news parallel-fetch pid-sandbox pkgdir-index-trusted 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=native"
GENTOO_MIRRORS="ftp://ftp.halifax.rwth-aachen.de/gentoo/ ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo"
LANG="fr_FR.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs"
LEX="flex"
MAKEOPTS="-j32"
PKGDIR="/var/cache/binpkgs"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS="--quiet --times --omit-dir-times --omit-link-times"
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="/tmp/var/tmp"
SHELL="/bin/bash"
USE="X a52 aac acl acpi alsa amd64 avif bluetooth branding bzip2 cairo cdda cdr cdrom cet crypt cuda cups dbus dri dropbox dts dvd dvdr elogind encode exif ffmpeg flac gdbm gif gmic gmp gpm gtk gui iconv icu ipv6 jpeg jpeg2k jpegxl kde kf6compat lcms libnotify libtirpc lzma mad mp3 mp4 mpeg multilib ncurses nls nvenc ogg openexr opengl openmp opus pam pango pcre pdf png policykit ppds qt5 qt6 readline replaygain sdl seccomp sound spell split-usr ssl startup-notification svg test-rust tiff truetype udev udisks unicode upower usb v4l vdpau vim-syntax vorbis vpx vulkan webp wxwidgets x264 xattr xcb xft xml xv xvid zlib zstd" ABI_X86="64" ADA_TARGET="gcc_12" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_anon authn_dbm authn_file authz_dbm authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir env expires ext_filter file_cache filter headers include info log_config logio mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets stage words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt sha sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 ntrip navcom oceanserver oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 tsip tripmate tnt ublox" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="libinput" KERNEL="linux" L10N="fr fr-FR" LCD_DEVICES="bayrad cfontz glk hd44780 lb216 lcdm001 mtxorb text" LLVM_TARGETS="NVPTX" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PERL_FEATURES="ithreads" PHP_TARGETS="php8-2" POSTGRES_TARGETS="postgres15" PYTHON_SINGLE_TARGET="python3_12" PYTHON_TARGETS="python3_12" RUBY_TARGETS="ruby25" SANE_BACKENDS="pixma net" VIDEO_CARDS="fbdev vesa dummy nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipp2p iface geoip fuzzy condition tarpit sysrq proto logmark ipmark dhcpmac delude chaos account"
Unset:  ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PYTHONPATH, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS
Comment 1 J.Borme 2024-06-20 21:08:32 UTC
Created attachment 896177 [details]
build log
Comment 2 Ionen Wolkens gentoo-dev 2024-06-21 00:15:48 UTC
Hm, I couldn't reproduce at first and it built fine without libpulse by passing use_pulseaudio=false thus never calling that bit... but if I enable USE=pdfium, then it the use_pulseaudio is never passed and is left enabled by default. Haven't looked at why yet.
Comment 3 Ionen Wolkens gentoo-dev 2024-06-21 00:22:56 UTC
Did USE="pdfium -pulseaudio" use to work for you with 6.7.1, or is it the first time you've either used that combination or 6.7.2?

I don't think I ever tested that combination myself (given long build I typically do minimal testing for that one), so wondering if it's been broken for a while.
Comment 4 Ionen Wolkens gentoo-dev 2024-06-21 00:35:52 UTC
(In reply to Ionen Wolkens from comment #3)
> Did USE="pdfium -pulseaudio" use to work for you with 6.7.1, or is it the
> first time you've either used that combination or 6.7.2?
Meant to say "or qtwebengine-6.x"
Comment 5 Ionen Wolkens gentoo-dev 2024-06-21 00:41:50 UTC
Well, either way no harm in fixing 6.7.1 as well. Can easily workaround this without patching anything using an explicit `use_pulseaudio=$(usex pulseaudio true false)` rather than rely on Qt to pass it for pdfium, the option ends up duplicated for the normal core build but that's harmless.
Comment 6 Larry the Git Cow gentoo-dev 2024-06-21 00:56:21 UTC
The bug has been closed via the following commit(s):

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

commit a3342167040e3534ea627b7ee3d7f123727cf064
Author:     Ionen Wolkens <ionen@gentoo.org>
AuthorDate: 2024-06-21 00:42:59 +0000
Commit:     Ionen Wolkens <ionen@gentoo.org>
CommitDate: 2024-06-21 00:53:14 +0000

    dev-qt/qtwebengine: fix build with USE="pdfium -pulseaudio" (qt6)
    
    Or hopefully anyway, have not tested the full build without libpulse,
    but it at least no longer looks for it.
    
    Unclear whether pdfium was automagically linking with it, or just
    looking for it for nothing while unused. The former technically
    needs a revbump, but not worth it given the long build times and
    how pdfium is scarcely used.
    
    Closes: https://bugs.gentoo.org/934635
    Signed-off-by: Ionen Wolkens <ionen@gentoo.org>

 dev-qt/qtwebengine/qtwebengine-6.7.1.ebuild    | 2 ++
 dev-qt/qtwebengine/qtwebengine-6.7.2.ebuild    | 2 ++
 dev-qt/qtwebengine/qtwebengine-6.7.9999.ebuild | 2 ++
 dev-qt/qtwebengine/qtwebengine-6.8.9999.ebuild | 2 ++
 dev-qt/qtwebengine/qtwebengine-6.9999.ebuild   | 2 ++
 5 files changed, 10 insertions(+)
Comment 7 Larry the Git Cow gentoo-dev 2024-06-21 01:10:14 UTC
The bug has been referenced in the following commit(s):

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

commit a2dfd665eeb527282c2bc51756b2881c134ce8b4
Author:     Ionen Wolkens <ionen@gentoo.org>
AuthorDate: 2024-06-21 01:00:40 +0000
Commit:     Ionen Wolkens <ionen@gentoo.org>
CommitDate: 2024-06-21 01:03:45 +0000

    dev-qt/qtwebengine: alternate fix for USE="pdfium -pulseaudio" (qt6)
    
    Just realized the issue is self-inflicted. The pkg-config check
    is done only if "use_pulseaudio && link_pulseaudio" and the latter
    is passed by us rather than Qt.
    
    It seemed harmless to be unconditional given the main switch
    disabled it (which technically sounds better), but given it
    doesn't for pdfium let's change that and do it for pipewire
    as well while at it.
    
    Bug: https://bugs.gentoo.org/934635
    Signed-off-by: Ionen Wolkens <ionen@gentoo.org>

 dev-qt/qtwebengine/qtwebengine-6.7.1.ebuild    | 6 ++----
 dev-qt/qtwebengine/qtwebengine-6.7.2.ebuild    | 6 ++----
 dev-qt/qtwebengine/qtwebengine-6.7.9999.ebuild | 6 ++----
 dev-qt/qtwebengine/qtwebengine-6.8.9999.ebuild | 6 ++----
 dev-qt/qtwebengine/qtwebengine-6.9999.ebuild   | 6 ++----
 5 files changed, 10 insertions(+), 20 deletions(-)
Comment 8 J.Borme 2024-06-21 18:39:49 UTC
(In reply to Ionen Wolkens from comment #3)
Indeed it failed to rebuild qtwebengine-6.7.1 when portage asked for USE=pdfium. I had forgotten about this part.
I can confirm your commit solves the problem with 6.7.2