summaryrefslogtreecommitdiffstats
path: root/source/d
diff options
context:
space:
mode:
Diffstat (limited to 'source/d')
-rwxr-xr-xsource/d/gcc/fetch-from-svn-and-prep-tarball.sh83
-rwxr-xr-xsource/d/gcc/gcc.SlackBuild6
-rw-r--r--source/d/gcc/patches/PR100101.2efbbba16a0630fac8cadcd6d9e0ffaabfadb79f.patch100
-rw-r--r--source/d/gcc/patches/PR100102.5357ab75dedef403b0eebf9277d61d1cbeb5898f.patch133
-rwxr-xr-xsource/d/libtool/libtool.SlackBuild2
-rwxr-xr-xsource/d/slacktrack/slacktrack.SlackBuild4
6 files changed, 5 insertions, 323 deletions
diff --git a/source/d/gcc/fetch-from-svn-and-prep-tarball.sh b/source/d/gcc/fetch-from-svn-and-prep-tarball.sh
deleted file mode 100755
index de2459067..000000000
--- a/source/d/gcc/fetch-from-svn-and-prep-tarball.sh
+++ /dev/null
@@ -1,83 +0,0 @@
-#!/bin/sh
-# Copyright 2018, 2019 Patrick J. Volkerding, Sebeka, Minnesota, USA
-#
-# Parts of this script are based on the gcc_release script by
-# Jeffrey Law, Bernd Schmidt, Mark Mitchell.
-# Copyright (c) 2001-2015 Free Software Foundation.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 3, or (at your option)
-# any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program. If not, see <http://www.gnu.org/licenses/>.
-
-BRANCH=${BRANCH:-gcc-9-branch}
-
-rm -rf tmp-fetch
-mkdir tmp-fetch
-cd tmp-fetch
-# Not sure why, but this emits a different revision when the fetch is done than
-# what's returned by "svn log -r COMMITTED". We'll trust the latter.
-svn co svn://gcc.gnu.org/svn/gcc/branches/${BRANCH} gcc
-cd gcc
-echo "Generating LAST_UPDATED..."
-svn log -r COMMITTED > LAST_UPDATED.raw
-REVISION="$(cat LAST_UPDATED.raw | head -n 2 | tail -n 1 | cut -f 1 -d ' ' | cut -f 2 -d r)"
-DATE="$(date -d "$(cat LAST_UPDATED.raw | head -n 2 | tail -n 1 | cut -f 3 -d '|' | cut -f 1 -d '(')" "+%Y%m%d")"
-echo "Obtained from SVN: branches/${BRANCH} revision ${REVISION}" > LAST_UPDATED
-cat LAST_UPDATED.raw >> LAST_UPDATED
-rm LAST_UPDATED.raw
-# Remove the .svn data (not packaged):
-rm -r .svn
-# Get the version number:
-VERSION=$(cat gcc/BASE-VER)
-# Rename the directory:
-cd ..
-GCCDIR="gcc-${VERSION}_${DATE}_r${REVISION}"
-mv gcc $GCCDIR
-cd $GCCDIR
-# Now we need to generate some documentation files that would normally be
-# created during the GCC release process:
-echo "Generating INSTALL/ documentation..."
-SOURCEDIR=gcc/doc \
-DESTDIR=INSTALL \
-gcc/doc/install.texi2html 1> /dev/null 2> /dev/null
-echo "Generating NEWS..."
-contrib/gennews > NEWS
-# Create a "MD5SUMS" file to use for checking the validity of the release.
-echo "Generating MD5SUMS..."
-echo \
-"# This file contains the MD5 checksums of the files in the
-# "${GCCDIR}".tar.lz tarball.
-#
-# Besides verifying that all files in the tarball were correctly expanded,
-# it also can be used to determine if any files have changed since the
-# tarball was expanded or to verify that a patchfile was correctly applied.
-#
-# Suggested usage:
-# md5sum -c MD5SUMS | grep -v \"OK$\"
-#" > MD5SUMS
-find . -type f |
-sed -e 's:^\./::' -e '/MD5SUMS/d' |
-sort |
-xargs md5sum >>MD5SUMS
-cd ..
-# Tar it up:
-echo "Creating ${GCCDIR}.tar..."
-tar cf ${GCCDIR}.tar ${GCCDIR}
-# Compress with (p)lzip:
-echo "Compressing ${GCCDIR}.tar.lz..."
-plzip -9 ${GCCDIR}.tar
-# Move the new archive up a directory:
-mv ${GCCDIR}.tar.lz ..
-# Move up a directory and then delete the cruft:
-cd ..
-rm -r tmp-fetch
-echo "Done."
diff --git a/source/d/gcc/gcc.SlackBuild b/source/d/gcc/gcc.SlackBuild
index 5830d762c..a1a6c4c6c 100755
--- a/source/d/gcc/gcc.SlackBuild
+++ b/source/d/gcc/gcc.SlackBuild
@@ -57,7 +57,7 @@ cd $(dirname $0) ; CWD=$(pwd)
PKGNAM=gcc
SRCVER=${VERSION:-$(echo $PKGNAM-*.tar.?z | rev | cut -f 3- -d . | cut -f 1 -d - | rev)}
VERSION=$(echo $SRCVER | cut -f 1 -d _)
-BUILD=${BUILD:-2}
+BUILD=${BUILD:-1}
# How many jobs to run in parallel:
NUMJOBS=${NUMJOBS:-" -j$(expr $(nproc) + 1) "}
@@ -171,10 +171,8 @@ zcat $CWD/patches/gcc-no_fixincludes.diff.gz | patch -p1 --verbose --backup --su
# Fix a gfortran bug:
zcat $CWD/patches/gfortran.deferred-shape-vs-assumed-shape.patch.gz | patch -p0 --verbose --backup --suffix=.orig || exit 1
-# Fix regressions in 10.3.0:
-zcat $CWD/patches/PR100101.2efbbba16a0630fac8cadcd6d9e0ffaabfadb79f.patch.gz | patch -p1 --verbose --backup --suffix=.orig || exit 1
+# Fix regressions in 10.3.0 (and presumably 11.1.0 since they still apply cleanly):
zcat $CWD/patches/PR100102-2.a1b3484a8e6c53c8084723e3f1738d402374198e.patch.gz | patch -p1 --verbose --backup --suffix=.orig || exit 1
-zcat $CWD/patches/PR100102.5357ab75dedef403b0eebf9277d61d1cbeb5898f.patch.gz | patch -p1 --verbose --backup --suffix=.orig || exit 1
# Fix perms/owners:
chown -R root:root .
diff --git a/source/d/gcc/patches/PR100101.2efbbba16a0630fac8cadcd6d9e0ffaabfadb79f.patch b/source/d/gcc/patches/PR100101.2efbbba16a0630fac8cadcd6d9e0ffaabfadb79f.patch
deleted file mode 100644
index 51ee459fd..000000000
--- a/source/d/gcc/patches/PR100101.2efbbba16a0630fac8cadcd6d9e0ffaabfadb79f.patch
+++ /dev/null
@@ -1,100 +0,0 @@
-From 2efbbba16a0630fac8cadcd6d9e0ffaabfadb79f Mon Sep 17 00:00:00 2001
-From: Jason Merrill <jason@redhat.com>
-Date: Thu, 15 Apr 2021 13:38:54 -0400
-Subject: [PATCH] c++: noexcept error recursion [PR100101]
-
-Here instantiating the noexcept-specifier for bar<void>() means
-instantiating A<void>::value, which complains about the conversion from 0 to
-int* in the default argument of foo. Since my patch for PR99583, printing
-the error context involves looking at C<void>::type, which again wants to
-instantiate A<void>::value, which breaks. For now at least, let's break
-this recursion by avoiding looking into the noexcept-specifier in
-find_typenames, and limit that to just the uses_parameter_packs case that
-PR99583 cares about.
-
-gcc/cp/ChangeLog:
-
- PR c++/100101
- PR c++/99583
- * pt.c (find_parameter_packs_r) [FUNCTION_TYPE]: Walk into
- TYPE_RAISES_EXCEPTIONS here.
-
-gcc/testsuite/ChangeLog:
-
- PR c++/100101
- * g++.dg/cpp0x/noexcept67.C: New test.
----
- gcc/cp/pt.c | 11 +++++++++++
- gcc/testsuite/g++.dg/cpp0x/noexcept67.C | 26 +++++++++++++++++++++++++
- 3 files changed, 37 insertions(+), 5 deletions(-)
- create mode 100644 gcc/testsuite/g++.dg/cpp0x/noexcept67.C
-
-diff --git a/gcc/cp/pt.c b/gcc/cp/pt.c
-index 0f119a55272..2190f83882a 100644
---- a/gcc/cp/pt.c
-+++ b/gcc/cp/pt.c
-@@ -3890,6 +3890,10 @@ find_parameter_packs_r (tree *tp, int *walk_subtrees, void* data)
- (struct find_parameter_pack_data*)data;
- bool parameter_pack_p = false;
-
-+#define WALK_SUBTREE(NODE) \
-+ cp_walk_tree (&(NODE), &find_parameter_packs_r, \
-+ ppd, ppd->visited) \
-+
- /* Don't look through typedefs; we are interested in whether a
- parameter pack is actually written in the expression/type we're
- looking at, not the target type. */
-@@ -4070,10 +4074,17 @@ find_parameter_packs_r (tree *tp, int *walk_subtrees, void* data)
- ppd, ppd->visited);
- return NULL_TREE;
-
-+ case FUNCTION_TYPE:
-+ case METHOD_TYPE:
-+ WALK_SUBTREE (TYPE_RAISES_EXCEPTIONS (t));
-+ break;
-+
- default:
- return NULL_TREE;
- }
-
-+#undef WALK_SUBTREE
-+
- return NULL_TREE;
- }
-
-diff --git a/gcc/testsuite/g++.dg/cpp0x/noexcept67.C b/gcc/testsuite/g++.dg/cpp0x/noexcept67.C
-new file mode 100644
-index 00000000000..7f061034323
---- /dev/null
-+++ b/gcc/testsuite/g++.dg/cpp0x/noexcept67.C
-@@ -0,0 +1,26 @@
-+// PR c++/100101
-+// { dg-do compile { target c++11 } }
-+
-+template <typename T> struct A
-+{
-+ template <typename U> static char foo(U*, int* = 0);
-+ static const bool value = sizeof(foo(static_cast<T*>(nullptr))) > 0;
-+};
-+
-+template <bool b> struct B
-+{
-+ static const bool value = b;
-+};
-+
-+template <typename T> struct C
-+{
-+ typedef B<A<T>::value> type;
-+};
-+
-+template <typename T>
-+void bar() noexcept(A<T>::value && C<T>::type::value) {}
-+
-+void baz()
-+{
-+ bar<void>();
-+}
---
-2.27.0
-
-
diff --git a/source/d/gcc/patches/PR100102.5357ab75dedef403b0eebf9277d61d1cbeb5898f.patch b/source/d/gcc/patches/PR100102.5357ab75dedef403b0eebf9277d61d1cbeb5898f.patch
deleted file mode 100644
index 57432468e..000000000
--- a/source/d/gcc/patches/PR100102.5357ab75dedef403b0eebf9277d61d1cbeb5898f.patch
+++ /dev/null
@@ -1,133 +0,0 @@
-From 5357ab75dedef403b0eebf9277d61d1cbeb5898f Mon Sep 17 00:00:00 2001
-From: Patrick Palka <ppalka@redhat.com>
-Date: Fri, 4 Jun 2021 13:46:53 -0400
-Subject: [PATCH 1/1] c++: tsubst_function_decl and excess arg levels
- [PR100102]
-
-Here, when instantiating the dependent alias template
-duration::__is_harmonic with args={{T,U},{int}}, we find ourselves
-substituting the function decl _S_gcd. Since we have more arg levels
-than _S_gcd has parm levels, an old special case in tsubst_function_decl
-causes us to unwantedly reduce args to its innermost level, yielding
-args={int}, which leads to a nonsensical substitution into the decl
-context and eventually a crash.
-
-The comment for this special case refers to three examples for which we
-ought to see more arg levels than parm levels here, but none of the
-examples actually demonstrate this. In the first example, when
-defining S<int>::f(U) parms_depth is 2 and args_depth is 1, and
-later when instantiating say S<int>::f<char> both depths are 2. In the
-second example, when substituting the template friend declaration
-parms_depth is 2 and args_depth is 1, and later when instantiating f
-both depths are 1. Finally, the third example is invalid since we can't
-specialize a member template of an unspecialized class template like
-that.
-
-Given that this reduction code seems no longer relevant for its
-documented purpose and that it causes problems as in the PR, this patch
-just removes it. Note that as far as bootstrap/regtest is concerned,
-this code is dead; the below two tests would be the first to reach it.
-
- PR c++/100102
-
-gcc/cp/ChangeLog:
-
- * pt.c (tsubst_function_decl): Remove old code for reducing
- args when it has excess levels.
-
-gcc/testsuite/ChangeLog:
-
- * g++.dg/cpp0x/alias-decl-72.C: New test.
- * g++.dg/cpp0x/alias-decl-72a.C: New test.
----
- gcc/cp/pt.c | 39 ---------------------
- gcc/testsuite/g++.dg/cpp0x/alias-decl-72.C | 9 +++++
- gcc/testsuite/g++.dg/cpp0x/alias-decl-72a.C | 9 +++++
- 3 files changed, 18 insertions(+), 39 deletions(-)
- create mode 100644 gcc/testsuite/g++.dg/cpp0x/alias-decl-72.C
- create mode 100644 gcc/testsuite/g++.dg/cpp0x/alias-decl-72a.C
-
-diff --git a/gcc/cp/pt.c b/gcc/cp/pt.c
-index 7211bdc5bbc..744461ed8cb 100644
---- a/gcc/cp/pt.c
-+++ b/gcc/cp/pt.c
-@@ -13905,45 +13905,6 @@ tsubst_function_decl (tree t, tree args, tsubst_flags_t complain,
- if (tree spec = retrieve_specialization (gen_tmpl, argvec, hash))
- return spec;
- }
--
-- /* We can see more levels of arguments than parameters if
-- there was a specialization of a member template, like
-- this:
--
-- template <class T> struct S { template <class U> void f(); }
-- template <> template <class U> void S<int>::f(U);
--
-- Here, we'll be substituting into the specialization,
-- because that's where we can find the code we actually
-- want to generate, but we'll have enough arguments for
-- the most general template.
--
-- We also deal with the peculiar case:
--
-- template <class T> struct S {
-- template <class U> friend void f();
-- };
-- template <class U> void f() {}
-- template S<int>;
-- template void f<double>();
--
-- Here, the ARGS for the instantiation of will be {int,
-- double}. But, we only need as many ARGS as there are
-- levels of template parameters in CODE_PATTERN. We are
-- careful not to get fooled into reducing the ARGS in
-- situations like:
--
-- template <class T> struct S { template <class U> void f(U); }
-- template <class T> template <> void S<T>::f(int) {}
--
-- which we can spot because the pattern will be a
-- specialization in this case. */
-- int args_depth = TMPL_ARGS_DEPTH (args);
-- int parms_depth =
-- TMPL_PARMS_DEPTH (DECL_TEMPLATE_PARMS (DECL_TI_TEMPLATE (t)));
--
-- if (args_depth > parms_depth && !DECL_TEMPLATE_SPECIALIZATION (t))
-- args = get_innermost_template_args (args, parms_depth);
- }
- else
- {
-diff --git a/gcc/testsuite/g++.dg/cpp0x/alias-decl-72.C b/gcc/testsuite/g++.dg/cpp0x/alias-decl-72.C
-new file mode 100644
-index 00000000000..8009756dcba
---- /dev/null
-+++ b/gcc/testsuite/g++.dg/cpp0x/alias-decl-72.C
-@@ -0,0 +1,9 @@
-+// PR c++/100102
-+// { dg-do compile { target c++11 } }
-+
-+template<int()> struct ratio;
-+template<class T, class U> struct duration {
-+ static constexpr int _S_gcd();
-+ template<class> using __is_harmonic = ratio<_S_gcd>;
-+ using type = __is_harmonic<int>;
-+};
-diff --git a/gcc/testsuite/g++.dg/cpp0x/alias-decl-72a.C b/gcc/testsuite/g++.dg/cpp0x/alias-decl-72a.C
-new file mode 100644
-index 00000000000..a4443e18f9d
---- /dev/null
-+++ b/gcc/testsuite/g++.dg/cpp0x/alias-decl-72a.C
-@@ -0,0 +1,9 @@
-+// PR c++/100102
-+// { dg-do compile { target c++11 } }
-+
-+template<int> struct ratio;
-+template<class T> struct duration {
-+ static constexpr int _S_gcd();
-+ template<class> using __is_harmonic = ratio<(duration::_S_gcd)()>;
-+ using type = __is_harmonic<int>;
-+};
---
-2.27.0
-
-
diff --git a/source/d/libtool/libtool.SlackBuild b/source/d/libtool/libtool.SlackBuild
index a42ffd126..cd6fd7617 100755
--- a/source/d/libtool/libtool.SlackBuild
+++ b/source/d/libtool/libtool.SlackBuild
@@ -24,7 +24,7 @@ cd $(dirname $0) ; CWD=$(pwd)
PKGNAM=libtool
VERSION=${VERSION:-$(echo libtool-*.tar.xz | rev | cut -f 3- -d . | cut -f 1 -d - | rev)}
-BUILD=${BUILD:-17}
+BUILD=${BUILD:-18}
NUMJOBS=${NUMJOBS:-" -j$(expr $(nproc) + 1) "}
diff --git a/source/d/slacktrack/slacktrack.SlackBuild b/source/d/slacktrack/slacktrack.SlackBuild
index 54d49ebe7..a9314c3a7 100755
--- a/source/d/slacktrack/slacktrack.SlackBuild
+++ b/source/d/slacktrack/slacktrack.SlackBuild
@@ -6,7 +6,7 @@ if [ "$TMP" = "" ]; then
fi
PKGNAM=slacktrack
-export VERSION=2.20
+export VERSION=2.21
# Automatically determine the architecture we're building on:
case "$( uname -m )" in
i?86) export ARCH=i586
@@ -17,7 +17,7 @@ case "$( uname -m )" in
*) export ARCH=$( uname -m )
PKGEXT=txz ;;
esac
-BUILD=${BUILD:-3}
+BUILD=${BUILD:-1}
export BUILD
# If the variable PRINT_PACKAGE_NAME is set, then this script will report what