Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 938677 - Missing build dependency (libwebp) for hyprlock & hyprpaper ebuild
Summary: Missing build dependency (libwebp) for hyprlock & hyprpaper ebuild
Status: RESOLVED DUPLICATE of bug 936655
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal minor (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-08-29 12:48 UTC by Michal Vu
Modified: 2024-08-29 12:49 UTC (History)
1 user (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 Michal Vu 2024-08-29 12:48:41 UTC
Hyprlock & Hyprpaper require 'media-libs/libwebp' as a build dependency to successfully compile. As libwebp isn't kept as a dependency and isn't included in @world by default, it gets removed after running 'emerge --depclean', which will trigger portage to ask for 'emerge @preserved-rebuild'.

Running 'emerge @preserved-rebuild' will not run successfully due to Hyprlock and Hyprpaper needing 'libwebp' to compile. The temporary solution is to simply add 'libwebp' to the @world.

I run the live ebuild of Hyprlock and Hyprpaper, so I don't know if this affects the specific ebuild versions or not.

Reproducible: Always

Steps to Reproduce:
1. Install live ebuild of Hyprlock & Hyprpaper (this should fail unless libwebp was explicitly installed beforehand)
2. Remove libwebp by running 'emerge --deselect libwebp && emerge --depclean'
3. Portage will recommend 'emerge @preserved-rebuild'
4. Rebuild fails due to missing libwebp build dependency
Actual Results:  
emerge @preserved-rebuild fails unless libwebp was manually installed, installing libwebp will remove the need for runnning 'emerge @preserved-rebuild'


My computers run OpenRC and systemd, the problem occurs on both of them (hyprlock-9999 and hyprpaper-9999).

Portage when libwebp was removed due to 'depclean':
!!! existing preserved libs:
>>> package: media-libs/libwebp-1.4.0
 *  - /usr/lib64/libwebp.so.7
 *  - /usr/lib64/libwebp.so.7.1.9
 *      used by /usr/bin/hyprlock (gui-apps/hyprlock-9999)
 *      used by /usr/bin/hyprpaper (gui-apps/hyprpaper-9999)
 *  - /usr/lib64/libsharpyuv.so.0
 *  - /usr/lib64/libsharpyuv.so.0.1.0
Use emerge @preserved-rebuild to rebuild packages using these libraries

This is the error message if 'emerge @preserved-rebuild' was ran without libwebp on the system:

-- Found PkgConfig: /usr/bin/x86_64-pc-linux-gnu-pkg-config (found version "2.3.0")
-- Found OpenGL: /usr/lib64/libOpenGL.so
-- Checking for modules 'wayland-client;wayland-protocols;wayland-egl;hyprlang>=0.4.0;egl;opengl;xkbcommon;libjpeg;libwebp;libmagic;cairo;pangocairo;libdrm;gbm;hyprutils>=0.2.0'
--   Package 'libwebp' not found
CMake Error at /usr/share/cmake/Modules/FindPkgConfig.cmake:645 (message):
  The following required packages were not found:

   - libwebp

Call Stack (most recent call first):
  /usr/share/cmake/Modules/FindPkgConfig.cmake:873 (_pkg_check_modules_internal)
  CMakeLists.txt:40 (pkg_check_modules)


-- Configuring incomplete, errors occurred!
 * ERROR: gui-apps/hyprlock-9999::guru failed (configure phase):
 *   cmake failed
 *
 * Call stack:
 *     ebuild.sh, line  136:  Called src_configure
 *   environment, line 2720:  Called cmake_src_configure
 *   environment, line 1230:  Called die
 * The specific snippet of code:
 *       "${CMAKE_BINARY}" "${cmakeargs[@]}" "${CMAKE_USE_DIR}" || die "cmake failed";
 *
 * If you need support, post the output of `emerge --info '=gui-apps/hyprlock-9999::guru'`,
 * the complete build log and the output of `emerge -pqv '=gui-apps/hyprlock-9999::guru'`.
 * The complete build log is located at '/var/tmp/portage/gui-apps/hyprlock-9999/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/gui-apps/hyprlock-9999/temp/environment'.
 * Working directory: '/var/tmp/portage/gui-apps/hyprlock-9999/work/hyprlock-9999_build'
 * S: '/var/tmp/portage/gui-apps/hyprlock-9999/work/hyprlock-9999'

>>> Failed to emerge gui-apps/hyprlock-9999, Log file:
Comment 1 Michal Vu 2024-08-29 12:49:54 UTC

*** This bug has been marked as a duplicate of bug 936655 ***