mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-10-22 08:28:21 +00:00
pngcheck: upgrade 2.3.0 -> 3.0.2
Major release. Three patches rebased onto 3.0.2's shifted line numbers: 0001-make-Respect-variables-from-environement.patch (upstream added an alternate -L$(ZPATH) -lz definition, commented out, above our target lines; same changes, offset only), 0001-png-fix-IDAT-windowsize-...patch and 10-pngsplit-format-strings.patch (upstream renamed the usage-string macros png_fix_IDAT_windowsize_usage/PNGSPLIT_HDR/PNGSPLIT_USAGE to their current names; same %s-format fix, offset only). AI-Generated: Uses Claude Code Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
This commit is contained in:
4 files changed
+32
-30
No files matched your search
+7
-6
@@ -5,6 +5,9 @@ Subject: [PATCH] make: Respect variables from environement
|
|||||||
|
|
||||||
link with shared zlib
|
link with shared zlib
|
||||||
|
|
||||||
|
Rebased on 3.0.2: context shifted by 2 lines (upstream added an alternate
|
||||||
|
-L$(ZPATH) -lz definition, commented out); same changes, offset only.
|
||||||
|
|
||||||
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
||||||
---
|
---
|
||||||
Upstream-Status: Pending
|
Upstream-Status: Pending
|
||||||
@@ -13,11 +16,10 @@ Upstream-Status: Pending
|
|||||||
1 file changed, 8 insertions(+), 10 deletions(-)
|
1 file changed, 8 insertions(+), 10 deletions(-)
|
||||||
|
|
||||||
diff --git a/Makefile.unx b/Makefile.unx
|
diff --git a/Makefile.unx b/Makefile.unx
|
||||||
index 772da46..4ae7061 100644
|
|
||||||
--- a/Makefile.unx
|
--- a/Makefile.unx
|
||||||
+++ b/Makefile.unx
|
+++ b/Makefile.unx
|
||||||
@@ -24,18 +24,16 @@ ZINC = -I$(ZPATH)
|
@@ -24,18 +24,16 @@
|
||||||
ZLIB = $(ZPATH)/libz.a
|
#ZLIB = $(ZPATH)/libz.a
|
||||||
|
|
||||||
INCS = $(ZINC)
|
INCS = $(ZINC)
|
||||||
-LIBS = $(ZLIB)
|
-LIBS = $(ZLIB)
|
||||||
@@ -40,7 +42,7 @@ index 772da46..4ae7061 100644
|
|||||||
PROG = pngcheck
|
PROG = pngcheck
|
||||||
PROG2 = pngsplit
|
PROG2 = pngsplit
|
||||||
PROG3 = png-fix-IDAT-windowsize
|
PROG3 = png-fix-IDAT-windowsize
|
||||||
@@ -57,13 +55,13 @@ EXES = $(PROG)$(E) $(PROG2)$(E) $(PROG3)$(E)
|
@@ -57,13 +55,13 @@
|
||||||
all: $(EXES)
|
all: $(EXES)
|
||||||
|
|
||||||
$(PROG)$(E): $(PROG).c
|
$(PROG)$(E): $(PROG).c
|
||||||
@@ -57,6 +59,5 @@ index 772da46..4ae7061 100644
|
|||||||
|
|
||||||
|
|
||||||
# maintenance ---------------------------------------------------------------
|
# maintenance ---------------------------------------------------------------
|
||||||
--
|
--
|
||||||
2.12.2
|
2.12.2
|
||||||
|
|
||||||
+8
-9
@@ -12,27 +12,26 @@ Upstream-Status: Pending
|
|||||||
1 file changed, 2 insertions(+), 2 deletions(-)
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
||||||
|
|
||||||
diff --git a/gpl/png-fix-IDAT-windowsize.c b/gpl/png-fix-IDAT-windowsize.c
|
diff --git a/gpl/png-fix-IDAT-windowsize.c b/gpl/png-fix-IDAT-windowsize.c
|
||||||
index 6d4ef9c..d212017 100644
|
index 6543d20..b190906 100644
|
||||||
--- a/gpl/png-fix-IDAT-windowsize.c
|
--- a/gpl/png-fix-IDAT-windowsize.c
|
||||||
+++ b/gpl/png-fix-IDAT-windowsize.c
|
+++ b/gpl/png-fix-IDAT-windowsize.c
|
||||||
@@ -127,7 +127,7 @@ int main(int argc, char *argv[])
|
@@ -126,7 +126,7 @@ int main(int argc, char *argv[])
|
||||||
fprintf(stderr, " Compiled with zlib %s; using zlib %s.\n",
|
fprintf(stderr, " Compiled with zlib %s; using zlib %s.\n",
|
||||||
ZLIB_VERSION, zlib_version);
|
ZLIB_VERSION, zlib_version);
|
||||||
fprintf(stderr, "\n");
|
fprintf(stderr, "\n");
|
||||||
- fprintf(stderr, png_fix_IDAT_windowsize_usage);
|
- fprintf(stderr, PNG_FIX_IDAT_WINDOWSIZE_USAGE);
|
||||||
+ fprintf(stderr, "%s", png_fix_IDAT_windowsize_usage);
|
+ fprintf(stderr, "%s", PNG_FIX_IDAT_WINDOWSIZE_USAGE);
|
||||||
fflush(stderr);
|
fflush(stderr);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
@@ -143,7 +143,7 @@ int main(int argc, char *argv[])
|
@@ -142,7 +142,7 @@ int main(int argc, char *argv[])
|
||||||
fflush(stdout);
|
fflush(stdout);
|
||||||
|
|
||||||
if ( argn == argc ) {
|
if ( argn == argc ) {
|
||||||
- fprintf(stderr, png_fix_IDAT_windowsize_usage);
|
- fprintf(stderr, PNG_FIX_IDAT_WINDOWSIZE_USAGE);
|
||||||
+ fprintf(stderr, "%s", png_fix_IDAT_windowsize_usage);
|
+ fprintf(stderr, "%s", PNG_FIX_IDAT_WINDOWSIZE_USAGE);
|
||||||
fflush(stderr);
|
fflush(stderr);
|
||||||
return 5;
|
return 5;
|
||||||
} else {
|
} else {
|
||||||
--
|
--
|
||||||
2.12.2
|
2.25.1
|
||||||
|
|
||||||
@@ -7,36 +7,38 @@ Upstream-Status: Pending
|
|||||||
gpl/pngsplit.c | 10 +++++-----
|
gpl/pngsplit.c | 10 +++++-----
|
||||||
1 file changed, 5 insertions(+), 5 deletions(-)
|
1 file changed, 5 insertions(+), 5 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/gpl/pngsplit.c b/gpl/pngsplit.c
|
||||||
|
index ca4567b..0147ef4 100644
|
||||||
--- a/gpl/pngsplit.c
|
--- a/gpl/pngsplit.c
|
||||||
+++ b/gpl/pngsplit.c
|
+++ b/gpl/pngsplit.c
|
||||||
@@ -141,8 +141,8 @@
|
@@ -141,8 +141,8 @@ int main(int argc, char *argv[])
|
||||||
0 == strncmp( argv[argn], "-quiet", 2 ) )
|
0 == strncmp( argv[argn], "-quiet", 2 ) )
|
||||||
verbose = 0;
|
verbose = 0;
|
||||||
else {
|
else {
|
||||||
- fprintf(stderr, pngsplit_hdr);
|
- fprintf(stderr, PNGSPLIT_HDR);
|
||||||
- fprintf(stderr, pngsplit_usage);
|
- fprintf(stderr, PNGSPLIT_USAGE);
|
||||||
+ fprintf(stderr, "%s", pngsplit_hdr);
|
+ fprintf(stderr, "%s", PNGSPLIT_HDR);
|
||||||
+ fprintf(stderr, "%s", pngsplit_usage);
|
+ fprintf(stderr, "%s", PNGSPLIT_USAGE);
|
||||||
fflush(stderr);
|
fflush(stderr);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
@@ -150,8 +150,8 @@
|
@@ -150,8 +150,8 @@ int main(int argc, char *argv[])
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( argn == argc ) {
|
if ( argn == argc ) {
|
||||||
- fprintf(stderr, pngsplit_hdr);
|
- fprintf(stderr, PNGSPLIT_HDR);
|
||||||
- fprintf(stderr, pngsplit_usage);
|
- fprintf(stderr, PNGSPLIT_USAGE);
|
||||||
+ fprintf(stderr, "%s", pngsplit_hdr);
|
+ fprintf(stderr, "%s", PNGSPLIT_HDR);
|
||||||
+ fprintf(stderr, "%s", pngsplit_usage);
|
+ fprintf(stderr, "%s", PNGSPLIT_USAGE);
|
||||||
fflush(stderr);
|
fflush(stderr);
|
||||||
return 5;
|
return 5;
|
||||||
} else {
|
} else {
|
||||||
@@ -162,7 +162,7 @@
|
@@ -162,7 +162,7 @@ int main(int argc, char *argv[])
|
||||||
|
|
||||||
/*============================= MAIN LOOP =============================*/
|
/*============================= MAIN LOOP =============================*/
|
||||||
|
|
||||||
- fprintf(stdout, pngsplit_hdr);
|
- fprintf(stdout, PNGSPLIT_HDR);
|
||||||
+ fprintf(stdout, "%s", pngsplit_hdr);
|
+ fprintf(stdout, "%s", PNGSPLIT_HDR);
|
||||||
fflush(stdout);
|
fflush(stdout);
|
||||||
|
|
||||||
while (argn <= argc) {
|
while (argn <= argc) {
|
||||||
+2
-2
@@ -1,7 +1,7 @@
|
|||||||
SUMMARY = "pngcheck verifies the integrity of PNG, JNG and MNG files"
|
SUMMARY = "pngcheck verifies the integrity of PNG, JNG and MNG files"
|
||||||
HOMEPAGE = "http://www.libpng.org/pub/png/apps/pngcheck.html"
|
HOMEPAGE = "http://www.libpng.org/pub/png/apps/pngcheck.html"
|
||||||
LICENSE = "GPL-2.0-only"
|
LICENSE = "GPL-2.0-only"
|
||||||
LIC_FILES_CHKSUM = "file://gpl/COPYING;md5=94d55d512a9ba36caa9b7df079bae19f"
|
LIC_FILES_CHKSUM = "file://gpl/COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"
|
||||||
DEPENDS = "zlib libpng"
|
DEPENDS = "zlib libpng"
|
||||||
|
|
||||||
SRC_URI = "${SOURCEFORGE_MIRROR}/project/png-mng/${BPN}/${PV}/${BPN}-${PV}.tar.gz \
|
SRC_URI = "${SOURCEFORGE_MIRROR}/project/png-mng/${BPN}/${PV}/${BPN}-${PV}.tar.gz \
|
||||||
@@ -10,7 +10,7 @@ SRC_URI = "${SOURCEFORGE_MIRROR}/project/png-mng/${BPN}/${PV}/${BPN}-${PV}.tar.g
|
|||||||
file://0001-make-Respect-variables-from-environement.patch \
|
file://0001-make-Respect-variables-from-environement.patch \
|
||||||
"
|
"
|
||||||
|
|
||||||
SRC_URI[sha256sum] = "77f0a039ac64df55fbd06af6f872fdbad4f639d009bbb5cd5cbe4db25690f35f"
|
SRC_URI[sha256sum] = "0d7e262f24116fddf2847a8ceb5c92d9f5f26efb42e9fff63ec2bb7676131ca7"
|
||||||
|
|
||||||
UPSTREAM_CHECK_URI = "https://sourceforge.net/projects/png-mng/files/pngcheck/"
|
UPSTREAM_CHECK_URI = "https://sourceforge.net/projects/png-mng/files/pngcheck/"
|
||||||
UPSTREAM_CHECK_REGEX = "${BPN}-(?P<pver>\d+(\.\d+)+)"
|
UPSTREAM_CHECK_REGEX = "${BPN}-(?P<pver>\d+(\.\d+)+)"
|
||||||
Reference in new issue
Block a user