From: Jan Engelhardt <jengelh@inai.de>
To: FFmpeg development discussions and patches <ffmpeg-devel@ffmpeg.org>
Subject: Re: [FFmpeg-devel] ABI break in 5.1
Date: Sat, 23 Jul 2022 19:36:03 +0200 (CEST)
Message-ID: <q76182-8q70-n42-ror4-9q1np5118748@vanv.qr> (raw)
In-Reply-To: <YtwGeaYM7b3UUHoc@phare.normalesup.org>
On Saturday 2022-07-23 16:32, Nicolas George wrote:
>
>No, the ELF symbol version system cannot prevent you from replacing a
>file with an older version.
The information in ELF helps package managers prevent such
replacement. If I even try as much as propose a glibc downgrade to
rpm, this will happen:
# rpm -Uhv glibc-2.31-7.30.x86_64.rpm --oldpackage
error: Failed dependencies:
libc.so.6(GLIBC_2.32)(64bit) is needed by (installed) coreutils-9.0-7.1.x86_64
libc.so.6(GLIBC_2.33)(64bit) is needed by (installed) libpmem1-1.11.1-1.5.x86_64
libc.so.6(GLIBC_2.34)(64bit) is needed by (installed) libvpx7-1.11.0-3.4.x86_64
libm.so.6(GLIBC_2.35)(64bit) is needed by (installed) perl-base-5.36.0-2.1.x86_64
Of course, you can always mv/rm behind the manager's back or use rpm
--force, but that's not the point!
At the time vpx was built, it engrained the symvers of the functions
it uses into itself, therefore e.g. `readelf -aW
/usr/lib64/libvpx.so.7`:
Version symbols section '.gnu.version' contains 93 entries:
Addr: 0x0000000000001576 Offset: 0x001576 Link: 4 (.dynsym)
000: 0 (*local*) 2 (GLIBC_2.2.5) 3 (GLIBC_2.34) 4 (GLIBC_2.3.2)
004: 5 (GLIBC_2.2.5) 6 (GLIBC_2.11) 5 (GLIBC_2.2.5) 7 (GLIBC_2.29)
008: 8 (GLIBC_2.3.4) 1 (*global*) 5 (GLIBC_2.2.5) 4 (GLIBC_2.3.2)
00c: 8 (GLIBC_2.3.4) 5 (GLIBC_2.2.5) 3 (GLIBC_2.34) 5 (GLIBC_2.2.5)
010: 3 (GLIBC_2.34) 9 (GLIBC_2.27) 8 (GLIBC_2.3.4) 5 (GLIBC_2.2.5)
014: 3 (GLIBC_2.34) 5 (GLIBC_2.2.5) 8 (GLIBC_2.3.4) 1 (*global*)
018: 3 (GLIBC_2.34) 7 (GLIBC_2.29) 5 (GLIBC_2.2.5) 1 (*global*)
01c: 4 (GLIBC_2.3.2) 5 (GLIBC_2.2.5) 3 (GLIBC_2.34) 5 (GLIBC_2.2.5)
020: 5 (GLIBC_2.2.5) 5 (GLIBC_2.2.5) 3 (GLIBC_2.34) 5 (GLIBC_2.2.5)
024: a (GLIBC_2.4) 8 (GLIBC_2.3.4) 4 (GLIBC_2.3.2) 5 (GLIBC_2.2.5)
028: 5 (GLIBC_2.2.5) 2 (GLIBC_2.2.5) 5 (GLIBC_2.2.5) 5 (GLIBC_2.2.5)
02c: 5 (GLIBC_2.2.5) 4 (GLIBC_2.3.2) 3 (GLIBC_2.34) 7 (GLIBC_2.29)
030: 2 (GLIBC_2.2.5) 5 (GLIBC_2.2.5) 5 (GLIBC_2.2.5) b (GLIBC_2.14)
034: 1 (*global*) 1 (*global*) 1 (*global*) 1 (*global*)
Managers can and do evaluate that and turn that into a dependency
*without any person having to manually add "Requires: glibc >= 2.34"
to the libvpx description*. This of course requires that the project
followed the procedures to create the symvers definitions, which
glibc did.
Seriously, why do I have to explain this all the time.
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email
ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".
next prev parent reply other threads:[~2022-07-23 17:36 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-07-23 13:23 Jan Engelhardt
2022-07-23 13:28 ` Nicolas George
2022-07-23 14:03 ` Jan Engelhardt
2022-07-23 14:32 ` Nicolas George
2022-07-23 17:36 ` Jan Engelhardt [this message]
2022-07-23 17:39 ` Nicolas George
2022-07-23 20:36 ` Jean-Baptiste Kempf
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=q76182-8q70-n42-ror4-9q1np5118748@vanv.qr \
--to=jengelh@inai.de \
--cc=ffmpeg-devel@ffmpeg.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
This inbox may be cloned and mirrored by anyone:
git clone --mirror https://master.gitmailbox.com/ffmpegdev/0 ffmpegdev/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 ffmpegdev ffmpegdev/ https://master.gitmailbox.com/ffmpegdev \
ffmpegdev@gitmailbox.com
public-inbox-index ffmpegdev
Example config snippet for mirrors.
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git