1
0
forked from ports/opt

parted: added sysmacros patch

This commit is contained in:
Matt Housh 2019-01-17 10:13:08 -06:00
parent 305dddc183
commit ab45684863
3 changed files with 17 additions and 3 deletions

View File

@ -1,5 +1,6 @@
untrusted comment: verify with /etc/ports/opt.pub
RWSE3ohX2g5d/b8O9YI5uWKb+qsDBWJWAt6baMQXQItBaTSF18LyIrzLotEliQrCexa7ofhr9HW39Ugp5GABgIai4cDQQUjmuAY=
SHA256 (Pkgfile) = 27ca743cafda499a508a30b29cb43c8f83eee9992291487a90fca0675b9fbc39
RWSE3ohX2g5d/ZezgX0YDx9Tnt2DwjWHI19BGkye3fqgGaRxRUP1vDS/IgQ0MSNQd0R2WRgbNmBz+77xfH9kX/PMXYgzhNGohQI=
SHA256 (Pkgfile) = 4a61a09f0aa425d4485d89e2f4b05a272eb0f0004e3d8bb93894636befbdf621
SHA256 (.footprint) = 190d34ee0d20050c8cdc6c586fe6e8df58ef5db0523b7b7e2d95b3b9b0f00d36
SHA256 (parted-3.2.tar.xz) = 858b589c22297cacdf437f3baff6f04b333087521ab274f7ab677cb8c6bb78e4
SHA256 (parted-sysmacros.patch) = edd94615566765e92f3c24fe3a8a94d9776561df50633176087f8e837ae9c6b5

View File

@ -6,10 +6,12 @@
name=parted
version=3.2
release=2
source=(http://ftp.gnu.org/gnu/$name/$name-$version.tar.xz)
source=(http://ftp.gnu.org/gnu/$name/$name-$version.tar.xz \
$name-sysmacros.patch)
build() {
cd $name-$version
patch -p1 -i $SRC/$name-sysmacros.patch
./configure --prefix=/usr \
--disable-nls \
--with-readline

View File

@ -0,0 +1,11 @@
diff -urN parted-3.2.orig/libparted/arch/linux.c parted-3.2/libparted/arch/linux.c
--- parted-3.2.orig/libparted/arch/linux.c 2014-06-15 14:15:54.000000000 -0500
+++ parted-3.2/libparted/arch/linux.c 2019-01-17 10:11:09.758805481 -0600
@@ -37,6 +37,7 @@
#include <dirent.h>
#include <sys/ioctl.h>
#include <sys/stat.h>
+#include <sys/sysmacros.h>
#include <sys/types.h>
#include <sys/utsname.h> /* for uname() */
#include <scsi/scsi.h>