Bug 2308904 - glslang pkgconf file lists non-existent libraries
Summary: glslang pkgconf file lists non-existent libraries
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: glslang
Version: 40
Hardware: All
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: José Expósito
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-09-01 14:53 UTC by David Hampton
Modified: 2024-09-13 20:47 UTC (History)
4 users (show)

Fixed In Version: glslang-14.3.0-2.fc40 glslang-14.0.0-2.fc39 glslang-14.3.0-2.fc41
Clone Of:
Environment:
Last Closed: 2024-09-11 01:24:19 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.