Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] New package: passt-2023.02.27.c538ee8
@ 2023-03-01  4:07 lemmi
  2023-03-01 15:32 ` [PR REVIEW] " sgn
                   ` (13 more replies)
  0 siblings, 14 replies; 15+ messages in thread
From: lemmi @ 2023-03-01  4:07 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 923 bytes --]

There is a new pull request by lemmi against master on the void-packages repository

https://github.com/lemmi/void-packages passt
https://github.com/void-linux/void-packages/pull/42517

New package: passt-2023.02.27.c538ee8
[podman-v4.4.0](https://github.com/containers/podman/releases/tag/v4.4.0) added support for [pasta](https://passt.top/passt/about/) with <https://github.com/containers/podman/pull/16141>. It's interesting for proper IPv6 forwarding with rootless containers.

There is an [open issue](https://bugs.passt.top/show_bug.cgi?id=4) for `musl` support.

#### Testing the changes
- I tested the changes in this PR: **briefly**

#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**


A patch file from https://github.com/void-linux/void-packages/pull/42517.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-passt-42517.patch --]
[-- Type: text/x-diff, Size: 1489 bytes --]

From 1a3a6a21de2ee118f98cf9730f806cd7b94a86dc Mon Sep 17 00:00:00 2001
From: lemmi <lemmi@nerd2nerd.org>
Date: Wed, 1 Mar 2023 04:27:04 +0100
Subject: [PATCH] New package: passt-2023.02.27.c538ee8

---
 srcpkgs/passt/template | 21 +++++++++++++++++++++
 srcpkgs/passt/update   |  2 ++
 2 files changed, 23 insertions(+)
 create mode 100644 srcpkgs/passt/template
 create mode 100644 srcpkgs/passt/update

diff --git a/srcpkgs/passt/template b/srcpkgs/passt/template
new file mode 100644
index 000000000000..fbebebdbe445
--- /dev/null
+++ b/srcpkgs/passt/template
@@ -0,0 +1,21 @@
+# Template file for 'passt'
+pkgname=passt
+version=2023.02.27.c538ee8
+revision=1
+# upstream uses YYYY_MM_DD.COMMIT
+_version=${version/./_}
+_version=${_version/./_}
+# https://bugs.passt.top/show_bug.cgi?id=4
+archs="~*-musl"
+build_style=gnu-makefile
+short_desc="Plug A Simple Socket Transport"
+maintainer="lemmi <lemmi@nerd2nerd.org>"
+license="AGPL-3.0-or-later, BSD-3-Clause"
+homepage="https://passt.top"
+distfiles="https://passt.top/passt/snapshot/passt-${_version}.tar.xz"
+checksum=e09399ca10d1ddfb372580ac7e2540d00e417e1621d917b5f8ee1cd6adbd6772
+
+post_install() {
+	vlicense LICENSES/AGPL-3.0-or-later.txt
+	vlicense LICENSES/BSD-3-Clause.txt
+}
diff --git a/srcpkgs/passt/update b/srcpkgs/passt/update
new file mode 100644
index 000000000000..53a028708654
--- /dev/null
+++ b/srcpkgs/passt/update
@@ -0,0 +1,2 @@
+site="https://passt.top/passt"
+pattern='passt-\K[\d._abcdef]+(?=.tar.xz)'

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [PR REVIEW] New package: passt-2023.02.27.c538ee8
  2023-03-01  4:07 [PR PATCH] New package: passt-2023.02.27.c538ee8 lemmi
@ 2023-03-01 15:32 ` sgn
  2023-03-01 17:28 ` lemmi
                   ` (12 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: sgn @ 2023-03-01 15:32 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 301 bytes --]

New review comment by sgn on void-packages repository

https://github.com/void-linux/void-packages/pull/42517#discussion_r1121924761

Comment:
Debian seems to use `0.0~gitYYYYMMDD`, Fedora uses `0^YYYYMMDD`, I think we should go with them. As those version was listed as official in `passt` homepage?

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [PR REVIEW] New package: passt-2023.02.27.c538ee8
  2023-03-01  4:07 [PR PATCH] New package: passt-2023.02.27.c538ee8 lemmi
  2023-03-01 15:32 ` [PR REVIEW] " sgn
@ 2023-03-01 17:28 ` lemmi
  2023-03-02  0:07 ` sbrivio-rh
                   ` (11 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: lemmi @ 2023-03-01 17:28 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 365 bytes --]

New review comment by lemmi on void-packages repository

https://github.com/void-linux/void-packages/pull/42517#discussion_r1122091687

Comment:
That's going to make converting to the `YYYY_MM_DD` format upstream uses for its tags even more inconvenient I think. 
Or are you mainly suggesting prepending a 0-Version number in case they start using proper version?

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [PR REVIEW] New package: passt-2023.02.27.c538ee8
  2023-03-01  4:07 [PR PATCH] New package: passt-2023.02.27.c538ee8 lemmi
  2023-03-01 15:32 ` [PR REVIEW] " sgn
  2023-03-01 17:28 ` lemmi
@ 2023-03-02  0:07 ` sbrivio-rh
  2023-03-02  0:33 ` lemmi
                   ` (10 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: sbrivio-rh @ 2023-03-02  0:07 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1342 bytes --]

New review comment by sbrivio-rh on void-packages repository

https://github.com/void-linux/void-packages/pull/42517#discussion_r1122457225

Comment:
By the way, Debian package versions are formed with this [uscan rule](https://salsa.debian.org/sbrivio/passt/-/blob/master/debian/watch#L2):

```
options="uversionmangle=s/_//g; s/^/0.0~git/"
```

and this is the [rpkg macro](https://passt.top/passt/tree/contrib/fedora/rpkg.macros#n18) for Fedora:

```
printf "0^%s.g%s" "$(date -uI -d "${__date}" | tr -d -)" "${__commit}"
```

those are just to comply with distribution guidelines, there's no particular reason why. Upstream versions (tags) simply uses `YYYY_MM_DD.SHORT_SHA` as you noted because I find it more readable.

>  Or are you mainly suggesting prepending a 0-Version number in case they start using proper version?

There are no plans to switch to semantic versioning or suchlike. The current agreement, for the foreseeable future, is that dates are more meaningful than version numbers, yet should be readable enough, and the SHA immediately and uniquely identifies tags. We have no branches or "stable" releases, so that's quite convenient.

But sure, prepending a `0` is probably not a bad idea, even though it's a bit less readable. If we ever switch to a different scheme, we could also start with a `3`.

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [PR REVIEW] New package: passt-2023.02.27.c538ee8
  2023-03-01  4:07 [PR PATCH] New package: passt-2023.02.27.c538ee8 lemmi
                   ` (2 preceding siblings ...)
  2023-03-02  0:07 ` sbrivio-rh
@ 2023-03-02  0:33 ` lemmi
  2023-03-02  8:58 ` sbrivio-rh
                   ` (9 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: lemmi @ 2023-03-02  0:33 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 621 bytes --]

New review comment by lemmi on void-packages repository

https://github.com/void-linux/void-packages/pull/42517#discussion_r1122475916

Comment:
@sbrivio-rh thanks for checking in. I can live with the current format. It's just that we don't allow `-` and `_` in the version part, so we can unambiguously match it. And if no semantic (that's the correct word, not "proper" :) ) versioning is planned, I think it's best to keep the `.`, since they allow me to generate the format with built-ins.
Getting `musl` support would be nice though, but I failed to find the correct includes for `__bswap_constant_16` for example.

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [PR REVIEW] New package: passt-2023.02.27.c538ee8
  2023-03-01  4:07 [PR PATCH] New package: passt-2023.02.27.c538ee8 lemmi
                   ` (3 preceding siblings ...)
  2023-03-02  0:33 ` lemmi
@ 2023-03-02  8:58 ` sbrivio-rh
  2023-03-02 13:53 ` sbrivio-rh
                   ` (8 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: sbrivio-rh @ 2023-03-02  8:58 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 801 bytes --]

New review comment by sbrivio-rh on void-packages repository

https://github.com/void-linux/void-packages/pull/42517#discussion_r1122778040

Comment:
> I think it's best to keep the ., since they allow me to generate the format with built-ins.

Sure, it looks a bit nicer too.

> Getting musl support would be nice though, but I failed to find the correct includes for __bswap_constant_16 for example.

I guess that needs something like [this](https://github.com/analogdevicesinc/libiio/commit/9c6c6a432a0cbe2832bc97a7eeddfb61f6b8b856) -- probably a good fit for `util.h`.

In general I'd say we should carry own implementations for fundamental things like that (we really shouldn't swap those values at runtime), and instead change whatever code we didn't write in a portable way by mistake.

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [PR REVIEW] New package: passt-2023.02.27.c538ee8
  2023-03-01  4:07 [PR PATCH] New package: passt-2023.02.27.c538ee8 lemmi
                   ` (4 preceding siblings ...)
  2023-03-02  8:58 ` sbrivio-rh
@ 2023-03-02 13:53 ` sbrivio-rh
  2023-03-02 19:11 ` [PR PATCH] [Updated] " lemmi
                   ` (7 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: sbrivio-rh @ 2023-03-02 13:53 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 207 bytes --]

New review comment by sbrivio-rh on void-packages repository

https://github.com/void-linux/void-packages/pull/42517#discussion_r1123133514

Comment:
See also https://bugs.passt.top/show_bug.cgi?id=4#c1 (!)

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [PR PATCH] [Updated] New package: passt-2023.02.27.c538ee8
  2023-03-01  4:07 [PR PATCH] New package: passt-2023.02.27.c538ee8 lemmi
                   ` (5 preceding siblings ...)
  2023-03-02 13:53 ` sbrivio-rh
@ 2023-03-02 19:11 ` lemmi
  2023-03-02 19:14 ` lemmi
                   ` (6 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: lemmi @ 2023-03-02 19:11 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 928 bytes --]

There is an updated pull request by lemmi against master on the void-packages repository

https://github.com/lemmi/void-packages passt
https://github.com/void-linux/void-packages/pull/42517

New package: passt-2023.02.27.c538ee8
[podman-v4.4.0](https://github.com/containers/podman/releases/tag/v4.4.0) added support for [pasta](https://passt.top/passt/about/) with <https://github.com/containers/podman/pull/16141>. It's interesting for proper IPv6 forwarding with rootless containers.

There is an [open issue](https://bugs.passt.top/show_bug.cgi?id=4) for `musl` support.

#### Testing the changes
- I tested the changes in this PR: **briefly**

#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**


A patch file from https://github.com/void-linux/void-packages/pull/42517.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-passt-42517.patch --]
[-- Type: text/x-diff, Size: 4026 bytes --]

From dd5306736d8002b3d53a06c955bdf7bb22b06b04 Mon Sep 17 00:00:00 2001
From: lemmi <lemmi@nerd2nerd.org>
Date: Wed, 1 Mar 2023 04:27:04 +0100
Subject: [PATCH] New package: passt-2023.02.27.c538ee8

---
 srcpkgs/passt/patches/musl.patch | 96 ++++++++++++++++++++++++++++++++
 srcpkgs/passt/template           | 21 +++++++
 srcpkgs/passt/update             |  2 +
 3 files changed, 119 insertions(+)
 create mode 100644 srcpkgs/passt/patches/musl.patch
 create mode 100644 srcpkgs/passt/template
 create mode 100644 srcpkgs/passt/update

diff --git a/srcpkgs/passt/patches/musl.patch b/srcpkgs/passt/patches/musl.patch
new file mode 100644
index 000000000000..810b501a1a74
--- /dev/null
+++ b/srcpkgs/passt/patches/musl.patch
@@ -0,0 +1,96 @@
+diff --git a/conf.c b/conf.c
+index 0e512f4..3e38948 100644
+--- a/conf.c
++++ b/conf.c
+@@ -1305,13 +1305,13 @@ void conf(struct ctx *c, int argc, char **argv)
+ 			if (logfile)
+ 				die("Can't log to both file and stderr");
+ 
+-			if (c->stderr)
++			if (c->_stderr)
+ 				die("Multiple --stderr options given");
+ 
+-			c->stderr = 1;
++			c->_stderr = 1;
+ 			break;
+ 		case 'l':
+-			if (c->stderr)
++			if (c->_stderr)
+ 				die("Can't log to both stderr and file");
+ 
+ 			if (logfile)
+diff --git a/passt.c b/passt.c
+index 5b8146e..6d6dfcb 100644
+--- a/passt.c
++++ b/passt.c
+@@ -241,7 +241,7 @@ int main(int argc, char **argv)
+ 	conf(&c, argc, argv);
+ 	trace_init(c.trace);
+ 
+-	if (c.stderr || isatty(fileno(stdout)))
++	if (c._stderr || isatty(fileno(stdout)))
+ 		__openlog(log_name, LOG_PERROR, LOG_DAEMON);
+ 
+ 	quit_fd = pasta_netns_quit_init(&c);
+diff --git a/passt.h b/passt.h
+index e0383eb..697b8f0 100644
+--- a/passt.h
++++ b/passt.h
+@@ -32,7 +32,7 @@ struct tap_l4_msg {
+ union epoll_ref;
+ 
+ #include <stdbool.h>
+-
++#include <limits.h>
+ #include "packet.h"
+ #include "icmp.h"
+ #include "port_fwd.h"
+@@ -197,7 +197,7 @@ struct ctx {
+ 	int trace;
+ 	int quiet;
+ 	int foreground;
+-	int stderr;
++	int _stderr;
+ 	int nofile;
+ 	char sock_path[UNIX_PATH_MAX];
+ 	char pcap[PATH_MAX];
+diff --git a/util.h b/util.h
+index 570094c..7315ce2 100644
+--- a/util.h
++++ b/util.h
+@@ -7,7 +7,10 @@
+ #define UTIL_H
+ 
+ #include <stdlib.h>
++#include <stdio.h>
+ #include <stdarg.h>
++#include <signal.h>
++#include <byteswap.h>
+ 
+ #include "log.h"
+ 
+@@ -88,6 +91,8 @@
+ #define MAC_ZERO		((uint8_t [ETH_ALEN]){ 0 })
+ #define MAC_IS_ZERO(addr)	(!memcmp((addr), MAC_ZERO, ETH_ALEN))
+ 
++#if defined(__GLIBC__) || defined(__UCLIBC__)
++
+ #if __BYTE_ORDER == __BIG_ENDIAN
+ #define	htons_constant(x)	(x)
+ #define	htonl_constant(x)	(x)
+@@ -96,6 +101,15 @@
+ #define	htonl_constant(x)	(__bswap_constant_32(x))
+ #endif
+ 
++#else 
++
++/* mainly musl fallback */
++
++#define	htons_constant(x)	(x)
++#define	htonl_constant(x)	(x)
++
++#endif
++
+ #define IN4_IS_ADDR_UNSPECIFIED(a) \
+ 	((a)->s_addr == htonl(INADDR_ANY))
+ #define IN4_IS_ADDR_BROADCAST(a) \
diff --git a/srcpkgs/passt/template b/srcpkgs/passt/template
new file mode 100644
index 000000000000..6fa0b7e4c33a
--- /dev/null
+++ b/srcpkgs/passt/template
@@ -0,0 +1,21 @@
+# Template file for 'passt'
+pkgname=passt
+version=2023.02.27.c538ee8
+revision=1
+# upstream uses YYYY_MM_DD.COMMIT
+_version=${version/./_}
+_version=${_version/./_}
+# https://bugs.passt.top/show_bug.cgi?id=4
+#archs="~*-musl"
+build_style=gnu-makefile
+short_desc="Plug A Simple Socket Transport"
+maintainer="lemmi <lemmi@nerd2nerd.org>"
+license="AGPL-3.0-or-later, BSD-3-Clause"
+homepage="https://passt.top"
+distfiles="https://passt.top/passt/snapshot/passt-${_version}.tar.xz"
+checksum=e09399ca10d1ddfb372580ac7e2540d00e417e1621d917b5f8ee1cd6adbd6772
+
+post_install() {
+	vlicense LICENSES/AGPL-3.0-or-later.txt
+	vlicense LICENSES/BSD-3-Clause.txt
+}
diff --git a/srcpkgs/passt/update b/srcpkgs/passt/update
new file mode 100644
index 000000000000..53a028708654
--- /dev/null
+++ b/srcpkgs/passt/update
@@ -0,0 +1,2 @@
+site="https://passt.top/passt"
+pattern='passt-\K[\d._abcdef]+(?=.tar.xz)'

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: New package: passt-2023.02.27.c538ee8
  2023-03-01  4:07 [PR PATCH] New package: passt-2023.02.27.c538ee8 lemmi
                   ` (6 preceding siblings ...)
  2023-03-02 19:11 ` [PR PATCH] [Updated] " lemmi
@ 2023-03-02 19:14 ` lemmi
  2023-03-02 19:15 ` [PR PATCH] [Updated] " lemmi
                   ` (5 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: lemmi @ 2023-03-02 19:14 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 709 bytes --]

New comment by lemmi on void-packages repository

https://github.com/void-linux/void-packages/pull/42517#issuecomment-1452423139

Comment:
Added the patch from <https://bugs.passt.top/show_bug.cgi?id=4#c1>. With that it compiled on `musl`, but broke `glibc`. Here's the fix:
```diff
--- musl.patch	2023-03-02 20:11:41.273250878 +0100
+++ musl-limits.patch	2023-03-02 20:12:16.791228390 +0100
@@ -41,7 +41,7 @@

  #include <stdbool.h>
 -
-+#include <bits/limits.h>
++#include <limits.h>
  #include "packet.h"
  #include "icmp.h"
  #include "port_fwd.h"
```
This is looking promising. Looks to me we can afford to wait for `musl` support to land. I'll keep an eye on the bugzilla and mailinglist.

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [PR PATCH] [Updated] New package: passt-2023.02.27.c538ee8
  2023-03-01  4:07 [PR PATCH] New package: passt-2023.02.27.c538ee8 lemmi
                   ` (7 preceding siblings ...)
  2023-03-02 19:14 ` lemmi
@ 2023-03-02 19:15 ` lemmi
  2023-03-09  9:15 ` sbrivio-rh
                   ` (4 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: lemmi @ 2023-03-02 19:15 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 928 bytes --]

There is an updated pull request by lemmi against master on the void-packages repository

https://github.com/lemmi/void-packages passt
https://github.com/void-linux/void-packages/pull/42517

New package: passt-2023.02.27.c538ee8
[podman-v4.4.0](https://github.com/containers/podman/releases/tag/v4.4.0) added support for [pasta](https://passt.top/passt/about/) with <https://github.com/containers/podman/pull/16141>. It's interesting for proper IPv6 forwarding with rootless containers.

There is an [open issue](https://bugs.passt.top/show_bug.cgi?id=4) for `musl` support.

#### Testing the changes
- I tested the changes in this PR: **briefly**

#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**


A patch file from https://github.com/void-linux/void-packages/pull/42517.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-passt-42517.patch --]
[-- Type: text/x-diff, Size: 4008 bytes --]

From 83237bdd1e09cd38817dc83a904f03be513b2dde Mon Sep 17 00:00:00 2001
From: lemmi <lemmi@nerd2nerd.org>
Date: Wed, 1 Mar 2023 04:27:04 +0100
Subject: [PATCH] New package: passt-2023.02.27.c538ee8

---
 srcpkgs/passt/patches/musl.patch | 96 ++++++++++++++++++++++++++++++++
 srcpkgs/passt/template           | 20 +++++++
 srcpkgs/passt/update             |  2 +
 3 files changed, 118 insertions(+)
 create mode 100644 srcpkgs/passt/patches/musl.patch
 create mode 100644 srcpkgs/passt/template
 create mode 100644 srcpkgs/passt/update

diff --git a/srcpkgs/passt/patches/musl.patch b/srcpkgs/passt/patches/musl.patch
new file mode 100644
index 000000000000..810b501a1a74
--- /dev/null
+++ b/srcpkgs/passt/patches/musl.patch
@@ -0,0 +1,96 @@
+diff --git a/conf.c b/conf.c
+index 0e512f4..3e38948 100644
+--- a/conf.c
++++ b/conf.c
+@@ -1305,13 +1305,13 @@ void conf(struct ctx *c, int argc, char **argv)
+ 			if (logfile)
+ 				die("Can't log to both file and stderr");
+ 
+-			if (c->stderr)
++			if (c->_stderr)
+ 				die("Multiple --stderr options given");
+ 
+-			c->stderr = 1;
++			c->_stderr = 1;
+ 			break;
+ 		case 'l':
+-			if (c->stderr)
++			if (c->_stderr)
+ 				die("Can't log to both stderr and file");
+ 
+ 			if (logfile)
+diff --git a/passt.c b/passt.c
+index 5b8146e..6d6dfcb 100644
+--- a/passt.c
++++ b/passt.c
+@@ -241,7 +241,7 @@ int main(int argc, char **argv)
+ 	conf(&c, argc, argv);
+ 	trace_init(c.trace);
+ 
+-	if (c.stderr || isatty(fileno(stdout)))
++	if (c._stderr || isatty(fileno(stdout)))
+ 		__openlog(log_name, LOG_PERROR, LOG_DAEMON);
+ 
+ 	quit_fd = pasta_netns_quit_init(&c);
+diff --git a/passt.h b/passt.h
+index e0383eb..697b8f0 100644
+--- a/passt.h
++++ b/passt.h
+@@ -32,7 +32,7 @@ struct tap_l4_msg {
+ union epoll_ref;
+ 
+ #include <stdbool.h>
+-
++#include <limits.h>
+ #include "packet.h"
+ #include "icmp.h"
+ #include "port_fwd.h"
+@@ -197,7 +197,7 @@ struct ctx {
+ 	int trace;
+ 	int quiet;
+ 	int foreground;
+-	int stderr;
++	int _stderr;
+ 	int nofile;
+ 	char sock_path[UNIX_PATH_MAX];
+ 	char pcap[PATH_MAX];
+diff --git a/util.h b/util.h
+index 570094c..7315ce2 100644
+--- a/util.h
++++ b/util.h
+@@ -7,7 +7,10 @@
+ #define UTIL_H
+ 
+ #include <stdlib.h>
++#include <stdio.h>
+ #include <stdarg.h>
++#include <signal.h>
++#include <byteswap.h>
+ 
+ #include "log.h"
+ 
+@@ -88,6 +91,8 @@
+ #define MAC_ZERO		((uint8_t [ETH_ALEN]){ 0 })
+ #define MAC_IS_ZERO(addr)	(!memcmp((addr), MAC_ZERO, ETH_ALEN))
+ 
++#if defined(__GLIBC__) || defined(__UCLIBC__)
++
+ #if __BYTE_ORDER == __BIG_ENDIAN
+ #define	htons_constant(x)	(x)
+ #define	htonl_constant(x)	(x)
+@@ -96,6 +101,15 @@
+ #define	htonl_constant(x)	(__bswap_constant_32(x))
+ #endif
+ 
++#else 
++
++/* mainly musl fallback */
++
++#define	htons_constant(x)	(x)
++#define	htonl_constant(x)	(x)
++
++#endif
++
+ #define IN4_IS_ADDR_UNSPECIFIED(a) \
+ 	((a)->s_addr == htonl(INADDR_ANY))
+ #define IN4_IS_ADDR_BROADCAST(a) \
diff --git a/srcpkgs/passt/template b/srcpkgs/passt/template
new file mode 100644
index 000000000000..3adf19be4f6a
--- /dev/null
+++ b/srcpkgs/passt/template
@@ -0,0 +1,20 @@
+# Template file for 'passt'
+pkgname=passt
+version=2023.02.27.c538ee8
+revision=1
+# upstream uses YYYY_MM_DD.COMMIT
+_version=${version/./_}
+_version=${_version/./_}
+# https://bugs.passt.top/show_bug.cgi?id=4
+build_style=gnu-makefile
+short_desc="Plug A Simple Socket Transport"
+maintainer="lemmi <lemmi@nerd2nerd.org>"
+license="AGPL-3.0-or-later, BSD-3-Clause"
+homepage="https://passt.top"
+distfiles="https://passt.top/passt/snapshot/passt-${_version}.tar.xz"
+checksum=e09399ca10d1ddfb372580ac7e2540d00e417e1621d917b5f8ee1cd6adbd6772
+
+post_install() {
+	vlicense LICENSES/AGPL-3.0-or-later.txt
+	vlicense LICENSES/BSD-3-Clause.txt
+}
diff --git a/srcpkgs/passt/update b/srcpkgs/passt/update
new file mode 100644
index 000000000000..53a028708654
--- /dev/null
+++ b/srcpkgs/passt/update
@@ -0,0 +1,2 @@
+site="https://passt.top/passt"
+pattern='passt-\K[\d._abcdef]+(?=.tar.xz)'

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: New package: passt-2023.02.27.c538ee8
  2023-03-01  4:07 [PR PATCH] New package: passt-2023.02.27.c538ee8 lemmi
                   ` (8 preceding siblings ...)
  2023-03-02 19:15 ` [PR PATCH] [Updated] " lemmi
@ 2023-03-09  9:15 ` sbrivio-rh
  2023-03-10  3:12 ` [PR PATCH] [Updated] " lemmi
                   ` (3 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: sbrivio-rh @ 2023-03-09  9:15 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 293 bytes --]

New comment by sbrivio-rh on void-packages repository

https://github.com/void-linux/void-packages/pull/42517#issuecomment-1461627775

Comment:
Building against musl is now fixed in upstream version [2023_03_09.7c7625d](https://archives.passt.top/passt-dev/20230309101340.70f25005@elisabeth/)

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [PR PATCH] [Updated] New package: passt-2023.02.27.c538ee8
  2023-03-01  4:07 [PR PATCH] New package: passt-2023.02.27.c538ee8 lemmi
                   ` (9 preceding siblings ...)
  2023-03-09  9:15 ` sbrivio-rh
@ 2023-03-10  3:12 ` lemmi
  2023-03-19  6:38 ` [PR PATCH] [Updated] New package: passt-2023.03.09.7c7625d lemmi
                   ` (2 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: lemmi @ 2023-03-10  3:12 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 928 bytes --]

There is an updated pull request by lemmi against master on the void-packages repository

https://github.com/lemmi/void-packages passt
https://github.com/void-linux/void-packages/pull/42517

New package: passt-2023.02.27.c538ee8
[podman-v4.4.0](https://github.com/containers/podman/releases/tag/v4.4.0) added support for [pasta](https://passt.top/passt/about/) with <https://github.com/containers/podman/pull/16141>. It's interesting for proper IPv6 forwarding with rootless containers.

There is an [open issue](https://bugs.passt.top/show_bug.cgi?id=4) for `musl` support.

#### Testing the changes
- I tested the changes in this PR: **briefly**

#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**


A patch file from https://github.com/void-linux/void-packages/pull/42517.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-passt-42517.patch --]
[-- Type: text/x-diff, Size: 1426 bytes --]

From fe40c24fb76ee517dcb2a72f3ace8560aea02672 Mon Sep 17 00:00:00 2001
From: lemmi <lemmi@nerd2nerd.org>
Date: Wed, 1 Mar 2023 04:27:04 +0100
Subject: [PATCH] New package: passt-2023.03.09.7c7625d

---
 srcpkgs/passt/template | 19 +++++++++++++++++++
 srcpkgs/passt/update   |  2 ++
 2 files changed, 21 insertions(+)
 create mode 100644 srcpkgs/passt/template
 create mode 100644 srcpkgs/passt/update

diff --git a/srcpkgs/passt/template b/srcpkgs/passt/template
new file mode 100644
index 000000000000..87b43233baa7
--- /dev/null
+++ b/srcpkgs/passt/template
@@ -0,0 +1,19 @@
+# Template file for 'passt'
+pkgname=passt
+version=2023.03.09.7c7625d
+revision=1
+# upstream uses YYYY_MM_DD.COMMIT
+_version=${version/./_}
+_version=${_version/./_}
+build_style=gnu-makefile
+short_desc="Plug A Simple Socket Transport"
+maintainer="lemmi <lemmi@nerd2nerd.org>"
+license="AGPL-3.0-or-later, BSD-3-Clause"
+homepage="https://passt.top"
+distfiles="https://passt.top/passt/snapshot/passt-${_version}.tar.xz"
+checksum=f071e1c2f618fe678516c6c2a798c491ac44bb96d3a00617d343f67313e3db6c
+
+post_install() {
+	vlicense LICENSES/AGPL-3.0-or-later.txt
+	vlicense LICENSES/BSD-3-Clause.txt
+}
diff --git a/srcpkgs/passt/update b/srcpkgs/passt/update
new file mode 100644
index 000000000000..53a028708654
--- /dev/null
+++ b/srcpkgs/passt/update
@@ -0,0 +1,2 @@
+site="https://passt.top/passt"
+pattern='passt-\K[\d._abcdef]+(?=.tar.xz)'

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [PR PATCH] [Updated] New package: passt-2023.03.09.7c7625d
  2023-03-01  4:07 [PR PATCH] New package: passt-2023.02.27.c538ee8 lemmi
                   ` (10 preceding siblings ...)
  2023-03-10  3:12 ` [PR PATCH] [Updated] " lemmi
@ 2023-03-19  6:38 ` lemmi
  2023-03-24 14:09 ` lemmi
  2023-03-24 14:12 ` [PR PATCH] [Merged]: " lemmi
  13 siblings, 0 replies; 15+ messages in thread
From: lemmi @ 2023-03-19  6:38 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 928 bytes --]

There is an updated pull request by lemmi against master on the void-packages repository

https://github.com/lemmi/void-packages passt
https://github.com/void-linux/void-packages/pull/42517

New package: passt-2023.03.09.7c7625d
[podman-v4.4.0](https://github.com/containers/podman/releases/tag/v4.4.0) added support for [pasta](https://passt.top/passt/about/) with <https://github.com/containers/podman/pull/16141>. It's interesting for proper IPv6 forwarding with rootless containers.

There is an [open issue](https://bugs.passt.top/show_bug.cgi?id=4) for `musl` support.

#### Testing the changes
- I tested the changes in this PR: **briefly**

#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**


A patch file from https://github.com/void-linux/void-packages/pull/42517.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-passt-42517.patch --]
[-- Type: text/x-diff, Size: 1426 bytes --]

From 95acd23d3932c6147b520b9ebcf3271c2c414b9d Mon Sep 17 00:00:00 2001
From: lemmi <lemmi@nerd2nerd.org>
Date: Wed, 1 Mar 2023 04:27:04 +0100
Subject: [PATCH] New package: passt-2023.03.17.dd23496

---
 srcpkgs/passt/template | 19 +++++++++++++++++++
 srcpkgs/passt/update   |  2 ++
 2 files changed, 21 insertions(+)
 create mode 100644 srcpkgs/passt/template
 create mode 100644 srcpkgs/passt/update

diff --git a/srcpkgs/passt/template b/srcpkgs/passt/template
new file mode 100644
index 000000000000..c4220566b93e
--- /dev/null
+++ b/srcpkgs/passt/template
@@ -0,0 +1,19 @@
+# Template file for 'passt'
+pkgname=passt
+version=2023.03.17.dd23496
+revision=1
+# upstream uses YYYY_MM_DD.COMMIT
+_version=${version/./_}
+_version=${_version/./_}
+build_style=gnu-makefile
+short_desc="Plug A Simple Socket Transport"
+maintainer="lemmi <lemmi@nerd2nerd.org>"
+license="AGPL-3.0-or-later, BSD-3-Clause"
+homepage="https://passt.top"
+distfiles="https://passt.top/passt/snapshot/passt-${_version}.tar.xz"
+checksum=65b19274ce8814432fb6490f089995d0f10ba66969d67135560e671c4dbd9832
+
+post_install() {
+	vlicense LICENSES/AGPL-3.0-or-later.txt
+	vlicense LICENSES/BSD-3-Clause.txt
+}
diff --git a/srcpkgs/passt/update b/srcpkgs/passt/update
new file mode 100644
index 000000000000..53a028708654
--- /dev/null
+++ b/srcpkgs/passt/update
@@ -0,0 +1,2 @@
+site="https://passt.top/passt"
+pattern='passt-\K[\d._abcdef]+(?=.tar.xz)'

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [PR PATCH] [Updated] New package: passt-2023.03.09.7c7625d
  2023-03-01  4:07 [PR PATCH] New package: passt-2023.02.27.c538ee8 lemmi
                   ` (11 preceding siblings ...)
  2023-03-19  6:38 ` [PR PATCH] [Updated] New package: passt-2023.03.09.7c7625d lemmi
@ 2023-03-24 14:09 ` lemmi
  2023-03-24 14:12 ` [PR PATCH] [Merged]: " lemmi
  13 siblings, 0 replies; 15+ messages in thread
From: lemmi @ 2023-03-24 14:09 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 928 bytes --]

There is an updated pull request by lemmi against master on the void-packages repository

https://github.com/lemmi/void-packages passt
https://github.com/void-linux/void-packages/pull/42517

New package: passt-2023.03.09.7c7625d
[podman-v4.4.0](https://github.com/containers/podman/releases/tag/v4.4.0) added support for [pasta](https://passt.top/passt/about/) with <https://github.com/containers/podman/pull/16141>. It's interesting for proper IPv6 forwarding with rootless containers.

There is an [open issue](https://bugs.passt.top/show_bug.cgi?id=4) for `musl` support.

#### Testing the changes
- I tested the changes in this PR: **briefly**

#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**


A patch file from https://github.com/void-linux/void-packages/pull/42517.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-passt-42517.patch --]
[-- Type: text/x-diff, Size: 1426 bytes --]

From 2ec691e3c7ebed87475d3dfb71c7378aae87d77e Mon Sep 17 00:00:00 2001
From: lemmi <lemmi@nerd2nerd.org>
Date: Wed, 1 Mar 2023 04:27:04 +0100
Subject: [PATCH] New package: passt-2023.03.21.1ee2f7c

---
 srcpkgs/passt/template | 19 +++++++++++++++++++
 srcpkgs/passt/update   |  2 ++
 2 files changed, 21 insertions(+)
 create mode 100644 srcpkgs/passt/template
 create mode 100644 srcpkgs/passt/update

diff --git a/srcpkgs/passt/template b/srcpkgs/passt/template
new file mode 100644
index 000000000000..f8b81f01f310
--- /dev/null
+++ b/srcpkgs/passt/template
@@ -0,0 +1,19 @@
+# Template file for 'passt'
+pkgname=passt
+version=2023.03.21.1ee2f7c
+revision=1
+# upstream uses YYYY_MM_DD.COMMIT
+_version=${version/./_}
+_version=${_version/./_}
+build_style=gnu-makefile
+short_desc="Plug A Simple Socket Transport"
+maintainer="lemmi <lemmi@nerd2nerd.org>"
+license="AGPL-3.0-or-later, BSD-3-Clause"
+homepage="https://passt.top"
+distfiles="https://passt.top/passt/snapshot/passt-${_version}.tar.xz"
+checksum=46ae6bd4b03ba0982938f51fbfbf8c0f11ac0c23e4a04c41211f03e0aa564952
+
+post_install() {
+	vlicense LICENSES/AGPL-3.0-or-later.txt
+	vlicense LICENSES/BSD-3-Clause.txt
+}
diff --git a/srcpkgs/passt/update b/srcpkgs/passt/update
new file mode 100644
index 000000000000..53a028708654
--- /dev/null
+++ b/srcpkgs/passt/update
@@ -0,0 +1,2 @@
+site="https://passt.top/passt"
+pattern='passt-\K[\d._abcdef]+(?=.tar.xz)'

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [PR PATCH] [Merged]: New package: passt-2023.03.09.7c7625d
  2023-03-01  4:07 [PR PATCH] New package: passt-2023.02.27.c538ee8 lemmi
                   ` (12 preceding siblings ...)
  2023-03-24 14:09 ` lemmi
@ 2023-03-24 14:12 ` lemmi
  13 siblings, 0 replies; 15+ messages in thread
From: lemmi @ 2023-03-24 14:12 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 778 bytes --]

There's a merged pull request on the void-packages repository

New package: passt-2023.03.09.7c7625d
https://github.com/void-linux/void-packages/pull/42517

Description:
[podman-v4.4.0](https://github.com/containers/podman/releases/tag/v4.4.0) added support for [pasta](https://passt.top/passt/about/) with <https://github.com/containers/podman/pull/16141>. It's interesting for proper IPv6 forwarding with rootless containers.

There is an [open issue](https://bugs.passt.top/show_bug.cgi?id=4) for `musl` support.

#### Testing the changes
- I tested the changes in this PR: **briefly**

#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**


^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2023-03-24 14:12 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-01  4:07 [PR PATCH] New package: passt-2023.02.27.c538ee8 lemmi
2023-03-01 15:32 ` [PR REVIEW] " sgn
2023-03-01 17:28 ` lemmi
2023-03-02  0:07 ` sbrivio-rh
2023-03-02  0:33 ` lemmi
2023-03-02  8:58 ` sbrivio-rh
2023-03-02 13:53 ` sbrivio-rh
2023-03-02 19:11 ` [PR PATCH] [Updated] " lemmi
2023-03-02 19:14 ` lemmi
2023-03-02 19:15 ` [PR PATCH] [Updated] " lemmi
2023-03-09  9:15 ` sbrivio-rh
2023-03-10  3:12 ` [PR PATCH] [Updated] " lemmi
2023-03-19  6:38 ` [PR PATCH] [Updated] New package: passt-2023.03.09.7c7625d lemmi
2023-03-24 14:09 ` lemmi
2023-03-24 14:12 ` [PR PATCH] [Merged]: " lemmi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).