X-Original-To: alpine-devel@lists.alpinelinux.org Delivered-To: alpine-devel@mail.alpinelinux.org Received: from mail-lb0-f194.google.com (mail-lb0-f194.google.com [209.85.217.194]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mail.alpinelinux.org (Postfix) with ESMTPS id 15FD7DC0ECA for ; Tue, 14 Oct 2014 15:07:35 +0000 (UTC) Received: by mail-lb0-f194.google.com with SMTP id z11so2802188lbi.9 for ; Tue, 14 Oct 2014 08:07:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=Wbc244WTdons3atKZAmnb91abUD1NTb7miIn+9lSw7k=; b=CvJncgFpNjQpmqyZxwlJMBkaC+rIKusNlTFworhY+eb01osSyN7QEKHDLUz72P+vF4 NldR6jP9DOJF2voG6IXmJkI8Ea0aCfd40vxqylRH3EA2PlEgWJJ1gdskY1NlIDeVkf0M SwG93s5ET4lcQeiHRPIXlEpdElB4r6OqVmSHB5b8Ypy+4WOA1DSeY9WR046veEdrzsYB tSjzAlFCXV+0YVJNkxVBw/JTGYEFEcCEo86drb1TzhxLTWfeUdjTFKJUR3iXL5ePzVE+ MSc4VqPOLpPu5OY4iho+mCdZEquBshRPE9gsyYdDM5/jQxU8Ki4ZAvkePNsWmxLefg+v tygw== X-Received: by 10.112.48.3 with SMTP id h3mr5939563lbn.71.1413299253894; Tue, 14 Oct 2014 08:07:33 -0700 (PDT) Received: from alpine-dev.resnet.local ([80.64.106.118]) by mx.google.com with ESMTPSA id l1sm5694417lbj.20.2014.10.14.08.07.32 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 14 Oct 2014 08:07:32 -0700 (PDT) From: k0r10n To: alpine-devel@lists.alpinelinux.org Cc: k0r10n Subject: [alpine-devel] [PATCH] Added -fPIC flag to fix pci_malloc relocation Date: Tue, 14 Oct 2014 19:07:30 +0400 Message-Id: <1413299250-8994-1-git-send-email-k0r10n.dev@gmail.com> X-Mailer: git-send-email 2.0.0 X-Mailinglist: alpine-devel Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: --- main/pciutils/APKBUILD | 8 ++++++-- main/pciutils/fix-linking-pci-malloc-Makefile.patch | 11 +++++++++++ 2 files changed, 17 insertions(+), 2 deletions(-) create mode 100644 main/pciutils/fix-linking-pci-malloc-Makefile.patch diff --git a/main/pciutils/APKBUILD b/main/pciutils/APKBUILD index bb5ee21..0cbdc8c 100644 --- a/main/pciutils/APKBUILD +++ b/main/pciutils/APKBUILD @@ -2,7 +2,7 @@ # Maintainer: Leonardo Arena pkgname=pciutils pkgver=3.2.1 -pkgrel=1 +pkgrel=2 pkgdesc="PCI bus configuration space access library and tools" url="http://mj.ucw.cz/pciutils.html" arch="all" @@ -12,6 +12,7 @@ makedepends= install= subpackages="$pkgname-doc $pkgname-dev" source="http://www.kernel.org/pub/software/utils/$pkgname/$pkgname-$pkgver.tar.gz + fix-linking-pci-malloc-Makefile.patch fix-headers.patch" _builddir="$srcdir"/$pkgname-$pkgver @@ -42,7 +43,7 @@ package() { SHAREDIR="$pkgdir"/usr/share/hwdata \ MANDIR="$pkgdir"/usr/share/man \ install - + install -d "$pkgdir"/usr/lib install -m644 lib/libpci.a "$pkgdir"/usr/lib install -D -m 644 lib/libpci.pc "$pkgdir"/usr/lib/pkgconfig/libpci.pc @@ -53,8 +54,11 @@ package() { } md5sums="fc51ae19eb25c50c8d61667084623e6d pciutils-3.2.1.tar.gz +f56647a25dd1cfe80f6141914c2c0591 fix-linking-pci-malloc-Makefile.patch bb5c5627b8436b9b55e27f369f392afc fix-headers.patch" sha256sums="9c1ad30d1e40e353ea78b0c7ca41487cc0923d91e560a6e07072c93bcf520c02 pciutils-3.2.1.tar.gz +75ff5022e6a223297aa51ffcee80e6fa58bae839d0ae3ae2861013cabce6fba8 fix-linking-pci-malloc-Makefile.patch caf84597a154c53d689ca4ce6234f03da0d9f95775b28b12248bcf21f92c51ee fix-headers.patch" sha512sums="dfe9c2cd56f2e823d287eac07a044ea137f2f0d7913475a06cc072945049ad224e47fc33bdaa04ec9ab94e6ce0864cd83736da43c5166ef4b03aebefa2d014cb pciutils-3.2.1.tar.gz +520b39602078e4325d7dac2d460547b360f7b52c668d88cf3d776c59246c8cfcb537b7b4f50575da9d2fcea1e207b3e99626ce4f23df890d2565b7dac1db2d94 fix-linking-pci-malloc-Makefile.patch d3104b9f4937279fc6dd24c4f92d48ae704566ef2125dc2a62d2c68b2be84b61818f023a9442d9323579315c1139dc9b57b8cb2fee7be44f1fbced02026d52a2 fix-headers.patch" diff --git a/main/pciutils/fix-linking-pci-malloc-Makefile.patch b/main/pciutils/fix-linking-pci-malloc-Makefile.patch new file mode 100644 index 0000000..a2b5f01 --- /dev/null +++ b/main/pciutils/fix-linking-pci-malloc-Makefile.patch @@ -0,0 +1,11 @@ +--- pciutils-3.2.1/Makefile.orig ++++ pciutils-3.2.1/Makefile +@@ -2,7 +2,7 @@ + # (c) 1998--2013 Martin Mares + + OPT=-O2 +-CFLAGS=$(OPT) -Wall -W -Wno-parentheses -Wstrict-prototypes -Wmissing-prototypes ++CFLAGS=$(OPT) -Wall -W -Wno-parentheses -Wstrict-prototypes -Wmissing-prototypes -fPIC + + VERSION=3.2.1 + DATE=2013-11-10 -- 2.0.0 --- Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org Help: alpine-devel+help@lists.alpinelinux.org ---