Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dylib requires in same cps file not working #64

Open
tylerjw opened this issue Mar 15, 2024 · 0 comments
Open

dylib requires in same cps file not working #64

tylerjw opened this issue Mar 15, 2024 · 0 comments

Comments

@tylerjw
Copy link
Contributor

tylerjw commented Mar 15, 2024

I will eventually migrate my work of writing cps files for ubuntu into some integration tests here.

Here is a cps file I wrote from the below pc file.

prefix=/usr
exec_prefix=${prefix}
libdir=${exec_prefix}/lib/x86_64-linux-gnu
includedir=${prefix}/include/nss

Name: NSS
Description: Mozilla Network Security Services
Version: 3.68.2
Requires: nspr
Libs: -L${libdir} -lnss3 -lnssutil3 -lsmime3 -lssl3
Cflags: -I${includedir}

Here is the cps file I've written for this:

{
    "name": "NSS",
    "cps_version": "0.10.0",
    "version": "3.68.2",
    "description": "Mozilla Network Security Services",
    "default_components": ["nss3"],
    "components": {
        "nss3": {
            "type": "dylib",
            "includes": {"*": ["@prefix@/include/nss"]},
            "location": "@prefix@/lib/x86_64-linux-gnu/libnss3.so",
            "requres": [":nssutil3", ":smime3", ":ssl3"]
        },
        "nssutil3": {
            "type": "dylib",
            "location": "@prefix@/lib/x86_64-linux-gnu/libnssutil3.so",
        },
        "smime3": {
            "type": "dylib",
            "location": "@prefix@/lib/x86_64-linux-gnu/libsmime3.so",
        },
        "ssl3": {
            "type": "dylib",
            "location": "@prefix@/lib/x86_64-linux-gnu/libssl3.so",
        },
    }
}

Right now there is a problem with the requires is followed in archive types but not dylib types.

@tylerjw tylerjw changed the title pc files with multiple libraries and include paths dylib requires in same cps file not working Mar 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant