7 Commits 13827e82df ... aff3b7c987

Author SHA1 Message Date
  Matías Fonzo aff3b7c987 Update differences for musl from master branch 3 years ago
  Matías Fonzo fb43301198 bootstrap: Switch back to the optimization flag for the size 3 years ago
  Matías Fonzo 6d1bbdcd0a recipes: tools/htop: Upgraded to version 3.0.1 3 years ago
  Matías Fonzo f61c37d73b recipes: networking/alpine: Upgraded to version 2.23 3 years ago
  Matías Fonzo d7a765c984 recipes: networking/irssi: Fix unpack() from the previous adjustment 3 years ago
  Matías Fonzo 1e7186c852 recipes: networking/*: Upgraded iptables and nftables stack 3 years ago
  Matías Fonzo 877f357aff recipes: networking/iproute2: Upgraded to version 5.8.0 3 years ago

+ 3 - 3
bootstrap

@@ -72,7 +72,7 @@ echo ""
 version()
 {
     printf '%s' \
-"$PROGRAM 3.24
+"$PROGRAM 3.25
 Copyright (C) 2014-2020 Matias Andres Fonzo.
 License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
 This is free software: you are free to change and redistribute it.
@@ -188,8 +188,8 @@ warn_flags()
 
 BTCC="${BTCC:=cc}"
 BTCXX="${BTCXX:=c++}"
-BTCFLAGS="${BTCFLAGS:=-g0 -O2 -pipe}"
-BTCXXFLAGS="${BTCXXFLAGS:=-g0 -O2 -pipe}"
+BTCFLAGS="${BTCFLAGS:=-g0 -Os -pipe}"
+BTCXXFLAGS="${BTCXXFLAGS:=-g0 -Os -pipe}"
 BTLDFLAGS="${BTLDFLAGS:=-s}"
 opt_keep=opt_keep.off
 stage=0

+ 147 - 0
patches/musl/branch-updates.diff

@@ -62,6 +62,26 @@ index e689ea21..157e2eae 100644
 -#define TP_ADJ(p) ((char *)(p) + sizeof(struct pthread))
  
  #define MC_PC arm_pc
+diff --git a/arch/generic/bits/fcntl.h b/arch/generic/bits/fcntl.h
+index ae233cc0..730a98cf 100644
+--- a/arch/generic/bits/fcntl.h
++++ b/arch/generic/bits/fcntl.h
+@@ -30,9 +30,15 @@
+ #define F_SETSIG 10
+ #define F_GETSIG 11
+ 
++#if __LONG_MAX == 0x7fffffffL
+ #define F_GETLK 12
+ #define F_SETLK 13
+ #define F_SETLKW 14
++#else
++#define F_GETLK 5
++#define F_SETLK 6
++#define F_SETLKW 7
++#endif
+ 
+ #define F_SETOWN_EX 15
+ #define F_GETOWN_EX 16
 diff --git a/arch/i386/pthread_arch.h b/arch/i386/pthread_arch.h
 index 6f600b9e..a639c382 100644
 --- a/arch/i386/pthread_arch.h
@@ -190,6 +210,19 @@ index 380a94b3..5b7c38de 100644
  #define SO_RCVTIMEO_OLD 0x1006
 +
 +#undef SYS_socketcall
+diff --git a/arch/mips64/bits/fcntl.h b/arch/mips64/bits/fcntl.h
+index 3bcec15e..5da1eef8 100644
+--- a/arch/mips64/bits/fcntl.h
++++ b/arch/mips64/bits/fcntl.h
+@@ -13,7 +13,7 @@
+ 
+ #define O_ASYNC      010000
+ #define O_DIRECT    0100000
+-#define O_LARGEFILE       0
++#define O_LARGEFILE  020000
+ #define O_NOATIME  01000000
+ #define O_PATH    010000000
+ #define O_TMPFILE 020200000
 diff --git a/arch/mips64/pthread_arch.h b/arch/mips64/pthread_arch.h
 index 1e7839ea..c45347ab 100644
 --- a/arch/mips64/pthread_arch.h
@@ -329,6 +362,50 @@ index 79c3ecd8..1b7b9079 100644
  #define MC_PC gp_regs[32]
 -
 -#define CANARY canary_at_end
+diff --git a/arch/riscv64/bits/fcntl.h b/arch/riscv64/bits/fcntl.h
+deleted file mode 100644
+index ecb4d18f..00000000
+--- a/arch/riscv64/bits/fcntl.h
++++ /dev/null
+@@ -1,38 +0,0 @@
+-#define O_CREAT        0100
+-#define O_EXCL         0200
+-#define O_NOCTTY       0400
+-#define O_TRUNC       01000
+-#define O_APPEND      02000
+-#define O_NONBLOCK    04000
+-#define O_DSYNC      010000
+-#define O_SYNC     04010000
+-#define O_RSYNC    04010000
+-#define O_DIRECTORY 0200000
+-#define O_NOFOLLOW  0400000
+-#define O_CLOEXEC  02000000
+-
+-#define O_ASYNC      020000
+-#define O_DIRECT     040000
+-#define O_LARGEFILE 0100000
+-#define O_NOATIME  01000000
+-#define O_PATH    010000000
+-#define O_TMPFILE 020200000
+-#define O_NDELAY O_NONBLOCK
+-
+-#define F_DUPFD  0
+-#define F_GETFD  1
+-#define F_SETFD  2
+-#define F_GETFL  3
+-#define F_SETFL  4
+-#define F_GETLK  5
+-#define F_SETLK  6
+-#define F_SETLKW 7
+-#define F_SETOWN 8
+-#define F_GETOWN 9
+-#define F_SETSIG 10
+-#define F_GETSIG 11
+-
+-#define F_SETOWN_EX 15
+-#define F_GETOWN_EX 16
+-
+-#define F_GETOWNER_UIDS 17
 diff --git a/arch/riscv64/pthread_arch.h b/arch/riscv64/pthread_arch.h
 index db414b17..a20d7fba 100644
 --- a/arch/riscv64/pthread_arch.h
@@ -405,6 +482,19 @@ index 3ee9c1a9..0fcf70d2 100644
  
  #define MC_PC sc_pc
  
+diff --git a/arch/x32/bits/fcntl.h b/arch/x32/bits/fcntl.h
+index 1b88ad39..08627f81 100644
+--- a/arch/x32/bits/fcntl.h
++++ b/arch/x32/bits/fcntl.h
+@@ -13,7 +13,7 @@
+ 
+ #define O_ASYNC      020000
+ #define O_DIRECT     040000
+-#define O_LARGEFILE       0
++#define O_LARGEFILE 0100000
+ #define O_NOATIME  01000000
+ #define O_PATH    010000000
+ #define O_TMPFILE 020200000
 diff --git a/arch/x32/pthread_arch.h b/arch/x32/pthread_arch.h
 index f640a1a1..c1e7716d 100644
 --- a/arch/x32/pthread_arch.h
@@ -429,6 +519,52 @@ index f640a1a1..c1e7716d 100644
 +#define CANARY_PAD
  
  #define tls_mod_off_t unsigned long long
+diff --git a/arch/x86_64/bits/fcntl.h b/arch/x86_64/bits/fcntl.h
+deleted file mode 100644
+index 1b88ad39..00000000
+--- a/arch/x86_64/bits/fcntl.h
++++ /dev/null
+@@ -1,40 +0,0 @@
+-#define O_CREAT        0100
+-#define O_EXCL         0200
+-#define O_NOCTTY       0400
+-#define O_TRUNC       01000
+-#define O_APPEND      02000
+-#define O_NONBLOCK    04000
+-#define O_DSYNC      010000
+-#define O_SYNC     04010000
+-#define O_RSYNC    04010000
+-#define O_DIRECTORY 0200000
+-#define O_NOFOLLOW  0400000
+-#define O_CLOEXEC  02000000
+-
+-#define O_ASYNC      020000
+-#define O_DIRECT     040000
+-#define O_LARGEFILE       0
+-#define O_NOATIME  01000000
+-#define O_PATH    010000000
+-#define O_TMPFILE 020200000
+-#define O_NDELAY O_NONBLOCK
+-
+-#define F_DUPFD  0
+-#define F_GETFD  1
+-#define F_SETFD  2
+-#define F_GETFL  3
+-#define F_SETFL  4
+-
+-#define F_SETOWN 8
+-#define F_GETOWN 9
+-#define F_SETSIG 10
+-#define F_GETSIG 11
+-
+-#define F_GETLK 5
+-#define F_SETLK 6
+-#define F_SETLKW 7
+-
+-#define F_SETOWN_EX 15
+-#define F_GETOWN_EX 16
+-
+-#define F_GETOWNER_UIDS 17
 diff --git a/arch/x86_64/pthread_arch.h b/arch/x86_64/pthread_arch.h
 index 65e880c6..c8c63f2e 100644
 --- a/arch/x86_64/pthread_arch.h
@@ -1646,6 +1782,17 @@ index 4f700cea..638f7718 100644
 +	if (!__pthread_self()->stack) return &h_errno;
 +	return &__pthread_self()->h_errno_val;
  }
+diff --git a/src/network/herror.c b/src/network/herror.c
+index 65f25ff3..87f8cff4 100644
+--- a/src/network/herror.c
++++ b/src/network/herror.c
+@@ -4,5 +4,5 @@
+ 
+ void herror(const char *msg)
+ {
+-	fprintf(stderr, "%s%s%s", msg?msg:"", msg?": ":"", hstrerror(h_errno));
++	fprintf(stderr, "%s%s%s\n", msg?msg:"", msg?": ":"", hstrerror(h_errno));
+ }
 diff --git a/src/network/lookup_name.c b/src/network/lookup_name.c
 index aae0d95a..aa558c19 100644
 --- a/src/network/lookup_name.c

+ 1 - 1
recipes/libs/musl/recipe

@@ -19,7 +19,7 @@ set -e
 
 program=musl
 version=1.2.1
-release=2
+release=3
 
 # Define a category for the output of the package name
 pkgcategory=libs

+ 14 - 16
recipes/networking/alpine/recipe

@@ -1,6 +1,6 @@
 # Build recipe for alpine (suite).
 #
-# Copyright (c) 2018 Matias Fonzo, <selk@dragora.org>.
+# Copyright (c) 2018, 2020 Matias Fonzo, <selk@dragora.org>.
 #
 # Licensed under the Apache License, Version 2.0 (the "License");
 # you may not use this file except in compliance with the License.
@@ -18,8 +18,8 @@
 set -e
 
 program=alpine
-version=2.21
-release=3
+version=2.23
+release=1
 
 # Define a category for the output of the package name
 pkgcategory=networking
@@ -67,6 +67,7 @@ build()
      --mandir=$mandir \
      --without-krb5 \
      --with-interactive-spellcheck=aspell \
+     --enable-quotas \
      --enable-debug=no
 
     make -j${jobs} V=1
@@ -75,19 +76,16 @@ build()
     # Make symlink to invoke alpine as "pine" :-)
     ln -s alpine "${destdir}/usr/bin/pine"
 
-    # Include additional utilities
-
-    mkdir -p "${destdir}/usr/sbin"
-    cp -p imap/mlock/mlock "${destdir}/usr/sbin/"
-    chmod 2755 "${destdir}/usr/sbin/mlock"
-    strip --strip-unneeded "${destdir}/usr/sbin/mlock"
-
-    cp -p imap/mailutil/mailutil "${destdir}/usr/bin/"
-    chmod 755 "${destdir}/usr/bin/mailutil"
-
-    mkdir -p "${destdir}/${mandir}/man1"
-    cp -p imap/src/mailutil/mailutil.1 "${destdir}/${mandir}/man1/"
-    chmod 644 "${destdir}/${mandir}/man1/mailutil.1"
+    # Build and install additional utilities
+    (
+        cd imap/mlock || exit 1
+        mkdir -p "${destdir}/usr/sbin"
+        make -j${jobs} V=1 CFLAGS="$QICFLAGS"
+        chgrp mail mlock
+        chmod 3711 mlock
+        cp -p mlock "${destdir}/usr/sbin"
+        strip --strip-unneeded "${destdir}/usr/sbin/mlock"
+    )
 
     # Compress and link man pages (if needed)
     if test -d "${destdir}/$mandir"

+ 2 - 2
recipes/networking/iproute2/recipe

@@ -1,6 +1,6 @@
 # Build recipe for iproute2.
 #
-# Copyright (c) 2017-2019 Matias Fonzo, <selk@dragora.org>.
+# Copyright (c) 2017-2020 Matias Fonzo, <selk@dragora.org>.
 #
 # Licensed under the Apache License, Version 2.0 (the "License");
 # you may not use this file except in compliance with the License.
@@ -18,7 +18,7 @@
 set -e
 
 program=iproute2
-version=5.3.0
+version=5.8.0
 release=1
 
 # Define a category for the output of the package name

+ 3 - 7
recipes/networking/iptables/recipe

@@ -1,6 +1,6 @@
 # Build recipe for iptables.
 #
-# Copyright (c) 2017-2019 Matias Fonzo, <selk@dragora.org>.
+# Copyright (c) 2017-2020 Matias Fonzo, <selk@dragora.org>.
 #
 # Licensed under the Apache License, Version 2.0 (the "License");
 # you may not use this file except in compliance with the License.
@@ -18,7 +18,7 @@
 set -e
 
 program=iptables
-version=1.8.3
+version=1.8.5
 release=1
 
 # Define a category for the output of the package name
@@ -93,10 +93,6 @@ build()
 
     # Copy documentation
     mkdir -p "${destdir}${docsdir}"
-
-    for file in $docs
-    do
-        cp -p $file "${destdir}${docsdir}"
-    done
+    cp -p $docs "${destdir}${docsdir}"
 }
 

+ 1 - 0
recipes/networking/irssi/recipe

@@ -46,6 +46,7 @@ docsdir="${docdir}/${program}-${version}"
 
 build()
 {
+    unpack "${tardir}/$tarname"
     
     cd "$srcdir"
 

+ 3 - 3
recipes/networking/libnftnl/recipe

@@ -1,6 +1,6 @@
 # Build recipe for libnfntl.
 #
-# Copyright (c) 2017-2019 Matias Fonzo, <selk@dragora.org>.
+# Copyright (c) 2017-2020 Matias Fonzo, <selk@dragora.org>.
 #
 # Licensed under the Apache License, Version 2.0 (the "License");
 # you may not use this file except in compliance with the License.
@@ -18,7 +18,7 @@
 set -e
 
 program=libnftnl
-version=1.1.4
+version=1.1.7
 release=1
 
 # Define a category for the output of the package name
@@ -30,7 +30,7 @@ tarname=${program}-${version}.tar.bz2
 fetch=http://netfilter.org/projects/libnftnl/files/$tarname
 
 description="
-libnftnl is a library providing a low-level netlink interface.
+A library providing a low-level netlink interface.
 
 The library libnftnl has been previously known as libnftables.
 

+ 2 - 2
recipes/networking/nftables/recipe

@@ -1,6 +1,6 @@
 # Build recipe for nftables.
 #
-# Copyright (c) 2017-2019 Matias Fonzo, <selk@dragora.org>.
+# Copyright (c) 2017-2020 Matias Fonzo, <selk@dragora.org>.
 #
 # Licensed under the Apache License, Version 2.0 (the "License");
 # you may not use this file except in compliance with the License.
@@ -18,7 +18,7 @@
 set -e
 
 program=nftables
-version=0.9.2
+version=0.9.6
 release=1
 
 # Define a category for the output of the package name

+ 0 - 0
recipes/tools/htop/recipe


Some files were not shown because too many files changed in this diff