diff options
author | Patrick J Volkerding <volkerdi@slackware.com> | 2016-06-30 20:26:57 +0000 |
---|---|---|
committer | Eric Hameleers <alien@slackware.com> | 2018-05-31 23:31:18 +0200 |
commit | d31c50870d0bee042ce660e445c9294a59a3a65b (patch) | |
tree | 6bfc0de3c95267b401b620c2c67859557dc60f97 /source/t | |
parent | 76fc4757ac91ac7947a01fb7b53dddf9a78a01d1 (diff) | |
download | current-d31c50870d0bee042ce660e445c9294a59a3a65b.tar.gz |
Slackware 14.2slackware-14.2
Thu Jun 30 20:26:57 UTC 2016
Slackware 14.2 x86_64 stable is released!
The long development cycle (the Linux community has lately been living in
"interesting times", as they say) is finally behind us, and we're proud to
announce the release of Slackware 14.2. The new release brings many updates
and modern tools, has switched from udev to eudev (no systemd), and adds
well over a hundred new packages to the system. Thanks to the team, the
upstream developers, the dedicated Slackware community, and everyone else
who pitched in to help make this release a reality.
The ISOs are off to be replicated, a 6 CD-ROM 32-bit set and a dual-sided
32-bit/64-bit x86/x86_64 DVD. Please consider supporting the Slackware
project by picking up a copy from store.slackware.com. We're taking
pre-orders now, and offer a discount if you sign up for a subscription.
Have fun! :-)
Diffstat (limited to 'source/t')
-rwxr-xr-x | source/t/tetex/tetex.SlackBuild | 10 | ||||
-rw-r--r-- | source/t/tetex/tetex.png16.diff | 167 | ||||
-rwxr-xr-x | source/t/transfig/transfig.SlackBuild | 2 | ||||
-rw-r--r-- | source/t/xfig/slack-desc | 6 | ||||
-rwxr-xr-x | source/t/xfig/xfig.SlackBuild | 10 |
5 files changed, 185 insertions, 10 deletions
diff --git a/source/t/tetex/tetex.SlackBuild b/source/t/tetex/tetex.SlackBuild index e813490d..ac6ccf43 100755 --- a/source/t/tetex/tetex.SlackBuild +++ b/source/t/tetex/tetex.SlackBuild @@ -1,6 +1,6 @@ #!/bin/sh -# Copyright 2008, 2009, 2010 Patrick J. Volkerding, Sebeka, Minnesota, USA +# Copyright 2008, 2009, 2010, 2015 Patrick J. Volkerding, Sebeka, Minnesota, USA # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -22,7 +22,7 @@ VERSION=3.0 -BUILD=${BUILD:-8} +BUILD=${BUILD:-10} # Automatically determine the architecture we're building on: if [ -z "$ARCH" ]; then @@ -110,7 +110,10 @@ zcat $CWD/tetex.tmp.cleanup.diff.gz | patch -p1 --verbose || exit 1 zcat $CWD/tetex.cpascal.getline.posix.2008.diff.gz | patch -p1 --verbose || exit 1 # Patch for libpng-1.4.0: -zcat $CWD/tetex.png14.diff.gz | patch -p1 --verbose || exit 1 +#zcat $CWD/tetex.png14.diff.gz | patch -p1 --verbose || exit 1 + +# Patch for libpng16: (currently causing a segfault... feel free to help :-) +#zcat $CWD/tetex.png16.diff.gz | patch -p1 --verbose || exit 1 # Another problem caused by getline() in glibc: zcat $CWD/tetex.afm2tfm.getline.diff.gz | patch -p1 --verbose || exit 1 @@ -124,7 +127,6 @@ CXXFLAGS="$SLKCFLAGS" \ --without-dialog \ --without-texinfo \ --with-system-ncurses \ - --with-system-pnglib \ --with-system-t1lib \ --with-system-tifflib \ --with-system-zlib \ diff --git a/source/t/tetex/tetex.png16.diff b/source/t/tetex/tetex.png16.diff new file mode 100644 index 00000000..f2465233 --- /dev/null +++ b/source/t/tetex/tetex.png16.diff @@ -0,0 +1,167 @@ +--- ./texk/web2c/pdftexdir/writeimg.c.orig 2015-03-23 13:18:35.471056383 -0500 ++++ ./texk/web2c/pdftexdir/writeimg.c 2015-03-23 13:30:32.157115740 -0500 +@@ -126,7 +126,7 @@ + { + switch (img_type(img)) { + case IMAGE_TYPE_PNG: +- return png_info(img)->bit_depth; ++ return png_get_bit_depth(png_ptr(img), png_info(img)); + case IMAGE_TYPE_JPG: + return jpg_ptr(img)->bits_per_component; + case IMAGE_TYPE_PDF: +@@ -346,7 +346,7 @@ + epdf_delete(); + break; + case IMAGE_TYPE_PNG: +- xfclose(png_ptr(img)->io_ptr, cur_file_name); ++ xfclose(png_get_io_ptr(png_ptr(img)), cur_file_name); + png_destroy_read_struct(&(png_ptr(img)), &(png_info(img)), NULL); + break; + case IMAGE_TYPE_JPG: +--- ./texk/web2c/pdftexdir/writepng.c.orig 2015-03-23 13:18:35.471056383 -0500 ++++ ./texk/web2c/pdftexdir/writepng.c 2015-03-23 13:27:58.053102977 -0500 +@@ -34,24 +34,24 @@ + pdftex_fail("libpng: png_create_read_struct() failed"); + if ((png_info(img) = png_create_info_struct(png_ptr(img))) == NULL) + pdftex_fail("libpng: png_create_info_struct() failed"); +- if (setjmp(png_ptr(img)->jmpbuf)) ++ if (setjmp(png_jmpbuf(png_ptr(img)))) + pdftex_fail("libpng: internal error"); + png_init_io(png_ptr(img), png_file); + png_read_info(png_ptr(img), png_info(img)); +- if (png_info(img)->color_type & PNG_COLOR_MASK_ALPHA) ++ if (png_get_color_type(png_ptr(img), png_info(img)) & PNG_COLOR_MASK_ALPHA) + png_set_strip_alpha(png_ptr(img)); +- if (png_info(img)->bit_depth == 16) ++ if (png_get_bit_depth(png_ptr(img), png_info(img)) == 16) + png_set_strip_16(png_ptr(img)); + png_read_update_info(png_ptr(img), png_info(img)); +- img_width(img) = png_info(img)->width; +- img_height(img) = png_info(img)->height; +- if (png_info(img)->valid & PNG_INFO_pHYs) { ++ img_width(img) = png_get_image_width(png_ptr(img), png_info(img)); ++ img_height(img) = png_get_image_height(png_ptr(img), png_info(img)); ++ if (png_get_valid(png_ptr(img), png_info(img), PNG_INFO_pHYs)) { + img_xres(img) = + round(0.0254*png_get_x_pixels_per_meter(png_ptr(img), png_info(img))); + img_yres(img) = + round(0.0254*png_get_y_pixels_per_meter(png_ptr(img), png_info(img))); + } +- switch (png_info(img)->color_type) { ++ switch (png_get_color_type(png_ptr(img), png_info(img))) { + case PNG_COLOR_TYPE_PALETTE: + img_color(img) = IMAGE_COLOR_C | IMAGE_COLOR_I; + break; +@@ -64,7 +64,7 @@ + img_color(img) = IMAGE_COLOR_C; + break; + default: +- pdftex_fail("unsupported type of color_type <%i>", png_info(img)->color_type); ++ pdftex_fail("unsupported type of color_type <%i>", png_get_color_type(png_ptr(img), png_info(img))); + } + } + +@@ -73,23 +73,26 @@ + int i, j, k, l; + integer palette_objnum = 0; + png_bytep row, r, *rows; ++ png_colorp png_palette; ++ int num_palette; ++ png_get_PLTE(png_ptr(img), png_info(img), &png_palette, &num_palette); + pdf_puts("/Type /XObject\n/Subtype /Image\n"); + pdf_printf("/Width %i\n/Height %i\n/BitsPerComponent %i\n", +- (int)png_info(img)->width, +- (int)png_info(img)->height, +- (int)png_info(img)->bit_depth); ++ (int)png_get_image_width(png_ptr(img), png_info(img)), ++ (int)png_get_image_height(png_ptr(img), png_info(img)), ++ (int)png_get_bit_depth(png_ptr(img), png_info(img))); + pdf_puts("/ColorSpace "); + if (img_colorspace_ref(img) != 0) { + pdf_printf("%i 0 R\n", (int)img_colorspace_ref(img)); + } + else { +- switch (png_info(img)->color_type) { ++ switch (png_get_color_type(png_ptr(img), png_info(img))) { + case PNG_COLOR_TYPE_PALETTE: + pdfcreateobj(0, 0); + palette_objnum = objptr; + pdf_printf("[/Indexed /DeviceRGB %i %i 0 R]\n", +- (int)(png_info(img)->num_palette - 1), +- (int)palette_objnum); ++ num_palette - 1), ++ (int)palette_objnum; + break; + case PNG_COLOR_TYPE_GRAY: + case PNG_COLOR_TYPE_GRAY_ALPHA: +@@ -100,20 +103,20 @@ + pdf_puts("/DeviceRGB\n"); + break; + default: +- pdftex_fail("unsupported type of color_type <%i>", png_info(img)->color_type); ++ pdftex_fail("unsupported type of color_type <%i>", png_get_color_type(png_ptr(img), png_info(img))); + } + } + pdfbeginstream(); +- if (png_info(img)->interlace_type == PNG_INTERLACE_NONE) { +- row = xtalloc(png_info(img)->rowbytes, png_byte); +- for (i = 0; i < (int)png_info(img)->height; i++) { ++ if (png_get_interlace_type(png_ptr(img), png_info(img)) == PNG_INTERLACE_NONE) { ++ row = xtalloc(png_get_rowbytes(png_ptr(img), png_info(img)), png_byte); ++ for (i = 0; i < (int)png_get_image_height(png_ptr(img), png_info(img)); i++) { + png_read_row(png_ptr(img), row, NULL); + r = row; +- k = png_info(img)->rowbytes; ++ k = png_get_rowbytes(png_ptr(img), png_info(img)); + while(k > 0) { + l = (k > pdfbufsize)? pdfbufsize : k; + pdfroom(l); +- for (j = 0; j < l; j++) ++ for (j = 0; j < (int)png_get_rowbytes(png_ptr(img), png_info(img)); j++) + pdfbuf[pdfptr++] = *r++; + k -= l; + } +@@ -121,19 +124,19 @@ + xfree(row); + } + else { +- if (png_info(img)->height*png_info(img)->rowbytes >= 10240000L) ++ if (png_get_image_height(png_ptr(img), png_info(img))*png_get_rowbytes(png_ptr(img), png_info(img)) >= 10240000L) + pdftex_warn("large interlaced PNG might cause out of memory (use non-interlaced PNG to fix this)"); +- rows = xtalloc(png_info(img)->height, png_bytep); +- for (i = 0; i < png_info(img)->height; i++) +- rows[i] = xtalloc(png_info(img)->rowbytes, png_byte); ++ rows = xtalloc(png_get_image_height(png_ptr(img), png_info(img)), png_bytep); ++ for (i = 0; i < png_get_image_height(png_ptr(img), png_info(img)); i++) ++ rows[i] = xtalloc(png_get_rowbytes(png_ptr(img), png_info(img)), png_byte); + png_read_image(png_ptr(img), rows); +- for (i = 0; i < (int)png_info(img)->height; i++) { ++ for (i = 0; i < (int)png_get_image_height(png_ptr(img), png_info(img)); i++) { + row = rows[i]; +- k = png_info(img)->rowbytes; ++ k = png_get_rowbytes(png_ptr(img), png_info(img)); + while(k > 0) { + l = (k > pdfbufsize)? pdfbufsize : k; +- pdfroom(l); +- for (j = 0; j < l; j++) ++ pdfroom(png_get_rowbytes(png_ptr(img), png_info(img))); ++ for (j = 0; j < (int)png_get_rowbytes(png_ptr(img), png_info(img)); j++) + pdfbuf[pdfptr++] = *row++; + k -= l; + } +@@ -145,11 +148,11 @@ + if (palette_objnum > 0) { + pdfbegindict(palette_objnum); + pdfbeginstream(); +- for (i = 0; i < png_info(img)->num_palette; i++) { ++ for (i = 0; i < num_palette; i++) { + pdfroom(3); +- pdfbuf[pdfptr++] = png_info(img)->palette[i].red; +- pdfbuf[pdfptr++] = png_info(img)->palette[i].green; +- pdfbuf[pdfptr++] = png_info(img)->palette[i].blue; ++ pdfbuf[pdfptr++] = png_palette[i].red; ++ pdfbuf[pdfptr++] = png_palette[i].green; ++ pdfbuf[pdfptr++] = png_palette[i].blue; + } + pdfendstream(); + } diff --git a/source/t/transfig/transfig.SlackBuild b/source/t/transfig/transfig.SlackBuild index f626635f..58bd7b45 100755 --- a/source/t/transfig/transfig.SlackBuild +++ b/source/t/transfig/transfig.SlackBuild @@ -23,7 +23,7 @@ PKGNAM=transfig VERSION=${VERSION:-3.2.5e} -BUILD=${BUILD:-2} +BUILD=${BUILD:-3} # Automatically determine the architecture we're building on: if [ -z "$ARCH" ]; then diff --git a/source/t/xfig/slack-desc b/source/t/xfig/slack-desc index 85d1fefd..387dd255 100644 --- a/source/t/xfig/slack-desc +++ b/source/t/xfig/slack-desc @@ -10,9 +10,9 @@ xfig: xfig (interactive drawing tool) xfig: xfig: This package contains the binary for xfig, an interactive drawing tool xfig: under X. Xfig can create fig, epsf, and LaTeX files with various -xfig: options. You also have to install the transfig package (transfig.tgz) -xfig: so that xfig can export fig files as epsf and LaTeX files. This -xfig: package also contains a set of basic examples of fig files. +xfig: options. You will also need the transfig package so that xfig can +xfig: export fig files as epsf and LaTeX files. This package also contains +xfig: a set of basic examples of fig files. xfig: xfig: xfig: diff --git a/source/t/xfig/xfig.SlackBuild b/source/t/xfig/xfig.SlackBuild index 41f23f12..097d4a1d 100755 --- a/source/t/xfig/xfig.SlackBuild +++ b/source/t/xfig/xfig.SlackBuild @@ -1,6 +1,6 @@ #!/bin/sh -# Copyright 2007, 2008, 2009, 2010, 2013 Patrick J. Volkerding, Sebeka, MN, USA +# Copyright 2007, 2008, 2009, 2010, 2013, 2015 Patrick J. Volkerding, Sebeka, MN, USA # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -22,7 +22,7 @@ VERSION=3.2.5c -BUILD=${BUILD:-2} +BUILD=${BUILD:-3} # Automatically determine the architecture we're building on: if [ -z "$ARCH" ]; then @@ -81,6 +81,12 @@ make install.html DESTDIR=$PKG || exit 1 find $PKG | xargs file | grep -e "executable" -e "shared object" \ | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null +# Move man page to the correct place: +if [ -d $PKG/usr/man/man1x ]; then + mv $PKG/usr/man/man1x $PKG/usr/man/man1 + mv $PKG/usr/man/man1/xfig.1x $PKG/usr/man/man1/xfig.1 +fi + gzip -9 $PKG/usr/man/man1/* mkdir -p $PKG/usr/doc/xfig-$VERSION |