Commit graph

96 commits

Author SHA1 Message Date
wiz
69d200847c Update to 10.68.02. Remove XOPEN_SOURCE SUBST now that it was
fixed upstream.

14.11.23 BJH  Release 10.68.02

              pambackground: fix bug: segfault or incorrect results in most
              cases.  Thanks Ludolf Holzheid (ludolf.holzheid@gmx.de).
              Introduced in Netpbm 10.37 (December 2006).

14.09.28 BJH  Release 10.68.01

              Windows build: fix universal build failure with "No rule to make
              ...icon.netpbm.oLINKERISCOMPILER...".  Broken in Netpbm 10.67
              (June 2014).

14.09.26 BJH  Release 10.68.00

              Split pgmcrater into pamcrater and pamshadedrelief.

              pnmconvol: add -bias .

              Remove pnmcomp, install a pnmcomp symlink for pamcomp.

              Fix incorrect option parsing when there are multiple common
              options (e.g. -plain -quiet).  Always broken.  (Possibility of
              specifying multiple common options that don't cause the program
              to ignore every other option (like -version) was new in Netpbm
              10.10 (October 2002).

              cameratopam: fix buffer overflow.  Always present.  (cameratopam
              was new in Netpbm 10.28 (June 2005)).

              cameratopam: fix incorrect output introduced in Netpbm 10.51
              (June 2010).

              ppmtopict: Fix unconditional crash.  Introduced in
              Netpbm 10.52 (September 2010).

              pcdovtoppm: Fix crash due to invalid operator == on some
              systems.  Always broken (pcdovtoppm was new sometime between
              Netpbm 9.25 (March 2002) and Netpbm 10.11 (Februrary 2010)).

              Build: change _XOPEN_SOURCE from 600 back to 500 in 7 files.  It
              was changed from 500 to 600 in Subversion revision 1731 in
              Netpbm 10.60 (September 2012) because that made a similar
              version of Netpbm compile on Mac OSX.  Without it, strdup did
              not get defined.  But this is apparently a bug in Mac OSX, since
              X/Open 500 does have strdup.  Furthermore, many other Netpbm
              files use strdup and apparently compile OK on Mac OSX without
              600.  Finally, we see today that Illumos system header files
              deliberately kill the compilation if the compiler is pre-C99 and
              _XOPEN_SOURCE is 600.  So we go back to 500 and if the problem
              on Mac OSX gets reported again, we will look more deeply.

              Build: change _XOPEN_SOURCE from 600 back to 500 in
              jpeg2ktopam.c and pamtojpeg2k.c.  It was changed from 500 to 600
              in Netpbm 10.41 (December 2007), reportedly to get int_fast32_t,
              etc. defined on AIX, but other files that use int_fast32_t
              don't have it today, so that must be wrong.  See above for the
              drawback of 600.

              Build: fix undefined symbols in fiasco converters with
              static libraries.

              Build: provide means of setting the default search path for
              rgb.txt color database via config.mk.

              Build: fix bug which prevents JBIG converters from building with
              internal JBIG library.  Introduced in 10.67.00.

              Build: fix bug which makes build of Ppmsvga fail (which is
              attempted only on a system with libvga).  Introduced in Netpbm
              10.63 (June 2013)

              Build: fix build failure in an environment that does not have
              __inline .  Introduced some time between Netpbm 10.26
              (January 2005) and Netpbm 10.35 (August 2006).

              Build: fix build failure on SCO OpenServer due to SIGURG not
              existing.  Broken in Netpbm 10.49 (December 2009).

              Build: Declare _XOPEN_SOURCE >= 500 in source files that use
              strdup.

              Build: fix compile failure due to use of reserved word
              'stdout'.

              Build with 'installosf': Fix crash due to invalid operator ==
              on some systems.
2014-11-23 16:12:10 +00:00
gson
aeea9ee8b6 Use the libc vasprintf() on NetBSD. This fixes a bug where a warning
message from pnmtops would say "rescaling to g", with the letter "g"
appearing in place of a floating point value.  Bump PKGREVISION.
2014-11-23 14:38:34 +00:00
fhajny
eeebcae8ae Simplify default install target. Bump PKGREVISION (symlink changes). 2014-10-23 23:41:32 +00:00
wiz
a05f31e6e7 Update to 10.67.05:
14.09.08 BJH  Release 10.67.05

              cameratopam: fix buffer overflow.  Always present.  (cameratopam
              was new in Netpbm 10.28 (June 2005)).

              Build: fix universal build failure introduced in 10.67.04.
2014-09-08 21:55:04 +00:00
wiz
f189b5ecd7 Update to 10.67.04, integrating last two pkgsrc patches.
Add a second tarball consisting of the html-to-man converted documenation,
and overwrite dummy man pages with those.

Changes in 10.67.04:

14.09.04 BJH  Release 10.67.04

              pcdovtoppm: Fix crash due to invalid operator == on some
              systems.  Always broken (pcdovtoppm was new sometime between
              Netpbm 9.25 (March 2002) and Netpbm 10.11 (Februrary 2010)).

              Build: fix compile failure due to use of reserved word
              'stdout'.

              Build with 'installosf': Fix crash due to invalid operator ==
              on some systems.

              Build: fix undefined symbols in fiasco converters with
              static libraries.

              Build: provide means of setting the default search path for
              rgb.txt color database via config.mk.
2014-09-08 21:51:25 +00:00
wiz
a6b7945dc8 Update to 10.67.03. This is the current release of the Advanced
branch of netpbm. Lots and lots of changes since our Super Stable
release version.
2014-09-08 21:22:28 +00:00
wiz
7a9b0016b9 Remove two patches/chunks for ancient problems.
Update patch status for the ones that are in upstream releases/will be
included soon.
2014-08-25 08:23:22 +00:00
wiz
4acc35825d Update to 10.35.93:
14.06.29 BJH  Release 10.35.93

              pamsharpness: put primary output on Standard Output instead of
              on Standard Error as a Netpbm message.

              jpegtopnm -dumpexif: fix incorrect display of resolution.
              Always broken.  (-dumpexif was new in Netpbm 9.18 September
              2001).

              jpegtopnm -dumpexif: fix truncated make, model, or datetime.
              Always broken.  (-dumpexif was new in Netpbm 9.18 September
              2001).

              jpegtopnm -dumpexif: fix wild pointer with invalid EXIF data.
              Always broken.  (-dumpexif was new in Netpbm 9.18 September
              2001).

              Build: fix dependencies in .deb package so they work with Debian
              6 at least.  Always broken (.deb capability was new in 10.35.92).
2014-08-21 21:01:58 +00:00
wiz
d5cf0124a4 Update to 10.35.92:
14.03.29 BJH  Release 10.35.92

              ppmrelief: fix out-of-bound values in output.  Always broken.
              Thanks Prophet of the Way <afu@wta.att.ne.jp>.

              ppmrelief: fix crash when input image is too small.  Always
              broken.  Thanks Prophet of the Way <afu@wta.att.ne.jp>.

              pgmtexture: fix buffer overflow.  Always broken.  (Program
              was added in primordial Netpbm in 1991).

              pamdeinterlace: fix incorrect output with -takeodd and image has
              only one row.  Always broken (pamdeinterlace was introduced in
              Netpbm 9.21 (January 2001)).  Thanks Prophet of the Way
              <afu@wta.att.ne.jp>.

13.12.24 BJH  Release 10.35.91

              pbmtoepsi: fix handling of all-white image.  Always broken.
              Thanks Prophet of the Way <afu@wta.att.ne.jp>.

              pbmtoepsi: fix excessively long raster line.  Always broken.
              Thanks Prophet of the Way <afu@wta.att.ne.jp>.

              pnmshear: fix incorrect determination of background color.
              Always broken.

              ppmpat: fix crash with -squig with aspect ratio < 1:25 or
              > 25:1. Thanks Prophet of the Way <afu@wta.att.ne.jp>.
              Always broken.

              pamgauss: Fix typo in message.

13.09.26 BJH  Release 10.35.90

              ppmtoxpm: fix bug: ignores inability to open the specified color
              dictionary file (-rgb) and just doesn't use color names.
              Introduced in Netpbm 10.15 (April 2003).

              ppmforge. fix crash when -mesh is 1 or less.  Always broken
              (program was added in Pbmplus (October 1991).  Thanks Prophet of
              the Way <afu@wta.att.ne.jp>.

              ppmforge: fix array bounds violation.  Always broken (program
              was added in Pbmplus (October 1991).  Thanks Prophet of the Way
              <afu@wta.att.ne.jp>.

13.05.03 BJH  Release 10.35.89

              ppmtowinicon: fix bug: sometimes creates image truncated in the
              middle of the AND mask.  Always broken (program was new in
              Netpbm 9.3 (June 2000)).

              pamtilt: fix bug: incorrect output or invalid memory access
              crash.  Always broken (program was new in Neptbm 10.30
              (October 2005)).

13.02.20 BJH  Release 10.35.88

              ppmpat: fix wrong output with -poles.

              Windows build: fix compile error on urt/rle_open_f.c due to
              Unix process management stuff.

              leaftoppm: fix incorrect determination of whether input is
              Interleaf on 64 bit systems.  Always broken.

              cmuwmtopbm: fix incorrect determination of whether input is
              a CMU window manager bitmap on 64 bit systems.  Always broken.

12.12.05 BJH  Release 10.35.87

              pamtotiff: fix bug: XRESOLUTION, YRESOLUTION, and RESOLUTIONUNIT
              not allowed in -tags.  Broken at least since 10.35.00.

              pnmmontage: fix random stuff placed in unoccupied space in the
              output image.  Always broken (program was new in 9.10 (January
              2001).

              pnmpsnr: fix crash when invoked (invalidly) with only one
              argument.  Always broken.

              pampick: fix wild pointer in command line parsing.  Bug has
              always been there.

              pamgauss: Fix bug: erroneously says -maxval is too big.
              Always broken (Pamgauss was added in 10.23 (July 2004).

12.07.23 BJH  Release 10.35.86

              ppmtobmp: fix failure with "internal error" message on all
              uses.  Broken in 10.35.78.

              Build: rename getline() in xpmtoppm.c to avoid collision
              with some libc.  Always broken.

12.06.21 BJH  Release 10.35.85

              configure: work around Perl bug that causes 'configure' to
              falsely conclude Svgalib is installed.

              Build: move -lm to end of -l's.  Broken at least since 10.35.

12.02.14 BJH  Release 10.35.84

              pamscale: fix all black output with resampling.  Always broken.

              pgmtexture: fix integer overflow in difference variance.
              Always broken.

              pgmtexture: fix array bounds violations in various calculations.
              Always broken.

              Build: always put Netpbm header files before external library
              header files in search path.

11.11.25 BJH  Release 10.35.83

              pngtopnm: fix crash with invalid tIME chunk.  Always broken.

11.09.25 BJH  Release 10.35.82

              pnmtopng: fix bug: with -alpha specifying a mask which contains
              no fully transparent area, output PNG is fully opaque.
              Introduced in 10.29.

              pnmquant: work with older Perl that doesn't have 3-argument open.

              pnmtops: fix message: says "from top edge" where it means
              "from bottom edge."

11.07.10 BJH  Release 10.35.81

              pgmtexture: fix wrong sum variance result.  Wrong since the
              beginning.  Thanks Francois P. S. Luus <fpsluus@gmail.com>.
2014-08-21 20:58:23 +00:00
ryoon
5c52d25e56 Fix build under SCO OpenServer 5.0.7/3.2. 2014-07-17 15:52:25 +00:00
ryoon
44178627c3 Fix OpenBSD build 2014-05-16 12:43:52 +00:00
jperkin
ac6dd50509 Remove SunOS patch, the ld(1) options are actively harmful and cause
R_AMD64_32 relocation errors in 64-bit mode.  The default options should
work fine.

Bump PKGREVISION.
2012-07-25 14:42:02 +00:00
is
b439f3caba Fix build problem on IRIX (missing strdup prototype). Reported in
PR 45766, patch from there.
2012-01-19 20:17:47 +00:00
adam
edb75fbbeb Changes 10.35.80:
* asciitopgm: fix bug: memory corruption on too-long lines.
* asciitopgm: fix bug: improper handling of blank lines.

Changes 10.35.79:
* configure: don't default to /usr/X11R6/lib/libX11.so just because
  /usr/X11R6 exists.  /usr/X11R6/lib must exist.
* pngtopnm: fix bug: -verbose reports history chunk present when
  it's really a palette.
2011-04-04 09:17:24 +00:00
tron
cd109a3c3a Update "netpbm" package to version 10.35.78. Changes since 10.35.77:
- bmptopnm: Don't crash on invalid zero value of image height in
  the BMP header of a compressed file.  Always broken.
- bmptopnm: don't crash on large invalid value of 'colorsused' in
  the BMP header.
- ilbmtoppm: Don't crash on image that has a transparent color
  index, but no color map.

"pkgsrc" changes:
- Add a lot of patches written by Thomas Klausner and me to make this
  compile with PNG 1.5.
2011-01-15 18:37:46 +00:00
tron
893bd5b8db Fix bug in patch for "pnmtopng" reported by Thomas Klausner in private
e-mail. No package revision bump as the package didn't build before
and still doesn't until "pngtopnm" gets fixed as well.
2011-01-15 08:15:47 +00:00
tron
ffd0a4db26 Get "pnmtopng" to build with new "png" package. "pngtopnm" still fails. 2011-01-14 21:51:58 +00:00
adam
fee2f17fac Fix problem finding rgb.txt, PR#43934 2010-11-04 10:57:50 +00:00
adam
dd92c89ea7 Pass LDFLAGS when building progs; required e.g. for -isysroot on MacOSX 2010-10-28 07:09:13 +00:00
tron
1378198155 Update "netpbm" package to version 10.35.77.
Changes since version 10.35.76:
- ppmtompeg: fix crash with free of unallocated memory.
- Build: don't expect snprintf() to exist.
- Build: don't use <strings.h> or bzero().
2010-09-23 09:09:20 +00:00
adam
37f11ea699 Changes 10.35.76:
* Pnmtopng:  -libversion doesn't report level of linked libz.
  It was a modularity violation and caused build failures on
  Mac OS X, because Pnmtopng per se doesn't know about libz --
  it's used by libpng.
* Build: don't fail due to SIGRTMIN, SIGRTMAX being undefined.

Changes 10.35.75:
* palmtopnm: fix for pixel size 16.
* pamscale: fix -reduce.  Introduced in 10.27.
* configure: default to 'none' for Svgalib if it doesn't appear to
  be installed (per 'ldconfig').  Ported from 10.38, released March 2007.

Changes 10.35.74:
* pbmtext: don't crash when font file contains a blank line.
  Fail cleanly.
* ppmtoilbm: fix arithmetic overflow with image dimension
  represented as 16 bit integer.
* pbmpage: fix garbage output.
* pnmhistmap: Fix crash with -width.  Always broken.
* Build: don't fail due to SIGPWR being undefined.
2010-07-13 06:08:23 +00:00
wiz
e8d8834f6a Bump PKGREVISION for libpng shlib name change.
Also add some patches to remove use of deprecated symbols and fix other
problems when looking for or compiling against libpng-1.4.x.
2010-06-13 22:43:46 +00:00
drochner
6ed365fdd1 use SIGPWR only #if defined, fixes build on DragonFly, from Rumko
per PR pkg/43068
2010-03-28 12:36:35 +00:00
tnn
f02a9d99f4 Mixing _XOPEN_SOURCE=500 and _XOPEN_SOURCE=600 in the same package
is asking for trouble. On solaris these options are mutually exclusive
because 600 needs C99 and 500 is not allowed to use C99.

I lowered the requirement to _XOPEN_SOURCE=500 and the build succeeded.

While here I'll note that PR pkg/42897 (netbpm link error on Solaris 10)
should now be fixed by libpng-1.2.41nb1.
2010-03-04 11:01:01 +00:00
drochner
e07ba045f8 update to 10.35.73
changes: many bugfixes, especially:
 xpmtoppm: fix wild pointer with color index > 127.
 which fixes a stack-based buffer overflow (CVE-2009-4274)

pkgsrc change: use a fixed PLIST instead of generating on install,
 helps to detect problems
2010-02-19 18:25:44 +00:00
dholland
f2e666298f Add upstream patch to fix build with new jpeg. Thanks to obache@ for
tracking it down. Fixes PR 41947.
2009-08-27 09:18:06 +00:00
tnn
324280b064 typo in previous 2009-07-21 12:40:54 +00:00
tnn
64a49df70b patch-az: MMX/SSE code is broken with GCC 4.3, disable it. 2009-07-21 12:39:54 +00:00
smb
ec897e292d Change getline() to get_line() 2009-07-18 03:04:41 +00:00
hasso
4b49f91786 Make it build on DragonFly master. 2009-04-07 08:09:06 +00:00
rillig
a80659b46f Fixed the build on IRIX, which had been broken since about one year,
when the build on Solaris had been fixed, "not affecting other
platforms". ;)
2007-02-19 02:25:19 +00:00
dmcmahill
2ade927b56 Use __inline__ instead of __inline. The former works with some non-gcc
compilers as well as gcc.
2007-01-13 01:16:17 +00:00
tron
e9ce827252 Fix non-portable shell script "pcdovtoppm". 2006-11-19 15:50:59 +00:00
rillig
35bc5cddd5 Added some patches for Tru64 support, provided by Hrvoje Habjanic in
http://mail-index.netbsd.org/pkgsrc-users/2006/11/02/0003.html
2006-11-03 07:45:19 +00:00
rillig
4b9cbf457e Fixed "test ==" and a few pkglint warnings. 2006-10-11 18:44:25 +00:00
schwarz
5d6e0bc093 added missing $NetBSD$ headers 2006-10-03 23:01:25 +00:00
schwarz
a4efb4c0c3 added support for IRIX 5 and in particular the SGI IDO cc.
patches were discussed with Bryan Henderson, maintainer of the netpbm
code.
2006-10-03 22:56:50 +00:00
adam
6ec6761023 This is a security update, which fixes a buffer overflow vulnerability.
Changes 10.34:
* Add pamthreshold, pamx, pamtoxvmini.
* pammasksharpen: Add -threshold.
* pnmtopng: make "N colors found" message verbose-only.
* pnmtopng: make "no room in palette" message non-verbose.
* picttoppm: Tolerate various PICT file corruptions.
* picttoppm: Don't issue warning message when file named
  'fontdir' doesn't exist.
* libnetpbm: Add ppmd_fill_path().
* ppmtobmp: Fix for PBM input.
* bmptopnm: Don't crash on BMP with no color map.
* bmptopnm: Fix wrong file name in error messages.
* ppmtogif: fix bug: always produces garbage output.
* ppmtompeg: fix input from Standard Input.
* pnmflip: fix bug: -rotate90, -rotate180, and -rotate270
  (and synonyms) don't work when followed by other rotation options.
* ppmtoilbm: Fig bug: generates more planes than necessary.
* pamtofits: fix buffer overflow in asembling header.
* picttoppm: fix bug - interprets some images wrong because of
  bogus "rowBytes" value.
* Redo asprintfN(), etc. so as not to use va_list in a way
  that doesn't work on some machines.
* cameratopam: remove definition of memmem() so it doesn't collide
  with same in some C libraries.  Add memmemN() and MEMEQ to libnetpbm.
* Fix build of filename.o.
2006-06-25 06:35:58 +00:00
minskim
25aed54419 Build .dylib instead of .so on Darwin. Bump PKGREVISION. 2006-06-18 16:18:11 +00:00
wiz
00d3efb978 Add patches for some issues from the known-bugs page, including
one that should fix PR 33347 by martijn (build on amd64).

Bump PKGREVISION.
2006-05-14 16:39:05 +00:00
jlam
c501569a32 On FreeBSD 4.x, <netinet/in.h> needs <sys/types.h> to be included first. 2006-05-10 17:19:00 +00:00
wiz
a76c4743d4 Use versioned png library. Bump PKGREVISION. 2006-04-19 20:52:29 +00:00
adam
2fc4f59354 Changes 10.33:
Add pamtosvg.

g3topbm: Add -width, -paper_size.

libnetpbm / most newer programs: Fix bug that produces
plain format output when it should be raw because
pnm_readpaminit() does not set 'plainformat' and most
programs just copy the input pam to the output pam.

pamflip: fix bug with left/right flip of PBM that has
width an even multiple of 8 plus something less than 8.

pnmquant: turn on autoflush when creating seekable file.

install: fix symbolic link pnmdepth -> pamdepth.

build: fix some importinc dependencies.
2006-04-17 08:11:17 +00:00
adam
0edcdc89c0 Fixed symbolic link to pamdepth 2006-03-02 23:17:36 +00:00
adam
bf1c4d5003 Changes 10.32:
* Add rlatopam.
* Add pgmmake.
* bmptopnm: Understands RLE4/RLE8 compressed BMP.
* pnmgamma: Add -bt709tosrgb -srgbtobt709, -bt709tolinear,
  -lineartobt709, -gamma, -rgamma, -ggamma, -bgamma (gammma
  values were formerly specified as parameters).
* pnmgamma: Rename -cieramp to -bt709ramp.
* ppmdraw: work on multi-image streams.
* anytopnm: add mime time image/x-ms-bmp for BMP
* pamchannel: works on multi-image streams.
* pamstack: works on multi-image streams.
* Convert pnmdepth to pamdepth.  Add multi-image stream
  capability.
* pamcut: works on multi-image streams.
* pnmtops: allow -flate and -rle together.
* pnmtops: overhaul of -psfilter output.
* pnmrotate: fine adjustment to arithmetic (rounding,
  pixel quantization).
* pbmtopsg3: Put currentfile ... in exec block.
* pbmtopsg3: Add missing /EndOfBlock.
* pnmtops: Don't claim EPSF if using setpagedevice.
* giftopnm: do "reading image sequence N" message only if
  being verbose.
* ppmtobmp, bmptopnm: major speed improvement for PBM.
* other
2006-02-27 22:01:16 +00:00
wiz
b1c6231f13 Fix bug in xwdtopnm. Patch from Bryan Henderson via Jukka Salmi
on tech-pkg. Bump PKGREVISION.
2006-02-23 17:37:01 +00:00
adam
d2f3dde216 Fix build on FreeBSD 6 (PR-32234) 2006-02-14 21:57:44 +00:00
markd
af46f24af1 Fix build on Solaris. 2006-02-04 12:23:55 +00:00
joerg
71ab31518c Save a bunch of coredump message in my dmesg and allow groff to compile
by fixing pnmtopng's opt parsing. Bump revision.
2006-02-02 17:01:17 +00:00
joerg
a08cf60a6e Regen for patch-ad. 2006-02-02 16:04:35 +00:00