From 3a6256d93527f3a44af314a9a0d24f0b3e2ecb2d Mon Sep 17 00:00:00 2001 From: DJ Delorie Date: Tue, 23 Sep 2025 13:19:16 -0400 Subject: [PATCH 1/2] rpminspect.yaml: note that glibc-minimal-langpack is empty (RHEL-116641) This fixes the "continues to be empty" VERIFY from rpminspect. Support for this was added by: https://github.com/rpminspect/rpminspect/issues/1518 Resolves: RHEL-116641 RPM-Changelog: - RPM-Skip-Release: yes --- rpminspect.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/rpminspect.yaml b/rpminspect.yaml index 3829b88..a15fc09 100644 --- a/rpminspect.yaml +++ b/rpminspect.yaml @@ -32,3 +32,7 @@ annocheck: # Remove --disable-hardened after https://github.com/rpminspect/rpminspect/issues/1515 is fixed jobs: - hardened: --disable-hardened --skip-lto + +emptyrpm: + expected_empty: + - glibc-minimal-langpack From d01369479c4de74e320e19bb41751cc03a2f3f6a Mon Sep 17 00:00:00 2001 From: DJ Delorie Date: Wed, 1 Oct 2025 16:16:58 -0400 Subject: [PATCH 2/2] manual: Explain our implementation-defined memstream semantics (RHEL-65838) Resolves: RHEL-65838 --- glibc-RHEL-65383.patch | 46 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 glibc-RHEL-65383.patch diff --git a/glibc-RHEL-65383.patch b/glibc-RHEL-65383.patch new file mode 100644 index 0000000..8f6c6ea --- /dev/null +++ b/glibc-RHEL-65383.patch @@ -0,0 +1,46 @@ +commit 8aa99c592bf8f5894215fd62fef8248fac19dee1 +Author: DJ Delorie +Date: Thu Sep 18 19:13:32 2025 -0400 + + manual: Explain our implementation-defined memstream semantics + + Posix Issue 8 adds an implementation-defined item we don't already + cover, about seeking backwards. This defines our implentation. + + https://issues.redhat.com/browse/RHEL-3008 + https://pubs.opengroup.org/onlinepubs/9799919799/functions/open_memstream.html + + Reviewed-by: Florian Weimer + Reviewed-by Collin Funk + +diff --git a/manual/stdio.texi b/manual/stdio.texi +index 16d459424e..e8f60b09c1 100644 +--- a/manual/stdio.texi ++++ b/manual/stdio.texi +@@ -5135,13 +5135,21 @@ remain valid only as long as no further output on the stream takes + place. If you do more output, you must flush the stream again to store + new values before you use them again. + +-A null character is written at the end of the buffer. This null character +-is @emph{not} included in the size value stored at @var{sizeloc}. ++A null character is written at the end of the buffer when the stream ++is flushed, and at the current location when closed (these locations ++may be different if @code{fseek} is used). This null character is ++@emph{not} included in the size value stored at @var{sizeloc}. + + You can move the stream's file position with @code{fseek} or +-@code{fseeko} (@pxref{File Positioning}). Moving the file position past +-the end of the data already written fills the intervening space with +-zeroes. ++@code{fseeko} (@pxref{File Positioning}). Moving the file position ++past the end of the data already written fills the intervening space ++with zeroes. Note that seeking backwards into existing written data ++will change the effective ``end of file'' used by @code{fflush} and ++@code{SEEK_END} (and where the trailing null character is written, ++when closed). Thus, if you wish to do ``random-access'' I/O in a ++memstream, it's important to use @code{fseek} to move the file ++position to the desired data end (using @code{SEEK_POS}) before ++closing it. + @end deftypefun + + Here is an example of using @code{open_memstream}: