summaryrefslogtreecommitdiff
path: root/source/l/netpbm
diff options
context:
space:
mode:
authorPatrick J Volkerding <volkerdi@slackware.com>2021-03-31 23:43:20 +0000
committerEric Hameleers <alien@slackware.com>2021-04-01 09:00:07 +0200
commit44010944eea1c5c0d026636dc815962954d77bb0 (patch)
tree7cc6325dd486ddc30129b87fa9f32144c39b0a85 /source/l/netpbm
parent6bcece3c23300976650b539af471b149fb400774 (diff)
downloadcurrent-44010944eea1c5c0d026636dc815962954d77bb0.tar.gz
Wed Mar 31 23:43:20 UTC 202120210331234320
a/file-5.40-x86_64-1.txz: Upgraded. ap/ghostscript-9.54.0-x86_64-1.txz: Upgraded. d/help2man-1.48.3-x86_64-1.txz: Upgraded. l/at-spi2-core-2.40.0-x86_64-1.txz: Upgraded. l/dbus-glib-0.112-x86_64-1.txz: Upgraded. l/dconf-0.40.0-x86_64-1.txz: Upgraded. l/dconf-editor-3.38.3-x86_64-1.txz: Upgraded. l/gcr-3.40.0-x86_64-1.txz: Upgraded. l/gdk-pixbuf2-2.42.4-x86_64-1.txz: Upgraded. l/gjs-1.68.0-x86_64-1.txz: Upgraded. l/glib-networking-2.68.0-x86_64-1.txz: Upgraded. l/glib2-2.68.0-x86_64-1.txz: Upgraded. l/gobject-introspection-1.68.0-x86_64-1.txz: Upgraded. l/gtk+3-3.24.28-x86_64-1.txz: Upgraded. l/gvfs-1.48.0-x86_64-1.txz: Upgraded. l/netpbm-10.94.01-x86_64-1.txz: Upgraded. l/pygobject3-3.40.1-x86_64-1.txz: Upgraded. l/vte-0.64.0-x86_64-1.txz: Upgraded. n/curl-7.76.0-x86_64-1.txz: Upgraded. This update fixes security issues: Authentication Bypass by Spoofing. Exposure of Private Personal Information to an Unauthorized Actor. For more information, see: https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-22890 https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-22876 (* Security fix *) xap/gimp-2.10.24-x86_64-1.txz: Upgraded. xap/seamonkey-2.53.7-x86_64-1.txz: Upgraded. This update contains security fixes and improvements. For more information, see: https://www.seamonkey-project.org/releases/seamonkey2.53.7 (* Security fix *)
Diffstat (limited to 'source/l/netpbm')
-rw-r--r--source/l/netpbm/netpbm-pamtojpeg2k.patch238
-rwxr-xr-xsource/l/netpbm/netpbm.SlackBuild3
2 files changed, 1 insertions, 240 deletions
diff --git a/source/l/netpbm/netpbm-pamtojpeg2k.patch b/source/l/netpbm/netpbm-pamtojpeg2k.patch
deleted file mode 100644
index 7eeed542..00000000
--- a/source/l/netpbm/netpbm-pamtojpeg2k.patch
+++ /dev/null
@@ -1,238 +0,0 @@
-diff --git a/converter/other/jpeg2000/pamtojpeg2k.c b/converter/other/jpeg2000/pamtojpeg2k.c
-index 4d73316..a53573f 100644
---- a/converter/other/jpeg2000/pamtojpeg2k.c
-+++ b/converter/other/jpeg2000/pamtojpeg2k.c
-@@ -98,7 +98,7 @@ parseCommandLine(int argc, char ** argv,
- char * modeOpt;
-
- unsigned int option_def_index;
--
-+
- MALLOCARRAY_NOFAIL(option_def, 100);
-
- option_def_index = 0; /* incremented by OPTENTRY */
-@@ -134,25 +134,25 @@ parseCommandLine(int argc, char ** argv,
- &numrlvlsSpec, 0);
- OPTENT3(0, "numgbits", OPT_UINT, &cmdlineP->numgbits,
- &numgbitsSpec, 0);
-- OPTENT3(0, "nomct", OPT_FLAG, NULL,
-+ OPTENT3(0, "nomct", OPT_FLAG, NULL,
- &cmdlineP->nomct, 0);
-- OPTENT3(0, "sop", OPT_FLAG, NULL,
-+ OPTENT3(0, "sop", OPT_FLAG, NULL,
- &cmdlineP->sop, 0);
-- OPTENT3(0, "eph", OPT_FLAG, NULL,
-+ OPTENT3(0, "eph", OPT_FLAG, NULL,
- &cmdlineP->eph, 0);
-- OPTENT3(0, "lazy", OPT_FLAG, NULL,
-+ OPTENT3(0, "lazy", OPT_FLAG, NULL,
- &cmdlineP->lazy, 0);
-- OPTENT3(0, "termall", OPT_FLAG, NULL,
-+ OPTENT3(0, "termall", OPT_FLAG, NULL,
- &cmdlineP->termall, 0);
-- OPTENT3(0, "segsym", OPT_FLAG, NULL,
-+ OPTENT3(0, "segsym", OPT_FLAG, NULL,
- &cmdlineP->segsym, 0);
-- OPTENT3(0, "vcausal", OPT_FLAG, NULL,
-+ OPTENT3(0, "vcausal", OPT_FLAG, NULL,
- &cmdlineP->vcausal, 0);
-- OPTENT3(0, "pterm", OPT_FLAG, NULL,
-+ OPTENT3(0, "pterm", OPT_FLAG, NULL,
- &cmdlineP->pterm, 0);
-- OPTENT3(0, "resetprob", OPT_FLAG, NULL,
-+ OPTENT3(0, "resetprob", OPT_FLAG, NULL,
- &cmdlineP->resetprob, 0);
-- OPTENT3(0, "verbose", OPT_FLAG, NULL,
-+ OPTENT3(0, "verbose", OPT_FLAG, NULL,
- &cmdlineP->verbose, 0);
- OPTENT3(0, "debuglevel", OPT_UINT, &cmdlineP->debuglevel,
- &debuglevelSpec, 0);
-@@ -223,7 +223,7 @@ parseCommandLine(int argc, char ** argv,
- cmdlineP->inputFilename = strdup("-"); /* he wants stdin */
- else if (argc - 1 == 1)
- cmdlineP->inputFilename = strdup(argv[1]);
-- else
-+ else
- pm_error("Too many arguments. The only argument accepted\n"
- "is the input file specification");
-
-@@ -232,7 +232,7 @@ parseCommandLine(int argc, char ** argv,
-
-
- static void
--createJasperRaster(struct pam * const inpamP,
-+createJasperRaster(struct pam * const inpamP,
- jas_image_t * const jasperP) {
- /*----------------------------------------------------------------------------
- Create the raster in the *jasperP object, reading the raster from the
-@@ -254,7 +254,7 @@ createJasperRaster(struct pam * const inpamP,
- if (matrix[plane] == NULL)
- pm_error("Unable to create matrix for plane %u. "
- "jas_matrix_create() failed.", plane);
-- }
-+ }
- tuplerow = pnm_allocpamrow(inpamP);
-
- jasperMaxval = pm_bitstomaxval(pm_maxvaltobits(inpamP->maxval));
-@@ -271,7 +271,7 @@ createJasperRaster(struct pam * const inpamP,
- unsigned int jasperSample;
-
- if (oddMaxval)
-- jasperSample = tuplerow[col][plane] *
-+ jasperSample = tuplerow[col][plane] *
- jasperMaxval / inpamP->maxval;
- else
- jasperSample = tuplerow[col][plane];
-@@ -279,16 +279,16 @@ createJasperRaster(struct pam * const inpamP,
- jas_matrix_set(matrix[plane], 0, col, jasperSample);
- }
- }
-- {
-+ {
- unsigned int plane;
-
- for (plane = 0; plane < inpamP->depth; ++plane) {
- int rc;
-- rc = jas_image_writecmpt(jasperP, plane, 0, row,
-+ rc = jas_image_writecmpt(jasperP, plane, 0, row,
- inpamP->width, 1,
- matrix[plane]);
- if (rc != 0)
-- pm_error("jas_image_writecmpt() of plane %u failed.",
-+ pm_error("jas_image_writecmpt() of plane %u failed.",
- plane);
- }
- }
-@@ -297,14 +297,14 @@ createJasperRaster(struct pam * const inpamP,
- pnm_freepamrow(tuplerow);
- for (plane = 0; plane < inpamP->depth; ++plane)
- jas_matrix_destroy(matrix[plane]);
--
-+
- free(matrix);
- }
-
-
-
- static void
--createJasperImage(struct pam * const inpamP,
-+createJasperImage(struct pam * const inpamP,
- jas_image_t ** const jasperPP) {
-
- jas_image_cmptparm_t * cmptparms;
-@@ -322,7 +322,7 @@ createJasperImage(struct pam * const inpamP,
- cmptparms[plane].prec = pm_maxvaltobits(inpamP->maxval);
- cmptparms[plane].sgnd = 0;
- }
-- *jasperPP =
-+ *jasperPP =
- jas_image_create(inpamP->depth, cmptparms, JAS_CLRSPC_UNKNOWN);
- if (*jasperPP == NULL)
- pm_error("Unable to create jasper image structure. "
-@@ -371,7 +371,7 @@ convertToJasperImage(struct pam * const inpamP,
-
-
- static void
--writeJpc(jas_image_t * const jasperP,
-+writeJpc(jas_image_t * const jasperP,
- struct cmdlineInfo const cmdline,
- FILE * const ofP) {
-
-@@ -383,8 +383,8 @@ writeJpc(jas_image_t * const jasperP,
-
- /* Note: ilyrrates is a hack because we're too lazy to properly parse
- command line options to get the information and then compose
-- a proper input to Jasper. So the user can screw things up by
-- specifying garbage for the -ilyrrates option
-+ a proper input to Jasper. So the user can screw things up by
-+ specifying garbage for the -ilyrrates option
- */
- if (strlen(cmdline.ilyrrates) > 0)
- pm_asprintf(&ilyrratesOpt, "ilyrrates=%s", cmdline.ilyrrates);
-@@ -410,7 +410,7 @@ writeJpc(jas_image_t * const jasperP,
- */
- rateOpt[0] = '\0';
- }
-- pm_asprintf(&options,
-+ pm_asprintf(&options,
- "imgareatlx=%u "
- "imgareatly=%u "
- "tilegrdtlx=%u "
-@@ -428,7 +428,7 @@ writeJpc(jas_image_t * const jasperP,
- "numrlvls=%u "
- "numgbits=%u "
- "%s %s %s %s %s %s %s %s %s",
--
-+
- cmdline.imgareatlx,
- cmdline.imgareatly,
- cmdline.tilegrdtlx,
-@@ -471,8 +471,8 @@ writeJpc(jas_image_t * const jasperP,
- pm_message("Using Jasper to encode to 'jpc' format with options "
- "'%s'", options);
-
-- rc = jas_image_encode(jasperP, outStreamP,
-- jas_image_strtofmt((char*)"jpc"),
-+ rc = jas_image_encode(jasperP, outStreamP,
-+ jas_image_strtofmt((char*)"jpc"),
- (char *)options);
- if (rc != 0)
- pm_error("jas_image_encode() failed to encode the JPEG 2000 "
-@@ -484,11 +484,11 @@ writeJpc(jas_image_t * const jasperP,
- int rc;
-
- rc = jas_stream_close(outStreamP);
--
-+
- if (rc != 0)
- pm_error("Failed to close output stream, "
- "jas_stream_close() rc = %d", rc);
-- }
-+ }
-
- jas_image_clearfmts();
-
-@@ -506,33 +506,31 @@ main(int argc, char **argv)
- jas_image_t * jasperP;
-
- pnm_init(&argc, argv);
--
-+
- parseCommandLine(argc, argv, &cmdline);
--
-- {
-+
-+ {
- int rc;
--
-+
- rc = jas_init();
- if ( rc != 0 )
- pm_error("Failed to initialize Jasper library. "
- "jas_init() returns rc %d", rc );
- }
--
-+
- jas_setdbglevel(cmdline.debuglevel);
--
-+
- ifP = pm_openr(cmdline.inputFilename);
--
-+
- pnm_readpaminit(ifP, &inpam, PAM_STRUCT_SIZE(tuple_type));
--
-+
- convertToJasperImage(&inpam, &jasperP);
--
-+
- writeJpc(jasperP, cmdline, stdout);
--
-+
- jas_image_destroy(jasperP);
-
- pm_close(ifP);
-
-- pm_close(stdout);
--
- return 0;
- }
diff --git a/source/l/netpbm/netpbm.SlackBuild b/source/l/netpbm/netpbm.SlackBuild
index 9bce529c..fd7fb444 100755
--- a/source/l/netpbm/netpbm.SlackBuild
+++ b/source/l/netpbm/netpbm.SlackBuild
@@ -1,6 +1,6 @@
#!/bin/bash
-# Copyright 2006, 2007, 2008, 2009, 2015, 2018 Patrick J. Volkerding, Sebeka, MN, USA
+# Copyright 2006, 2007, 2008, 2009, 2015, 2018, 2021 Patrick J. Volkerding, Sebeka, MN, USA
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -85,7 +85,6 @@ zcat $CWD/netpbm-multilib.patch.gz | patch -p1 --verbose || exit 1
zcat $CWD/netpbm-glibc.patch.gz | patch -p1 --verbose || exit 1
zcat $CWD/netpbm-docfix.patch.gz | patch -p1 --verbose || exit 1
zcat $CWD/netpbm-cmuwtopbm.patch.gz | patch -p1 --verbose || exit 1
-zcat $CWD/netpbm-pamtojpeg2k.patch.gz | patch -p1 --verbose || exit 1
zcat $CWD/netpbm-manfix.patch.gz | patch -p1 --verbose || exit 1
zcat $CWD/netpbm-manual-pages.patch.gz | patch -p1 --verbose || exit 1
zcat $CWD/netpbm-libdir-so.patch.gz | patch -p1 --verbose || exit 1