Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#65595 - [openexr] Missing prefix in pc files

Attached to Project: Arch Linux
Opened by Martin (Martin256) - Sunday, 23 February 2020, 07:08 GMT
Last edited by Antonio Rojas (arojas) - Sunday, 23 February 2020, 08:14 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Antonio Rojas (arojas)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Description:
Prefix is missing from pkg-config file in 2.4.1-1.


Additional info:

Output from "pkg-config --cflags OpenEXR" with 2.4.1-1:

$ pkg-config --cflags OpenEXR
-Iinclude/OpenEXR -pthread -Iinclude

$ cat /usr/lib/pkgconfig/OpenEXR.pc
##
## SPDX-License-Identifier: BSD-3-Clause
## Copyright Contributors to the OpenEXR Project.
##

prefix=/usr
exec_prefix=bin
libdir=lib
includedir=include
OpenEXR_includedir=include/OpenEXR
libsuffix=-2_4

Name: OpenEXR
Description: OpenEXR image library
Version: 2.4.1

Libs: -L${libdir} -lIlmImf${libsuffix}
Cflags: -I${OpenEXR_includedir}
Requires: IlmBase
Libs.private: -lz


Output when downgrading to 2.4.0-7:

$ pkg-config --cflags OpenEXR
-I/usr/include/OpenEXR -pthread

$ cat /usr/lib/pkgconfig/OpenEXR.pc
##
## SPDX-License-Identifier: BSD-3-Clause
## Copyright Contributors to the OpenEXR Project.
##

prefix=/usr
exec_prefix=bin
libdir=${prefix}/lib
includedir=${prefix}/include
OpenEXR_includedir=${prefix}/include/OpenEXR
libsuffix=-2_4

Name: OpenEXR
Description: OpenEXR image library
Version: 2.4.0

Libs: -L${libdir} -lIlmImf${libsuffix}
Cflags: -I${OpenEXR_includedir}
Requires: IlmBase
Libs.private: -lz


Building OpenEXR from master (a0e84f62def6276f38e518a2724d9f7ac4daa9ad), the pkg-config looks correct:

[openexr (master)]$ mkdir build
[openexr (master)]$ cd build
[openexr/build (master)]$ cmake .. -DCMAKE_INSTALL_PREFIX=/usr && make -j8
[openexr/build (master)]$ cat OpenEXR/OpenEXR.pc
##
## SPDX-License-Identifier: BSD-3-Clause
## Copyright Contributors to the OpenEXR Project.
##

prefix=/usr
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${prefix}/include
OpenEXR_includedir=${prefix}/include/OpenEXR
libsuffix=-2_4

Name: OpenEXR
Description: OpenEXR image library
Version: 2.4.0

Libs: -L${libdir} -lIlmImf${libsuffix}
Cflags: -I${OpenEXR_includedir}
Requires: IlmBase
Libs.private: -lz

https://github.com/AcademySoftwareFoundation/openexr/issues/595 looks related but it says "fix broken CMake files". And is in 2.4.1 and on master but not in 2.4.0. Not sure what is going on exactly.
This task depends upon

Closed by  Antonio Rojas (arojas)
Sunday, 23 February 2020, 08:14 GMT
Reason for closing:  Fixed
Additional comments about closing:  openexr 2.4.1-2
Comment by Martin (Martin256) - Sunday, 23 February 2020, 07:11 GMT
See that I forgot to edit summary now. Do not see how to edit it though.

Loading...