Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/sysutils/b2sum b2sum: Fix build on non-x86
details: https://anonhg.NetBSD.org/pkgsrc/rev/e3eb46ec75fe
branches: trunk
changeset: 437659:e3eb46ec75fe
user: nia <nia%pkgsrc.org@localhost>
date: Sat Aug 29 09:32:35 2020 +0000
description:
b2sum: Fix build on non-x86
diffstat:
sysutils/b2sum/Makefile | 4 ++--
sysutils/b2sum/distinfo | 3 ++-
sysutils/b2sum/patches/patch-makefile | 20 ++++++++++++++++++++
3 files changed, 24 insertions(+), 3 deletions(-)
diffs (56 lines):
diff -r ad797b48181f -r e3eb46ec75fe sysutils/b2sum/Makefile
--- a/sysutils/b2sum/Makefile Sat Aug 29 09:24:04 2020 +0000
+++ b/sysutils/b2sum/Makefile Sat Aug 29 09:32:35 2020 +0000
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.2 2016/09/08 14:31:22 jperkin Exp $
+# $NetBSD: Makefile,v 1.3 2020/08/29 09:32:35 nia Exp $
DISTNAME= b2sum-20160619
+PKGREVISION= 1
CATEGORIES= sysutils
MASTER_SITES= ${MASTER_SITE_GITHUB:=BLAKE2/}
GITHUB_PROJECT= BLAKE2
@@ -11,7 +12,6 @@
COMMENT= BLAKE2 b2sum utility
LICENSE= cc0-1.0-universal
-USE_LANGUAGES= c99
MAKE_FILE= makefile
MAKE_ENV+= MANDIR=${PREFIX}/${PKGMANDIR}
MAKE_ENV+= NO_OPENMP=1
diff -r ad797b48181f -r e3eb46ec75fe sysutils/b2sum/distinfo
--- a/sysutils/b2sum/distinfo Sat Aug 29 09:24:04 2020 +0000
+++ b/sysutils/b2sum/distinfo Sat Aug 29 09:32:35 2020 +0000
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.1 2016/07/25 10:07:23 wiedi Exp $
+$NetBSD: distinfo,v 1.2 2020/08/29 09:32:35 nia Exp $
SHA1 (b2sum-20160619-20160619.tar.gz) = 9b09b144adcc472e2e0df08521d51bd8e87315b4
RMD160 (b2sum-20160619-20160619.tar.gz) = b321ea9c6861dd8590475ac0178f4fa3702afb95
SHA512 (b2sum-20160619-20160619.tar.gz) = ed3457b59cd3d8351ad9d69d396072575057e711ef03ed25fea482758d09b8e69dbae059f4f5b5475629f7f01a44609d90445741276c81b1f4f0226fbd188bd9
Size (b2sum-20160619-20160619.tar.gz) = 462704 bytes
+SHA1 (patch-makefile) = 5808e9fe034eaca447acecbcc6df9007a9d05042
diff -r ad797b48181f -r e3eb46ec75fe sysutils/b2sum/patches/patch-makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/b2sum/patches/patch-makefile Sat Aug 29 09:32:35 2020 +0000
@@ -0,0 +1,20 @@
+$NetBSD: patch-makefile,v 1.1 2020/08/29 09:32:35 nia Exp $
+
+Build ref rather than sse version, so this works on non-x86
+
+--- makefile.orig 2016-06-19 16:55:55.000000000 +0000
++++ makefile
+@@ -6,11 +6,10 @@ NO_OPENMP_0=-fopenmp
+ NO_OPENMP_1=
+ CC?=gcc
+ CFLAGS?=-O3 -march=native -Werror=declaration-after-statement
+-CFLAGS+=-std=c99 -I../sse
++CFLAGS+=-std=c99 -I../ref
+ CFLAGS+=$(NO_OPENMP_$(NO_OPENMP))
+ LIBS=
+-#FILES=b2sum.c ../ref/blake2b-ref.c ../ref/blake2s-ref.c ../ref/blake2bp-ref.c ../ref/blake2sp-ref.c
+-FILES=b2sum.c ../sse/blake2b.c ../sse/blake2s.c ../sse/blake2bp.c ../sse/blake2sp.c
++FILES=b2sum.c ../ref/blake2b-ref.c ../ref/blake2s-ref.c ../ref/blake2bp-ref.c ../ref/blake2sp-ref.c
+ all: $(FILES)
+ $(CC) $(FILES) $(CFLAGS) $(LIBS) -o $(PROG)
+
Home |
Main Index |
Thread Index |
Old Index