Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 713902 - dev-lang/php:7.4: configure failed: no 'libjpeg' found
Summary: dev-lang/php:7.4: configure failed: no 'libjpeg' found
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: PHP Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-03-22 08:49 UTC by Jaco Kroon
Modified: 2020-03-26 22:50 UTC (History)
0 users

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


Attachments
config.log (config.log,340.14 KB, text/x-log)
2020-03-22 08:51 UTC, Jaco Kroon
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jaco Kroon 2020-03-22 08:49:39 UTC
checking for libjpeg... no
configure: error: Package requirements (libjpeg) were not met:

No package 'libjpeg' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables JPEG_CFLAGS
and JPEG_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.



Reproducible: Always
Comment 1 Jaco Kroon 2020-03-22 08:51:56 UTC
Created attachment 624146 [details]
config.log
Comment 2 Jaco Kroon 2020-03-22 08:53:51 UTC
Portage 2.3.89 (python 3.6.9-final-0, default/linux/amd64/17.0/no-multilib, gcc-9.2.0, glibc-2.29-r7, 5.1.15-uls x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-5.1.15-uls-x86_64-Intel-R-_Xeon-R-_CPU_E5420_@_2.50GHz-with-gentoo-2.6
KiB Mem:    10230856 total,    260016 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Sun, 22 Mar 2020 03:30:01 +0000
Head commit of repository gentoo: e2b256a450fcc8f1d5af354896300dda548eb236
sh bash 4.4_p12
ld GNU ld (Gentoo 2.32 p2) 2.32.0
app-shells/bash:          4.4_p12::gentoo
dev-lang/perl:            5.30.1::gentoo
dev-lang/python:          2.7.17-r1::gentoo, 3.6.9::gentoo
dev-util/cmake:           3.16.5::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.6-r1::gentoo
sys-apps/openrc:          0.34.11::gentoo
sys-apps/sandbox:         2.12::gentoo
sys-devel/autoconf:       2.69-r4::gentoo
sys-devel/automake:       1.11.6::gentoo, 1.12.6::gentoo, 1.13.4::gentoo, 1.14.1-r2::gentoo, 1.15.1-r2::gentoo
sys-devel/binutils:       2.32-r1::gentoo, 2.33.1-r1::gentoo
sys-devel/gcc:            9.2.0-r2::gentoo
sys-devel/gcc-config:     1.8-r1::gentoo
sys-devel/libtool:        2.4.6-r2::gentoo
sys-devel/make:           4.2.1::gentoo
sys-kernel/linux-headers: 4.13::gentoo (virtual/os-headers)
sys-libs/glibc:           2.29-r7::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://kerberos.uls.co.za/gentoo-portage
    priority: -1000
    sync-rsync-verify-jobs: 1
    sync-rsync-verify-max-age: 24
    sync-rsync-extra-opts: 
    sync-rsync-verify-metamanifest: yes

uls
    location: /usr/local/portage
    masters: gentoo
    priority: 0

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="@FREE Intel-SDP linux-firmware linux-fw-redistributable no-source-code ULS Digium DCC unRAR freedist as-is CCPL-Attribution-ShareAlike-3.0 intel-ucode"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=native -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php7.2/ext-active/ /etc/php/apache2-php7.3/ext-active/ /etc/php/cgi-php7.2/ext-active/ /etc/php/cgi-php7.3/ext-active/ /etc/php/cli-php7.2/ext-active/ /etc/php/cli-php7.3/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -march=native -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--quiet-build"
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"
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 xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_ZA.iso88591"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en_GB en_ZA en af"
MAKEOPTS="-j2"
PKGDIR="/var/cache/binpkgs"
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 acpi amd64 apache2 bash-completion bzip2 cli crypt diskio dri g729 gzip iconv iproute2 ipv6 ithreads jpeg kpathsea latin1 libtirpc logrotate mad mysql ncurses nptl nptlonly openmp pam pcre png readline seccomp sox split-usr ssl threads udev xattr xetex zlib" ABI_X86="64" ADA_TARGET="gnat_2018" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="alias auth_basic auth_digest authn_core authz_core authz_default authz_host authz_user autoindex cgi dav dav_fs dav_lock deflate dir env expires filter headers http2 include info log_config mime mime_magic negotiation proxy proxy_fcgi rewrite reqtimeout socache_shmcb status unixd version vhost_alias" APACHE2_MPMS="event" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2" 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" GRUB_PLATFORMS="pc" INPUT_DEVICES="libinput keyboard mouse" KERNEL="linux" L10N="en-GB en-ZA en af" 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_6" PYTHON_TARGETS="python2_7 python3_6" RUBY_TARGETS="ruby24 ruby25" USERLAND="GNU" VIDEO_CARDS="amdgpu fbdev intel nouveau radeon radeonsi vesa 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, LC_ALL, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 3 Thomas Deutschmann (RETIRED) gentoo-dev 2020-03-26 13:46:03 UTC
Please tell us what's your virtual/jpeg provider?
Comment 4 Thomas Deutschmann (RETIRED) gentoo-dev 2020-03-26 15:46:04 UTC
FYI, I tested with both providers, libjpeg-turbo and jpeg I cannot reproduce.
Both provider will install /usr/lib64/pkgconfig/libjpeg.pc.

So please check your installation of these packages.
Comment 5 Jaco Kroon 2020-03-26 21:20:16 UTC
From COMMON_DEPEND:

gd? ( virtual/jpeg:0 media-libs/libpng:0= )


morpheus ~ # equery list -ipo virtual/jpeg
 * Searching for jpeg in virtual ...
[I--] [??] virtual/jpeg-0-r2:0
[-P-] [  ] virtual/jpeg-0-r3:0
[I--] [??] virtual/jpeg-62:62


Interesting.

morpheus ~ # emerge -C virtual/jpeg
...


morpheus /etc/portage/package.mask # emerge -pv php:7.4
Calculating dependencies... done!
[ebuild     U  ] media-libs/jpeg-9c::gentoo [8d-r1::gentoo] USE="static-libs" 1,018 KiB
[ebuild  N     ] virtual/jpeg-0-r3::gentoo  USE="static-libs" 0 KiB
[ebuild  NS    ] dev-lang/php-7.4.3-r1:7.4::gentoo [7.2.26:7.2::gentoo, 7.3.13:7.3::gentoo] USE="acl apache2 bzip2 cli ctype curl fileinfo filter flatfile fpm gd iconv ipv6 json mysql mysqli opcache pcntl pdo phar posix readline session simplexml soap sockets spell ssl threads tokenizer unicode xml zlib -argon2 -bcmath -berkdb -calendar -cdb -cgi -cjk (-coverage) -debug -embed -enchant -exif -ffi% (-firebird) -ftp -gdbm -gmp -imap -inifile -intl -iodbc -kerberos -ldap -ldap-sasl -libedit -libressl -lmdb -mhash -mssql -nls -oci8-instant-client -odbc -phpdbg -postgres -qdbm (-selinux) -session-mm -sharedmem -snmp -sodium -sqlite -systemd -sysvipc -test -tidy -tokyocabinet -truetype -webp -xmlreader -xmlrpc -xmlwriter -xpm -xslt -zip (-hash%*) (-recode%) (-wddx%) (-zip-encryption%)" 0 KiB

And that solution does work.  So the provider (media-libs/jpeg) was simply out of date.

Perhaps the depend should be on a new enough version?
Comment 6 Thomas Deutschmann (RETIRED) gentoo-dev 2020-03-26 22:43:24 UTC
You don't do world upgrades, do you? :)

I'll update deps to require latest virtual.
Comment 7 Larry the Git Cow gentoo-dev 2020-03-26 22:50:16 UTC
The bug has been closed via the following commit(s):

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

commit e951555fa650a55e3af5251bc00146384cbaf7c9
Author:     Thomas Deutschmann <whissi@gentoo.org>
AuthorDate: 2020-03-26 22:49:28 +0000
Commit:     Thomas Deutschmann <whissi@gentoo.org>
CommitDate: 2020-03-26 22:50:07 +0000

    dev-lang/php: require virtual/jpeg provider which installs pkg-config file
    
    Closes: https://bugs.gentoo.org/713902
    Package-Manager: Portage-2.3.96, Repoman-2.3.22
    Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>

 dev-lang/php/php-7.2.29.ebuild | 2 +-
 dev-lang/php/php-7.3.16.ebuild | 2 +-
 dev-lang/php/php-7.4.4.ebuild  | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)