pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/audio/libcuefile



Module Name:    pkgsrc
Committed By:   adam
Date:           Fri Jul 17 13:14:41 UTC 2026

Modified Files:
        pkgsrc/audio/libcuefile: distinfo
Added Files:
        pkgsrc/audio/libcuefile/patches: patch-src_cd.c

Log Message:
libcuefile: fix build


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 pkgsrc/audio/libcuefile/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/audio/libcuefile/patches/patch-src_cd.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/audio/libcuefile/distinfo
diff -u pkgsrc/audio/libcuefile/distinfo:1.5 pkgsrc/audio/libcuefile/distinfo:1.6
--- pkgsrc/audio/libcuefile/distinfo:1.5        Thu May  1 16:20:23 2025
+++ pkgsrc/audio/libcuefile/distinfo    Fri Jul 17 13:14:41 2026
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.5 2025/05/01 16:20:23 tnn Exp $
+$NetBSD: distinfo,v 1.6 2026/07/17 13:14:41 adam Exp $
 
 BLAKE2s (libcuefile_r475.tar.gz) = 46a52ad60a3909cb12946f0f270c76c2f86d68cba0011d83cb2ada9f2050779b
 SHA512 (libcuefile_r475.tar.gz) = f33c064fe5455ca8ed78bd83c6e77d6430b61278255293c37b4dba382a3ffc815f714fc13ce16a3a741fae147a97895b640583db4c4176e96be1f8858179a455
 Size (libcuefile_r475.tar.gz) = 68282 bytes
+SHA1 (patch-src_cd.c) = acd997a7bf8731addc157bc9ef3f6deed5d7d2cb
 SHA1 (patch-src_cue__parse.c) = e9945e4501805a4cb3f40250382f66993d1484d5

Added files:

Index: pkgsrc/audio/libcuefile/patches/patch-src_cd.c
diff -u /dev/null pkgsrc/audio/libcuefile/patches/patch-src_cd.c:1.1
--- /dev/null   Fri Jul 17 13:14:41 2026
+++ pkgsrc/audio/libcuefile/patches/patch-src_cd.c      Fri Jul 17 13:14:41 2026
@@ -0,0 +1,24 @@
+$NetBSD: patch-src_cd.c,v 1.1 2026/07/17 13:14:41 adam Exp $
+
+error: chained comparison 'X <= Y < Z' does not behave the same as a mathematical expression
+
+--- src/cd.c.orig      2026-07-17 12:57:07.698217027 +0000
++++ src/cd.c
+@@ -173,7 +173,7 @@ int cd_get_ntrack (Cd *cd)
+ 
+ Track *cd_get_track (Cd *cd, int i)
+ {
+-      if (0 < i <= cd->ntrack)
++      if (0 < i && i <= cd->ntrack)
+               return cd->track[i - 1];
+ 
+       return NULL;
+@@ -306,7 +306,7 @@ int track_get_nindex (Track *track)
+ 
+ long track_get_index (Track *track, int i)
+ {
+-      if (0 <= i < track->nindex)
++      if (0 <= i && i < track->nindex)
+               return track->index[i];
+ 
+       return -1;



Home | Main Index | Thread Index | Old Index