From 56f955aca6231693fe797de4793f77ed58ab116e Mon Sep 17 00:00:00 2001 From: Bruno Cichon Date: Mon, 1 Oct 2018 01:51:03 +0200 Subject: Add some base packages for ppc64le --- libre-testing/jfsutils/PKGBUILD | 41 ++++++++++++++++++++++++++++++++++ libre-testing/jfsutils/inttypes.patch | 12 ++++++++++ libre-testing/jfsutils/sysmacros.patch | 15 +++++++++++++ 3 files changed, 68 insertions(+) create mode 100644 libre-testing/jfsutils/PKGBUILD create mode 100644 libre-testing/jfsutils/inttypes.patch create mode 100644 libre-testing/jfsutils/sysmacros.patch (limited to 'libre-testing/jfsutils') diff --git a/libre-testing/jfsutils/PKGBUILD b/libre-testing/jfsutils/PKGBUILD new file mode 100644 index 000000000..81a5d3aa3 --- /dev/null +++ b/libre-testing/jfsutils/PKGBUILD @@ -0,0 +1,41 @@ +# Maintainer: Tobias Powalowski +# Maintainer: Gaetan Bisson + +pkgname=jfsutils +pkgver=1.1.15 +pkgrel=6 +pkgdesc='JFS filesystem utilities' +url='http://jfs.sourceforge.net' +arch=(x86_64 ppc64le) +license=('GPL') +depends=('util-linux') +source=("http://jfs.sourceforge.net/project/pub/${pkgname}-${pkgver}.tar.gz" + 'inttypes.patch' + 'sysmacros.patch') +sha256sums=('244a15f64015ce3ea17e49bdf6e1a0fb4f9af92b82fa9e05aa64cb30b5f07a4d' + '15ea88350c240b23fe322d4adafbb79c8473b9850495d61efafc7bf68be391b3' + 'fd1a4e794a3bf2ebdb4b81f582e147655d70aadd59689aacea0ccc32c6381a28') + +groups=('base') + +prepare() { + cd "${srcdir}/${pkgname}-${pkgver}" + patch -p1 -i ../inttypes.patch + patch -p1 -i ../sysmacros.patch +} + +build() { + cd "${srcdir}/${pkgname}-${pkgver}" + ./configure --prefix=/usr --sbindir=/usr/bin + make +} + +check() { + cd "${srcdir}/${pkgname}-${pkgver}" + make check +} + +package() { + cd "${srcdir}/${pkgname}-${pkgver}" + make DESTDIR="${pkgdir}" install +} diff --git a/libre-testing/jfsutils/inttypes.patch b/libre-testing/jfsutils/inttypes.patch new file mode 100644 index 000000000..2018bb8a8 --- /dev/null +++ b/libre-testing/jfsutils/inttypes.patch @@ -0,0 +1,12 @@ +diff -Naur old/libfs/devices.h new/libfs/devices.h +--- old/libfs/devices.h 2005-11-23 07:43:55.000000000 +1100 ++++ new/libfs/devices.h 2013-01-06 11:30:25.381538024 +1100 +@@ -40,6 +40,8 @@ + #define ERROR_INVALID_PARAMETER 87 + #define ERROR_DISK_FULL 112 + ++#include ++ + struct stat; + + int ujfs_get_dev_size(FILE *, int64_t * size); diff --git a/libre-testing/jfsutils/sysmacros.patch b/libre-testing/jfsutils/sysmacros.patch new file mode 100644 index 000000000..82f9d632a --- /dev/null +++ b/libre-testing/jfsutils/sysmacros.patch @@ -0,0 +1,15 @@ +https://bugs.gentoo.org/580056 + +--- a/libfs/devices.c ++++ b/libfs/devices.c +@@ -30,6 +30,10 @@ + #include + #include + ++#if HAVE_SYS_SYSMACROS_H ++#include ++#endif ++ + #ifdef HAVE_SYS_MOUNT_H + #ifdef HAVE_SYS_PARAM_H + #include -- cgit v1.2.3