powerpc-utils: fix big endian and *-musl
Signed-off-by: Jürgen Buchmüller <pullmoll@t-online.de>
This commit is contained in:
parent
40a012c1ee
commit
cc8eab43ef
|
@ -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>
|
|
@ -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>
|
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue