Go to file
Zbigniew Jędrzejewski-Szmek 08e0ad8f78 Rewrite scriptlets to call /sbin/ldconfig in lua
The scriptlet in glibc adds a dependency on bash to glibc-common,
which is required by glibc, so effectively the whole world depends on
bash. By rewriting the script in lua we drop this dependency, and also
to avoid a (bogus?) warning from rpm about a dependency loop.

If the call fails, an error is printed but the transaction is not failed.
(The original script didn't have "|| :", so the return value from
/sbin/ldconfig would be the return value from the script, causing
the transaction to fail.)

Quoting https://bugzilla.redhat.com/show_bug.cgi?id=2018913#c34:

warning: SCC #1: 5 members (5 external dependencies)
warning:        glibc-2.35-2.fc37.x86_64
warning:                -> glibc-minimal-langpack-2.35-2.fc37.x86_64
warning:                -> glibc-common-2.35-2.fc37.x86_64
warning:        ncurses-libs-6.2-9.20210508.fc36.x86_64
warning:                -> glibc-2.35-2.fc37.x86_64
warning:        bash-5.1.16-2.fc36.x86_64
warning:                -> ncurses-libs-6.2-9.20210508.fc36.x86_64
warning:                -> glibc-2.35-2.fc37.x86_64
warning:        glibc-common-2.35-2.fc37.x86_64
warning:                -> glibc-2.35-2.fc37.x86_64
warning:                -> bash-5.1.16-2.fc36.x86_64
warning:        glibc-minimal-langpack-2.35-2.fc37.x86_64
warning:                -> glibc-common-2.35-2.fc37.x86_64
warning:                -> glibc-2.35-2.fc37.x86_64

If we look into SCC #1, bash obviously requires glibc because it links
to it. The loop is created by glibc → glibc-common → bash, because
glibc-common has %transfiletriggerin and %transfiletriggerpostun using
bash to call /sbin/ldconfig.

https://github.com/coreos/rpm-ostree/pull/3453 provides a workaround
so that rpm-ostree doesn't choke on this.
2022-02-22 20:38:30 +01:00
.fmf introduce Fedora CI 2021-11-18 16:45:23 +01:00
plans CI Gating: Avoid installing conflicting headers 2021-12-16 09:42:18 +01:00
tests/Regression tests: removes uneeded PURPOSE files 2022-02-09 20:39:42 +01:00
.gitignore Add release-independent .gitignore file 2018-08-01 10:54:37 +02:00
ChangeLog.old Auto-sync with upstream branch master 2020-07-02 17:45:59 -04:00
README.scripts Auto-sync with upstream master 2017-10-06 15:55:09 -07:00
STAGE1-glibc Adding BUILD_CC to the STAGE1 bootstrap recipes 2015-12-03 15:34:40 +01:00
STAGE1-glibc-headers Adding BUILD_CC to the STAGE1 bootstrap recipes 2015-12-03 15:34:40 +01:00
bench.mk Add benchmark comparison 2015-05-08 11:49:59 +05:30
gating.yaml CI Gating: Avoid installing conflicting headers 2021-12-16 09:42:18 +01:00
gen-quilt-series.sh Update gen-quilt-series.sh for new %autosetup. 2018-06-04 22:30:43 -04:00
glibc-bench-compare Add benchmark comparison 2015-05-08 11:49:59 +05:30
glibc-cs-path.patch Create /{bin,lib,lib64,sbin} as symbolic links in test-container 2021-11-16 09:53:27 +01:00
glibc-deprecated-selinux-makedb.patch Work around libselinux API deprecations 2020-07-21 14:41:25 +02:00
glibc-fedora-linux-tcsetattr.patch glibc.spec: Apply patches in logical order. 2018-04-17 15:00:23 -05:00
glibc-fedora-localedata-rh61908.patch glibc.spec: Apply patches in logical order. 2018-04-17 15:00:23 -05:00
glibc-fedora-manual-dircategory.patch glibc.spec: Apply patches in logical order. 2018-04-17 15:00:23 -05:00
glibc-python3.patch Auto-sync with upstream branch master 2022-01-04 15:54:08 +01:00
glibc-rh827510.patch glibc.spec: Apply patches in logical order. 2018-04-17 15:00:23 -05:00
glibc-rh1070416.patch glibc.spec: Apply patches in logical order. 2018-04-17 15:00:23 -05:00
glibc-temp-ibmldbl64.patch Mention GCC bug in glibc-temp-ibmldbl64.patch 2022-02-08 16:37:47 +01:00
glibc.attr Add automatic requires if building against glibc development snapshots 2021-06-27 15:11:49 +02:00
glibc.req.in Adjust glibc.req so that egrep does not cause eu-readelf to fail 2021-06-27 18:17:14 +02:00
glibc.spec Rewrite scriptlets to call /sbin/ldconfig in lua 2022-02-22 20:38:30 +01:00
parse-SUPPORTED.py Make glibc.spec self-contained for parsing 2020-10-14 15:19:39 +02:00
sources Auto-sync with upstream branch master 2022-02-09 13:17:44 +01:00
wrap-find-debuginfo.sh Further .symtab adjustment: Keep all __GI_* symbols (#1975859) 2021-06-28 09:29:49 +02:00

README.scripts

All of the useful glibc maintainer scripts are located at:
https://pagure.io/glibc-maintainer-scripts