Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 30 Oct 2024 21:49:53 +0800
From:      Po-Chuan Hsieh <sunpoet@freebsd.org>
To:        ports-committers@freebsd.org, dev-commits-ports-all@freebsd.org,  dev-commits-ports-main@freebsd.org
Subject:   Re: git: e639f6100447 - main - devel/libftdi1: Fix build with swig 4.3.0+
Message-ID:  <CAMHz58Su_sOZirj4Q3kFsay19AJFbxRCQ1MT=%2BkXDonK9WxLYw@mail.gmail.com>
In-Reply-To: <202410301343.49UDhiv8032026@gitrepo.freebsd.org>

index | next in thread | previous in thread | raw e-mail

[-- Attachment #1 --]
On Wed, Oct 30, 2024 at 9:43 PM Po-Chuan Hsieh <sunpoet@freebsd.org> wrote:

> The branch main has been updated by sunpoet:
>
> URL:
> https://cgit.FreeBSD.org/ports/commit/?id=e639f6100447a286904df65f14b45fa16a11388b
>
> commit e639f6100447a286904df65f14b45fa16a11388b
> Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
> AuthorDate: 2024-10-30 13:43:18 +0000
> Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
> CommitDate: 2024-10-30 13:43:18 +0000
>
>     devel/libftdi1: Fix build with swig 4.3.0+
>

It should be "dns/py-ldns: Fix build with swig 4.3.0+"


>     Approved by:    portmgr (blanket)
> ---
>  dns/ldns/files/patch-swig | 77
> +++++++++++++++++++++++++++++++++++++++++++++++
>  1 file changed, 77 insertions(+)
>
> diff --git a/dns/ldns/files/patch-swig b/dns/ldns/files/patch-swig
> new file mode 100644
> index 000000000000..9d93eddf8f58
> --- /dev/null
> +++ b/dns/ldns/files/patch-swig
> @@ -0,0 +1,77 @@
> +--- contrib/python/ldns_buffer.i.orig  2024-07-20 05:07:42 UTC
> ++++ contrib/python/ldns_buffer.i
> +@@ -45,7 +45,7 @@
> + /* Result generation, appends (ldns_buffer *) after the result. */
> + %typemap(argout, noblock=1) (ldns_buffer **)
> + {
> +-  $result = SWIG_Python_AppendOutput($result,
> ++  $result = SWIG_AppendOutput($result,
> +      SWIG_NewPointerObj(SWIG_as_voidptr($1_buf),
> +        SWIGTYPE_p_ldns_struct_buffer, SWIG_POINTER_OWN | 0));
> + }
> +--- contrib/python/ldns_key.i.orig     2024-07-20 05:07:42 UTC
> ++++ contrib/python/ldns_key.i
> +@@ -38,7 +38,7 @@
> + /* result generation */
> + %typemap(argout,noblock=1) (ldns_key **)
> + {
> +-  $result = SWIG_Python_AppendOutput($result,
> SWIG_NewPointerObj(SWIG_as_voidptr($1_key), SWIGTYPE_p_ldns_struct_key,
> SWIG_POINTER_OWN |  0 ));
> ++  $result = SWIG_AppendOutput($result,
> SWIG_NewPointerObj(SWIG_as_voidptr($1_key), SWIGTYPE_p_ldns_struct_key,
> SWIG_POINTER_OWN |  0 ));
> + }
> +
> + %typemap(argout) ldns_rdf *r "Py_INCREF($input);"
> +--- contrib/python/ldns_packet.i.orig  2024-07-20 05:07:42 UTC
> ++++ contrib/python/ldns_packet.i
> +@@ -45,7 +45,7 @@
> + /* Result generation, appends (ldns_pkt *) after the result. */
> + %typemap(argout,noblock=1) (ldns_pkt **)
> + {
> +-  $result = SWIG_Python_AppendOutput($result,
> ++  $result = SWIG_AppendOutput($result,
> +     SWIG_NewPointerObj(SWIG_as_voidptr($1_pkt),
> +       SWIGTYPE_p_ldns_struct_pkt, SWIG_POINTER_OWN |  0 ));
> + }
> +--- contrib/python/ldns_rdf.i.orig     2024-07-20 05:07:42 UTC
> ++++ contrib/python/ldns_rdf.i
> +@@ -45,7 +45,7 @@
> + /* Result generation, appends (ldns_rdf *) after the result. */
> + %typemap(argout, noblock=1) (ldns_rdf **)
> + {
> +-  $result = SWIG_Python_AppendOutput($result,
> ++  $result = SWIG_AppendOutput($result,
> +     SWIG_NewPointerObj(SWIG_as_voidptr($1_rdf),
> +       SWIGTYPE_p_ldns_struct_rdf, SWIG_POINTER_OWN | 0));
> + }
> +--- contrib/python/ldns_resolver.i.orig        2024-07-20 05:07:42 UTC
> ++++ contrib/python/ldns_resolver.i
> +@@ -45,7 +45,7 @@
> + /* Result generation, appends (ldns_resolver *) after the result. */
> + %typemap(argout,noblock=1) (ldns_resolver **r)
> + {
> +-  $result = SWIG_Python_AppendOutput($result,
> ++  $result = SWIG_AppendOutput($result,
> +     SWIG_NewPointerObj(SWIG_as_voidptr($1_res),
> +       SWIGTYPE_p_ldns_struct_resolver, SWIG_POINTER_OWN |  0 ));
> + }
> +--- contrib/python/ldns_rr.i.orig      2024-07-20 05:07:42 UTC
> ++++ contrib/python/ldns_rr.i
> +@@ -45,7 +45,7 @@
> + /* Result generation, appends (ldns_rr *) after the result. */
> + %typemap(argout, noblock=1) (ldns_rr **)
> + {
> +-  $result = SWIG_Python_AppendOutput($result,
> ++  $result = SWIG_AppendOutput($result,
> +     SWIG_NewPointerObj(SWIG_as_voidptr($1_rr),
> +       SWIGTYPE_p_ldns_struct_rr, SWIG_POINTER_OWN |  0 ));
> + }
> +--- contrib/python/ldns_zone.i.orig    2024-07-20 05:07:42 UTC
> ++++ contrib/python/ldns_zone.i
> +@@ -39,7 +39,7 @@
> + /* result generation */
> + %typemap(argout,noblock=1) (ldns_zone **)
> + {
> +- $result = SWIG_Python_AppendOutput($result,
> SWIG_NewPointerObj(SWIG_as_voidptr($1_zone), SWIGTYPE_p_ldns_struct_zone,
> SWIG_POINTER_OWN |  0 ));
> ++ $result = SWIG_AppendOutput($result,
> SWIG_NewPointerObj(SWIG_as_voidptr($1_zone), SWIGTYPE_p_ldns_struct_zone,
> SWIG_POINTER_OWN |  0 ));
> + }
> +
> + %nodefaultctor ldns_struct_zone; //no default constructor & destructor
>

[-- Attachment #2 --]
<div dir="ltr"><div dir="ltr">On Wed, Oct 30, 2024 at 9:43 PM Po-Chuan Hsieh &lt;<a href="mailto:sunpoet@freebsd.org">sunpoet@freebsd.org</a>&gt; wrote:</div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">The branch main has been updated by sunpoet:<br>
<br>
URL: <a href="https://cgit.FreeBSD.org/ports/commit/?id=e639f6100447a286904df65f14b45fa16a11388b" rel="noreferrer" target="_blank">https://cgit.FreeBSD.org/ports/commit/?id=e639f6100447a286904df65f14b45fa16a11388b</a><br>;
<br>
commit e639f6100447a286904df65f14b45fa16a11388b<br>
Author:     Po-Chuan Hsieh &lt;sunpoet@FreeBSD.org&gt;<br>
AuthorDate: 2024-10-30 13:43:18 +0000<br>
Commit:     Po-Chuan Hsieh &lt;sunpoet@FreeBSD.org&gt;<br>
CommitDate: 2024-10-30 13:43:18 +0000<br>
<br>
    devel/libftdi1: Fix build with swig 4.3.0+<br></blockquote><div><br></div><div>It should be &quot;dns/py-ldns: Fix build with swig 4.3.0+&quot;</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
    Approved by:    portmgr (blanket)<br>
---<br>
 dns/ldns/files/patch-swig | 77 +++++++++++++++++++++++++++++++++++++++++++++++<br>
 1 file changed, 77 insertions(+)<br>
<br>
diff --git a/dns/ldns/files/patch-swig b/dns/ldns/files/patch-swig<br>
new file mode 100644<br>
index 000000000000..9d93eddf8f58<br>
--- /dev/null<br>
+++ b/dns/ldns/files/patch-swig<br>
@@ -0,0 +1,77 @@<br>
+--- contrib/python/ldns_buffer.i.orig  2024-07-20 05:07:42 UTC<br>
++++ contrib/python/ldns_buffer.i<br>
+@@ -45,7 +45,7 @@<br>
+ /* Result generation, appends (ldns_buffer *) after the result. */<br>
+ %typemap(argout, noblock=1) (ldns_buffer **)<br>
+ {<br>
+-  $result = SWIG_Python_AppendOutput($result,<br>
++  $result = SWIG_AppendOutput($result,<br>
+      SWIG_NewPointerObj(SWIG_as_voidptr($1_buf),<br>
+        SWIGTYPE_p_ldns_struct_buffer, SWIG_POINTER_OWN | 0));<br>
+ }<br>
+--- contrib/python/ldns_key.i.orig     2024-07-20 05:07:42 UTC<br>
++++ contrib/python/ldns_key.i<br>
+@@ -38,7 +38,7 @@<br>
+ /* result generation */<br>
+ %typemap(argout,noblock=1) (ldns_key **)<br>
+ {<br>
+-  $result = SWIG_Python_AppendOutput($result, SWIG_NewPointerObj(SWIG_as_voidptr($1_key), SWIGTYPE_p_ldns_struct_key, SWIG_POINTER_OWN |  0 ));<br>
++  $result = SWIG_AppendOutput($result, SWIG_NewPointerObj(SWIG_as_voidptr($1_key), SWIGTYPE_p_ldns_struct_key, SWIG_POINTER_OWN |  0 ));<br>
+ }<br>
+ <br>
+ %typemap(argout) ldns_rdf *r &quot;Py_INCREF($input);&quot;<br>
+--- contrib/python/ldns_packet.i.orig  2024-07-20 05:07:42 UTC<br>
++++ contrib/python/ldns_packet.i<br>
+@@ -45,7 +45,7 @@<br>
+ /* Result generation, appends (ldns_pkt *) after the result. */<br>
+ %typemap(argout,noblock=1) (ldns_pkt **)<br>
+ {<br>
+-  $result = SWIG_Python_AppendOutput($result,<br>
++  $result = SWIG_AppendOutput($result,<br>
+     SWIG_NewPointerObj(SWIG_as_voidptr($1_pkt),<br>
+       SWIGTYPE_p_ldns_struct_pkt, SWIG_POINTER_OWN |  0 ));<br>
+ }<br>
+--- contrib/python/ldns_rdf.i.orig     2024-07-20 05:07:42 UTC<br>
++++ contrib/python/ldns_rdf.i<br>
+@@ -45,7 +45,7 @@<br>
+ /* Result generation, appends (ldns_rdf *) after the result. */<br>
+ %typemap(argout, noblock=1) (ldns_rdf **)<br>
+ {<br>
+-  $result = SWIG_Python_AppendOutput($result,<br>
++  $result = SWIG_AppendOutput($result,<br>
+     SWIG_NewPointerObj(SWIG_as_voidptr($1_rdf),<br>
+       SWIGTYPE_p_ldns_struct_rdf, SWIG_POINTER_OWN | 0));<br>
+ }<br>
+--- contrib/python/ldns_resolver.i.orig        2024-07-20 05:07:42 UTC<br>
++++ contrib/python/ldns_resolver.i<br>
+@@ -45,7 +45,7 @@<br>
+ /* Result generation, appends (ldns_resolver *) after the result. */<br>
+ %typemap(argout,noblock=1) (ldns_resolver **r)<br>
+ {<br>
+-  $result = SWIG_Python_AppendOutput($result,<br>
++  $result = SWIG_AppendOutput($result,<br>
+     SWIG_NewPointerObj(SWIG_as_voidptr($1_res),<br>
+       SWIGTYPE_p_ldns_struct_resolver, SWIG_POINTER_OWN |  0 ));<br>
+ }<br>
+--- contrib/python/ldns_rr.i.orig      2024-07-20 05:07:42 UTC<br>
++++ contrib/python/ldns_rr.i<br>
+@@ -45,7 +45,7 @@<br>
+ /* Result generation, appends (ldns_rr *) after the result. */<br>
+ %typemap(argout, noblock=1) (ldns_rr **) <br>
+ {<br>
+-  $result = SWIG_Python_AppendOutput($result,<br>
++  $result = SWIG_AppendOutput($result,<br>
+     SWIG_NewPointerObj(SWIG_as_voidptr($1_rr),<br>
+       SWIGTYPE_p_ldns_struct_rr, SWIG_POINTER_OWN |  0 ));<br>
+ }<br>
+--- contrib/python/ldns_zone.i.orig    2024-07-20 05:07:42 UTC<br>
++++ contrib/python/ldns_zone.i<br>
+@@ -39,7 +39,7 @@<br>
+ /* result generation */<br>
+ %typemap(argout,noblock=1) (ldns_zone **)<br>
+ {<br>
+- $result = SWIG_Python_AppendOutput($result, SWIG_NewPointerObj(SWIG_as_voidptr($1_zone), SWIGTYPE_p_ldns_struct_zone, SWIG_POINTER_OWN |  0 ));<br>
++ $result = SWIG_AppendOutput($result, SWIG_NewPointerObj(SWIG_as_voidptr($1_zone), SWIGTYPE_p_ldns_struct_zone, SWIG_POINTER_OWN |  0 ));<br>
+ }<br>
+ <br>
+ %nodefaultctor ldns_struct_zone; //no default constructor &amp; destructor<br>
</blockquote></div></div>
home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAMHz58Su_sOZirj4Q3kFsay19AJFbxRCQ1MT=%2BkXDonK9WxLYw>