summaryrefslogtreecommitdiffstats
path: root/source
diff options
context:
space:
mode:
author Patrick J Volkerding <volkerdi@slackware.com>2021-12-03 20:07:20 +0000
committer Eric Hameleers <alien@slackware.com>2021-12-04 08:59:57 +0100
commitc29dcfa2dd2e7467ea3b6b757880348884d8790d (patch)
treed3353da7e281a39e6edb2bde414c1bc228be5d6e /source
parent66ba810196d8ce6f6da7df7931ce31e7303b8cf8 (diff)
downloadcurrent-c29dcfa2dd2e7467ea3b6b757880348884d8790d.tar.gz
current-c29dcfa2dd2e7467ea3b6b757880348884d8790d.tar.xz
Fri Dec 3 20:07:20 UTC 202120211203200720
ap/rpm-4.16.1.3-x86_64-4.txz: Rebuilt. Patched to handle non-compliant RPMs created by install4j. Thanks to alienBOB. d/poke-1.4-x86_64-1.txz: Upgraded. l/enchant-2.3.2-x86_64-1.txz: Upgraded. l/freetype-2.11.1-x86_64-1.txz: Upgraded. l/glib2-2.70.2-x86_64-1.txz: Upgraded. n/lynx-2.9.0dev.10-x86_64-1.txz: Upgraded. extra/php8/php8-8.1.0-x86_64-1.txz: Removed. extra/php80/php80-8.0.13-x86_64-1.txz: Added. extra/php81/php81-8.1.0-x86_64-1.txz: Added.
Diffstat (limited to 'source')
-rw-r--r--source/ap/rpm/1688.patch87
-rwxr-xr-xsource/ap/rpm/rpm.SlackBuild5
-rw-r--r--source/ap/rpm/rpm.install4j.compat.diff53
-rw-r--r--source/l/freetype/6e9d8d314ff6ab23177b9162c0b96616460bb84e.patch42
-rwxr-xr-xsource/l/freetype/freetype.SlackBuild7
-rwxr-xr-xsource/n/lynx/lynx.SlackBuild4
6 files changed, 148 insertions, 50 deletions
diff --git a/source/ap/rpm/1688.patch b/source/ap/rpm/1688.patch
new file mode 100644
index 000000000..255605b0a
--- /dev/null
+++ b/source/ap/rpm/1688.patch
@@ -0,0 +1,87 @@
+From 05fbec89be5a3f582b51b8ca39030346b12cf1f6 Mon Sep 17 00:00:00 2001
+From: Panu Matilainen <pmatilai@redhat.com>
+Date: Tue, 25 May 2021 14:07:18 +0300
+Subject: [PATCH] Fix regression reading rpm v3 and other rare packages (#1635)
+
+Commit d6a86b5e69e46cc283b1e06c92343319beb42e21 introduced far stricter
+checks on what tags are allowed in signature and main headers than rpm
+had previously seen, and unsurprisingly this introduced some regressions
+on less common cases:
+
+- On rpm v3 packages and some newer 3rd party created packages (such as
+ install4j < 9.0.2), RPMTAG_ARCHIVESIZE resides in the main header
+ to begin with
+- In rpm 4.13 - 4.14, file IMA signatures were incorrectly placed in
+ the main header.
+
+As a quirk, permit the existence of RPMTAG_ARCHIVESIZE,
+RPMTAG_FILESIGNATURES and RPMTAG_FILESIGNATURELENGTH in the main header
+too provided that the corresponding signature tag is not there (so
+they can reside in either but not both headers).
+
+Initial workaround patch by Demi Marie Obenour.
+
+Fixes: #1635
+---
+ lib/package.c | 39 ++++++++++++++++++++++-----------------
+ 1 file changed, 22 insertions(+), 17 deletions(-)
+
+diff --git a/lib/package.c b/lib/package.c
+index 7e6174690b..4b6b164979 100644
+--- a/lib/package.c
++++ b/lib/package.c
+@@ -35,23 +35,24 @@ struct taglate_s {
+ rpmTagVal stag;
+ rpmTagVal xtag;
+ rpm_count_t count;
++ int quirk;
+ } const xlateTags[] = {
+- { RPMSIGTAG_SIZE, RPMTAG_SIGSIZE, 1 },
+- { RPMSIGTAG_PGP, RPMTAG_SIGPGP, 0 },
+- { RPMSIGTAG_MD5, RPMTAG_SIGMD5, 16 },
+- { RPMSIGTAG_GPG, RPMTAG_SIGGPG, 0 },
+- /* { RPMSIGTAG_PGP5, RPMTAG_SIGPGP5, 0 }, */ /* long obsolete, dont use */
+- { RPMSIGTAG_PAYLOADSIZE, RPMTAG_ARCHIVESIZE, 1 },
+- { RPMSIGTAG_FILESIGNATURES, RPMTAG_FILESIGNATURES, 0 },
+- { RPMSIGTAG_FILESIGNATURELENGTH, RPMTAG_FILESIGNATURELENGTH, 1 },
+- { RPMSIGTAG_VERITYSIGNATURES, RPMTAG_VERITYSIGNATURES, 0 },
+- { RPMSIGTAG_VERITYSIGNATUREALGO, RPMTAG_VERITYSIGNATUREALGO, 1 },
+- { RPMSIGTAG_SHA1, RPMTAG_SHA1HEADER, 1 },
+- { RPMSIGTAG_SHA256, RPMTAG_SHA256HEADER, 1 },
+- { RPMSIGTAG_DSA, RPMTAG_DSAHEADER, 0 },
+- { RPMSIGTAG_RSA, RPMTAG_RSAHEADER, 0 },
+- { RPMSIGTAG_LONGSIZE, RPMTAG_LONGSIGSIZE, 1 },
+- { RPMSIGTAG_LONGARCHIVESIZE, RPMTAG_LONGARCHIVESIZE, 1 },
++ { RPMSIGTAG_SIZE, RPMTAG_SIGSIZE, 1, 0 },
++ { RPMSIGTAG_PGP, RPMTAG_SIGPGP, 0, 0 },
++ { RPMSIGTAG_MD5, RPMTAG_SIGMD5, 16, 0 },
++ { RPMSIGTAG_GPG, RPMTAG_SIGGPG, 0, 0 },
++ /* { RPMSIGTAG_PGP5, RPMTAG_SIGPGP5, 0, 0 }, */ /* long obsolete, dont use */
++ { RPMSIGTAG_PAYLOADSIZE, RPMTAG_ARCHIVESIZE, 1, 1 },
++ { RPMSIGTAG_FILESIGNATURES, RPMTAG_FILESIGNATURES, 0, 1 },
++ { RPMSIGTAG_FILESIGNATURELENGTH, RPMTAG_FILESIGNATURELENGTH, 1, 1 },
++ { RPMSIGTAG_VERITYSIGNATURES, RPMTAG_VERITYSIGNATURES, 0, 0 },
++ { RPMSIGTAG_VERITYSIGNATUREALGO, RPMTAG_VERITYSIGNATUREALGO, 1, 0 },
++ { RPMSIGTAG_SHA1, RPMTAG_SHA1HEADER, 1, 0 },
++ { RPMSIGTAG_SHA256, RPMTAG_SHA256HEADER, 1, 0 },
++ { RPMSIGTAG_DSA, RPMTAG_DSAHEADER, 0, 0 },
++ { RPMSIGTAG_RSA, RPMTAG_RSAHEADER, 0, 0 },
++ { RPMSIGTAG_LONGSIZE, RPMTAG_LONGSIGSIZE, 1, 0 },
++ { RPMSIGTAG_LONGARCHIVESIZE, RPMTAG_LONGARCHIVESIZE, 1, 0 },
+ { 0 }
+ };
+
+@@ -69,8 +70,12 @@ rpmTagVal headerMergeLegacySigs(Header h, Header sigh, char **msg)
+
+ for (xl = xlateTags; xl->stag; xl++) {
+ /* There mustn't be one in the main header */
+- if (headerIsEntry(h, xl->xtag))
++ if (headerIsEntry(h, xl->xtag)) {
++ /* Some tags may exist in either header, but never both */
++ if (xl->quirk && !headerIsEntry(sigh, xl->stag))
++ continue;
+ goto exit;
++ }
+ }
+
+ rpmtdReset(&td);
diff --git a/source/ap/rpm/rpm.SlackBuild b/source/ap/rpm/rpm.SlackBuild
index ff61a2e20..45d4ad48c 100755
--- a/source/ap/rpm/rpm.SlackBuild
+++ b/source/ap/rpm/rpm.SlackBuild
@@ -26,7 +26,7 @@ cd $(dirname $0) ; CWD=$(pwd)
PKGNAM=rpm
VERSION=${VERSION:-$(echo $PKGNAM-*.tar.?z* | rev | cut -f 3- -d . | cut -f 1 -d - | rev)}
-BUILD=${BUILD:-3}
+BUILD=${BUILD:-4}
NUMJOBS=${NUMJOBS:-" -j$(expr $(nproc) + 1) "}
@@ -95,6 +95,9 @@ find . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \+
+# Fix for non-compliant RPMs created by install4j:
+zcat $CWD/rpm.install4j.compat.diff.gz | patch -p1 --verbose || exit 1
+
# We need to do this since there's a bugfix for python3.10 detection in
# the latest automake:
autoreconf -vif
diff --git a/source/ap/rpm/rpm.install4j.compat.diff b/source/ap/rpm/rpm.install4j.compat.diff
new file mode 100644
index 000000000..1ceba1634
--- /dev/null
+++ b/source/ap/rpm/rpm.install4j.compat.diff
@@ -0,0 +1,53 @@
+--- ./lib/package.c.orig 2021-03-22 05:05:07.312635983 -0500
++++ ./lib/package.c 2021-11-30 12:48:31.637122803 -0600
+@@ -35,21 +35,22 @@
+ rpmTagVal stag;
+ rpmTagVal xtag;
+ rpm_count_t count;
++ int quirk;
+ } const xlateTags[] = {
+- { RPMSIGTAG_SIZE, RPMTAG_SIGSIZE, 1 },
+- { RPMSIGTAG_PGP, RPMTAG_SIGPGP, 0 },
+- { RPMSIGTAG_MD5, RPMTAG_SIGMD5, 16 },
+- { RPMSIGTAG_GPG, RPMTAG_SIGGPG, 0 },
+- /* { RPMSIGTAG_PGP5, RPMTAG_SIGPGP5, 0 }, */ /* long obsolete, dont use */
+- { RPMSIGTAG_PAYLOADSIZE, RPMTAG_ARCHIVESIZE, 1 },
+- { RPMSIGTAG_FILESIGNATURES, RPMTAG_FILESIGNATURES, 0 },
+- { RPMSIGTAG_FILESIGNATURELENGTH, RPMTAG_FILESIGNATURELENGTH, 1 },
+- { RPMSIGTAG_SHA1, RPMTAG_SHA1HEADER, 1 },
+- { RPMSIGTAG_SHA256, RPMTAG_SHA256HEADER, 1 },
+- { RPMSIGTAG_DSA, RPMTAG_DSAHEADER, 0 },
+- { RPMSIGTAG_RSA, RPMTAG_RSAHEADER, 0 },
+- { RPMSIGTAG_LONGSIZE, RPMTAG_LONGSIGSIZE, 1 },
+- { RPMSIGTAG_LONGARCHIVESIZE, RPMTAG_LONGARCHIVESIZE, 1 },
++ { RPMSIGTAG_SIZE, RPMTAG_SIGSIZE, 1, 0 },
++ { RPMSIGTAG_PGP, RPMTAG_SIGPGP, 0, 0 },
++ { RPMSIGTAG_MD5, RPMTAG_SIGMD5, 16, 0 },
++ { RPMSIGTAG_GPG, RPMTAG_SIGGPG, 0, 0 },
++ /* { RPMSIGTAG_PGP5, RPMTAG_SIGPGP5, 0, 0 }, */ /* long obsolete, dont use */
++ { RPMSIGTAG_PAYLOADSIZE, RPMTAG_ARCHIVESIZE, 1, 1 },
++ { RPMSIGTAG_FILESIGNATURES, RPMTAG_FILESIGNATURES, 0, 1 },
++ { RPMSIGTAG_FILESIGNATURELENGTH, RPMTAG_FILESIGNATURELENGTH, 1, 1 },
++ { RPMSIGTAG_SHA1, RPMTAG_SHA1HEADER, 1, 0 },
++ { RPMSIGTAG_SHA256, RPMTAG_SHA256HEADER, 1, 0 },
++ { RPMSIGTAG_DSA, RPMTAG_DSAHEADER, 0, 0 },
++ { RPMSIGTAG_RSA, RPMTAG_RSAHEADER, 0, 0 },
++ { RPMSIGTAG_LONGSIZE, RPMTAG_LONGSIGSIZE, 1, 0 },
++ { RPMSIGTAG_LONGARCHIVESIZE, RPMTAG_LONGARCHIVESIZE, 1, 0 },
+ { 0 }
+ };
+
+@@ -67,8 +68,12 @@
+
+ for (xl = xlateTags; xl->stag; xl++) {
+ /* There mustn't be one in the main header */
+- if (headerIsEntry(h, xl->xtag))
++ if (headerIsEntry(h, xl->xtag)) {
++ /* Some tags may exist in either header, but never both */
++ if (xl->quirk && !headerIsEntry(sigh, xl->stag))
++ continue;
+ goto exit;
++ }
+ }
+
+ rpmtdReset(&td);
diff --git a/source/l/freetype/6e9d8d314ff6ab23177b9162c0b96616460bb84e.patch b/source/l/freetype/6e9d8d314ff6ab23177b9162c0b96616460bb84e.patch
deleted file mode 100644
index b91780f14..000000000
--- a/source/l/freetype/6e9d8d314ff6ab23177b9162c0b96616460bb84e.patch
+++ /dev/null
@@ -1,42 +0,0 @@
-From 6e9d8d314ff6ab23177b9162c0b96616460bb84e Mon Sep 17 00:00:00 2001
-From: Alexei Podtelezhnikov <apodtele@gmail.com>
-Date: Fri, 20 Aug 2021 16:01:32 -0400
-Subject: [PATCH] [base] Restore quiet no-op rendering of bitmap glyphs.
-
-Fixes #1076.
-
-* src/base/ftobjs.c (FT_Render_Glyph_Internal): Discard an error when
-rendering a bitmap glyph.
----
- src/base/ftobjs.c | 7 ++++++-
- 1 file changed, 6 insertions(+), 1 deletion(-)
-
-diff --git a/src/base/ftobjs.c b/src/base/ftobjs.c
-index 342ac4a27..7b40c6421 100644
---- a/src/base/ftobjs.c
-+++ b/src/base/ftobjs.c
-@@ -4703,7 +4703,7 @@
- else
- renderer = FT_Lookup_Renderer( library, slot->format, &node );
-
-- error = FT_ERR( Unimplemented_Feature );
-+ error = FT_ERR( Cannot_Render_Glyph );
- while ( renderer )
- {
- error = renderer->render( renderer, slot, render_mode, NULL );
-@@ -4719,6 +4719,11 @@
- /* format. */
- renderer = FT_Lookup_Renderer( library, slot->format, &node );
- }
-+
-+ /* it is not an error if we cannot render a bitmat glyph */
-+ if ( FT_ERR_EQ( error, Cannot_Render_Glyph ) &&
-+ slot->format == FT_GLYPH_FORMAT_BITMAP )
-+ error = FT_Err_Ok;
- }
- }
-
---
-GitLab
-
-
diff --git a/source/l/freetype/freetype.SlackBuild b/source/l/freetype/freetype.SlackBuild
index 4c9fdb9cb..298d47970 100755
--- a/source/l/freetype/freetype.SlackBuild
+++ b/source/l/freetype/freetype.SlackBuild
@@ -24,7 +24,7 @@ cd $(dirname $0) ; CWD=$(pwd)
PKGNAM=freetype
VERSION=${VERSION:-$(echo $PKGNAM-*.tar.?z | cut -d - -f 2 | rev | cut -f 3- -d . | rev)}
-BUILD=${BUILD:-2}
+BUILD=${BUILD:-1}
NUMJOBS=${NUMJOBS:-" -j$(expr $(nproc) + 1) "}
@@ -91,9 +91,6 @@ find . \
# scripts in /etc/profile.d/.
zcat $CWD/freetype.compile.both.subpixel.hinting.methods.diff.gz | patch -p1 --verbose || exit 1
-# Fix bitmap font rendering:
-zcat $CWD/6e9d8d314ff6ab23177b9162c0b96616460bb84e.patch.gz | patch -p1 --verbose || exit 1
-
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
@@ -151,7 +148,7 @@ cp -a \
ChangeLog LICENSE* README* \
$PKG/usr/doc/freetype-$VERSION
# too much
-rm -rf $PKG/usr/doc/freetype-$VERSION/docs/reference $PKG/usr/doc/freetype-2.11.0/docs/oldlogs
+rm -rf $PKG/usr/doc/freetype-$VERSION/docs/reference $PKG/usr/doc/freetype-$VERSION/docs/oldlogs
# If there's a ChangeLog file, installing at least part of the recent history
# is useful, but don't let it get totally out of control:
diff --git a/source/n/lynx/lynx.SlackBuild b/source/n/lynx/lynx.SlackBuild
index 0c8159873..a3622e04d 100755
--- a/source/n/lynx/lynx.SlackBuild
+++ b/source/n/lynx/lynx.SlackBuild
@@ -23,8 +23,8 @@
cd $(dirname $0) ; CWD=$(pwd)
PKGNAM=lynx
-PKGVER=2.9.0dev.9
-DIRVER=2.9.0dev.9
+PKGVER=2.9.0dev.10
+DIRVER=2.9.0dev.10
BUILD=${BUILD:-1}
NUMJOBS=${NUMJOBS:-" -j$(expr $(nproc) + 1) "}