Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 812398 - media-libs/x265-3.5: not installing pkg-config file (was: media-video/ffmpeg4.4-r1 ERROR: x265 not found using pkg-config)
Summary: media-libs/x265-3.5: not installing pkg-config file (was: media-video/ffmpeg4...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: Normal normal (vote)
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 814662
  Show dependency tree
 
Reported: 2021-09-10 07:30 UTC by vastchen
Modified: 2022-02-22 04:35 UTC (History)
2 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 vastchen 2021-09-10 07:30:52 UTC
I'm no sure bug ffmpeg or x265 but is install ffmpeg error.

x265 not found using pkg-config
Comment 1 Yixun Lan archtester gentoo-dev 2021-09-10 07:38:31 UTC
please always provide full build log, and check if USE="x265" enabled for ffmpeg
Comment 2 Mike Gilbert gentoo-dev 2021-09-11 01:47:43 UTC
Feel free to re-open the bug report once you have attached a full build log and provided emerge --info.
Comment 3 Thomas Deutschmann (RETIRED) gentoo-dev 2021-09-23 15:17:06 UTC
I run into the same. Incoming build.log.
Comment 4 Thomas Deutschmann (RETIRED) gentoo-dev 2021-09-23 15:21:00 UTC
> * Package:    media-video/ffmpeg-4.4-r1
>  * Repository: gentoo
>  * Maintainer: media-video@gentoo.org
>  * USE:        abi_x86_64 amd64 bzip2 cpu_flags_x86_aes cpu_flags_x86_avx cpu_flags_x86_avx2 cpu_flags_x86_fma3 cpu_flags_x86_mmx cpu_flags_x86_mmxext cpu_flags_x86_sse cpu_flags_x86_sse2 cpu_flags_x86_sse3 cpu_flags_x86_sse4_1 cpu_flags_x86_sse4_2 cpu_flags_x86_ssse3 dav1d elibc_glibc encode fftools_aviocat fftools_cws2fws fftools_ffescape fftools_ffeval fftools_ffhash fftools_fourcc2pixfmt fftools_graph2dot fftools_ismindex fftools_pktdumper fftools_qt-faststart fftools_sidxindex fftools_trasher gnutls gpl iconv kernel_linux mp3 network openh264 postproc threads userland_GNU vorbis vpx webp x264 x265 xvid zlib
>  * FEATURES:   ccache network-sandbox preserve-libs sandbox userpriv usersandbox
> >>> Unpacking source...
> >>> Unpacking ffmpeg-4.4.tar.bz2 to /var/tmp/portage/media-video/ffmpeg-4.4-r1/work
> >>> Source unpacked in /var/tmp/portage/media-video/ffmpeg-4.4-r1/work
> >>> Preparing source in /var/tmp/portage/media-video/ffmpeg-4.4-r1/work/ffmpeg-4.4 ...
>  * Applying chromium-r1.patch ...
>  [ ok ]
> >>> Source prepared.
> >>> Configuring source in /var/tmp/portage/media-video/ffmpeg-4.4-r1/work/ffmpeg-4.4 ...
>  * abi_x86_64.amd64: running multilib-minimal_abi_src_configure
> /var/tmp/portage/media-video/ffmpeg-4.4-r1/work/ffmpeg-4.4/configure --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/lib64 --docdir=/usr/share/doc/ffmpeg-4.4-r1/html --mandir=/usr/share/man --enable-shared --cc=x86_64-pc-linux-gnu-gcc --cxx=x86_64-pc-linux-gnu-g++ --ar=x86_64-pc-linux-gnu-ar --nm=x86_64-pc-linux-gnu-nm --ranlib=x86_64-pc-linux-gnu-ranlib --pkg-config=x86_64-pc-linux-gnu-pkg-config --optflags=-O2 -pipe -march=skylake-avx512 -mabm -mno-sgx -mrtm --extra-libs= --disable-static --enable-avfilter --enable-avresample --disable-stripping --disable-optimizations --disable-libcelt --disable-indev=v4l2 --disable-outdev=v4l2 --disable-indev=alsa --disable-indev=oss --disable-indev=jack --disable-indev=sndio --disable-outdev=alsa --disable-outdev=oss --disable-outdev=sndio --enable-bzlib --disable-runtime-cpudetect --disable-debug --disable-gcrypt --enable-gnutls --disable-gmp --enable-gpl --disable-hardcoded-tables --enable-iconv --disable-libxml2 --disable-lzma --enable-network --disable-opencl --disable-openssl --enable-postproc --disable-libsmbclient --disable-ffplay --disable-sdl2 --disable-vaapi --disable-vdpau --disable-vulkan --disable-xlib --disable-libxcb --disable-libxcb-shm --disable-libxcb-xfixes --enable-zlib --disable-libcdio --disable-libiec61883 --disable-libdc1394 --disable-libcaca --disable-openal --disable-opengl --disable-libv4l2 --disable-libpulse --disable-libdrm --disable-libjack --disable-libopencore-amrwb --disable-libopencore-amrnb --disable-libcodec2 --enable-libdav1d --disable-libfdk-aac --disable-libopenjpeg --disable-libbluray --disable-libgme --disable-libgsm --disable-libaribb24 --disable-mmal --disable-libmodplug --disable-libopus --disable-libilbc --disable-librtmp --disable-libssh --disable-libspeex --disable-libsrt --disable-librsvg --disable-ffnvcodec --enable-libvorbis --enable-libvpx --disable-libzvbi --disable-appkit --disable-libbs2b --disable-chromaprint --disable-cuda-llvm --disable-libflite --disable-frei0r --disable-libfribidi --disable-fontconfig --disable-ladspa --disable-libass --disable-libtesseract --disable-lv2 --disable-libfreetype --disable-libvidstab --disable-librubberband --disable-libzmq --disable-libzimg --disable-libsoxr --enable-pthreads --disable-libvo-amrwbenc --enable-libmp3lame --disable-libkvazaar --disable-libaom --enable-libopenh264 --disable-librav1e --disable-libsnappy --disable-libtheora --disable-libtwolame --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --disable-armv5te --disable-armv6 --disable-armv6t2 --disable-neon --disable-vfp --disable-vfpv3 --disable-armv8 --disable-mipsdsp --disable-mipsdspr2 --disable-mipsfpu --disable-altivec --disable-vsx --disable-power8 --disable-amd3dnow --disable-amd3dnowext --disable-fma4 --disable-xop --cpu=skylake-avx512 --disable-doc --disable-htmlpages --enable-manpages
> ERROR: x265 not found using pkg-config
> 
> If you think configure made a mistake, make sure you are using the latest
> version from Git.  If the latest version fails, report the problem to the
> ffmpeg-user@ffmpeg.org mailing list or IRC #ffmpeg on irc.freenode.net.
> Include the log file "ffbuild/config.log" produced by configure as this will help
> solve the problem.
>  * ERROR: media-video/ffmpeg-4.4-r1::gentoo failed (configure phase):
>  *   (no error message)
>  * 
>  * Call stack:
>  *     ebuild.sh, line  127:  Called src_configure
>  *   environment, line 2553:  Called multilib-minimal_src_configure
>  *   environment, line 1776:  Called multilib_foreach_abi 'multilib-minimal_abi_src_configure'
>  *   environment, line 2029:  Called multibuild_foreach_variant '_multilib_multibuild_wrapper' 'multilib-minimal_abi_src_configure'
>  *   environment, line 1706:  Called _multibuild_run '_multilib_multibuild_wrapper' 'multilib-minimal_abi_src_configure'
>  *   environment, line 1704:  Called _multilib_multibuild_wrapper 'multilib-minimal_abi_src_configure'
>  *   environment, line  783:  Called multilib-minimal_abi_src_configure
>  *   environment, line 1770:  Called multilib_src_configure
>  *   environment, line 2340:  Called die
>  * The specific snippet of code:
>  *       "${@}" || die;
>  * 
>  * If you need support, post the output of `emerge --info '=media-video/ffmpeg-4.4-r1::gentoo'`,
>  * the complete build log and the output of `emerge -pqv '=media-video/ffmpeg-4.4-r1::gentoo'`.
>  * The complete build log is located at '/var/tmp/portage/media-video/ffmpeg-4.4-r1/temp/build.log'.
>  * The ebuild environment file is located at '/var/tmp/portage/media-video/ffmpeg-4.4-r1/temp/environment'.
>  * Working directory: '/var/tmp/portage/media-video/ffmpeg-4.4-r1/work/ffmpeg-4.4-abi_x86_64.amd64'
>  * S: '/var/tmp/portage/media-video/ffmpeg-4.4-r1/work/ffmpeg-4.4'



> * Contents of media-libs/x265-3.5:
> /usr
> /usr/bin
> /usr/bin/x265
> /usr/include
> /usr/include/x265.h
> /usr/include/x265_config.h
> /usr/lib64
> /usr/share
> /usr/share/doc
> /usr/share/doc/x265-3.5
> /usr/share/doc/x265-3.5/intra
> /usr/share/doc/x265-3.5/intra/intra-16x16.txt.bz2
> /usr/share/doc/x265-3.5/intra/intra-32x32.txt.bz2
> /usr/share/doc/x265-3.5/intra/intra-4x4.txt.bz2
> /usr/share/doc/x265-3.5/intra/intra-8x8.txt.bz2
> /usr/share/doc/x265-3.5/reST
> /usr/share/doc/x265-3.5/reST/Makefile.bz2
> /usr/share/doc/x265-3.5/reST/api.rst.bz2
> /usr/share/doc/x265-3.5/reST/cli.rst.bz2
> /usr/share/doc/x265-3.5/reST/conf.py.bz2
> /usr/share/doc/x265-3.5/reST/index.rst.bz2
> /usr/share/doc/x265-3.5/reST/introduction.rst.bz2
> /usr/share/doc/x265-3.5/reST/lossless.rst.bz2
> /usr/share/doc/x265-3.5/reST/presets.rst.bz2
> /usr/share/doc/x265-3.5/reST/releasenotes.rst.bz2
> /usr/share/doc/x265-3.5/reST/svthevc.rst.bz2
> /usr/share/doc/x265-3.5/reST/threading.rst.bz2
> /usr/share/doc/x265-3.5/reST/x265.rst.bz2
> /usr/share/doc/x265-3.5/uncrustify
> /usr/share/doc/x265-3.5/uncrustify/codingstyle.cfg.bz2

> media-libs/x265-3.5::gentoo was built with the following:
> USE="10bit 12bit -numa -pic -test" ABI_X86="(64) -32 (-x32)"
> FEATURES="userfetch multilib-strict usersandbox usersync sfperms protect-owned unmerge-logs merge-sync pid-sandbox ipc-sandbox binpkg-dostrip fixlafiles qa-unresolved-soname-deps userpriv unmerge-orphans strict news parallel-fetch config-protect-if-modified assume-digests buildpkg preserve-libs distlocks xattr ebuild-locks cgroup ccache binpkg-logs network-sandbox sandbox unknown-features-warn binpkg-docompress"
Comment 5 Thomas Deutschmann (RETIRED) gentoo-dev 2021-09-23 15:27:56 UTC
Downgrading to <media-libs/x265-3.5 (=3.4) fixes the problem -- looks like 3.5 isn't installing pkg-config file.
Comment 6 Larry the Git Cow gentoo-dev 2021-09-25 03:43:11 UTC
The bug has been closed via the following commit(s):

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

commit d41450c586971bf48a4a8cdf04e057b7af77066d
Author:     Ionen Wolkens <ionen@gentoo.org>
AuthorDate: 2021-09-25 03:24:56 +0000
Commit:     Ionen Wolkens <ionen@gentoo.org>
CommitDate: 2021-09-25 03:41:02 +0000

    media-libs/x265: quickfix for missing lib and .pc if no git(1)
    
    -DGIT_ARCHETYPE is not a real option but something the Version.cmake
    would hard set(...) and overwrite, however if dev-vcs/git is not
    found it skips that entirely.
    
    i.e. if GIT_FOUND then use .git if found, else use .txt version.
    
    Setting this tells it to use the latter if missing, if found then
    doing so does nothing given cmake will overwrite it.
    
    If no version/tag, the source/CMakeLists.txt acts on this comment:
    
        "# shared library is not installed if a tag is not found"
    
    Closes: https://bugs.gentoo.org/812398
    Closes: https://bugs.gentoo.org/814116
    Signed-off-by: Ionen Wolkens <ionen@gentoo.org>

 media-libs/x265/x265-3.5-r1.ebuild | 219 +++++++++++++++++++++++++++++++++++++
 media-libs/x265/x265-9999.ebuild   |   1 +
 2 files changed, 220 insertions(+)