Skip to content

Incorrect .pc file for (lib)tidy (OL 8.10) #174

@hadrabap

Description

@hadrabap

Hello!

I'm trying to use (lib)tidy in my project, but I've found that the tidy.pc pkg-config file is somehow incorrect.

[opc@sws ~]$ cat /usr/lib64/pkgconfig/tidy.pc
prefix=/usr
exec_prefix=${prefix}
libdir=${exec_prefix}//usr/lib64
includedir=${prefix}//usr/include

Name: tidy
Description: tidy - HTML syntax checker
URL: http://www.html-tidy.org
Version: 5.6.0
Libs: -L${libdir} -ltidy
Cflags: -I${includedir}

It looks like the prefix is messed-up a bit or the original template already contains the /usr prefix.

[opc@sws ~]$ pkg-config --cflags --libs tidy
-I/usr/usr/include -L/usr/usr/lib64 -ltidy 
[opc@sws ~]$ pkgconf --cflags --libs tidy
-I/usr/usr/include -L/usr/usr/lib64 -ltidy 

The directory usr/ is applied twice and the resulting path is invalid.

[opc@sws ~]$ cat /etc/oracle-release 
Oracle Linux Server release 8.10
[opc@sws ~]$ rpm -qa | grep tidy 
libtidy-devel-5.6.0-5.el8.x86_64
tidy-5.6.0-5.el8.x86_64
libtidy-5.6.0-5.el8.x86_64

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions