-
-
Notifications
You must be signed in to change notification settings - Fork 12.1k
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
glibc glibc@2.13: fix local time zone setting (again) #138629
Conversation
|
abe5534
to
f33ab3e
Compare
Error should be unrelated. |
f33ab3e
to
280bff4
Compare
Not so sure .. it did not build a bottle. I don't remember, are we supposed to build glibc@2.13 with gcc-11? |
I don't think so. (I don't think this is even used by users since we migrated CI to Ubuntu 22.04, actually; install count is low.) It was last built in #105136, when we still ran CI on Ubuntu 16.04. |
|
bf1f9b8
to
6d5b50d
Compare
Deprecated in Homebrew/brew#13741. |
Maybe try |
That would pull in the following dependencies, though: $ brew deps --tree libnsl
libnsl
└── libtirpc
└── krb5
└── openssl@3
└── ca-certificates Is that a concern? |
There should be absolutely no dependencies. This formula has a very specific scope. It's not designed to be installed by end users and is only designed to be a build dependencies for our Portable Ruby. The only reason it is still in homebrew-cores is mainly because we want to build bottles so we don't build glibc every time in Portable Ruby CI when it should never change (glibc is not shipped with Portable Ruby). Really the linkage error is sort of misleading given the special case of glibc. Logically the linkage checker is correct for what it was designed for, but with glibc you typically have a custom ldconfig pointing to glibc, so glibc itself isn't configured with RPATHs to find the library correctly. libnsl is shipped with glibc itself for this old version. With that said, we could just |
Tested on Ubuntu 20.04, before: $ sudo ln -sf /usr/share/zoneinfo/Asia/Singapore /etc/localtime $ `brew --prefix python3`/bin/python3 -c "import time; print(time.localtime().tm_zone)" UTC After: $ sudo ln -sf /usr/share/zoneinfo/Asia/Singapore /etc/localtime $ `brew --prefix python3`/bin/python3 -c "import time; print(time.localtime().tm_zone)" +08
Also: - add a mirror; - make it build with `gcc-11`; - remove executables/dylibs that link with system libnsl.
6d5b50d
to
cb6d5f1
Compare
HOMEBREW_NO_INSTALL_FROM_API=1 brew install --build-from-source <formula>
, where<formula>
is the name of the formula you're submitting?brew test <formula>
, where<formula>
is the name of the formula you're submitting?brew audit --strict <formula>
(after doingHOMEBREW_NO_INSTALL_FROM_API=1 brew install --build-from-source <formula>
)? If this is a new formula, does it passbrew audit --new <formula>
?#138622 didn't work as intended, unfortunately. This should do it.
Tested on Ubuntu 20.04, before:
After:
Also, apply the same to
glibc@2.13
.