ports: xbps

This commit is contained in:
Matheus
2025-09-10 21:39:57 -03:00
parent 20f9213dff
commit 39ba23f572
8 changed files with 113 additions and 2 deletions
@@ -0,0 +1,20 @@
diff --git libarchive-clean/build/autoconf/config.sub libarchive-workdir/build/autoconf/config.sub
index dba16e8..564ee86 100755
--- libarchive-clean/build/autoconf/config.sub
+++ libarchive-workdir/build/autoconf/config.sub
@@ -1723,7 +1723,7 @@ case $os in
# Now accept the basic system types.
# The portable systems comes first.
# Each alternative MUST end in a * to match a version number.
- gnu* | android* | bsd* | mach* | minix* | genix* | ultrix* | irix* \
+ gnu* | astral* | android* | bsd* | mach* | minix* | genix* | ultrix* | irix* \
| *vms* | esix* | aix* | cnk* | sunos | sunos[34]* \
| hpux* | unos* | osf* | luna* | dgux* | auroraux* | solaris* \
| sym* | plan9* | psp* | sim* | xray* | os68k* | v88r* \
diff --git libarchive-workdir/build/cmake/Platform/Astral.cmake libarchive-workdir/build/cmake/Platform/Astral.cmake
new file mode 100644
index 0000000..54a156b
--- /dev/null
+++ libarchive-workdir/build/cmake/Platform/Astral.cmake
@@ -0,0 +1 @@
+include(Platform/UnixPaths)
+26
View File
@@ -0,0 +1,26 @@
diff --git xbps-clean/configure xbps-workdir/configure
index 8e6b2db..7079ab8 100755
--- xbps-clean/configure
+++ xbps-workdir/configure
@@ -3,6 +3,8 @@
VERSION=0.60
+alias pkg-config=${ASTRAL_XBPS_PKG_CONFIG}
+
# Ensure that we do not inherit these from env
OS=
BUILD=
diff --git xbps-clean/lib/fetch/ftp.c xbps-workdir/lib/fetch/ftp.c
index 877b70d..a303d18 100644
--- xbps-clean/lib/fetch/ftp.c
+++ xbps-workdir/lib/fetch/ftp.c
@@ -138,7 +138,7 @@ unmappedaddr(struct sockaddr_in6 *sin6, socklen_t *len)
sin4->sin_port = port;
sin4->sin_family = AF_INET;
*len = sizeof(struct sockaddr_in);
-#ifndef __linux__
+#if !defined(__linux__) && !defined(__astral__)
sin4->sin_len = sizeof(struct sockaddr_in);
#endif
}