-
-
Notifications
You must be signed in to change notification settings - Fork 482
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
homebrew: Unused packages (singular, pari, ...) in /usr/local leak into sagelib/cysignals builds via distutils.cfg #31335
Comments
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
comment:9
To check whether this comes in through pkg-config, I used:
However, on my system, the command line in the ticket description does not find any relevant packages that directly use |
This comment has been minimized.
This comment has been minimized.
comment:13
With the tickets listed in Dependencies merged (that's the branch on this ticket) and after
|
Changed branch from u/mkoeppe/homebrew__unused_packages__singular__pari_______in__usr_local_leak_into_sagelib_build to none |
This comment has been minimized.
This comment has been minimized.
Commit: |
comment:15
I think this is a specific issue with how we include singular headers. Last 10 new commits:
|
comment:16
|
comment:17
Replying to @mkoeppe:
no, it's not coming from |
comment:18
it's also not coming in from |
comment:19
|
comment:20
There we go, it's another distribution bug in homebrew. It installs a homebrew has been struggling with this since at least 2014 - Homebrew/legacy-homebrew#26272 |
Branch pushed to git repo; I updated commit sha1. Last 10 new commits:
|
Branch pushed to git repo; I updated commit sha1. This was a forced push. New commits:
|
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:58
Replying to @zlscherr:
Shall we consider this issue -- |
comment:59
That sounds fair. With .homebrew-build-env sourced I didn't have any out of the ordinary issues with make ptest, so it seems that things are working well modulo the runtime stuff. |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:61
All dependencies have been merged. Let's get this in? |
This comment has been minimized.
This comment has been minimized.
comment:62
This is arguably another homebrew distribution bug. |
Branch pushed to git repo; I updated commit sha1. New commits:
|
Branch pushed to git repo; I updated commit sha1. This was a forced push. New commits:
|
comment:65
Prompted by slelievre's report on sage-devel, applying this fix to all packages by putting the setting in |
comment:66
Confirmed by @slel to fix the |
Reviewer: John Palmieri |
comment:67
I can confirm, too: if I install |
comment:68
Thanks! |
Changed commit from |
comment:70
The problem with distutils.cfg has now been addressed by homebrew for their Python 3.10 package, see #31348 comment:38 |
Follow-up from #31132:
It has been reported that it's still leaking with the upgraded python3 from homebrew that includes Homebrew/homebrew-core@784d292
The
sagelib
build collects many-I
,-L
directives through pkgconfig.Such directives on the command line take precedence over the search paths set by
sage-env
in$CPATH
,$LIBRARY_PATH
.Now if
-I/usr/local/
or-L/usr/local
(instead of more specific paths to/usr/local/Cellar/.../...
) appear, then unwanted packages that happen to be installed can leak in.However, here the problem is caused by homebrew installing a
distutils.cfg
that injects/usr/local/include
into our include search path.We fix the leak by switching to a modern configuration of setuptools.
This also affects
cysignals
, as reported in https://groups.google.com/g/sage-release/c/KdSKg6RdZok/m/91Ibwn8RAgAJRelevant tickets: #13348, #14709, #29562 (+), #29607 (+), #29697 (?), #31041 (
), #30818 (), #30013 (~); possible follow-up: #31338CC: @jhpalmieri @zlscherr @kiwifb @kliem @slel
Component: build
Author: Matthias Koeppe
Branch:
e03c5ac
Reviewer: John Palmieri
Issue created by migration from https://trac.sagemath.org/ticket/31335
The text was updated successfully, but these errors were encountered: