Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 25 Sep 2020 06:39:23 +0000 (UTC)
From:      =?UTF-8?Q?Stefan_E=c3=9fer?= <se@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r549987 - in head/sysutils/hexpeek: . files
Message-ID:  <202009250639.08P6dNuh059287@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: se
Date: Fri Sep 25 06:39:23 2020
New Revision: 549987
URL: https://svnweb.freebsd.org/changeset/ports/549987

Log:
  Fix build on powerpc64
  
  While her let "make test" execute the port's test
  
  Reported by:	linimon

Added:
  head/sysutils/hexpeek/files/patch-test_base_Makefile   (contents, props changed)
Modified:
  head/sysutils/hexpeek/Makefile
  head/sysutils/hexpeek/files/patch-Makefile
  head/sysutils/hexpeek/files/patch-test_Makefile

Modified: head/sysutils/hexpeek/Makefile
==============================================================================
--- head/sysutils/hexpeek/Makefile	Fri Sep 25 06:35:27 2020	(r549986)
+++ head/sysutils/hexpeek/Makefile	Fri Sep 25 06:39:23 2020	(r549987)
@@ -4,7 +4,7 @@
 PORTNAME=	hexpeek
 DISTVERSIONPREFIX=	v
 DISTVERSION=	1.0.20200804
-PORTREVISION=	3
+PORTREVISION=	4
 CATEGORIES=	sysutils
 MASTER_SITES=	https://www.hexpeek.com/releases/${DISTNAME}/
 
@@ -29,5 +29,8 @@ PLIST_FILES=	bin/hexdiff \
 do-install:
 	${INSTALL_PROGRAM} ${WRKSRC}/bin/* ${STAGEDIR}${PREFIX}/bin
 	${INSTALL_MAN}  ${WRKSRC}/etc/hexpeek.1 ${STAGEDIR}${MANPREFIX}/share/man/man1
+
+do-test:
+	${MAKE} -C ${WRKSRC}/test test
 
 .include <bsd.port.mk>

Modified: head/sysutils/hexpeek/files/patch-Makefile
==============================================================================
--- head/sysutils/hexpeek/files/patch-Makefile	Fri Sep 25 06:35:27 2020	(r549986)
+++ head/sysutils/hexpeek/files/patch-Makefile	Fri Sep 25 06:39:23 2020	(r549987)
@@ -1,6 +1,6 @@
 --- Makefile.orig	2020-08-04 05:58:52 UTC
 +++ Makefile
-@@ -26,13 +26,10 @@
+@@ -26,15 +26,15 @@
  
  # Note that libedit is optional. To build hexpeek without it, remove
  # -DHEXPEEK_EDITABLE_CONSOLE and -ledit.
@@ -11,10 +11,21 @@
 -CFLAGS := -I$(SRCDIR) -O3 -Wall -fPIC
 -DFLAGS := -DHEXPEEK_EDITABLE_CONSOLE 
 -LIBS   := -ledit #-ltermcap
-+SRCDIR = src
-+BINDIR = bin
-+EXEC   = $(BINDIR)/hexpeek
-+LIBS   = -ledit
++SRCDIR	= src
++BINDIR	= bin
++EXEC	= $(BINDIR)/hexpeek
++LIBS	= -ledit
++DFLAGS	= -DHEXPEEK_EDITABLE_CONSOLE
  
  all: $(EXEC)
++
++test:	test/simplediff
  	make -C test
+ 
+ clear:
+@@ -44,4 +44,4 @@ clear:
+ $(EXEC): $(SRCDIR)/*.c $(SRCDIR)/*.h
+ 	mkdir -p $(BINDIR)
+ 	$(CC) $(CFLAGS) $(DFLAGS) -o $(EXEC) $(SRCDIR)/*.c $(LIBS)
+-	cd $(BINDIR) ; ln -f -s hexpeek hexview ; ln -f -s hexpeek hexDump ; ln -f -s hexpeek hexpack ; ln -f -s hexpeek hexdiff ; cd ..
++	cd $(BINDIR) ; ln -f -s hexpeek hexview ; ln -f -s hexpeek hexDump ; ln -f -s hexpeek hexpack ; ln -f -s hexpeek hexdiff

Modified: head/sysutils/hexpeek/files/patch-test_Makefile
==============================================================================
--- head/sysutils/hexpeek/files/patch-test_Makefile	Fri Sep 25 06:35:27 2020	(r549986)
+++ head/sysutils/hexpeek/files/patch-test_Makefile	Fri Sep 25 06:39:23 2020	(r549987)
@@ -1,22 +1,17 @@
 --- test/Makefile.orig	2020-08-04 05:58:52 UTC
 +++ test/Makefile
-@@ -24,11 +24,7 @@
- # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
- # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- 
--SRCDIR := .
--BINDIR := .
--EXEC   := $(BINDIR)/simplediff
--CC     ?= clang
+@@ -28,10 +28,13 @@ SRCDIR := .
+ BINDIR := .
+ EXEC   := $(BINDIR)/simplediff
+ CC     ?= clang
 -CFLAGS := -O3 -Wall #-fPIC
-+EXEC   = simplediff
++CFLAGS ?= -O3 -Wall #-fPIC
  
  all: $(EXEC)
  	make -C base
-@@ -37,5 +33,4 @@ clear:
- 	rm -f $(EXEC)
- 	make -C base clear
++
++test:	all
++	sh run
  
--$(BINDIR)/simplediff: $(SRCDIR)/simplediff.c
--	$(CC) $(CFLAGS) -o $@ $(SRCDIR)/simplediff.c
-+$(EXEC): simplediff.c
+ clear:
+ 	rm -f $(EXEC)

Added: head/sysutils/hexpeek/files/patch-test_base_Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/sysutils/hexpeek/files/patch-test_base_Makefile	Fri Sep 25 06:39:23 2020	(r549987)
@@ -0,0 +1,11 @@
+--- test/base/Makefile.orig	2020-08-04 05:58:52 UTC
++++ test/base/Makefile
+@@ -28,7 +28,7 @@ SRCDIR  := src
+ BINDIR  := bin
+ EXEC    := $(BINDIR)/server $(BINDIR)/client
+ CC      ?= clang
+-CFLAGS  := -O3 -Wall #-fPIC
++CFLAGS  ?= -O3 -Wall #-fPIC
+ 
+ all: $(EXEC)
+ 



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