powerpc-utils: fix big endian and *-musl

Signed-off-by: Jürgen Buchmüller <pullmoll@t-online.de>
This commit is contained in:
Jürgen Buchmüller 2019-03-19 15:59:39 +01:00
parent 40a012c1ee
commit cc8eab43ef
No known key found for this signature in database
GPG Key ID: DE55AD8DBEBB4EE8
3 changed files with 31 additions and 1 deletions

View File

@ -0,0 +1,10 @@
--- src/rtas_dbg.c 2018-12-15 01:18:13.000000000 +0100
+++ src/rtas_dbg.c 2019-03-19 15:51:46.699643983 +0100
@@ -29,6 +29,7 @@
#include <errno.h>
#include <stdio.h>
#include <unistd.h>
+#include <endian.h>
#include <getopt.h>
#include <dirent.h>
#include <string.h>

View File

@ -0,0 +1,10 @@
--- src/drmgr/drmig_chrp_pmig.c 2018-12-15 01:18:13.000000000 +0100
+++ src/drmgr/drmig_chrp_pmig.c 2019-03-19 15:25:47.321563535 +0100
@@ -26,6 +26,7 @@
#include <ctype.h>
#include <sys/stat.h>
#include <sys/types.h>
+#include <limits.h>
#include <inttypes.h>
#include <dirent.h>
#include <time.h>

View File

@ -1,9 +1,10 @@
# Template file for 'powerpc-utils'
pkgname=powerpc-utils
version=1.3.6
revision=1
revision=2
archs="ppc ppc-musl ppc64*"
build_style=gnu-configure
configure_args="--disable-silent-rules"
hostmakedepends="automake libtool"
makedepends="librtas-devel zlib-devel"
depends="bc"
@ -14,6 +15,15 @@ homepage="https://github.com/ibm-power-utilities/powerpc-utils"
distfiles="https://github.com/ibm-power-utilities/powerpc-utils/archive/v${version}.tar.gz"
checksum=0ff10b01761ea1b598b05aaf9a5c20da8ab8784b3dc6d0c7f19d15426672523b
if [ "$CROSS_BUILD" ]; then
configure_args+=" --with-librtas ac_cv_lib_rtasevent_parse_rtas_event=yes"
fi
case "$XBPS_TARGET_MACHINE" in
*-musl) makedepends+=" libexecinfo-devel"
configure_args+=" LIBS=-lexecinfo"
;;
esac
pre_configure() {
./autogen.sh
}