[packages/linux-gpib] Up to 4.3.7
arekm
arekm at pld-linux.org
Sat Nov 28 18:21:05 CET 2026
commit 16718240e8c7304128f0fd6005e8afb95448f992
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Fri Nov 27 17:22:09 2026 +0100
Up to 4.3.7
isa-dma.patch | 10 ---------
kernel-5.10.patch | 23 --------------------
kernel-5.2.patch | 15 +++++++------
linux-gpib-python.patch | 9 ++++----
linux-gpib.spec | 58 ++++++++++++++++++++++++-------------------------
pkgconfig-version.patch | 11 ----------
6 files changed, 42 insertions(+), 84 deletions(-)
---
diff --git a/linux-gpib.spec b/linux-gpib.spec
index 77064a8..d9b30a5 100644
--- a/linux-gpib.spec
+++ b/linux-gpib.spec
@@ -39,27 +39,24 @@ exit 1
%define php_name php%{?php_suffix}
-%define rel 12
+%define rel 1
%define pname linux-gpib
Summary: GPIB (IEEE 488) Linux support
Summary(pl.UTF-8): Obsługa GPIB (IEEE 488) dla Linuksa
Name: %{pname}%{?_pld_builder:%{?with_kernel:-kernel}}%{_alt_kernel}
-Version: 4.3.6
+Version: 4.3.7
Release: %{rel}%{?_pld_builder:%{?with_kernel:@%{_kernel_ver_str}}}
License: GPL v2+
Group: Applications/System
Source0: http://downloads.sourceforge.net/linux-gpib/%{pname}-%{version}.tar.gz
-# Source0-md5: ffefc4e5c03b891c57f406a4b82395b7
+# Source0-md5: c5cfe0254102c72812a341cdbcfc8836
Patch2: %{pname}-python.patch
Patch3: %{pname}-perl.patch
Patch4: %{pname}-firmwaredir.patch
Patch5: %{pname}-guile2.patch
Patch6: %{pname}-php7.patch
Patch8: kernel-5.2.patch
-Patch9: kernel-5.10.patch
-Patch10: pkgconfig-version.patch
Patch11: linux-gpib-guile3.patch
-Patch12: isa-dma.patch
URL: http://linux-gpib.sourceforge.net/
BuildRequires: autoconf >= 2.50
BuildRequires: automake
@@ -261,15 +258,13 @@ Ten pakiet zawiera sterowniki dla Linuksa do urządzeń GPIB (IEEE 488).\
%{__make} VERBOSE=1 LINUX_SRCDIR=%{_kernelsrcdir} clean\
%{__make} VERBOSE=1 LINUX_SRCDIR=%{_kernelsrcdir}\
cd drivers/gpib\
-%if %{_kernel_version_code} < %{_kernel_version_magic 5 10 0}\
%if %{with drivers_usb}\
-%install_kernel_modules -D installed -m lpvo_usb_gpib/lpvo_usb_gpib -d kernel/gpib\
-%endif\
+%install_kernel_modules -D installed -m lpvo_usb_gpib/lpvo_usb_gpib,xyphro/xyphro_ugc -d kernel/gpib\
%endif\
%ifarch %{ix86}\
-%install_kernel_modules -D installed -m agilent_82350b/agilent_82350b,cb7210/cb7210,cec/cec_gpib,hp_82335/hp82335,ines/ines_gpib,nec7210/nec7210,sys/gpib_common,tms9914/tms9914,tnt4882/tnt4882%{?with_drivers_isa:,pc2/pc2_gpib}%{?with_drivers_usb:,agilent_82357a/agilent_82357a,ni_usb/ni_usb_gpib} -d kernel/gpib\
+%install_kernel_modules -D installed -m agilent_82350b/agilent_82350b,cb7210/cb7210,cec/cec_gpib,hp_82335/hp82335,ines/ines_gpib,nec7210/nec7210,common/gpib_common,tms9914/tms9914,tnt4882/tnt4882%{?with_drivers_isa:,pc2/pc2_gpib}%{?with_drivers_usb:,agilent_82357a/agilent_82357a,ni_usb/ni_usb_gpib} -d kernel/gpib\
%else\
-%install_kernel_modules -D installed -m agilent_82350b/agilent_82350b,cb7210/cb7210,cec/cec_gpib,hp_82335/hp82335,hp_82341/hp_82341,ines/ines_gpib,nec7210/nec7210,sys/gpib_common,tms9914/tms9914,tnt4882/tnt4882%{?with_drivers_isa:,pc2/pc2_gpib}%{?with_drivers_usb:,agilent_82357a/agilent_82357a,ni_usb/ni_usb_gpib} -d kernel/gpib\
+%install_kernel_modules -D installed -m agilent_82350b/agilent_82350b,cb7210/cb7210,cec/cec_gpib,hp_82335/hp82335,hp_82341/hp_82341,ines/ines_gpib,nec7210/nec7210,common/gpib_common,tms9914/tms9914,tnt4882/tnt4882%{?with_drivers_isa:,pc2/pc2_gpib}%{?with_drivers_usb:,agilent_82357a/agilent_82357a,ni_usb/ni_usb_gpib} -d kernel/gpib\
%endif\
cd ../..\
%{nil}
@@ -284,24 +279,21 @@ cd ../..\
%if %{with userspace}
tar xzf linux-gpib-user-%{version}.tar.gz
cd linux-gpib-user-%{version}
-%patch -P 2 -p1
-%patch -P 3 -p1
-%patch -P 4 -p1
-%patch -P 5 -p1
+%patch -P2 -p1
+%patch -P3 -p1
+%patch -P4 -p1
+%patch -P5 -p1
#patch -P 6 -p1
-%patch -P 10 -p1
-%patch -P 11 -p1
+%patch -P11 -p1
cd ..
%endif
%if %{with kernel}
tar xzf linux-gpib-kernel-%{version}.tar.gz
cd linux-gpib-kernel-%{version}
-%patch -P 9 -p1
%ifarch %{ix86}
-%patch -P 8 -p1
+%patch -P8 -p1
%endif
-%patch -P 12 -p1
%endif
%build
@@ -420,7 +412,7 @@ cp -pr language/tcl/examples $RPM_BUILD_ROOT%{_examplesdir}/tcl-gpib-%{version}
%if %{with doc}
# packaged as %doc
-%{__rm} -r $RPM_BUILD_ROOT%{_datadir}/linux-gpib-user/html
+%{__rm} -r $RPM_BUILD_ROOT%{_docdir}/linux-gpib-user/html
%endif
%endif
@@ -459,6 +451,11 @@ fi
%attr(755,root,root) /lib/udev/gpib_udev_config
%attr(755,root,root) /lib/udev/gpib_udev_fxloader
%attr(755,root,root) /lib/udev/gpib_udevadm_wrapper
+%if %{with doc}
+%{_mandir}/man1/ibterm.1*
+%{_mandir}/man5/gpib.conf.5*
+%{_mandir}/man8/gpib_config.8*
+%endif
%if %{with hotplug}
%files hotplug
@@ -472,14 +469,17 @@ fi
%files libs
%defattr(644,root,root,755)
%doc linux-gpib-user-%{version}/{AUTHORS,ChangeLog,README,README.HAMEG,README.hp82335,TODO}
-%attr(755,root,root) %{_libdir}/libgpib.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/libgpib.so.0
+%{_libdir}/libgpib.so.*.*.*
+%ghost %{_libdir}/libgpib.so.0
%files devel
%defattr(644,root,root,755)
-%attr(755,root,root) %{_libdir}/libgpib.so
+%{_libdir}/libgpib.so
%{_includedir}/gpib
%{_pkgconfigdir}/libgpib.pc
+%if %{with doc}
+%{_mandir}/man3/*.3*
+%endif
%if %{with static_libs}
%files static
@@ -490,8 +490,8 @@ fi
%if %{with guile}
%files -n guile-gpib
%defattr(644,root,root,755)
-%attr(755,root,root) %{_libdir}/libgpib-guile-%{version}.so
-%attr(755,root,root) %{_libdir}/libgpib-guile.so
+%{_libdir}/libgpib-guile-%{version}.so
+%{_libdir}/libgpib-guile.so
%endif
%if %{with perl}
@@ -500,7 +500,7 @@ fi
%doc linux-gpib-user-%{version}/language/perl/{Changes,README}
%{perl_vendorarch}/LinuxGpib.pm
%dir %{perl_vendorarch}/auto/LinuxGpib
-%attr(755,root,root) %{perl_vendorarch}/auto/LinuxGpib/LinuxGpib.so
+%{perl_vendorarch}/auto/LinuxGpib/LinuxGpib.so
%{perl_vendorarch}/auto/LinuxGpib/autosplit.ix
%{_mandir}/man3/LinuxGpib.3pm*
%{_examplesdir}/perl-gpib-%{version}
@@ -537,8 +537,8 @@ fi
%files -n tcl-gpib
%defattr(644,root,root,755)
%doc linux-gpib-user-%{version}/language/tcl/README
-%attr(755,root,root) %{_libdir}/libgpib_tcl-%{version}.so
-%attr(755,root,root) %{_libdir}/libgpib_tcl.so
+%{_libdir}/libgpib_tcl-%{version}.so
+%{_libdir}/libgpib_tcl.so
%{_examplesdir}/tcl-gpib-%{version}
%endif
diff --git a/isa-dma.patch b/isa-dma.patch
deleted file mode 100644
index 936e618..0000000
--- a/isa-dma.patch
+++ /dev/null
@@ -1,10 +0,0 @@
---- linux-gpib-kernel-4.3.6/drivers/gpib/pc2/pc2_init.c~ 2022-08-22 18:07:00.000000000 +0200
-+++ linux-gpib-kernel-4.3.6/drivers/gpib/pc2/pc2_init.c 2023-07-31 10:51:41.010507617 +0200
-@@ -25,6 +25,7 @@
- #include <asm-generic/dma.h>
- #include <linux/string.h>
- #include <linux/init.h>
-+#include <linux/dma-mapping.h>
-
- MODULE_LICENSE("GPL");
-
diff --git a/kernel-5.10.patch b/kernel-5.10.patch
deleted file mode 100644
index 38d4ea3..0000000
--- a/kernel-5.10.patch
+++ /dev/null
@@ -1,23 +0,0 @@
---- linux-gpib-kernel-4.3.3.org/drivers/gpib/Makefile 2020-05-09 10:08:29.000000000 +0200
-+++ linux-gpib-kernel-4.3.3/drivers/gpib/Makefile 2021-02-25 21:49:38.659087538 +0100
-@@ -2,6 +2,9 @@ ifneq ($(LINUXINCLUDE),)
- LINUXINCLUDE := -I$(GPIB_TOP_DIR)/compat/include $(LINUXINCLUDE)
- endif
-
-+KERNEL_GE_5_10 = $(shell expr \( $(VERSION) '>' "5" \) \| \
-+ \( \( $(VERSION) '=' "5" \) \& \( $(PATCHLEVEL) '>=' 10 \) \) )
-+
- subdir-ccflags-y := -I$(src)/include \
- -DHAVE_DEV_OF_NODE=$(HAVE_DEV_OF_NODE) \
- -DGPIB_CONFIG_PCMCIA=$(GPIB_CONFIG_PCMCIA) \
-@@ -19,7 +22,9 @@ obj-y += gpio/
- obj-y += hp_82335/
- obj-y += hp_82341/
- obj-y += ines/
--obj-$(CONFIG_USB) += lpvo_usb_gpib/
-+ifeq (${KERNEL_GE_5_10},0)
-+ obj-$(CONFIG_USB) += lpvo_usb_gpib/
-+endif
- obj-y += nec7210/
- obj-$(CONFIG_USB) += ni_usb/
- ifeq ($(CONFIG_GPIB_ISA),yes)
diff --git a/kernel-5.2.patch b/kernel-5.2.patch
index 69fc9ad..986b10b 100644
--- a/kernel-5.2.patch
+++ b/kernel-5.2.patch
@@ -1,10 +1,11 @@
---- linux-gpib-kernel-4.3.3.org/drivers/gpib/Makefile 2021-02-25 21:53:53.399328345 +0100
-+++ linux-gpib-kernel-4.3.3/drivers/gpib/Makefile 2021-02-25 21:53:53.472661757 +0100
-@@ -20,7 +20,6 @@ obj-$(CONFIG_OF) += fmh_gpib/
- #obj-$(CONFIG_BCM2835_DEVGPIOMEM) += gpio/
- obj-y += gpio/
+# hp_82341 needs isapnp_read_byte(), which the kernel does not export
+--- linux-gpib-kernel-4.3.7/drivers/gpib/Makefile.orig
++++ linux-gpib-kernel-4.3.7/drivers/gpib/Makefile
+@@ -20,7 +20,6 @@
+ obj-y += fmh_gpib/
+ obj-$(CONFIG_ARCH_BCM2835) += gpio/
obj-y += hp_82335/
-obj-y += hp_82341/
obj-y += ines/
- ifeq (${KERNEL_GE_5_10},0)
- obj-$(CONFIG_USB) += lpvo_usb_gpib/
+ obj-$(CONFIG_USB) += lpvo_usb_gpib/
+ obj-y += nec7210/
diff --git a/linux-gpib-python.patch b/linux-gpib-python.patch
index 96b9596..3514972 100644
--- a/linux-gpib-python.patch
+++ b/linux-gpib-python.patch
@@ -1,11 +1,12 @@
---- linux-gpib-4.0.3/language/python/Makefile.am.orig 2016-04-09 15:33:09.000000000 +0200
-+++ linux-gpib-4.0.3/language/python/Makefile.am 2016-07-05 15:18:01.336515214 +0200
+# pip install needs network for build isolation and ignores --root; use setup.py install
+--- linux-gpib-user-4.3.7/language/python/Makefile.am.orig 2025-09-30 14:50:31.000000000 +0200
++++ linux-gpib-user-4.3.7/language/python/Makefile.am 2026-11-27 17:17:07.976944251 +0100
@@ -15,7 +15,7 @@
-{ $(PYTHON) setup.py build && touch build; } || { $(RM) -r build; exit 1; }
install-data-local:
-- -$(PYTHON) setup.py install --prefix=$(DESTDIR)$(prefix)
+- -$(PYTHON) -m pip install . --prefix=$(DESTDIR)$(prefix) --root-user-action=ignore
+ -$(PYTHON) setup.py install --optimize=2 --prefix=$(prefix) --root=$(DESTDIR)
+ -$(RM) -r gpib.egg-info/
clean-local:
- -$(RM) -r build
diff --git a/pkgconfig-version.patch b/pkgconfig-version.patch
deleted file mode 100644
index 8c0b83a..0000000
--- a/pkgconfig-version.patch
+++ /dev/null
@@ -1,11 +0,0 @@
---- linux-gpib-user-4.3.3/lib/libgpib.pc.in~ 2020-05-09 10:08:14.000000000 +0200
-+++ linux-gpib-user-4.3.3/lib/libgpib.pc.in 2021-02-24 22:11:20.744857867 +0100
-@@ -6,7 +6,7 @@
-
- Name: libgpib
- Description: Linux-GPIB the IEEE-488 card support package and measurement suite for LINUX
--Version: @GPIB_SO_VERSION@
-+Version: @VERSION@
- Requires:
- Libs: -lgpib
- Cflags: -I${includedir}
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/linux-gpib.git/commitdiff/16718240e8c7304128f0fd6005e8afb95448f992
More information about the pld-cvs-commit
mailing list