Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 22 Jan 2018 09:45:32 +0000 (UTC)
From:      Alexey Dokuchaev <danfe@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r459642 - in head/archivers/upx: . files
Message-ID:  <201801220945.w0M9jWXF058042@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: danfe
Date: Mon Jan 22 09:45:32 2018
New Revision: 459642
URL: https://svnweb.freebsd.org/changeset/ports/459642

Log:
  Unbreak the build on sparc64: unlike e.g. on powerpc, gcc on sparc64 does
  not provide __BIG_ENDIAN__ macro by default.  As `archivers/upx' is aware
  of sparc64 existence, simply tell it that it is big-endian architecture.
  While here, vocalize installation commands.

Modified:
  head/archivers/upx/Makefile
  head/archivers/upx/files/patch-src_miniacc.h

Modified: head/archivers/upx/Makefile
==============================================================================
--- head/archivers/upx/Makefile	Mon Jan 22 09:44:42 2018	(r459641)
+++ head/archivers/upx/Makefile	Mon Jan 22 09:45:32 2018	(r459642)
@@ -21,7 +21,6 @@ USE_PERL5=	build
 MAKE_ENV=	UPX_UCLDIR=${LOCALBASE}\
 		UPX_LZMADIR=${WRKDIR}\
 		target=freebsd
-NOT_FOR_ARCHS=	sparc64
 
 PORTDOCS=	BUGS COPYING LICENSE NEWS PROJECTS README\
 		README.1ST README.SRC THANKS TODO
@@ -31,9 +30,9 @@ PLIST_FILES=	bin/upx \
 OPTIONS_DEFINE=	DOCS
 
 do-install:
-	@${INSTALL_PROGRAM} ${WRKSRC}/src/upx.out ${STAGEDIR}${PREFIX}/bin/upx
-	@${INSTALL_MAN} ${WRKSRC}/doc/upx.1 ${STAGEDIR}${MANPREFIX}/man/man1
+	${INSTALL_PROGRAM} ${WRKSRC}/src/upx.out ${STAGEDIR}${PREFIX}/bin/upx
+	${INSTALL_MAN} ${WRKSRC}/doc/upx.1 ${STAGEDIR}${MANPREFIX}/man/man1
 	@${MKDIR} ${STAGEDIR}${DOCSDIR}
-	@${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}/
+	${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}
 
 .include <bsd.port.mk>

Modified: head/archivers/upx/files/patch-src_miniacc.h
==============================================================================
--- head/archivers/upx/files/patch-src_miniacc.h	Mon Jan 22 09:44:42 2018	(r459641)
+++ head/archivers/upx/files/patch-src_miniacc.h	Mon Jan 22 09:45:32 2018	(r459642)
@@ -9,7 +9,7 @@
  #    define ACC_OS_POSIX_FREEBSD    1
  #    define ACC_INFO_OS_POSIX       "freebsd"
  #  elif defined(__hpux__) || defined(__hpux)
-@@ -1968,7 +1968,7 @@ ACC_COMPILE_TIME_ASSERT_HEADER(ACC_SIZEO
+@@ -1968,11 +1968,11 @@ ACC_COMPILE_TIME_ASSERT_HEADER(ACC_SIZEOF_PTRDIFF_T ==
  #elif !(ACC_ABI_BIG_ENDIAN) && !(ACC_ABI_LITTLE_ENDIAN)
  #if (ACC_ARCH_ALPHA) && (ACC_ARCH_CRAY_MPP)
  #  define ACC_ABI_BIG_ENDIAN        1
@@ -18,3 +18,8 @@
  #  define ACC_ABI_LITTLE_ENDIAN     1
  #elif (ACC_ARCH_ALPHA || ACC_ARCH_AMD64 || ACC_ARCH_BLACKFIN || ACC_ARCH_CRIS || ACC_ARCH_I086 || ACC_ARCH_I386 || ACC_ARCH_MSP430)
  #  define ACC_ABI_LITTLE_ENDIAN     1
+-#elif (ACC_ARCH_AVR32 || ACC_ARCH_M68K || ACC_ARCH_S390 || ACC_ARCH_SPU)
++#elif (ACC_ARCH_AVR32 || ACC_ARCH_M68K || ACC_ARCH_S390 || ACC_ARCH_SPU || ACC_ARCH_SPARC)
+ #  define ACC_ABI_BIG_ENDIAN        1
+ #elif 1 && defined(__IAR_SYSTEMS_ICC__) && defined(__LITTLE_ENDIAN__)
+ #  if (__LITTLE_ENDIAN__ == 1)



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