Bug 2308904

Summary: glslang pkgconf file lists non-existent libraries
Product: [Fedora] Fedora Reporter: David Hampton <bugzilla>
Component: glslangAssignee: José Expósito <jexposit>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 40CC: airlied, ajax, epel-packagers-sig, jexposit
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: glslang-14.3.0-2.fc40 glslang-14.0.0-2.fc39 glslang-14.3.0-2.fc41 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2024-09-11 01:24:19 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 David Hampton 2024-09-01 14:53:23 UTC
The version of glslang shipped with fedora 39 and later no longer includes the OGLCompiler and HLSL libraries, but the glslang.pc file included in the package still lists those libraries as needed for linking.  This causes compiles to fail when using the output of "pkg-config --libs glslang" to link a program.



Reproducible: Always

Steps to Reproduce:
1.Create the trivial source code file bar.c:

int main (int argc, char **argv)
{
}

2. Compile it: gcc -o bar bar.c $(pkg-config --libs glslang)

Actual Results:  
/usr/bin/ld: cannot find -lHLSL: No such file or directory
/usr/bin/ld: cannot find -lOGLCompiler: No such file or directory
collect2: error: ld returned 1 exit status


Expected Results:  
Program links.

https://github.com/KhronosGroup/glslang?tab=readme-ov-file#news

Comment 1 Fedora Update System 2024-09-02 07:04:14 UTC
FEDORA-2024-9bf57ea000 (glslang-14.0.0-2.fc39) has been submitted as an update to Fedora 39.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-9bf57ea000

Comment 2 Fedora Update System 2024-09-02 07:04:14 UTC
FEDORA-2024-62448c8a39 (glslang-14.3.0-2.fc40) has been submitted as an update to Fedora 40.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-62448c8a39

Comment 3 José Expósito 2024-09-02 07:13:56 UTC
Fixed, if you can, test one of these builds and confirm that the issue is solved, please:

- Fedora 39: https://bodhi.fedoraproject.org/updates/FEDORA-2024-9bf57ea000
- Fedora 40: https://bodhi.fedoraproject.org/updates/FEDORA-2024-62448c8a39
- Fedora 41: https://bodhi.fedoraproject.org/updates/FEDORA-2024-4c33f35579

Comment 4 David Hampton 2024-09-02 13:08:46 UTC
I tried the Fedora 40 build, and it solves the problem.  Thank you.

Comment 5 Fedora Update System 2024-09-03 01:52:04 UTC
FEDORA-2024-62448c8a39 has been pushed to the Fedora 40 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2024-62448c8a39`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-62448c8a39

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

Comment 6 Fedora Update System 2024-09-03 02:32:22 UTC
FEDORA-2024-9bf57ea000 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-2024-9bf57ea000`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-9bf57ea000

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

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

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

Comment 8 Fedora Update System 2024-09-11 01:24:19 UTC
FEDORA-2024-62448c8a39 (glslang-14.3.0-2.fc40) has been pushed to the Fedora 40 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 9 Fedora Update System 2024-09-11 01:49:07 UTC
FEDORA-2024-9bf57ea000 (glslang-14.0.0-2.fc39) has been pushed to the Fedora 39 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 10 Fedora Update System 2024-09-13 20:47:19 UTC
FEDORA-2024-4c33f35579 (glslang-14.3.0-2.fc41) has been pushed to the Fedora 41 stable repository.
If problem still persists, please make note of it in this bug report.