public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/ngspice] git-develop: rename patch
@ 2026-11-10  7:41 Mamoru TASAKA
  0 siblings, 0 replies; only message in thread
From: Mamoru TASAKA @ 2026-11-10  7:41 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/ngspice
Branch : git-develop
Commit : abc4c0d28021600e2258ce8a65e2ed31c9942592
Author : Mamoru TASAKA <mtasaka@fedoraproject.org>
Date   : 2026-11-10T16:41:08+09:00
Stats  : +103/-103 in 3 file(s)
URL    : https://src.fedoraproject.org/rpms/ngspice/c/abc4c0d28021600e2258ce8a65e2ed31c9942592?branch=git-develop

Log:
rename patch

---
diff --git a/ngspice-37-blt-linkage-workaround.patch b/ngspice-37-blt-linkage-workaround.patch
deleted file mode 100644
index 60e1549..0000000
--- a/ngspice-37-blt-linkage-workaround.patch
+++ /dev/null
@@ -1,102 +0,0 @@
---- ngspice-26/tclspice/configure.ac.link	2016-07-02 18:09:34.205996501 +0900
-+++ ngspice-26/tclspice/configure.ac	2016-07-03 12:29:48.273370215 +0900
-@@ -681,12 +681,27 @@
- 
-     AC_SUBST([STATIC], [-shared])
- 
-+    save_LDFLAGS="$LDFLAGS"
-+    LDFLAGS="$LDFLAGS -L$libdir"
-+    AC_CHECK_LIB(BLTlite24, Blt_ResetVector,[BLTLITE_LIBS="-lBLTlite24"],[BLTLITE_LIBS=""])
-+    AC_CHECK_LIB(BLT24, Blt_ResetVector,[BLT_LIBS="-lBLT24"],[BLT_LIBS=""])
-+    LDFLAGS="$save_LDFLAGS"
-+
-+    AC_CHECK_LIB(tcl, Tcl_Eval, [TCL_LIBS="-ltcl"], [TCL_LIBS=""])
-+
- else
-     TCL_PACKAGE_PATH=""
-     TCL_LIB_SPEC=""
-     AC_SUBST([STATIC], [-static])
-+    BLTLITE_LIBS=""
-+    BLT_LIBS=""
-+    TCL_LIBS=""
- fi
- 
-+AC_SUBST(BLTLITE_LIBS)
-+AC_SUBST(BLT_LIBS)
-+AC_SUBST(TCL_LIBS)
-+
- 
- AM_CONDITIONAL([SHARED_MODULE], [test "x$has_shared_module" = xtrue])
- AM_CONDITIONAL([SHWIN], [test "x$has_shwin" = xtrue])
---- ngspice-37/tclspice/src/Makefile.am.link	2014-01-12 00:28:59.000000000 +0900
-+++ ngspice-37/tclspice/src/Makefile.am	2016-07-03 12:29:38.747329190 +0900
-@@ -358,6 +358,7 @@
- 
- if TCL_MODULE
- lib_LTLIBRARIES = libspice.la
-+lib_LTLIBRARIES += libspicelite.la
- initdata_DATA += tclspinit
- pkgIndex_DATA = pkgIndex.tcl
- pkgIndexdir = $(pkglibdir)
-@@ -373,9 +374,13 @@
- 	ngspice.c \
- 	tclspice.c
- 
-+libspicelite_la_SOURCES	= $(libspice_la_SOURCES)
-+
- libspice_la_CPPFLAGS = $(AM_CPPFLAGS) \
- 	-DTCLSPICE_version="\"$(TCLSPICE_VERSION)\""
- 
-+libspicelite_la_CPPFLAGS = $(libspice_la_CPPFLAGS)
-+
- libspice_la_LIBADD = \
- 	@X_LIBS@ \
- 	frontend/libfte.la
-@@ -461,17 +466,27 @@
-     maths/dense/libdense.la
- endif
- 
-+libspicelite_la_LIBADD = $(libspice_la_LIBADD)
-+
- libspice_la_CFLAGS = -shared
--libspice_la_LDFLAGS =  -shared -Wl,--version-script=$(srcdir)/tclspice.map
-+libspicelite_la_CFLAGS = $(libspice_la_CFLAGS)
-+libspice_la_LDFLAGS_COMMON =  -shared -Wl,--version-script=$(srcdir)/tclspice.map
- if TCLWIN
--libspice_la_LDFLAGS +=  -no-undefined
--libspice_la_LDFLAGS += --def spice.def @TCL_LIB_SPEC@
-+libspice_la_LDFLAGS_COMMON +=  -no-undefined
-+libspice_la_LDFLAGS_COMMON += --def spice.def @TCL_LIB_SPEC@
- endif
- if TCLCYG
--libspice_la_LDFLAGS +=  -no-undefined
--libspice_la_LDFLAGS += --def spice.def @TCL_LIB_SPEC@
-+libspice_la_LDFLAGS_COMMON +=  -no-undefined
-+libspice_la_LDFLAGS_COMMON += --def spice.def @TCL_LIB_SPEC@
- endif
- 
-+libspice_la_LDFLAGS = $(libspice_la_LDFLAGS_COMMON)
-+libspicelite_la_LDFLAGS = $(libspice_la_LDFLAGS_COMMON)
-+
-+libspice_la_LDFLAGS += @BLT_LIBS@ @TCL_LIBS@
-+
-+libspicelite_la_LDFLAGS += @BLTLITE_LIBS@ @TCL_LIBS@
-+
- TCLSPICE_VERSION = @VERSION@
- 
- pkgIndex_edit = sed \
---- ngspice-26/tclspice/src/pkgIndex.tcl.in.link	2014-01-12 00:28:59.000000000 +0900
-+++ ngspice-26/tclspice/src/pkgIndex.tcl.in	2016-07-03 02:03:59.046647551 +0900
-@@ -5,7 +5,11 @@
-  
-     set suffix [info sharedlibextension]
- 
--    set library spice${suffix}
-+    if { [info commands tk] == "tk" } {
-+      set library spice${suffix}
-+    } else {
-+      set library spicelite${suffix}
-+    }
- 
-     global tcl_platform
-     if { $tcl_platform(platform) == "unix" } {

diff --git a/ngspice-48-blt-linkage-workaround.patch b/ngspice-48-blt-linkage-workaround.patch
new file mode 100644
index 0000000..60e1549
--- /dev/null
+++ b/ngspice-48-blt-linkage-workaround.patch
@@ -0,0 +1,102 @@
+--- ngspice-26/tclspice/configure.ac.link	2016-07-02 18:09:34.205996501 +0900
++++ ngspice-26/tclspice/configure.ac	2016-07-03 12:29:48.273370215 +0900
+@@ -681,12 +681,27 @@
+ 
+     AC_SUBST([STATIC], [-shared])
+ 
++    save_LDFLAGS="$LDFLAGS"
++    LDFLAGS="$LDFLAGS -L$libdir"
++    AC_CHECK_LIB(BLTlite24, Blt_ResetVector,[BLTLITE_LIBS="-lBLTlite24"],[BLTLITE_LIBS=""])
++    AC_CHECK_LIB(BLT24, Blt_ResetVector,[BLT_LIBS="-lBLT24"],[BLT_LIBS=""])
++    LDFLAGS="$save_LDFLAGS"
++
++    AC_CHECK_LIB(tcl, Tcl_Eval, [TCL_LIBS="-ltcl"], [TCL_LIBS=""])
++
+ else
+     TCL_PACKAGE_PATH=""
+     TCL_LIB_SPEC=""
+     AC_SUBST([STATIC], [-static])
++    BLTLITE_LIBS=""
++    BLT_LIBS=""
++    TCL_LIBS=""
+ fi
+ 
++AC_SUBST(BLTLITE_LIBS)
++AC_SUBST(BLT_LIBS)
++AC_SUBST(TCL_LIBS)
++
+ 
+ AM_CONDITIONAL([SHARED_MODULE], [test "x$has_shared_module" = xtrue])
+ AM_CONDITIONAL([SHWIN], [test "x$has_shwin" = xtrue])
+--- ngspice-37/tclspice/src/Makefile.am.link	2014-01-12 00:28:59.000000000 +0900
++++ ngspice-37/tclspice/src/Makefile.am	2016-07-03 12:29:38.747329190 +0900
+@@ -358,6 +358,7 @@
+ 
+ if TCL_MODULE
+ lib_LTLIBRARIES = libspice.la
++lib_LTLIBRARIES += libspicelite.la
+ initdata_DATA += tclspinit
+ pkgIndex_DATA = pkgIndex.tcl
+ pkgIndexdir = $(pkglibdir)
+@@ -373,9 +374,13 @@
+ 	ngspice.c \
+ 	tclspice.c
+ 
++libspicelite_la_SOURCES	= $(libspice_la_SOURCES)
++
+ libspice_la_CPPFLAGS = $(AM_CPPFLAGS) \
+ 	-DTCLSPICE_version="\"$(TCLSPICE_VERSION)\""
+ 
++libspicelite_la_CPPFLAGS = $(libspice_la_CPPFLAGS)
++
+ libspice_la_LIBADD = \
+ 	@X_LIBS@ \
+ 	frontend/libfte.la
+@@ -461,17 +466,27 @@
+     maths/dense/libdense.la
+ endif
+ 
++libspicelite_la_LIBADD = $(libspice_la_LIBADD)
++
+ libspice_la_CFLAGS = -shared
+-libspice_la_LDFLAGS =  -shared -Wl,--version-script=$(srcdir)/tclspice.map
++libspicelite_la_CFLAGS = $(libspice_la_CFLAGS)
++libspice_la_LDFLAGS_COMMON =  -shared -Wl,--version-script=$(srcdir)/tclspice.map
+ if TCLWIN
+-libspice_la_LDFLAGS +=  -no-undefined
+-libspice_la_LDFLAGS += --def spice.def @TCL_LIB_SPEC@
++libspice_la_LDFLAGS_COMMON +=  -no-undefined
++libspice_la_LDFLAGS_COMMON += --def spice.def @TCL_LIB_SPEC@
+ endif
+ if TCLCYG
+-libspice_la_LDFLAGS +=  -no-undefined
+-libspice_la_LDFLAGS += --def spice.def @TCL_LIB_SPEC@
++libspice_la_LDFLAGS_COMMON +=  -no-undefined
++libspice_la_LDFLAGS_COMMON += --def spice.def @TCL_LIB_SPEC@
+ endif
+ 
++libspice_la_LDFLAGS = $(libspice_la_LDFLAGS_COMMON)
++libspicelite_la_LDFLAGS = $(libspice_la_LDFLAGS_COMMON)
++
++libspice_la_LDFLAGS += @BLT_LIBS@ @TCL_LIBS@
++
++libspicelite_la_LDFLAGS += @BLTLITE_LIBS@ @TCL_LIBS@
++
+ TCLSPICE_VERSION = @VERSION@
+ 
+ pkgIndex_edit = sed \
+--- ngspice-26/tclspice/src/pkgIndex.tcl.in.link	2014-01-12 00:28:59.000000000 +0900
++++ ngspice-26/tclspice/src/pkgIndex.tcl.in	2016-07-03 02:03:59.046647551 +0900
+@@ -5,7 +5,11 @@
+  
+     set suffix [info sharedlibextension]
+ 
+-    set library spice${suffix}
++    if { [info commands tk] == "tk" } {
++      set library spice${suffix}
++    } else {
++      set library spicelite${suffix}
++    }
+ 
+     global tcl_platform
+     if { $tcl_platform(platform) == "unix" } {

diff --git a/ngspice.spec b/ngspice.spec
index 915fcd4..2c30538 100644
--- a/ngspice.spec
+++ b/ngspice.spec
@@ -78,7 +78,7 @@ Source10:		create-ngspice-git-bare-tarball.sh
 
 # Link libspice.so with -lBLT or -lBLIlite, depending on whether in tk mode or
 # not (bug 1047056, debian bug 737279)
-Patch0:		ngspice-37-blt-linkage-workaround.patch
+Patch0:		ngspice-48-blt-linkage-workaround.patch
 
 
 BuildRequires:	make

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-11-10  7:41 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-10  7:41 [rpms/ngspice] git-develop: rename patch Mamoru TASAKA

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox