Bug 2240736

Summary: openjpeg2-2.5.0-3.fc38.src.rpm missing build dependency for liblerc-devel
Product: [Fedora] Fedora Reporter: Joseph D. Wagner <joe>
Component: openjpeg2Assignee: Sandro Mani <manisandro>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: unspecified    
Version: 38CC: hobbes1069, manisandro
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: openjpeg2-2.5.0-5.fc38 openjpeg2-2.5.0-5.fc39 openjpeg2-2.5.0-5.fc37 Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-09-28 01:36:20 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Joseph D. Wagner 2023-09-26 08:15:59 UTC
# rpmbuild --rebuild "openjpeg2-2.5.0-3.fc38.src.rpm"

results in the error:
/usr/bin/ld: cannot find -lLerc: No such file or directory

Installing liblerc-devel resolves the issue and allows the package to build successfully.

The spec file should be updated to include a Build Prerequisite for liblerc-devel.

Reproducible: Always

Steps to Reproduce:
Run the following without liblerc-devel installed:
# rpmbuild --rebuild "openjpeg2-2.5.0-3.fc38.src.rpm"
Actual Results:  
Makefile command:
/usr/lib64/ccache/gcc -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64  -march=znver2 -mtune=znver2 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -O2 -g -DNDEBUG -Wl,-z,relro -Wl,--as-needed  -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes -rdynamic CMakeFiles/opj_decompress.dir/opj_decompress.c.o CMakeFiles/opj_decompress.dir/convert.c.o CMakeFiles/opj_decompress.dir/convertbmp.c.o CMakeFiles/opj_decompress.dir/index.c.o CMakeFiles/opj_decompress.dir/__/common/color.c.o CMakeFiles/opj_decompress.dir/__/common/opj_getopt.c.o CMakeFiles/opj_decompress.dir/converttif.c.o CMakeFiles/opj_decompress.dir/convertpng.c.o -o ../../../bin/opj2_decompress  -Wl,-rpath,/home/joseph/rpmbuild/BUILD/openjpeg-2.5.0/redhat-linux-build/bin: ../../../bin/libopenjp2.so.2.5.0 -lpng -lz -ltiff -ltiff -lwebp -lzstd -lLerc -ljbig -ljpeg -lz -lm -llcms2 -llcms2 -lm -lz -lm -lrt -ltiff -ltiff -lwebp -lzstd -lLerc -ljbig -ljpeg -lz -llcms2 -llcms2 -lm -lrt 

Produces Error:
/usr/bin/ld: cannot find -lLerc: No such file or directory

Expected Results:  
Should error out before rebuild starts with an error message that it is missing the Build Prerequisite liblerc-devel.

Comment 1 Fedora Update System 2023-09-26 11:26:53 UTC
FEDORA-2023-e005f257c8 has been submitted as an update to Fedora 39. https://bodhi.fedoraproject.org/updates/FEDORA-2023-e005f257c8

Comment 2 Fedora Update System 2023-09-26 11:26:53 UTC
FEDORA-2023-e1b677cf5a has been submitted as an update to Fedora 38. https://bodhi.fedoraproject.org/updates/FEDORA-2023-e1b677cf5a

Comment 3 Fedora Update System 2023-09-26 11:26:54 UTC
FEDORA-2023-0f0e6ddea3 has been submitted as an update to Fedora 37. https://bodhi.fedoraproject.org/updates/FEDORA-2023-0f0e6ddea3

Comment 4 Fedora Update System 2023-09-27 01:25:41 UTC
FEDORA-2023-e005f257c8 has been pushed to the Fedora 39 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2023-e005f257c8`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2023-e005f257c8

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 5 Fedora Update System 2023-09-27 01:29:39 UTC
FEDORA-2023-0f0e6ddea3 has been pushed to the Fedora 37 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2023-0f0e6ddea3`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2023-0f0e6ddea3

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 6 Fedora Update System 2023-09-27 01:35:42 UTC
FEDORA-2023-e1b677cf5a has been pushed to the Fedora 38 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2023-e1b677cf5a`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2023-e1b677cf5a

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 7 Fedora Update System 2023-09-28 01:36:20 UTC
FEDORA-2023-e1b677cf5a has been pushed to the Fedora 38 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 8 Fedora Update System 2023-10-03 00:18:41 UTC
FEDORA-2023-e005f257c8 has been pushed to the Fedora 39 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 9 Fedora Update System 2023-10-12 01:17:31 UTC
FEDORA-2023-0f0e6ddea3 has been pushed to the Fedora 37 stable repository.
If problem still persists, please make note of it in this bug report.