From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id E44873858D1E; Wed, 15 Feb 2023 00:22:18 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E44873858D1E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1676420538; bh=r6tE4OxFTeKJ9kRETBWqOSYN0DiuG8B69SanbErEbnI=; h=From:To:Subject:Date:From; b=Gt8yhYlDQmCQ8E1hPC+nmlZ9jIsFvTL9KjSzp7CWV2x/6ggOVhSa+LCXON9FWW2OB 9RSEdx/Gv5toSo0tf6XK0adCR6QxPPWBNdYYrzRv/2nW57KWTndkpllhJFPPRlAbSO qihp5TvxLnaavS4+QP/no5AYUaJxOmrZc0ymvhzQ= From: "joanbrugueram at gmail dot com" To: glibc-bugs@sourceware.org Subject: [Bug dynamic-link/30125] New: [regression, bisected] glibc-2.37 creates new symlink created in for libraries without soname Date: Wed, 15 Feb 2023 00:22:18 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: dynamic-link X-Bugzilla-Version: 2.37 X-Bugzilla-Keywords: X-Bugzilla-Severity: minor X-Bugzilla-Who: joanbrugueram at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D30125 Bug ID: 30125 Summary: [regression, bisected] glibc-2.37 creates new symlink created in for libraries without soname Product: glibc Version: 2.37 Status: UNCONFIRMED Severity: minor Priority: P2 Component: dynamic-link Assignee: unassigned at sourceware dot org Reporter: joanbrugueram at gmail dot com Target Milestone: --- Since installing glibc-2.37 I have noticed that `ldconfig` creates symlinks= it did not previously create for libraries without a soname. In particular, if a library is for exmple named `libsomething.so.123.456.78= 9`, running `ldconfig` will now create a symlink named `libsomething.123` point= ing to `libsomething.123.456.789`, whereas previously it did not create this symlink. A complete reproducer is: #!/usr/bin/env sh set -eu rm -rf sonametest mkdir -p sonametest/etc sonametest/usr/lib gcc /dev/null -o sonametest/usr/lib/libtestsoname.so.123.456.789 -shared ldconfig -r sonametest ls -l1 sonametest/usr/lib/ Output with glibc-2.36: -rwxr-xr-x 1 user user 14520 11. Feb 12:34 libtestsoname.so.123.456.789 Output with glibc-2.37: lrwxrwxrwx 1 user user 28 11. Feb 12:34 libtestsoname.so.123 -> libtestsoname.so.123.456.789 -rwxr-xr-x 1 user user 14520 11. Feb 12:34 libtestsoname.so.123.456.789 I have bisected the change in behavior to commit 8ee878592c4a642937152c8308b8faef86bcfc40 "Assume only FLAG_ELF_LIBC6 suport= ". It appears that the refactor in `implicit_soname` picked the wrong branch of the `if` so `implicit_soname` now behaves always behaves as it did for libc4 libraries. The only negative effect I have noticed from this is that unnecessary files= are created on the system. --=20 You are receiving this mail because: You are on the CC list for the bug.=