Skip to contentSkip to conversation

package/swig: bump to version 4.3.0

PATCH In review James Hilliard 2 participants 4 messages Nov 1, 2024 – Nov 10, 2024

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/swig: bump to version 4.3.0

---
 package/swig/swig.hash | 2 +-
 package/swig/swig.mk   | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)
package/swig/swig.hash +1 -1
index 21590c422a..9c1dbcc2fc 100644
@@ -1,5 +1,5 @@
 # Locally computed:
-sha256  2af08aced8fcd65cdb5cc62426768914bedc735b1c250325203716f78e39ac9b  swig-4.1.1.tar.gz
+sha256  f7203ef796f61af986c70c05816236cbd0d31b7aa9631e5ab53020ab7804aa9e  swig-4.3.0.tar.gz
 sha256  f53abaeed775018d519a1b9615f0ca17894772bd9ca21c2a156bf340ac41c13e  LICENSE
 sha256  8ceb4b9ee5adedde47b31e975c1d90c73ad27b6b165a1dcd80c7c545eb65b903  LICENSE-GPL
 sha256  7f50d942373a871211c5efee03f3db2f9efd1cff1002b0ef8e3748baa611a5c2  LICENSE-UNIVERSITIES
package/swig/swig.mk +2 -2
index ad585c3f97..7e84bdd431 100644
@@ -4,8 +4,8 @@
 #
 ################################################################################
 
-SWIG_VERSION_MAJOR = 4.1
-SWIG_VERSION = $(SWIG_VERSION_MAJOR).1
+SWIG_VERSION_MAJOR = 4.3
+SWIG_VERSION = $(SWIG_VERSION_MAJOR).0
 SWIG_SITE = http://downloads.sourceforge.net/project/swig/swig/swig-$(SWIG_VERSION)
 HOST_SWIG_DEPENDENCIES = host-bison host-pcre2
 HOST_SWIG_CONF_OPTS = \
Signature · 6 lines
2.34.1

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#1 lore raw

Hi James,

Quoted 22 lines · James Hilliard
---
  package/swig/swig.hash | 2 +-
  package/swig/swig.mk   | 4 ++--
  2 files changed, 3 insertions(+), 3 deletions(-)
package/swig/swig.hash +1 -1
index 21590c422a..9c1dbcc2fc 100644
@@ -1,5 +1,5 @@
  # Locally computed:
-sha256  2af08aced8fcd65cdb5cc62426768914bedc735b1c250325203716f78e39ac9b  swig-4.1.1.tar.gz
+sha256  f7203ef796f61af986c70c05816236cbd0d31b7aa9631e5ab53020ab7804aa9e  swig-4.3.0.tar.gz
  sha256  f53abaeed775018d519a1b9615f0ca17894772bd9ca21c2a156bf340ac41c13e  LICENSE
  sha256  8ceb4b9ee5adedde47b31e975c1d90c73ad27b6b165a1dcd80c7c545eb65b903  LICENSE-GPL
  sha256  7f50d942373a871211c5efee03f3db2f9efd1cff1002b0ef8e3748baa611a5c2  LICENSE-UNIVERSITIES
package/swig/swig.mk +0 -0
index ad585c3f97..7e84bdd431 100644

package/swig/swig.mk line 8

Quoted 7 lines
package/swig/swig.mk +2 -2
@@ -4,8 +4,8 @@
  #
  ################################################################################
 
-SWIG_VERSION_MAJOR = 4.1
-SWIG_VERSION = $(SWIG_VERSION_MAJOR).1
+SWIG_VERSION_MAJOR = 4.3
+SWIG_VERSION = $(SWIG_VERSION_MAJOR).0

I've tried building libselinux and python-pylibfdt after this bump, and both
give me an error like this:

2024-11-04T21:03:55 libfdt/libfdt_wrap.c: In function ‘_wrap_fdt_get_property_w’:
2024-11-04T21:03:55 libfdt/libfdt_wrap.c:6829:19: error: too few arguments to function ‘SWIG_Python_AppendOutput’
2024-11-04T21:03:55 6829 |       resultobj = SWIG_Python_AppendOutput(resultobj, buff);
2024-11-04T21:03:55 |                   ^~~~~~~~~~~~~~~~~~~~~~~~
2024-11-04T21:03:55 libfdt/libfdt_wrap.c:1259:1: note: declared here
2024-11-04T21:03:55 1259 | SWIG_Python_AppendOutput(PyObject* result, PyObject* obj, int is_void) {
2024-11-04T21:03:55 | ^~~~~~~~~~~~~~~~~~~~~~~~

Now, I haven't investigated too much, and I haven't done a clean build so that
may be the problem (though I don't immediately see how). But I just wanted to check: have you build-tested a bunch of packages that use swig?

Regards,
Arnout

package/swig/swig.mk line 11

Quoted 3 lines
package/swig/swig.mk +0 -0
  SWIG_SITE = http://downloads.sourceforge.net/project/swig/swig/swig-$(SWIG_VERSION)
  HOST_SWIG_DEPENDENCIES = host-bison host-pcre2
  HOST_SWIG_CONF_OPTS = \

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

#2 lore raw
Quoted 49 lines · Arnout Vandecappelle

Hi James,

Quoted 22 lines · James Hilliard
---
  package/swig/swig.hash | 2 +-
  package/swig/swig.mk   | 4 ++--
  2 files changed, 3 insertions(+), 3 deletions(-)
package/swig/swig.hash +1 -1
index 21590c422a..9c1dbcc2fc 100644
@@ -1,5 +1,5 @@
  # Locally computed:
-sha256  2af08aced8fcd65cdb5cc62426768914bedc735b1c250325203716f78e39ac9b  swig-4.1.1.tar.gz
+sha256  f7203ef796f61af986c70c05816236cbd0d31b7aa9631e5ab53020ab7804aa9e  swig-4.3.0.tar.gz
  sha256  f53abaeed775018d519a1b9615f0ca17894772bd9ca21c2a156bf340ac41c13e  LICENSE
  sha256  8ceb4b9ee5adedde47b31e975c1d90c73ad27b6b165a1dcd80c7c545eb65b903  LICENSE-GPL
  sha256  7f50d942373a871211c5efee03f3db2f9efd1cff1002b0ef8e3748baa611a5c2  LICENSE-UNIVERSITIES
package/swig/swig.mk +0 -0
index ad585c3f97..7e84bdd431 100644

package/swig/swig.mk line 8

Quoted 7 lines
package/swig/swig.mk +2 -2
@@ -4,8 +4,8 @@
  #
  ################################################################################
 
-SWIG_VERSION_MAJOR = 4.1
-SWIG_VERSION = $(SWIG_VERSION_MAJOR).1
+SWIG_VERSION_MAJOR = 4.3
+SWIG_VERSION = $(SWIG_VERSION_MAJOR).0

I've tried building libselinux and python-pylibfdt after this bump, and both
give me an error like this:

2024-11-04T21:03:55 libfdt/libfdt_wrap.c: In function ‘_wrap_fdt_get_property_w’:
2024-11-04T21:03:55 libfdt/libfdt_wrap.c:6829:19: error: too few arguments to
function ‘SWIG_Python_AppendOutput’
2024-11-04T21:03:55 6829 |       resultobj = SWIG_Python_AppendOutput(resultobj,
buff);
2024-11-04T21:03:55 |                   ^~~~~~~~~~~~~~~~~~~~~~~~
2024-11-04T21:03:55 libfdt/libfdt_wrap.c:1259:1: note: declared here
2024-11-04T21:03:55 1259 | SWIG_Python_AppendOutput(PyObject* result, PyObject*
obj, int is_void) {
2024-11-04T21:03:55 | ^~~~~~~~~~~~~~~~~~~~~~~~
Quoted 3 lines

Now, I haven't investigated too much, and I haven't done a clean build so that
may be the problem (though I don't immediately see how). But I just wanted to
check: have you build-tested a bunch of packages that use swig?

Hmm, I think I had only tested one or two packages, I'll take a look.

Quoted 9 lines

Regards,
Arnout

Quoted 3 lines
package/swig/swig.mk +0 -0
  SWIG_SITE = http://downloads.sourceforge.net/project/swig/swig/swig-$(SWIG_VERSION)
  HOST_SWIG_DEPENDENCIES = host-bison host-pcre2
  HOST_SWIG_CONF_OPTS = \

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

#3 lore raw
In reply to Arnout Vandecappelle via buildroot
Quoted 49 lines · Arnout Vandecappelle

Hi James,

Quoted 22 lines · James Hilliard
---
  package/swig/swig.hash | 2 +-
  package/swig/swig.mk   | 4 ++--
  2 files changed, 3 insertions(+), 3 deletions(-)
package/swig/swig.hash +1 -1
index 21590c422a..9c1dbcc2fc 100644
@@ -1,5 +1,5 @@
  # Locally computed:
-sha256  2af08aced8fcd65cdb5cc62426768914bedc735b1c250325203716f78e39ac9b  swig-4.1.1.tar.gz
+sha256  f7203ef796f61af986c70c05816236cbd0d31b7aa9631e5ab53020ab7804aa9e  swig-4.3.0.tar.gz
  sha256  f53abaeed775018d519a1b9615f0ca17894772bd9ca21c2a156bf340ac41c13e  LICENSE
  sha256  8ceb4b9ee5adedde47b31e975c1d90c73ad27b6b165a1dcd80c7c545eb65b903  LICENSE-GPL
  sha256  7f50d942373a871211c5efee03f3db2f9efd1cff1002b0ef8e3748baa611a5c2  LICENSE-UNIVERSITIES
package/swig/swig.mk +0 -0
index ad585c3f97..7e84bdd431 100644

package/swig/swig.mk line 8

Quoted 7 lines
package/swig/swig.mk +2 -2
@@ -4,8 +4,8 @@
  #
  ################################################################################
 
-SWIG_VERSION_MAJOR = 4.1
-SWIG_VERSION = $(SWIG_VERSION_MAJOR).1
+SWIG_VERSION_MAJOR = 4.3
+SWIG_VERSION = $(SWIG_VERSION_MAJOR).0

I've tried building libselinux and python-pylibfdt after this bump, and both
give me an error like this:

2024-11-04T21:03:55 libfdt/libfdt_wrap.c: In function ‘_wrap_fdt_get_property_w’:
2024-11-04T21:03:55 libfdt/libfdt_wrap.c:6829:19: error: too few arguments to
function ‘SWIG_Python_AppendOutput’
2024-11-04T21:03:55 6829 |       resultobj = SWIG_Python_AppendOutput(resultobj,
buff);
2024-11-04T21:03:55 |                   ^~~~~~~~~~~~~~~~~~~~~~~~
2024-11-04T21:03:55 libfdt/libfdt_wrap.c:1259:1: note: declared here
2024-11-04T21:03:55 1259 | SWIG_Python_AppendOutput(PyObject* result, PyObject*
obj, int is_void) {
2024-11-04T21:03:55 | ^~~~~~~~~~~~~~~~~~~~~~~~
Quoted 3 lines

Now, I haven't investigated too much, and I haven't done a clean build so that
may be the problem (though I don't immediately see how). But I just wanted to
check: have you build-tested a bunch of packages that use swig?

python-pylibfdt swig 4.3.0 compatibility was fixed in this commit:
https://github.com/buildroot/buildroot/commit/8f61db37b1d2d6aaa9b1d2b3bc926f2be74105bc

We need to backport a patch for libselinux compatibility with swig 4.3.0:
https://patchwork.ozlabs.org/project/buildroot/patch/[email protected]/

I tested some other packages using swig and didn't find any other build regressions triggered by updating swig to version 4.3.0.

Quoted 9 lines

Regards,
Arnout

Quoted 3 lines
package/swig/swig.mk +0 -0
  SWIG_SITE = http://downloads.sourceforge.net/project/swig/swig/swig-$(SWIG_VERSION)
  HOST_SWIG_DEPENDENCIES = host-bison host-pcre2
  HOST_SWIG_CONF_OPTS = \

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot