Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package lal for openSUSE:Factory checked in at 2026-06-28 21:06:52 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/lal (Old) and /work/SRC/openSUSE:Factory/.lal.new.11887 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "lal" Sun Jun 28 21:06:52 2026 rev:20 rq:1362020 version:7.7.0 Changes: -------- --- /work/SRC/openSUSE:Factory/lal/lal.changes 2026-02-24 15:39:49.901481163 +0100 +++ /work/SRC/openSUSE:Factory/.lal.new.11887/lal.changes 2026-06-28 21:07:25.795885208 +0200 @@ -1,0 +2,7 @@ +Fri Jun 26 21:10:54 UTC 2026 - Atri Bhattacharya <[email protected]> + +- Add lal-ptr-const-qualifier.patch: correctly declare pointers to + const data to prevent "discarded-qualifier" warnings, which in + turn cause build errors due to the use of "-Werror". + +------------------------------------------------------------------- New: ---- lal-ptr-const-qualifier.patch ----------(New B)---------- New: - Add lal-ptr-const-qualifier.patch: correctly declare pointers to const data to prevent "discarded-qualifier" warnings, which in ----------(New E)---------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ lal.spec ++++++ --- /var/tmp/diff_new_pack.Cr3vaI/_old 2026-06-28 21:07:26.539910277 +0200 +++ /var/tmp/diff_new_pack.Cr3vaI/_new 2026-06-28 21:07:26.539910277 +0200 @@ -1,8 +1,7 @@ # # spec file for package lal # -# Copyright (c) 2026 SUSE LLC -# Copyright (c) 2025 SUSE LLC and contributors +# Copyright (c) 2026 SUSE LLC and contributors # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -47,6 +46,8 @@ Patch2: lal-disable-erroneous-test.patch # fix build with gcc16 Patch3: lal-gcc16.patch +# PATCH-FIX-UPSTREAM lal-ptr-const-qualifier.patch [email protected] -- Add const qualifier to pointer returned by strchr to prevent 'discarded-qualifiers' error +Patch4: lal-ptr-const-qualifier.patch BuildRequires: %{python_module devel} BuildRequires: %{python_module numpy-devel} BuildRequires: %{python_module numpy} @@ -152,6 +153,7 @@ %patch -P0 -p2 %patch -P2 -p1 %patch -P3 -p1 +%patch -P4 -p1 %build autoreconf -fvi ++++++ lal-ptr-const-qualifier.patch ++++++ --- lib/std/LALString.c | 8 ++++---- lib/support/FileIO.c | 4 ++-- lib/tools/Segments.c | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) Index: lal-7.7.0/lib/std/LALString.c =================================================================== --- lal-7.7.0.orig/lib/std/LALString.c +++ lal-7.7.0/lib/std/LALString.c @@ -161,7 +161,7 @@ int XLALStringToLowerCase(char * string) for (UINT4 i = 0; i < strlen(string); i++) { int c = string[i]; if (c) { - char *p = strchr(upper_chars, c); + const char *p = strchr(upper_chars, c); if (p) { int offset = p - upper_chars; c = lower_chars[offset]; @@ -190,7 +190,7 @@ int XLALStringToUpperCase(char * string) for (UINT4 i = 0; i < strlen(string); i++) { int c = string[i]; if (c) { - char *p = strchr(lower_chars, c); + const char *p = strchr(lower_chars, c); if (p) { int offset = p - lower_chars; c = upper_chars[offset]; @@ -233,7 +233,7 @@ int XLALStringNCaseCompare(const char *s /* convert c1 to lower case */ if (c1) { - char *p = strchr(upper_chars, c1); + const char *p = strchr(upper_chars, c1); if (p) { int offset = p - upper_chars; c1 = lower_chars[offset]; @@ -242,7 +242,7 @@ int XLALStringNCaseCompare(const char *s /* convert c2 to lower case */ if (c2) { - char *p = strchr(upper_chars, c2); + const char *p = strchr(upper_chars, c2); if (p) { int offset = p - upper_chars; c2 = lower_chars[offset]; Index: lal-7.7.0/lib/tools/Segments.c =================================================================== --- lal-7.7.0.orig/lib/tools/Segments.c +++ lal-7.7.0/lib/tools/Segments.c @@ -860,7 +860,7 @@ XLALSegListSearch( LALSegList *seglist, takes a pointer to a LIGOTimeGPS and a pointer to a LALSeg, whereas bsearch expects the comparison function passed to it to take void pointers as arguments. Oh well. */ - segp = bsearch( (const void *) gps, (const void *) bstart, + segp = bsearch( (const void *) gps, (void *) bstart, bcount, sizeof(LALSeg), XLALGPSInSeg ); /* If we found a match, update lastFound and return the pointer. Otherwise, return NULL. */ Index: lal-7.7.0/lib/support/FileIO.c =================================================================== --- lal-7.7.0.orig/lib/support/FileIO.c +++ lal-7.7.0/lib/support/FileIO.c @@ -404,7 +404,7 @@ LALFILE *XLALFileOpenWrite( const char * LALFILE *XLALFileOpen( const char *path, const char *mode ) { int compression; - char *ext; + const char *ext; switch ( *mode ) { case 'r': return XLALFileOpenRead( path ); @@ -824,7 +824,7 @@ int XLALGzipTextFile( const char *filena int XLALGunzipTextFile( const char *filename ){ CHAR *memblock = NULL; /* memory block to read data into */ CHAR *outname = NULL; - CHAR *gzpos = NULL; + const CHAR *gzpos = NULL; LALFILE *fp = NULL; /* output file pointer */ LALFILE *fg = NULL; /* input gzipped file pointer */
