Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 21 Mar 2021 18:39:37 +0000 (UTC)
From:      Piotr Kubaj <pkubaj@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r568932 - in head/devel/kBuild: . files
Message-ID:  <202103211839.12LIdbf7058045@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: pkubaj
Date: Sun Mar 21 18:39:36 2021
New Revision: 568932
URL: https://svnweb.freebsd.org/changeset/ports/568932

Log:
  devel/kBuild: actually build for 64-bits on powerpc64
  
  Due to using uname -m, the port was built for 32 bits.
  
  Also enable on other architectures, it should build now.

Added:
  head/devel/kBuild/files/patch-kBuild_env.sh   (contents, props changed)
Modified:
  head/devel/kBuild/Makefile

Modified: head/devel/kBuild/Makefile
==============================================================================
--- head/devel/kBuild/Makefile	Sun Mar 21 18:34:01 2021	(r568931)
+++ head/devel/kBuild/Makefile	Sun Mar 21 18:39:36 2021	(r568932)
@@ -3,7 +3,7 @@
 
 PORTNAME=	kBuild
 DISTVERSION=	${KBUILD_VERSION}
-PORTREVISION=	13
+PORTREVISION=	14
 CATEGORIES=	devel
 MASTER_SITES=	LOCAL/jkim
 DISTNAME=	${PORTNAME}-${DISTVERSION}r3127-src
@@ -14,9 +14,6 @@ COMMENT=	Makefile framework
 LICENSE=	BSD3CLAUSE GPLv3+
 LICENSE_COMB=	multi
 
-NOT_FOR_ARCHS=		aarch64 armv6 armv7 mips mips64
-NOT_FOR_ARCHS_REASON=	./kBuild/env.sh: unknown cpu/arch
-
 USES=		autoreconf:build gmake makeinfo tar:xz
 
 CONFLICTS_INSTALL=	kBuild-devel-[0-9]*
@@ -24,7 +21,7 @@ CONFLICTS_INSTALL=	kBuild-devel-[0-9]*
 WRKSRC=		${WRKDIR}/${PORTNAME}-${DISTVERSION}
 
 KBUILD_VERSION=	0.1.9998
-KBUILD_ARCH=	${MACHINE_ARCH:S/i386/x86/:S/x86_64/amd64/:C/powerpc.*/ppc32/:C/armv.*/arm/}
+KBUILD_ARCH=	${MACHINE_ARCH:S/i386/x86/:S/x86_64/amd64/:C/powerpc64.*/ppc64/:C/powerpc.*/ppc32/:C/armv.*/arm/}
 KBUILD_ENV=	AUTORECONF=${AUTORECONF} \
 		AUTOPOINT=true \
 		CC="${CC}" CFLAGS="${CFLAGS}" CPPFLAGS="${CPPFLAGS}" \

Added: head/devel/kBuild/files/patch-kBuild_env.sh
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/kBuild/files/patch-kBuild_env.sh	Sun Mar 21 18:39:36 2021	(r568932)
@@ -0,0 +1,17 @@
+--- kBuild/env.sh.orig	2021-03-21 18:24:04 UTC
++++ kBuild/env.sh
+@@ -327,12 +327,12 @@ if test -z "$KBUILD_HOST_ARCH"; then
+     fi
+ fi
+ if test -z "$KBUILD_HOST_ARCH"; then
+-    # Use uname -m or isainfo (lots of guesses here, please help clean this up...)
++    # Use uname -p or isainfo (lots of guesses here, please help clean this up...)
+     if test "$KBUILD_HOST" = "solaris"; then
+         KBUILD_HOST_ARCH=`isainfo | cut -f 1 -d ' '`
+ 
+     else
+-        KBUILD_HOST_ARCH=`uname -m`
++        KBUILD_HOST_ARCH=`uname -p`
+     fi
+     case "$KBUILD_HOST_ARCH" in
+         x86_64|AMD64|amd64|k8|k8l|k9|k10)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202103211839.12LIdbf7058045>