Bug 272337 - [audio/plasma5-kpipewire] avcodec missing.
Summary: [audio/plasma5-kpipewire] avcodec missing.
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Jan Beich
URL:
Keywords: needs-patch
Depends on:
Blocks: 271641 272004
  Show dependency treegraph
 
Reported: 2023-07-02 20:43 UTC by dgilbert
Modified: 2023-07-07 21:36 UTC (History)
0 users

See Also:
jbeich: merge-quarterly+


Attachments
poudriere log (52.63 KB, text/plain)
2023-07-02 20:43 UTC, dgilbert
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description dgilbert 2023-07-02 20:43:13 UTC
Created attachment 243153 [details]
poudriere log

I'm including the whole poudriere log, but pertinantly, libavcodec seems to be missing.

-- Checking for module 'libpipewire-0.3'
--   Found libpipewire-0.3, version 0.3.62
-- Checking for module 'libavcodec'
--   Package 'libavcodec', required by 'virtual:world', not found
-- Checking for module 'libavutil'
--   Package 'libavutil', required by 'virtual:world', not found
-- Checking for module 'libavformat'
--   Package 'libavformat', required by 'virtual:world', not found
-- Checking for module 'gbm'
--   Found gbm, version 22.3.7
-- Checking for module 'libswscale'
--   Package 'libswscale', required by 'virtual:world', not found
-- Found epoxy: /usr/local/lib/libepoxy.so (found suitable version "1.5.9", minimum required is "1.3") 
-- Found PkgConfig: /usr/local/bin/pkgconf (found version "1.8.1") 
-- Found Libdrm: /usr/local/lib/libdrm.so (found suitable version "2.4.115", minimum required is "2.4.62") 
-- Performing Test COMPILER_HAS_HIDDEN_VISIBILITY
-- Performing Test COMPILER_HAS_HIDDEN_VISIBILITY - Success
-- Performing Test COMPILER_HAS_HIDDEN_INLINE_VISIBILITY
-- Performing Test COMPILER_HAS_HIDDEN_INLINE_VISIBILITY - Success
-- Performing Test COMPILER_HAS_DEPRECATED_ATTR
-- Performing Test COMPILER_HAS_DEPRECATED_ATTR - Success
-- Configuring done (9.2s)
CMake Error at src/CMakeLists.txt:120 (target_link_libraries):
  Target "KPipeWireRecord" links to:

    PkgConfig::AVCodec

  but the target was not found.  Possible reasons include:

    * There is a typo in the target name.
    * A find_package call is missing for an IMPORTED target.
    * An ALIAS target is missing.
Comment 1 Jan Beich freebsd_committer freebsd_triage 2023-07-07 21:07:03 UTC
plasma5-kpipewire/LIB_DEPENDS gets confused due to alsa-plugins/FFMPEG=on i.e., both ffmpeg and ffmpeg4 provide libavcodec.so. ports f0dadc529fe9 warned against such issues.
Comment 2 commit-hook freebsd_committer freebsd_triage 2023-07-07 21:33:50 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=df94027c843002a2abe044fa124eb5956a385932

commit df94027c843002a2abe044fa124eb5956a385932
Author:     Jan Beich <jbeich@FreeBSD.org>
AuthorDate: 2023-07-07 21:22:40 +0000
Commit:     Jan Beich <jbeich@FreeBSD.org>
CommitDate: 2023-07-07 21:33:14 +0000

    audio/alsa-plugins: unbreak FFMPEG=on after 685e477b807c

    checking for LIBAV... no
    checking for avcodec_open in -lavcodec... no
    [...]
    configure:13617: checking for LIBAV
    configure:13624: $PKG_CONFIG --exists --print-errors "libavcodec libavutil libavresample"
    Package libavresample was not found in the pkg-config search path.
    Perhaps you should add the directory containing `libavresample.pc'
    to the PKG_CONFIG_PATH environment variable
    Package 'libavresample', required by 'virtual:world', not found
    configure:13627: $? = 1
    [...]
    ====> Checking for pkg-plist issues (check-plist)
    ===> Parsing plist
    ===> Checking for items in STAGEDIR missing from pkg-plist
    ===> Checking for items in pkg-plist which are not in STAGEDIR
    Error: Missing: etc/alsa/conf.d/10-rate-lav.conf
    Error: Missing: etc/alsa/conf.d/60-a52-encoder.conf
    Error: Missing: lib/alsa-lib/libasound_module_pcm_a52.la
    Error: Missing: lib/alsa-lib/libasound_module_pcm_a52.so
    Error: Missing: lib/alsa-lib/libasound_module_rate_lavrate.la
    Error: Missing: lib/alsa-lib/libasound_module_rate_lavrate.so
    Error: Missing: lib/alsa-lib/libasound_module_rate_lavrate_fast.so
    Error: Missing: lib/alsa-lib/libasound_module_rate_lavrate_faster.so
    Error: Missing: lib/alsa-lib/libasound_module_rate_lavrate_high.so
    Error: Missing: lib/alsa-lib/libasound_module_rate_lavrate_higher.so
    Error: Missing: share/alsa/alsa.conf.d/10-rate-lav.conf
    Error: Missing: share/alsa/alsa.conf.d/60-a52-encoder.conf
    ===> Error: Plist issues found.
    *** Error code 1

    PR:             271641 272337

 audio/alsa-plugins/Makefile | 6 ++++--
 audio/alsa-plugins/distinfo | 2 ++
 2 files changed, 6 insertions(+), 2 deletions(-)
Comment 3 commit-hook freebsd_committer freebsd_triage 2023-07-07 21:33:51 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=38462c18edacfc7e912783cb164065eab8d38be2

commit 38462c18edacfc7e912783cb164065eab8d38be2
Author:     Jan Beich <jbeich@FreeBSD.org>
AuthorDate: 2023-07-07 21:02:50 +0000
Commit:     Jan Beich <jbeich@FreeBSD.org>
CommitDate: 2023-07-07 21:32:45 +0000

    audio/alsa-plugins: revert ffmpeg workaround

    Not a leaf consumer. Depending on ffmpeg4 can cause bustage or crashes
    in ffmpeg consumers.

    PR:             271641 272337

    This reverts commit ca82785515c8ecfa4bab73b7539a688c343f327e.

 audio/alsa-plugins/Makefile | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
Comment 4 commit-hook freebsd_committer freebsd_triage 2023-07-07 21:34:55 UTC
A commit in branch 2023Q3 references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=b2bad281f662159af0709d978dd5dcb5c375d863

commit b2bad281f662159af0709d978dd5dcb5c375d863
Author:     Jan Beich <jbeich@FreeBSD.org>
AuthorDate: 2023-07-07 21:02:50 +0000
Commit:     Jan Beich <jbeich@FreeBSD.org>
CommitDate: 2023-07-07 21:33:57 +0000

    audio/alsa-plugins: revert ffmpeg workaround

    Not a leaf consumer. Depending on ffmpeg4 can cause bustage or crashes
    in ffmpeg consumers.

    PR:             271641 272337

    This reverts commit ca82785515c8ecfa4bab73b7539a688c343f327e.

    (cherry picked from commit 38462c18edacfc7e912783cb164065eab8d38be2)

 audio/alsa-plugins/Makefile | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
Comment 5 commit-hook freebsd_committer freebsd_triage 2023-07-07 21:34:57 UTC
A commit in branch 2023Q3 references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=210327adb060c183ed7e05d6acf029b93f3bdd8b

commit 210327adb060c183ed7e05d6acf029b93f3bdd8b
Author:     Jan Beich <jbeich@FreeBSD.org>
AuthorDate: 2023-07-07 21:22:40 +0000
Commit:     Jan Beich <jbeich@FreeBSD.org>
CommitDate: 2023-07-07 21:33:57 +0000

    audio/alsa-plugins: unbreak FFMPEG=on after 685e477b807c

    checking for LIBAV... no
    checking for avcodec_open in -lavcodec... no
    [...]
    configure:13617: checking for LIBAV
    configure:13624: $PKG_CONFIG --exists --print-errors "libavcodec libavutil libavresample"
    Package libavresample was not found in the pkg-config search path.
    Perhaps you should add the directory containing `libavresample.pc'
    to the PKG_CONFIG_PATH environment variable
    Package 'libavresample', required by 'virtual:world', not found
    configure:13627: $? = 1
    [...]
    ====> Checking for pkg-plist issues (check-plist)
    ===> Parsing plist
    ===> Checking for items in STAGEDIR missing from pkg-plist
    ===> Checking for items in pkg-plist which are not in STAGEDIR
    Error: Missing: etc/alsa/conf.d/10-rate-lav.conf
    Error: Missing: etc/alsa/conf.d/60-a52-encoder.conf
    Error: Missing: lib/alsa-lib/libasound_module_pcm_a52.la
    Error: Missing: lib/alsa-lib/libasound_module_pcm_a52.so
    Error: Missing: lib/alsa-lib/libasound_module_rate_lavrate.la
    Error: Missing: lib/alsa-lib/libasound_module_rate_lavrate.so
    Error: Missing: lib/alsa-lib/libasound_module_rate_lavrate_fast.so
    Error: Missing: lib/alsa-lib/libasound_module_rate_lavrate_faster.so
    Error: Missing: lib/alsa-lib/libasound_module_rate_lavrate_high.so
    Error: Missing: lib/alsa-lib/libasound_module_rate_lavrate_higher.so
    Error: Missing: share/alsa/alsa.conf.d/10-rate-lav.conf
    Error: Missing: share/alsa/alsa.conf.d/60-a52-encoder.conf
    ===> Error: Plist issues found.
    *** Error code 1

    PR:             271641 272337
    (cherry picked from commit df94027c843002a2abe044fa124eb5956a385932)

 audio/alsa-plugins/Makefile | 6 ++++--
 audio/alsa-plugins/distinfo | 2 ++
 2 files changed, 6 insertions(+), 2 deletions(-)