summaryrefslogtreecommitdiffstats
path: root/patches
diff options
context:
space:
mode:
Diffstat (limited to 'patches')
-rw-r--r--patches/packages/mozilla-firefox-115.1.0esr-x86_64-1_slack15.0.txt (renamed from patches/packages/mozilla-firefox-102.13.0esr-x86_64-1_slack15.0.txt)0
-rw-r--r--patches/packages/mozilla-thunderbird-115.1.0-x86_64-1_slack15.0.txt (renamed from patches/packages/mozilla-thunderbird-102.13.1-x86_64-1_slack15.0.txt)0
-rw-r--r--patches/packages/samba-4.18.5-x86_64-1_slack15.0.txt (renamed from patches/packages/samba-4.15.13-x86_64-1_slack15.0.txt)0
-rwxr-xr-xpatches/source/mozilla-firefox/build-deps.sh12
-rwxr-xr-xpatches/source/mozilla-firefox/mozilla-firefox.SlackBuild47
-rw-r--r--patches/source/mozilla-thunderbird/arc4random_buf.glibc-2.36.diff18
-rwxr-xr-xpatches/source/mozilla-thunderbird/mozilla-thunderbird.SlackBuild23
-rwxr-xr-xpatches/source/samba/samba.SlackBuild25
-rw-r--r--patches/source/samba/samba.url4
9 files changed, 50 insertions, 79 deletions
diff --git a/patches/packages/mozilla-firefox-102.13.0esr-x86_64-1_slack15.0.txt b/patches/packages/mozilla-firefox-115.1.0esr-x86_64-1_slack15.0.txt
index 9d8594319..9d8594319 100644
--- a/patches/packages/mozilla-firefox-102.13.0esr-x86_64-1_slack15.0.txt
+++ b/patches/packages/mozilla-firefox-115.1.0esr-x86_64-1_slack15.0.txt
diff --git a/patches/packages/mozilla-thunderbird-102.13.1-x86_64-1_slack15.0.txt b/patches/packages/mozilla-thunderbird-115.1.0-x86_64-1_slack15.0.txt
index 5acb7b92e..5acb7b92e 100644
--- a/patches/packages/mozilla-thunderbird-102.13.1-x86_64-1_slack15.0.txt
+++ b/patches/packages/mozilla-thunderbird-115.1.0-x86_64-1_slack15.0.txt
diff --git a/patches/packages/samba-4.15.13-x86_64-1_slack15.0.txt b/patches/packages/samba-4.18.5-x86_64-1_slack15.0.txt
index e1800f156..e1800f156 100644
--- a/patches/packages/samba-4.15.13-x86_64-1_slack15.0.txt
+++ b/patches/packages/samba-4.18.5-x86_64-1_slack15.0.txt
diff --git a/patches/source/mozilla-firefox/build-deps.sh b/patches/source/mozilla-firefox/build-deps.sh
index af9d440e2..4cec5c9a1 100755
--- a/patches/source/mozilla-firefox/build-deps.sh
+++ b/patches/source/mozilla-firefox/build-deps.sh
@@ -1,6 +1,6 @@
#!/bin/bash
-# Copyright 2019 Patrick J. Volkerding, Sebeka, Minnesota, USA
+# Copyright 2019, 2023 Patrick J. Volkerding, Sebeka, Minnesota, USA
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -29,13 +29,17 @@ chmod 700 $TMP/mozilla-firefox-build-deps
PATH=$TMP/mozilla-firefox-build-deps/usr/bin:$HOME/.cargo/bin:$PATH
# cbindgen is a build-time dependency:
-( cd $CWD/build-deps/cbindgen ; ./cbindgen.build ) || exit 1
+if [ ! -x /usr/bin/cbindgen ]; then
+ ( cd $CWD/build-deps/cbindgen ; ./cbindgen.build ) || exit 1
+fi
if /bin/ls build-deps*.txz 1> /dev/null 2> /dev/null ; then # use prebuilt autoconf/nodejs
( cd $TMP/mozilla-firefox-build-deps ; tar xf $CWD/build-deps*.txz )
else
# We need to use the incredibly ancient autoconf-2.13 for this :/
( cd $CWD/build-deps/autoconf ; ./autoconf.build ) || exit 1
- # And node.js... WHY
- ( cd $CWD/build-deps/nodejs ; ./nodejs.build ) || exit 1
+ # And node.js...
+ if [ ! -x /usr/bin/node ]; then
+ ( cd $CWD/build-deps/nodejs ; ./nodejs.build ) || exit 1
+ fi
fi
diff --git a/patches/source/mozilla-firefox/mozilla-firefox.SlackBuild b/patches/source/mozilla-firefox/mozilla-firefox.SlackBuild
index 5cad8cc89..cbf1fb9e4 100755
--- a/patches/source/mozilla-firefox/mozilla-firefox.SlackBuild
+++ b/patches/source/mozilla-firefox/mozilla-firefox.SlackBuild
@@ -1,6 +1,6 @@
#!/bin/bash
-# Copyright 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2018, 2019, 2020, 2021 Patrick J. Volkerding, Sebeka, Minnesota, USA
+# Copyright 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2018, 2019, 2020, 2021, 2022, 2023 Patrick J. Volkerding, Sebeka, Minnesota, USA
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -189,7 +189,8 @@ rm -rf firefox-$RELEASEVER
rm -rf firefox-unpack
mkdir firefox-unpack
cd firefox-unpack
-tar xvf $CWD/firefox-$VERSION.source.tar.?z || exit 1
+echo "Extracting $CWD/firefox-$VERSION.source.tar.?z..."
+tar xf $CWD/firefox-$VERSION.source.tar.?z || exit 1
mv * ..
cd ..
rm -rf firefox-unpack
@@ -234,7 +235,6 @@ OPTIONS="\
--prefix=/usr \
--libdir=/usr/lib${LIBDIRSUFFIX} \
--with-system-zlib \
- --with-system-nspr \
--with-unsigned-addon-scopes=app,system \
--without-wasm-sandboxed-libraries \
--allow-addon-sideload \
@@ -345,38 +345,25 @@ rm -rf $PKG/usr/lib${LIBDIRSUFFIX}/firefox-devel-$RELEASEVER
# Nor these:
rm -rf $PKG/usr/include
-( cd $PKG/usr/lib${LIBDIRSUFFIX}/firefox-$RELEASEVER
- #mv defaults/profile/mimeTypes.rdf defaults/profile/mimeTypes.rdf.orig || exit 1
- if [ -d defaults/profile ]; then
- zcat $CWD/mimeTypes.rdf > defaults/profile/mimeTypes.rdf || exit 1
- fi
- # OK, this patch is useless on 7.x. We'll float without it and see what happens.
- # Perhaps it won't make a difference or should be worked around elsewhere.
- #zcat $CWD/firefox.moz_plugin_path.diff.gz \
- # | sed -e "s#usr/lib#usr/lib${LIBDIRSUFFIX}#g" \
- # | patch -p1 --verbose --backup --suffix=.orig || exit 1
- # Clean up if the above patch was successful:
- #rm -f firefox.orig
-) || exit
+# 2022-12, COMMENTING OUT AS OBSOLETE
+#( cd $PKG/usr/lib${LIBDIRSUFFIX}/firefox
+# #mv defaults/profile/mimeTypes.rdf defaults/profile/mimeTypes.rdf.orig || exit 1
+# if [ -d defaults/profile ]; then
+# zcat $CWD/mimeTypes.rdf > defaults/profile/mimeTypes.rdf || exit 1
+# fi
+# # OK, this patch is useless on 7.x. We'll float without it and see what happens.
+# # Perhaps it won't make a difference or should be worked around elsewhere.
+# #zcat $CWD/firefox.moz_plugin_path.diff.gz \
+# # | sed -e "s#usr/lib#usr/lib${LIBDIRSUFFIX}#g" \
+# # | patch -p1 --verbose --backup --suffix=.orig || exit 1
+# # Clean up if the above patch was successful:
+# #rm -f firefox.orig
+#) || exit
mkdir -p $PKG/usr/lib${LIBDIRSUFFIX}/mozilla/plugins
mkdir -p $PKG/usr/share/applications
cat $CWD/mozilla-firefox.desktop > $PKG/usr/share/applications/mozilla-firefox.desktop
-# These files/directories are usually created if Firefox is run as root,
-# which on many systems might (and possibly should) be never. Therefore, if we
-# don't see them we'll put stubs in place to prevent startup errors.
-( cd $PKG/usr/lib${LIBDIRSUFFIX}/firefox-$RELEASEVER
- if [ -d extensions/talkback\@mozilla.org ]; then
- if [ ! -r extensions/talkback\@mozilla.org/chrome.manifest ]; then
- echo > extensions/talkback\@mozilla.org/chrome.manifest
- fi
- fi
- if [ ! -d updates ]; then
- mkdir -p updates/0
- fi
-)
-
# Need some default icons in the right place:
for i in 16 22 24 32 48 256; do
install -m 0644 -D browser/branding/official/default${i}.png \
diff --git a/patches/source/mozilla-thunderbird/arc4random_buf.glibc-2.36.diff b/patches/source/mozilla-thunderbird/arc4random_buf.glibc-2.36.diff
deleted file mode 100644
index d4131c0a2..000000000
--- a/patches/source/mozilla-thunderbird/arc4random_buf.glibc-2.36.diff
+++ /dev/null
@@ -1,18 +0,0 @@
---- ./ipc/chromium/src/third_party/libevent/arc4random.c.orig 2022-08-04 14:57:57.000000000 -0500
-+++ ./ipc/chromium/src/third_party/libevent/arc4random.c 2022-08-06 14:40:21.569033657 -0500
-@@ -484,6 +484,7 @@
- }
- #endif
-
-+#if 0
- ARC4RANDOM_EXPORT void
- arc4random_buf(void *buf_, size_t n)
- {
-@@ -497,6 +498,7 @@
- }
- ARC4_UNLOCK_();
- }
-+#endif
-
- #ifndef ARC4RANDOM_NOUNIFORM
- /*
diff --git a/patches/source/mozilla-thunderbird/mozilla-thunderbird.SlackBuild b/patches/source/mozilla-thunderbird/mozilla-thunderbird.SlackBuild
index 4039ae9fc..adf013765 100755
--- a/patches/source/mozilla-thunderbird/mozilla-thunderbird.SlackBuild
+++ b/patches/source/mozilla-thunderbird/mozilla-thunderbird.SlackBuild
@@ -1,6 +1,6 @@
#!/bin/bash
-# Copyright 2008, 2009, 2010, 2011, 2012, 2014, 2016, 2017, 2018, 2019, 2020, 2021, 2022 Patrick J. Volkerding, Sebeka, Minnesota, USA
+# Copyright 2008, 2009, 2010, 2011, 2012, 2014, 2016, 2017, 2018, 2019, 2020, 2021, 2022, 2023 Patrick J. Volkerding, Sebeka, Minnesota, USA
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -157,7 +157,8 @@ rm -rf thunderbird-$RELEASEVER
rm -rf thunderbird-unpack
mkdir thunderbird-unpack
cd thunderbird-unpack
-tar xvf $CWD/thunderbird-$VERSION.source.tar.?z || exit 1
+echo "Extracting $CWD/thunderbird-$VERSION.source.tar.?z..."
+tar xf $CWD/thunderbird-$VERSION.source.tar.?z || exit 1
mv * ..
cd ..
rm -rf thunderbird-unpack
@@ -177,9 +178,6 @@ if [ "$ARCH" = "i686" -a "$CC" = "gcc" ]; then
zcat $CWD/double_t.x86.diff.gz | patch -p1 --verbose || exit 1
fi
-## Don't define a function that's included starting in glibc-2.36:
-#zcat $CWD/arc4random_buf.glibc-2.36.diff.gz | patch -p1 --verbose || exit 1
-
# Fetch localization, if requested:
if [ ! -z $MOZLOCALIZE ]; then
LOC_TAG="THUNDERBIRD_$( echo $VERSION | tr \. _ )_RELEASE"
@@ -210,7 +208,6 @@ OPTIONS="\
--prefix=/usr \
--libdir=/usr/lib${LIBDIRSUFFIX} \
--with-system-zlib \
- --with-system-nspr \
--enable-alsa \
--with-unsigned-addon-scopes=app,system \
--without-wasm-sandboxed-libraries \
@@ -316,20 +313,6 @@ mkdir -p $PKG/usr/share/pixmaps
# Symlinked below.
#cat $CWD/thunderbird.png > $PKG/usr/share/pixmaps/thunderbird.png
-# These files/directories are usually created if Thunderbird is run as root,
-# which on many systems might (and possibly should) be never. Therefore, if we
-# don't see them we'll put stubs in place to prevent startup errors.
-( cd $PKG/usr/lib${LIBDIRSUFFIX}/thunderbird-$RELEASEVER
- if [ -d extensions/talkback\@mozilla.org ]; then
- if [ ! -r extensions/talkback\@mozilla.org/chrome.manifest ]; then
- echo > extensions/talkback\@mozilla.org/chrome.manifest
- fi
- fi
- if [ ! -d updates ]; then
- mkdir -p updates/0
- fi
-)
-
# Need some default icons in the right place:
for i in 16 22 24 32 48 256; do
install -m 0644 -D comm/mail/branding/thunderbird/default${i}.png \
diff --git a/patches/source/samba/samba.SlackBuild b/patches/source/samba/samba.SlackBuild
index f5085c02b..821de6817 100755
--- a/patches/source/samba/samba.SlackBuild
+++ b/patches/source/samba/samba.SlackBuild
@@ -1,6 +1,6 @@
#!/bin/bash
-# Copyright 2008, 2009, 2010, 2012, 2013, 2015, 2016, 2017, 2018, 2019, 2020, 2021 Patrick J. Volkerding, Sebeka, Minnesota, USA
+# Copyright 2008, 2009, 2010, 2012, 2013, 2015, 2016, 2017, 2018, 2019, 2020, 2021, 2022, 2023 Patrick J. Volkerding, Sebeka, Minnesota, USA
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -28,6 +28,19 @@ PKGNAM=samba
VERSION=${VERSION:-$(echo samba-*.tar.?z | rev | cut -f 3- -d . | cut -f 1 -d - | rev)}
BUILD=${BUILD:-1_slack15.0}
+# This option may be set to "heimdal" or "mit".
+# Upstream considers the use of MIT Kerberos for provisioning an AD DC
+# to be experimental (for now), and recommends using the bundled Heimdal.
+# Set here to MIT, since Slackware 15.0 shipped using that option.
+KERBEROS=${KERBEROS:-mit}
+
+if [ "$KERBEROS" = "mit" ]; then
+ KERB_OPTIONS="--with-system-mitkrb5 --with-experimental-mit-ad-dc"
+elif [ "$KERBEROS" = "heimdal" ]; then
+ # Please note that this perl module will be required: https://metacpan.org/pod/JSON
+ KERB_OPTIONS="--bundled-libraries=heimdal"
+fi
+
if [ -e $CWD/machine.conf ]; then
. $CWD/machine.conf ]
elif [ -e /etc/slackbuild/machine.conf ]; then
@@ -102,7 +115,7 @@ find . \
# Choose correct options depending on whether PAM is installed:
if [ -L /lib${LIBDIRSUFFIX}/libpam.so.? ]; then
- PAM_OPTIONS="--with-pam --with-pammodulesdir=/lib${LIBDIRSUFFIX}/security --with-system-mitkrb5 --with-experimental-mit-ad-dc"
+ PAM_OPTIONS="--with-pam --with-pammodulesdir=/lib${LIBDIRSUFFIX}/security"
unset SHADOW_OPTIONS
else
unset PAM_OPTIONS
@@ -143,16 +156,16 @@ CFLAGS="$SLKCFLAGS" \
--with-ldap \
--with-ads \
--without-fam \
+ $KERB_OPTIONS \
$PAM_OPTIONS \
$SHADOW_OPTIONS \
--build=$TARGET || exit 1
# Gives errors:
#--builtin-libraries=replace,ccan \
- #--bundled-libraries=heimdal \
# Build with waf directly so that multiple jobs work.
# Script lifted from "./configure".
-PREVPATH=`dirname $0`
+PREVPATH=$(dirname $0)
WAF=./buildtools/bin/waf
# using JOBS=1 gives maximum compatibility with
# systems like AIX which have broken threading in python
@@ -160,6 +173,9 @@ JOBS=$(echo $NUMJOBS | tr -dc '0-9')
export JOBS
# Make sure we don't have any library preloaded.
unset LD_PRELOAD
+# Make sure we get stable hashes
+PYTHONHASHSEED=1
+export PYTHONHASHSEED
cd . || exit 1
${PYTHON:=python3} $WAF build "$@" || exit 1
cd $PREVPATH
@@ -240,4 +256,3 @@ EOF
cd $PKG
/sbin/makepkg -l y -c n $TMP/samba-$VERSION-$ARCH-$BUILD.txz
-
diff --git a/patches/source/samba/samba.url b/patches/source/samba/samba.url
index cbd5b0980..997f3a46b 100644
--- a/patches/source/samba/samba.url
+++ b/patches/source/samba/samba.url
@@ -1,2 +1,2 @@
-https://download.samba.org/pub/samba/stable/samba-4.15.13.tar.gz
-https://download.samba.org/pub/samba/stable/samba-4.15.13.tar.asc
+https://download.samba.org/pub/samba/stable/samba-4.18.5.tar.gz
+https://download.samba.org/pub/samba/stable/samba-4.18.5.tar.asc