X-Original-To: alpine-aports@mail.alpinelinux.org Delivered-To: alpine-aports@mail.alpinelinux.org Received: from mail.alpinelinux.org (dallas-a1.alpinelinux.org [127.0.0.1]) by mail.alpinelinux.org (Postfix) with ESMTP id 49EFBDC1BAF for ; Fri, 15 Jan 2016 04:31:14 +0000 (UTC) Received: from mail-pf0-f178.google.com (mail-pf0-f178.google.com [209.85.192.178]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mail.alpinelinux.org (Postfix) with ESMTPS id C08D6DC0EC0 for ; Fri, 15 Jan 2016 04:31:13 +0000 (UTC) Received: by mail-pf0-f178.google.com with SMTP id q63so114526744pfb.1 for ; Thu, 14 Jan 2016 20:31:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=9THe0g/Mo/o8KwbqTW+VxUH/JbJZEQLrJfDeMWhN7og=; b=c5Fd4hEBeU9WYs/TYutJWWrwXZLuj+UU/lS2phjkk11fnSKbJX2O0YEE1JuSYi5VxQ UUtGNpSDxhqwZEbL8TnVeqhzb1Mx1Kn0NY75eY2D72raOMseUgPKKN6qA0v7UGAvSt7J sf3fz347UPxw1TqjGurGkbdeODMiQewiEFJYrDPgRZauuUKvanL+KxnLrnDp0l4t6LzC 82UXOYa1tvnRmDxWP7kwAQ4cqS3XB1/aO4k77sO0XD+Ux+DPLWOUWu0CBAVwenB1tdC4 k1a5i3UtzhIaQh0QGdgYr9NAlMx9KF/gv25WDsgBVsDIuv+BQMVANDKYvcpwEFf8Vj0F HnWw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=9THe0g/Mo/o8KwbqTW+VxUH/JbJZEQLrJfDeMWhN7og=; b=Rm87URjnIa3TriRTHrHIRyrD/9id326u1vRvBCDKmQtQEcmNxZpLPSOFiQTQR2xX2r bgM9cqhIri9ghtGYEVGhtPmxXgY9bKYBc25hiKuNtmKcyqpIo8ANpMW6Du1L5SzSBpau BjNyGmAfzt0pC3wnf0M7bdXkwM8RlOIeAt6RpkAo3M4bAG7yHNqG8lYB7O/EDG2CxrQu 1FXCP2JLJmqgtDEZcCpUTc4bQ8BqfNT9sqTctL9dOYuBkMxyFKhmhE2458OSaTRc3rND W2cuG3OOewYV0GnmK6Czl29jhGrKVHbSYSBb/yTH8dfPoqeN1jbeLhhJCSdV5u/vD+DL wJfA== X-Gm-Message-State: ALoCoQkKl+wy7eqqrUzLgfxNlDduVsA61i6RXsK36sVfkdxwAlUdIYNKwM/AtojCr+VT7Zk0UQG3xX1OV3Siolij00hYDcMX6g== X-Received: by 10.98.93.84 with SMTP id r81mr11925529pfb.64.1452832272182; Thu, 14 Jan 2016 20:31:12 -0800 (PST) Received: from localhost.localdomain ([50.0.225.136]) by smtp.gmail.com with ESMTPSA id cl3sm12555484pad.11.2016.01.14.20.31.10 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 14 Jan 2016 20:31:11 -0800 (PST) From: Isaac Dunham To: alpine-aports@lists.alpinelinux.org Cc: Isaac Dunham Subject: [alpine-aports] [PATCH] main/cups-filters: update to 1.6.0 Date: Thu, 14 Jan 2016 20:30:59 -0800 Message-Id: <1452832259-10525-1-git-send-email-ibid.ag@gmail.com> X-Mailer: git-send-email 2.7.0 X-Virus-Scanned: ClamAV using ClamSMTP X-Mailinglist: alpine-aports Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: While here, drop bash dependency in favor of ash. --- ...1-Make-textonly-conform-with-POSIX-better.patch | 73 ++++++++++++++++++++++ main/cups-filters/APKBUILD | 26 +++++--- 2 files changed, 91 insertions(+), 8 deletions(-) create mode 100644 main/cups-filters/0001-Make-textonly-conform-with-POSIX-better.patch diff --git a/main/cups-filters/0001-Make-textonly-conform-with-POSIX-better.patch b/main/cups-filters/0001-Make-textonly-conform-with-POSIX-better.patch new file mode 100644 index 0000000..1653623 --- /dev/null +++ b/main/cups-filters/0001-Make-textonly-conform-with-POSIX-better.patch @@ -0,0 +1,73 @@ +From 1301945446a0972a0849e4b2f29e5e3b59209527 Mon Sep 17 00:00:00 2001 +From: Isaac Dunham +Date: Thu, 14 Jan 2016 06:51:07 -0800 +Subject: [PATCH] Make textonly conform with POSIX better. + +echo -ne was the only thing that could be expected to not work on every shell. +--- + filter/textonly | 16 ++++++++-------- + 1 file changed, 8 insertions(+), 8 deletions(-) + +diff --git a/filter/textonly b/filter/textonly +index dd55a9d..630cb8f 100644 +--- a/filter/textonly ++++ b/filter/textonly +@@ -1,4 +1,4 @@ +-#!/bin/bash ++#!/bin/sh + ## Copyright (C) 2003-2006 Red Hat, Inc. + ## Copyright (C) 2003-2006 Tim Waugh + ## Changed on 2007/05/17, Opher Shachar, LADPC Ltd. +@@ -64,7 +64,7 @@ if [[ "$PR" ]]; then + (( pl > pu )) && continue + + # Loop reading pages until at or over lower page of subrange. +- while read -d `echo -ne '\f'` -r; do ++ while read -d `printf '\f'` -r; do + (( pagenum++ )) + (( pagenum == pl )) && break + done +@@ -78,15 +78,15 @@ if [[ "$PR" ]]; then + if (( pagenum == pl )); then + echo -n "${REPLY}" >>"$TMPFILE2" + # If EOF then page has no final FF +- [[ ! "$EOF" ]] && echo -ne '\f' >>"$TMPFILE2" ++ [[ ! "$EOF" ]] && printf '\f' >>"$TMPFILE2" + echo "PAGE: $pagenum $COPIES" >&2 + fi + [[ "$EOF" ]] && break + # Is the current subrange a single page? + (( pagenum == pu )) && continue +- while read -d `echo -ne '\f'` -r; do ++ while read -d `printf '\f'` -r; do + (( pagenum++ )) +- echo -ne "${REPLY}\f" >>"$TMPFILE2" ++ printf "${REPLY}\f" >>"$TMPFILE2" + echo "PAGE: $pagenum $COPIES" >&2 + (( pagenum == pu )) && break + done +@@ -103,18 +103,18 @@ if [[ "$PR" ]]; then + } <"$TMPFILE" + else + TMPFILE2="$TMPFILE" +- pc=$(grep -co `echo -ne '\f'` "$TMPFILE2") ++ pc=$(grep -co `printf '\f'` "$TMPFILE2") + pc=$(( pc * $COPIES )) + echo "PAGE: $pc" >&2 + fi + + while [ "$COPIES" -gt 0 ]; do + # Just translate LF->CRLF at the moment, until the PPD has options added. +- sed -e 's/$/'`echo -ne '\r'`'/g' "$TMPFILE2" ++ sed -e 's/$/'`printf '\r'`'/g' "$TMPFILE2" + + if [ "$SENDFF" == "True" ] + then +- echo -ne \\014 ++ printf \\014 + fi + + COPIES=$(($COPIES - 1)) +-- +2.7.0 + diff --git a/main/cups-filters/APKBUILD b/main/cups-filters/APKBUILD index d586d17..a31d64c 100644 --- a/main/cups-filters/APKBUILD +++ b/main/cups-filters/APKBUILD @@ -1,22 +1,28 @@ # Maintainer: Natanael Copa pkgname=cups-filters -pkgver=1.2.0 -pkgrel=1 +pkgver=1.6.0 +pkgrel=0 pkgdesc="OpenPrinting CUPS filters and backends" url="http://www.linuxfoundation.org/collaborate/workgroups/openprinting/pdf_as_standard_print_job_format" arch="all" license="GPLv2 and GPLv2+ and GPLv3 and MIT" -# textonly is a bash script +# while textonly is originally a bash script, it only needs a few changes +# to work with any shell (dash being the problematic one) +# foomatic-rip needs "a modern shell" in case the PPD requires some +# newer constructs; bash, ksh, and zsh are documented as working, +# and busybox ash supports most of what bash does # texttops/textopdf need FreeMono from ttf-freefont # for text printing to work -depends="poppler-utils bc bash ttf-freefont" +depends="poppler-utils bc ttf-freefont" depends_dev="" makedepends="$depends_dev cups-dev libjpeg-turbo-dev poppler-dev zlib-dev libpng-dev tiff-dev lcms-dev freetype-dev ghostscript-dev fontconfig-dev qpdf-dev avahi-dev dbus-dev linux-headers" install="" subpackages="$pkgname-dev $pkgname-doc $pkgname-libs" -source="http://www.openprinting.org/download/cups-filters/cups-filters-$pkgver.tar.xz" +source="http://www.openprinting.org/download/cups-filters/cups-filters-$pkgver.tar.xz + 0001-Make-textonly-conform-with-POSIX-better.patch + " _builddir="$srcdir"/cups-filters-$pkgver prepare() { @@ -41,6 +47,7 @@ build() { --localstatedir=/var \ --disable-static \ --with-pdftops=pdftops \ + --with-shell=/bin/sh \ --without-rcdir \ --without-rclevels \ || return 1 @@ -69,6 +76,9 @@ libs() { mv "$pkgdir"/usr/lib/lib*.so.* "$subpkgdir"/usr/lib/ } -md5sums="9c2c8e358a72455ca63f28f91c8b1af0 cups-filters-1.2.0.tar.xz" -sha256sums="31dcb71dc79129056a5b0f6d30880bdb6511ee7acd06a3f5bd4e9d2684801d62 cups-filters-1.2.0.tar.xz" -sha512sums="1389d45607bee8376f23efc9b723df276002bf47292670e6cc872a8896ffe06d9eb0aa6f2be0c8c0ad86c8831bcc8f3779baa78d52224fb17dc2bf4ce9a97ca2 cups-filters-1.2.0.tar.xz" +md5sums="51b7f8f068502b6afca9bc8462b53933 cups-filters-1.6.0.tar.xz +b65f5b5191fee1834623b6aedf7f5c50 0001-Make-textonly-conform-with-POSIX-better.patch" +sha256sums="39e53db81df7aa951507c72ced52b9b0e9e4294c3f83e8b717fb42c03a557c97 cups-filters-1.6.0.tar.xz +33f5589e8c8fc98d9715c3a1b93c459c5902ff7115804852f79bbcc1638d6cb3 0001-Make-textonly-conform-with-POSIX-better.patch" +sha512sums="dd7671dbb13588829337e4ae4d533dc6c1e17f75ca240a6d43bb0a30a2453fffa9a1541d7b041024a6d4cbb939790802a8c3947cd319590fa37c7ce237232b9d cups-filters-1.6.0.tar.xz +522f431e0a531b797a2f8626c22b711adce59c68564c3146db4c684ea81c51a265e8915b3e6148e1771a0bbd42d3bc6dd741793562cc145c52945658e43335b5 0001-Make-textonly-conform-with-POSIX-better.patch" -- 2.7.0 --- Unsubscribe: alpine-aports+unsubscribe@lists.alpinelinux.org Help: alpine-aports+help@lists.alpinelinux.org ---