From 611ecda2b0b1fdfed1887f3658c0e55de60ee3ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?= Date: Wed, 23 Dec 2020 20:49:35 +0700 Subject: [PATCH] hardinfo: fix cross, apply hardened ldflags --- srcpkgs/hardinfo/template | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/srcpkgs/hardinfo/template b/srcpkgs/hardinfo/template index 8ba3b99de3..321b092354 100644 --- a/srcpkgs/hardinfo/template +++ b/srcpkgs/hardinfo/template @@ -1,7 +1,7 @@ # Template file for 'hardinfo' pkgname=hardinfo version=0.5.1 -revision=10 +revision=11 build_style=gnu-configure hostmakedepends="pkg-config which" makedepends="gtk+-devel libsoup-devel desktop-file-utils" @@ -13,9 +13,12 @@ homepage="http://sourceforge.net/projects/hardinfo.berlios/" distfiles="${SOURCEFORGE_SITE}/${pkgname}.berlios/${pkgname}-${version}.tar.bz2" checksum=a0df6c0d7c92a7d20710b8eb551197398a965aaae053782b89a32a160b731b7a lib32disabled=yes -# nocross=yes post_patch() { + vsed -i -e "s|CC =.*|CC = $CC|" \ + -e "s|CCSLOW =.*|CCSLOW = $CC -O0|" \ + -e "s|-o hardinfo|$LDFLAGS &|" \ + Makefile.in vsed -i "s|^LIBDIR=.*|LIBDIR=/usr/lib${XBPS_TARGET_WORDSIZE}|" configure vsed -i "s/\"lib\"/\"lib${XBPS_TARGET_WORDSIZE}\"/" binreloc.c vsed -i '/distro_db/a { "/etc/hardinfo.distro", "Void" },' \