Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
refactor: implement the new bzlmod api #183
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
base: main
Are you sure you want to change the base?
Uh oh!
There was an error while loading. Please reload this page.
refactor: implement the new bzlmod api #183
Changes from 1 commit
0f2824383401e94a50bf8c088d8da8366e4604ac6d9527e94aef50dfcbbea7f45025d7b26bb7521f1c9587e6c61b01d06fd2ef61f094c5f387d95411eaae96498cb4752c4621c301ffbebfd74aFile filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
Some packages, like `krb5-multidev`, include several .so files to link against in their pkg-config files: ``` prefix=/usr exec_prefix=${prefix} libdir=${prefix}/lib/x86_64-linux-gnu/mit-krb5 includedir=${prefix}/include/mit-krb5 defccname=FILE:/tmp/krb5cc_%{uid} defktname=FILE:/etc/krb5.keytab defcktname=FILE:/etc/krb5/user/%{euid}/client.keytab Name: mit-krb5 Description: An implementation of Kerberos network authentication Version: 1.20.1 Cflags: -isystem ${includedir} Libs: -L${libdir} -lkrb5 -lk5crypto -lcom_err Libs.private: -lkrb5support ``` So, instead of assuming that we have one cc_library per pkgconfig file, we just collect all the declarations and create one `cc_import` target for each. Some design considerations: ### Does this violate the private-ness of `Libs.private`? All `cc_imports` we create have private visibility already, so I don't think it does. ### Why not depend on other debian packages exporting those libraries? Since those files are already in the package (https://packages.debian.org/sid/amd64/krb5-multidev/filelist), I assume the intention is to link against the `.so` files distributed in the `krb-multidev` package, and not to pull other deb packages. This could be false, of course, if a user has already installed those packages and for some reason the linker finds their SO files first, but I think that's a bug in the definition of the krb5-multidev package, not this implementation. Plus, it has the added benefit that, if the debian package in question doesn't include an appropriate .so file, we just don't create the cc_import.Uh oh!
There was an error while loading. Please reload this page.
There are no files selected for viewing