[arch-commits] Commit in hdparm/trunk (PKGBUILD pass-ldflags.patch)
Jelle van der Waa
jelle at archlinux.org
Sun Sep 22 17:41:50 UTC 2019
Date: Sunday, September 22, 2019 @ 17:41:49
Author: jelle
Revision: 363253
upgpkg: hdparm 9.58-2
Enable 'full relro' for hdparm by patching the Makefile to accept our LDFLAGS.
Added:
hdparm/trunk/pass-ldflags.patch
Modified:
hdparm/trunk/PKGBUILD
--------------------+
PKGBUILD | 9 ++++++---
pass-ldflags.patch | 12 ++++++++++++
2 files changed, 18 insertions(+), 3 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2019-09-22 17:07:38 UTC (rev 363252)
+++ PKGBUILD 2019-09-22 17:41:49 UTC (rev 363253)
@@ -2,24 +2,27 @@
pkgname=hdparm
pkgver=9.58
-pkgrel=1
+pkgrel=2
pkgdesc="A shell utility for manipulating Linux IDE drive/driver parameters"
arch=(x86_64)
depends=('glibc')
optdepends=('sh: required by idectl and ultrabayd')
source=(https://downloads.sourceforge.net/sourceforge/hdparm/${pkgname}-${pkgver}.tar.gz
- wiper.sh.2_6.max-ranges.patch)
+ wiper.sh.2_6.max-ranges.patch pass-ldflags.patch)
license=('BSD')
url="https://sourceforge.net/projects/hdparm/"
optdepends=('bash: for wiper.sh script')
options=('emptydirs')
sha512sums=('42fb70f494aae4cc205ca68c3e883e1f4fc33e8ced1914e280e9f3faa7233d3f839e59178ec09ddb9d32e9d2bca122ce324645ecb5ac73defa284030ac7d3cea'
- 'ddb9eff6e4c0b67da72104a9ddcb6fde2b6ad543174e56a7e065453beb88f4c16b977718b1db4beaed41aff477a0ed955303172d019efbe9eacef2a397f27499')
+ 'ddb9eff6e4c0b67da72104a9ddcb6fde2b6ad543174e56a7e065453beb88f4c16b977718b1db4beaed41aff477a0ed955303172d019efbe9eacef2a397f27499'
+ '21adb4a515e0b7ea9535bf2201e0b9a668c7f912f010d3efc6f8440344f107169daf0d94d77602b2162a6619b6a02bb0da24f2418ff3c7e0160395ae8889e5bc')
prepare() {
cd ${srcdir}/${pkgname}-${pkgver}
# Fix Range input/output error when wiping Intel G2 and OCZ drives
patch -Np1 -i $srcdir/wiper.sh.2_6.max-ranges.patch
+ # Enable FULL RELRO
+ patch -Np1 -i $srcdir/pass-ldflags.patch
}
build() {
Added: pass-ldflags.patch
===================================================================
--- pass-ldflags.patch (rev 0)
+++ pass-ldflags.patch 2019-09-22 17:41:49 UTC (rev 363253)
@@ -0,0 +1,12 @@
+diff -aur hdparm-9.58/Makefile hdparm-9.58.new/Makefile
+--- hdparm-9.58/Makefile 2017-05-01 21:08:42.000000000 +0200
++++ hdparm-9.58.new/Makefile 2019-09-22 19:19:03.783229803 +0200
+@@ -15,7 +15,7 @@
+
+ CFLAGS := -O2 -W -Wall -Wbad-function-cast -Wcast-align -Wpointer-arith -Wcast-qual -Wshadow -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -fkeep-inline-functions -Wwrite-strings -Waggregate-return -Wnested-externs -Wtrigraphs $(CFLAGS)
+
+-LDFLAGS = -s
++LDFLAGS := -s ${LDFLAGS}
+ #LDFLAGS = -s -static
+ INSTALL = install
+ INSTALL_DATA = $(INSTALL) -m 644
More information about the arch-commits
mailing list