pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

open-src-cvc: patches for Linux added



Module Name:	pkgsrc-wip
Committed By:	Mayuresh <mayuresh%warunjikar.in@localhost>
Pushed By:	mayuresh
Date:		Wed Jan 28 23:27:41 2026 +0530
Changeset:	da0f41dc4d6e3dd9df9d7f3114b61d40be559a6b

Modified Files:
	open-src-cvc/Makefile
	open-src-cvc/PLIST
	open-src-cvc/distinfo
	open-src-cvc/patches/patch-v__asmlnk.c
Added Files:
	open-src-cvc/patches/patch-makefile.cvc64
	open-src-cvc/patches/patch-v__dpi.c

Log Message:
open-src-cvc: patches for Linux added

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=da0f41dc4d6e3dd9df9d7f3114b61d40be559a6b

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 open-src-cvc/Makefile                     |  6 +++---
 open-src-cvc/PLIST                        |  2 +-
 open-src-cvc/distinfo                     |  4 +++-
 open-src-cvc/patches/patch-makefile.cvc64 | 15 +++++++++++++++
 open-src-cvc/patches/patch-v__asmlnk.c    | 12 +++++++++++-
 open-src-cvc/patches/patch-v__dpi.c       | 14 ++++++++++++++
 6 files changed, 47 insertions(+), 6 deletions(-)

diffs:
diff --git a/open-src-cvc/Makefile b/open-src-cvc/Makefile
index 7973e0dbae..0528c48706 100644
--- a/open-src-cvc/Makefile
+++ b/open-src-cvc/Makefile
@@ -20,11 +20,11 @@ USE_TOOLS+=	gmake
 MKPIE_SUPPORTED=	no
 INSTALLATION_DIRS=	bin
 
-do-build:
-	cd ${WRKSRC} && ${MAKE_PROGRAM} -f makefile.cvc64
+MAKE_FILE=	makefile.cvc64
+BUILD_TARGET=	cvc64
 
 do-install:
-	${INSTALL_PROGRAM} ${WRKSRC}/cvc64 ${DESTDIR}${PREFIX}/bin/cvc64
+	${INSTALL_PROGRAM} ${WRKSRC}/cvc64 ${DESTDIR}${PREFIX}/bin/cvc
 
 .include "../../mk/dlopen.buildlink3.mk"
 BUILDLINK_TRANSFORM+=   opt:-ldl:${BUILDLINK_LDADD.dl:Q}
diff --git a/open-src-cvc/PLIST b/open-src-cvc/PLIST
index d264f8e630..48dfa30087 100644
--- a/open-src-cvc/PLIST
+++ b/open-src-cvc/PLIST
@@ -1,2 +1,2 @@
 @comment $NetBSD$
-bin/cvc64
+bin/cvc
diff --git a/open-src-cvc/distinfo b/open-src-cvc/distinfo
index 7d49b96044..aae296b963 100644
--- a/open-src-cvc/distinfo
+++ b/open-src-cvc/distinfo
@@ -4,4 +4,6 @@ BLAKE2s (open-src-cvc/b3e7fded6d4d79491886de40aec3a780efdd9d4e-b3e7fded6d4d79491
 SHA512 (open-src-cvc/b3e7fded6d4d79491886de40aec3a780efdd9d4e-b3e7fded6d4d79491886de40aec3a780efdd9d4e.tar.gz) = c099a96ebbdbf2e3a4ed99ec5f808c787403736ef915b8a91d128739475a27cceec9122d2bac749d9287a3ff532480424fe99c79ed22174c0a67afb517bcfc02
 Size (open-src-cvc/b3e7fded6d4d79491886de40aec3a780efdd9d4e-b3e7fded6d4d79491886de40aec3a780efdd9d4e.tar.gz) = 5404140 bytes
 SHA1 (patch-config.h) = 889582aa4ba3cd3cf055f3b93eacf3db1c65cc4c
-SHA1 (patch-v__asmlnk.c) = 023bbcb85e6f105f4b93d9dc078d27925418f62b
+SHA1 (patch-makefile.cvc64) = 8a3c00e9c1ae0fb418377bfc48de22736f078ee2
+SHA1 (patch-v__asmlnk.c) = 24e09744414870f52eff73db5658c8373a0b9415
+SHA1 (patch-v__dpi.c) = 663003f5487e463657ab784bfdad5806cf32fd8a
diff --git a/open-src-cvc/patches/patch-makefile.cvc64 b/open-src-cvc/patches/patch-makefile.cvc64
new file mode 100644
index 0000000000..0b3847f27d
--- /dev/null
+++ b/open-src-cvc/patches/patch-makefile.cvc64
@@ -0,0 +1,15 @@
+$NetBSD$
+
+Allow pkgsrc to set CC
+
+--- makefile.cvc64.orig	2023-07-16 21:42:51.000000000 +0000
++++ makefile.cvc64
+@@ -115,7 +115,7 @@ CFLAGS= $(ARCHFLGS) -pipe $(WARNS) $(INC
+ # CFLAGS= $(ARCHFLGS) -pipe $(WARNS) $(INCS) -D__DBMALLOC__ $(CVCCFLGS) -g 
+ 
+ # select gcc version to use - for older Linux systems may need older compiler
+-CC=gcc
++CC?=gcc
+ 
+ # this is ld equivalent of gcc -m32 so not used here
+ # LD=ld -m elf_i386
diff --git a/open-src-cvc/patches/patch-v__asmlnk.c b/open-src-cvc/patches/patch-v__asmlnk.c
index b9680ca67f..8d9904f584 100644
--- a/open-src-cvc/patches/patch-v__asmlnk.c
+++ b/open-src-cvc/patches/patch-v__asmlnk.c
@@ -4,7 +4,17 @@ linux/sched.h inclusion logic restricted to Linux
 
 --- v_asmlnk.c.orig	2023-07-16 21:42:51.000000000 +0000
 +++ v_asmlnk.c
-@@ -186,7 +186,11 @@ OF SUCH DAMAGE.
+@@ -167,6 +167,9 @@ OF SUCH DAMAGE.
+ /*
+  * compiler asm gen routines - routines for post lowering asm gen here
+  */
++#if defined(__linux)
++#define _GNU_SOURCE
++#endif
+ 
+ #include <stdio.h>
+ #include <stdlib.h>
+@@ -186,7 +189,11 @@ OF SUCH DAMAGE.
  #include <sched.h>
  // SJM 05-30-13 - valut 4x does not support this include
  #ifndef __RHEL4X__
diff --git a/open-src-cvc/patches/patch-v__dpi.c b/open-src-cvc/patches/patch-v__dpi.c
new file mode 100644
index 0000000000..f8d4fc7971
--- /dev/null
+++ b/open-src-cvc/patches/patch-v__dpi.c
@@ -0,0 +1,14 @@
+$NetBSD$
+
+Added missing extern declaration
+
+--- v_dpi.c.orig	2023-07-16 21:42:51.000000000 +0000
++++ v_dpi.c
+@@ -247,6 +247,7 @@ static char *map_ver_svtyp_to_ctypnam(ch
+ static int32 get_ver_side_svtyp(struct net_t *);
+ 
+ /* extern prototypes (maybe defined in this module) */
++extern void __add_dmpv_chglst_el_sel(struct net_t *, int32);
+ extern void __chk_1tsk_dpi(struct task_t *);
+ extern void __chk_funcdef_dpi(struct task_t *);
+ 


Home | Main Index | Thread Index | Old Index