[packages/libftdi1] Rel 7

arekm arekm at pld-linux.org
Sun Apr 12 08:57:00 CEST 2026


commit 2eb4807beb1b3ee424f1e3bdacddb2ba92bbd3cb
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Sun Apr 12 08:55:57 2026 +0200

    Rel 7

 libftdi1-swig4.3.patch | 16 ++++++++--------
 libftdi1.spec          |  2 +-
 2 files changed, 9 insertions(+), 9 deletions(-)
---
diff --git a/libftdi1.spec b/libftdi1.spec
index fde427f..62e6baf 100644
--- a/libftdi1.spec
+++ b/libftdi1.spec
@@ -8,7 +8,7 @@ Summary:	Library to talk to FTDI's chips including the popular bitbang mode
 Summary(pl.UTF-8):	Biblioteka do komunikacji z układami FTDI włącznie z trybem bitbang
 Name:		libftdi1
 Version:	1.5
-Release:	6
+Release:	7
 License:	LGPL v2
 Group:		Libraries
 #Source0Download: https://www.intra2net.com/en/developer/libftdi/download.php
diff --git a/libftdi1-swig4.3.patch b/libftdi1-swig4.3.patch
index 35aba9d..f4de52f 100644
--- a/libftdi1-swig4.3.patch
+++ b/libftdi1-swig4.3.patch
@@ -1,11 +1,11 @@
 --- libftdi1-1.5/python/ftdi1.i.orig	2020-07-07 21:32:55.000000000 +0200
-+++ libftdi1-1.5/python/ftdi1.i	2026-03-15 11:51:14.210223094 +0100
++++ libftdi1-1.5/python/ftdi1.i	2026-04-12 12:00:00.000000000 +0200
 @@ -52,7 +52,7 @@ char * str2charp_size(PyObject* pyObj, i
  %enddef
  %feature("autodoc", ftdi_usb_find_all_docstring) ftdi_usb_find_all;
  %typemap(in,numinputs=0) SWIGTYPE** OUTPUT ($*ltype temp) %{ $1 = &temp; %}
 -%typemap(argout) SWIGTYPE** OUTPUT %{ $result = SWIG_Python_AppendOutput($result, SWIG_NewPointerObj((void*)*$1,$*descriptor,0)); %}
-+%typemap(argout) SWIGTYPE** OUTPUT %{ $result = SWIG_AppendOutput($result, SWIG_NewPointerObj((void*)*$1,$*descriptor,0)); %}
++%typemap(argout) SWIGTYPE** OUTPUT %{ $result = SWIG_Python_AppendOutput($result, SWIG_NewPointerObj((void*)*$1,$*descriptor,0), 0); %}
  %apply SWIGTYPE** OUTPUT { struct ftdi_device_list **devlist };
      int ftdi_usb_find_all(struct ftdi_context *ftdi, struct ftdi_device_list **devlist,
                            int vendor, int product);
@@ -14,7 +14,7 @@
          if(result<0)
                  $2=0;
 -        $result = SWIG_Python_AppendOutput($result, charp2str((char*)$1, $2));
-+        $result = SWIG_AppendOutput($result, charp2str((char*)$1, $2));
++        $result = SWIG_Python_AppendOutput($result, charp2str((char*)$1, $2), 0);
          free($1);
  %}
      int ftdi_read_data(struct ftdi_context *ftdi, unsigned char *buf, int size);
@@ -23,22 +23,22 @@
  %feature("autodoc", ftdi_read_pins_docstring) ftdi_read_pins;
  %typemap(in,numinputs=0) unsigned char *pins ($*ltype temp) %{ $1 = &temp; %}
 -%typemap(argout) (unsigned char *pins) %{ $result = SWIG_Python_AppendOutput($result, charp2str((char*)$1, 1)); %}
-+%typemap(argout) (unsigned char *pins) %{ $result = SWIG_AppendOutput($result, charp2str((char*)$1, 1)); %}
++%typemap(argout) (unsigned char *pins) %{ $result = SWIG_Python_AppendOutput($result, charp2str((char*)$1, 1), 0); %}
      int ftdi_read_pins(struct ftdi_context *ftdi, unsigned char *pins);
  %clear unsigned char *pins;
- 
+
  %typemap(in,numinputs=0) unsigned char *latency ($*ltype temp) %{ $1 = &temp; %}
 -%typemap(argout) (unsigned char *latency) %{ $result = SWIG_Python_AppendOutput($result, charp2str((char*)$1, 1)); %}
-+%typemap(argout) (unsigned char *latency) %{ $result = SWIG_AppendOutput($result, charp2str((char*)$1, 1)); %}
++%typemap(argout) (unsigned char *latency) %{ $result = SWIG_Python_AppendOutput($result, charp2str((char*)$1, 1), 0); %}
      int ftdi_get_latency_timer(struct ftdi_context *ftdi, unsigned char *latency);
  %clear unsigned char *latency;
- 
+
 @@ -140,7 +140,7 @@ char * str2charp_size(PyObject* pyObj, i
  %typemap(argout) (unsigned char *buf, int size) %{
          if(result<0)
                  $2=0;
 -        $result = SWIG_Python_AppendOutput($result, charp2str((char*)$1, $2));
-+        $result = SWIG_AppendOutput($result, charp2str((char*)$1, $2));
++        $result = SWIG_Python_AppendOutput($result, charp2str((char*)$1, $2), 0);
          free($1);
  %}
      int ftdi_get_eeprom_buf(struct ftdi_context *ftdi, unsigned char * buf, int size);
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/libftdi1.git/commitdiff/2eb4807beb1b3ee424f1e3bdacddb2ba92bbd3cb



More information about the pld-cvs-commit mailing list