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

the modulemap file is installed on /usr/include/module.modulemap causing downstream packaging problems #1522

Open
aroig opened this issue Jun 29, 2020 · 3 comments
Labels

Comments

@aroig
Copy link

aroig commented Jun 29, 2020

Currently, on arch linux C++ packages start including modulemap files for C++ libraries as provided by upstream authors. The way range-v3 is currently packaged, installs headers on /usr/include/range/v3, /usr/include/meta, etc and the modulemap file at /usr/include/module.modulemap. This has started to create file conflicts with other packages that do the same thing. See https://bugs.archlinux.org/task/67143

I am not sure what would be the right solution here. Some possibilities:

  1. upstream range-v3 would install separate modulemap files under /usr/include/range/v3, /usr/include/meta and /usr/include/concepts.

  2. downstream arch linux distributes their own modulemap files that do not conflict between packages.

  3. Could the modulemap file be renamed to range.modulemap? Is there any contract on the name of that file?

  4. downstream arch installs the range library on /usr/include/range/{range,meta,concepts} so the modulemap is installed to /usr/include/range/module.modulemap

So, what would be the right way to package range-v3, or any C++ modularized library, by downstream distributions?

Thanks.

@ericniebler
Copy link
Owner

The modulemap was a contribution from @gnzlbg, and I know very little about the mechanics of clang's modules and modulemap files. @gnzlbg, can you comment please?

@ericniebler ericniebler added the bug label Jul 9, 2020
@amadio
Copy link

amadio commented Nov 19, 2020

See also https://bugs.gentoo.org/755476.

@Biswa96
Copy link

Biswa96 commented Nov 14, 2024

See also termux/termux-packages#22257

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants