[arch-commits] Commit in hplip/trunk (PKGBUILD disable_upgrade.patch)

Andreas Radke andyrtr at nymeria.archlinux.org
Wed Dec 11 16:52:25 UTC 2013


    Date: Wednesday, December 11, 2013 @ 17:52:25
  Author: andyrtr
Revision: 201437

upgpkg: hplip 3.13.11-2

disable internal upgrade; FS#38083

Added:
  hplip/trunk/disable_upgrade.patch
Modified:
  hplip/trunk/PKGBUILD

-----------------------+
 PKGBUILD              |   11 ++++++++---
 disable_upgrade.patch |   14 ++++++++++++++
 2 files changed, 22 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2013-12-11 15:31:04 UTC (rev 201436)
+++ PKGBUILD	2013-12-11 16:52:25 UTC (rev 201437)
@@ -5,7 +5,7 @@
 
 pkgname=hplip
 pkgver=3.13.11
-pkgrel=1
+pkgrel=2
 pkgdesc="Drivers for HP DeskJet, OfficeJet, Photosmart, Business Inkjet and some LaserJet"
 arch=('i686' 'x86_64')
 url="http://hplipopensource.com"
@@ -25,9 +25,11 @@
             'hplip-plugin: binary blobs for specific devices'
             'libusbx: for advanced usb support')
 install=hplip.install
-source=(http://downloads.sourceforge.net/${pkgname}/$pkgname-$pkgver.tar.gz{,.asc})
+source=(http://downloads.sourceforge.net/${pkgname}/$pkgname-$pkgver.tar.gz{,.asc}
+        disable_upgrade.patch)
 md5sums=('8ee362d9bc45fd4eddd3c9d9e583d728'
-         'SKIP')
+         'SKIP'
+         '257c8bfe675862d90f4ce07d3dff1d9f')
 
 prepare() {
  cd $pkgname-$pkgver
@@ -43,6 +45,9 @@
  sed -i 's|python %HOME%|python2 %HOME%|' base/utils.py
  sed -i 's|python ./plugin.py|python2 ./plugin.py|' base/pkit.py
  
+ # disable insecure update - https://bugs.archlinux.org/task/38083
+ patch -Np0 -i ${srcdir}/disable_upgrade.patch
+ 
  # https://bugs.archlinux.org/task/30085 - hack found in Gentoo
  # Use system foomatic-rip for hpijs driver instead of foomatic-rip-hplip
  # The hpcups driver does not use foomatic-rip

Added: disable_upgrade.patch
===================================================================
--- disable_upgrade.patch	                        (rev 0)
+++ disable_upgrade.patch	2013-12-11 16:52:25 UTC (rev 201437)
@@ -0,0 +1,14 @@
+--- upgrade.py.orig	2013-10-31 12:46:54.000000000 +0100
++++ upgrade.py	2013-12-04 14:58:03.000000000 +0100
+@@ -134,6 +134,11 @@ except getopt.GetoptError, e:
+ if os.getenv("HPLIP_DEBUG"):
+     log.set_level('debug')
+ 
++
++log.error("HPLIP upgrade is disabled by Archlinux for security reasons, see https://bugs.archlinux.org/task/38083 - if you like to upgrade HPLIP, use the Archlinux software package manager pacman.")
++clean_exit(1)
++
++
+ for o, a in opts:
+     if o in ('-h', '--help'):
+         usage()




More information about the arch-commits mailing list