Skip to content

glibc: Rebuild with working patches to tame ldconfig #415

Merged
merged 1 commit into from
Jun 23, 2017
Merged

Conversation

donald
Copy link
Collaborator

@donald donald commented Jun 23, 2017

The patches modifying ldconfig were wrong, so ldconfig messed up some links (/usr/lib/libGL.so) and caused problems. Hopefully this is corrected in this update.

This update can not be installed with

bee update glibc

because bee update is to stupid and would remove symlinks which exists in both revisions. It can be
done by

bee install -f glibc
rm -rf /usr/share/bee/glibc-2.25-0.x86_64

Please merge if it looks okay.

The two patches applied were supposed to change the behaviour of
ldconfig. It should not generate the symlinks for the shared libraries
by default and it should not remove stale symlinks by default.

However, the first patch was faulty and didn't actually change the
default. It was corrected (with a -v2 appended to its name). The second
patch had to be rebased on the first on.

Rebuild with fixed patches.
Increase build number.

    diff /src/mariux/patches/glibc-2.25-0001-ldconfig-don-t-generate-links-by-default.patch /src/mariux/patches/glibc-2.25-0001-ldconfig-don-t-generate-links-by-default-v2.patch
    1c1
    < From ed11660d1f553413c0ffaf283c3272dc492b56ac Mon Sep 17 00:00:00 2001
    ---
    > From fbee17a0750763583dd4c8e51dfd16adae652104 Mon Sep 17 00:00:00 2001
    9,10c9,10
    <  elf/ldconfig.c | 6 +++++-
    <  1 file changed, 5 insertions(+), 1 deletion(-)
    ---
    >  elf/ldconfig.c | 8 ++++++--
    >  1 file changed, 6 insertions(+), 2 deletions(-)
    13c13
    < index 99caf9e..5e3dbfc 100644
    ---
    > index 99caf9e..3515738 100644
    15a16,24
    > @@ -102,7 +102,7 @@ static int opt_build_cache = 1;
    >
    >  /* Enable symbolic link processing.  If set, create or update symbolic
    >     links, and remove stale symbolic links.  */
    > -static int opt_link = 1;
    > +static int opt_link = 0;
    >
    >  /* Only process directories specified on the command line.  */
    >  static int opt_only_cline;

    diff /src/mariux/patches/glibc-2.25-0002-ldconfig-don-t-remove-stale-symlinks-by-default.patch /src/mariux/patches/glibc-2.25-0002-ldconfig-don-t-remove-stale-symlinks-by-default-v2.patch
    1c1
    < From 61b9ad6e5f8bb5c3180f4eb7f16810f27789b32f Mon Sep 17 00:00:00 2001
    ---
    > From 498f603053a2e0e0c35e8146070cc7a797b3a184 Mon Sep 17 00:00:00 2001
    12c12
    < index 5e3dbfc..6f79f59 100644
    ---
    > index 3515738..5c5eeb6 100644
    17c17
    <  static int opt_link = 1;
    ---
    >  static int opt_link = 0;
@pmenzel pmenzel changed the title [DO NOT UPDATE] glibc: Rebuild with working patches to tame ldconfig glibc: Rebuild with working patches to tame ldconfig Jun 23, 2017
@pmenzel pmenzel merged commit a689762 into master Jun 23, 2017
@donald donald deleted the rebuild-glibc branch June 27, 2017 13:51
Sign in to join this conversation on GitHub.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants