Tue Jul 23 18:54:25 UTC 2024

Hey folks, we got a new glibc and are beginning the process of baking the new
default compile flags into the toolchain, the graphics stack, and whatever else
happens along. Enjoy! :-)
a/aaa_glibc-solibs-2.40-x86_64-1.txz:  Upgraded.
a/libblockdev-3.1.1_1-x86_64-2.txz:  Rebuilt.
  Fix build against recent ext2fs.h. Thanks to shipujin.
a/xfsprogs-6.9.0-x86_64-1.txz:  Upgraded.
ap/rpm-4.19.1.1-x86_64-3.txz:  Rebuilt.
ap/slackpkg-15.0.10-noarch-4.txz:  Rebuilt.
  Prefer gpg1 again. Going with the modern gpg with more dependencies was
  a mistake in this case. (now we know why gnupg-1 is still around :-)
  Thanks to Petri Kaukasoina.
d/binutils-2.42-x86_64-3.txz:  Rebuilt.
d/cargo-vendor-filterer-0.5.14-x86_64-2.txz:  Rebuilt.
d/cbindgen-0.26.0-x86_64-2.txz:  Rebuilt.
d/ccache-4.10.2-x86_64-1.txz:  Upgraded.
d/cmake-3.30.1-x86_64-2.txz:  Rebuilt.
d/gcc-14.1.0-x86_64-2.txz:  Rebuilt.
d/gcc-g++-14.1.0-x86_64-2.txz:  Rebuilt.
d/gcc-gdc-14.1.0-x86_64-2.txz:  Rebuilt.
d/gcc-gfortran-14.1.0-x86_64-2.txz:  Rebuilt.
d/gcc-gm2-14.1.0-x86_64-2.txz:  Rebuilt.
d/gcc-gnat-14.1.0-x86_64-2.txz:  Rebuilt.
d/gcc-go-14.1.0-x86_64-2.txz:  Rebuilt.
d/gcc-objc-14.1.0-x86_64-2.txz:  Rebuilt.
d/libgccjit-14.1.0-x86_64-2.txz:  Rebuilt.
d/libtool-2.4.7-x86_64-8.txz:  Rebuilt.
d/parallel-20240722-noarch-1.txz:  Upgraded.
d/pkg-config-0.29.2-x86_64-5.txz:  Rebuilt.
d/python-setuptools-71.1.0-x86_64-1.txz:  Upgraded.
d/ruby-3.3.4-x86_64-2.txz:  Rebuilt.
d/rust-bindgen-0.69.4-x86_64-2.txz:  Rebuilt.
d/strace-6.10-x86_64-1.txz:  Upgraded.
d/subversion-1.14.3-x86_64-3.txz:  Rebuilt.
e/emacs-29.4-x86_64-2.txz:  Rebuilt.
l/PyQt-builder-1.16.4-x86_64-2.txz:  Rebuilt.
l/PyQt5-5.15.11-x86_64-1.txz:  Upgraded.
l/PyQt5_sip-12.15.0-x86_64-2.txz:  Rebuilt.
l/argon2-20190702-x86_64-6.txz:  Rebuilt.
l/ffmpeg-6.1.1-x86_64-5.txz:  Rebuilt.
l/glibc-2.40-x86_64-1.txz:  Upgraded.
  This update fixes security issues:
  nscd: Stack-based buffer overflow in netgroup cache.
  nscd: Null pointer crash after notfound response.
  nscd: netgroup cache may terminate daemon on memory allocation failure.
  nscd: netgroup cache assumes NSS callback uses in-buffer strings.
  These vulnerabilities were only present in the nscd binary.
  For more information, see:
    https://www.cve.org/CVERecord?id=CVE-2024-33599
    https://www.cve.org/CVERecord?id=CVE-2024-33600
    https://www.cve.org/CVERecord?id=CVE-2024-33601
    https://www.cve.org/CVERecord?id=CVE-2024-33602
  (* Security fix *)
l/glibc-i18n-2.40-x86_64-1.txz:  Upgraded.
l/glibc-profile-2.40-x86_64-1.txz:  Upgraded.
l/gst-plugins-good-1.24.5-x86_64-2.txz:  Rebuilt.
l/libcdio-paranoia-10.2+2.0.2-x86_64-1.txz:  Upgraded.
l/libclc-18.1.8-x86_64-3.txz:  Rebuilt.
l/libproxy-0.5.8-x86_64-1.txz:  Upgraded.
l/lz4-1.10.0-x86_64-1.txz:  Upgraded.
l/poppler-24.07.0-x86_64-2.txz:  Rebuilt.
l/python-importlib_metadata-8.1.0-x86_64-1.txz:  Upgraded.
l/python-sphinx-7.4.7-x86_64-1.txz:  Upgraded.
l/qt5-5.15.14_20240716_ae0c8451-x86_64-1.txz:  Upgraded.
l/qt5-webkit-5.212.0_alpha4-x86_64-13.txz:  Rebuilt.
l/qt6-6.7.2_20240610_3f005f1e-x86_64-3.txz:  Rebuilt.
l/sip-6.8.6-x86_64-2.txz:  Rebuilt.
l/spirv-llvm-translator-18.1.2-x86_64-2.txz:  Rebuilt.
l/v4l-utils-1.28.0-x86_64-1.txz:  Upgraded.
n/bind-9.18.28-x86_64-1.txz:  Upgraded.
  This update fixes security issues:
  Remove SIG(0) support from named as a countermeasure for CVE-2024-1975.
  qctx-zversion was not being cleared when it should have been leading to
  an assertion failure if it needed to be reused.
  An excessively large number of rrtypes per owner can slow down database query
  processing, so a limit has been placed on the number of rrtypes that can be
  stored per owner (node) in a cache or zone database. This is configured with
  the new "max-rrtypes-per-name" option, and defaults to 100.
  Excessively large rdatasets can slow down database query processing, so a
  limit has been placed on the number of records that can be stored per
  rdataset in a cache or zone database. This is configured with the new
  "max-records-per-type" option, and defaults to 100.
  Malicious DNS client that sends many queries over TCP but never reads
  responses can cause server to respond slowly or not respond at all for other
  clients.
  For more information, see:
    https://www.cve.org/CVERecord?id=CVE-2024-1975
    https://www.cve.org/CVERecord?id=CVE-2024-4076
    https://www.cve.org/CVERecord?id=CVE-2024-1737
    https://www.cve.org/CVERecord?id=CVE-2024-0760
  (* Security fix *)
n/fetchmail-6.4.39-x86_64-1.txz:  Upgraded.
n/obexftp-0.24.2-x86_64-13.txz:  Rebuilt.
n/pinentry-1.3.1-x86_64-2.txz:  Rebuilt.
n/wpa_supplicant-2.11-x86_64-1.txz:  Upgraded.
x/fcitx5-qt-5.1.6-x86_64-3.txz:  Rebuilt.
x/ibus-m17n-1.4.30-x86_64-1.txz:  Upgraded.
x/libdrm-2.4.122-x86_64-2.txz:  Rebuilt.
x/marisa-0.2.6-x86_64-10.txz:  Rebuilt.
x/mesa-24.1.4-x86_64-2.txz:  Rebuilt.
x/vulkan-sdk-1.3.275.0-x86_64-3.txz:  Rebuilt.
xap/audacious-4.4-x86_64-2.txz:  Rebuilt.
xap/audacious-plugins-4.4-x86_64-2.txz:  Rebuilt.
xap/mozilla-thunderbird-128.0.1esr-x86_64-1.txz:  Upgraded.
  This is a bugfix release.
  For more information, see:
    https://www.mozilla.org/en-US/thunderbird/128.0.1esr/releasenotes/
xap/xaos-4.3.2-x86_64-2.txz:  Rebuilt.
extra/emacs-regular-build/emacs-29.4-x86_64-2_regular.txz:  Rebuilt.
This commit is contained in:
Patrick J Volkerding 2024-07-23 18:54:25 +00:00 committed by Eric Hameleers
parent f32788a2ae
commit c9ced48b11
69 changed files with 893 additions and 1048 deletions

View file

@ -11,9 +11,128 @@
<description>Tracking Slackware development in git.</description> <description>Tracking Slackware development in git.</description>
<language>en-us</language> <language>en-us</language>
<id xmlns="http://www.w3.org/2005/Atom">urn:uuid:c964f45e-6732-11e8-bbe5-107b4450212f</id> <id xmlns="http://www.w3.org/2005/Atom">urn:uuid:c964f45e-6732-11e8-bbe5-107b4450212f</id>
<pubDate>Fri, 19 Jul 2024 20:08:29 GMT</pubDate> <pubDate>Tue, 23 Jul 2024 18:54:25 GMT</pubDate>
<lastBuildDate>Fri, 19 Jul 2024 20:42:04 GMT</lastBuildDate> <lastBuildDate>Tue, 23 Jul 2024 20:49:55 GMT</lastBuildDate>
<generator>maintain_current_git.sh v 1.17</generator> <generator>maintain_current_git.sh v 1.17</generator>
<item>
<title>Tue, 23 Jul 2024 18:54:25 GMT</title>
<pubDate>Tue, 23 Jul 2024 18:54:25 GMT</pubDate>
<link>https://git.slackware.nl/current/tag/?h=20240723185425</link>
<guid isPermaLink="false">20240723185425</guid>
<description>
<![CDATA[<pre>
Hey folks, we got a new glibc and are beginning the process of baking the new
default compile flags into the toolchain, the graphics stack, and whatever else
happens along. Enjoy! :-)
a/aaa_glibc-solibs-2.40-x86_64-1.txz: Upgraded.
a/libblockdev-3.1.1_1-x86_64-2.txz: Rebuilt.
Fix build against recent ext2fs.h. Thanks to shipujin.
a/xfsprogs-6.9.0-x86_64-1.txz: Upgraded.
ap/rpm-4.19.1.1-x86_64-3.txz: Rebuilt.
ap/slackpkg-15.0.10-noarch-4.txz: Rebuilt.
Prefer gpg1 again. Going with the modern gpg with more dependencies was
a mistake in this case. (now we know why gnupg-1 is still around :-)
Thanks to Petri Kaukasoina.
d/binutils-2.42-x86_64-3.txz: Rebuilt.
d/cargo-vendor-filterer-0.5.14-x86_64-2.txz: Rebuilt.
d/cbindgen-0.26.0-x86_64-2.txz: Rebuilt.
d/ccache-4.10.2-x86_64-1.txz: Upgraded.
d/cmake-3.30.1-x86_64-2.txz: Rebuilt.
d/gcc-14.1.0-x86_64-2.txz: Rebuilt.
d/gcc-g++-14.1.0-x86_64-2.txz: Rebuilt.
d/gcc-gdc-14.1.0-x86_64-2.txz: Rebuilt.
d/gcc-gfortran-14.1.0-x86_64-2.txz: Rebuilt.
d/gcc-gm2-14.1.0-x86_64-2.txz: Rebuilt.
d/gcc-gnat-14.1.0-x86_64-2.txz: Rebuilt.
d/gcc-go-14.1.0-x86_64-2.txz: Rebuilt.
d/gcc-objc-14.1.0-x86_64-2.txz: Rebuilt.
d/libgccjit-14.1.0-x86_64-2.txz: Rebuilt.
d/libtool-2.4.7-x86_64-8.txz: Rebuilt.
d/parallel-20240722-noarch-1.txz: Upgraded.
d/pkg-config-0.29.2-x86_64-5.txz: Rebuilt.
d/python-setuptools-71.1.0-x86_64-1.txz: Upgraded.
d/ruby-3.3.4-x86_64-2.txz: Rebuilt.
d/rust-bindgen-0.69.4-x86_64-2.txz: Rebuilt.
d/strace-6.10-x86_64-1.txz: Upgraded.
d/subversion-1.14.3-x86_64-3.txz: Rebuilt.
e/emacs-29.4-x86_64-2.txz: Rebuilt.
l/PyQt-builder-1.16.4-x86_64-2.txz: Rebuilt.
l/PyQt5-5.15.11-x86_64-1.txz: Upgraded.
l/PyQt5_sip-12.15.0-x86_64-2.txz: Rebuilt.
l/argon2-20190702-x86_64-6.txz: Rebuilt.
l/ffmpeg-6.1.1-x86_64-5.txz: Rebuilt.
l/glibc-2.40-x86_64-1.txz: Upgraded.
This update fixes security issues:
nscd: Stack-based buffer overflow in netgroup cache.
nscd: Null pointer crash after notfound response.
nscd: netgroup cache may terminate daemon on memory allocation failure.
nscd: netgroup cache assumes NSS callback uses in-buffer strings.
These vulnerabilities were only present in the nscd binary.
For more information, see:
https://www.cve.org/CVERecord?id=CVE-2024-33599
https://www.cve.org/CVERecord?id=CVE-2024-33600
https://www.cve.org/CVERecord?id=CVE-2024-33601
https://www.cve.org/CVERecord?id=CVE-2024-33602
(* Security fix *)
l/glibc-i18n-2.40-x86_64-1.txz: Upgraded.
l/glibc-profile-2.40-x86_64-1.txz: Upgraded.
l/gst-plugins-good-1.24.5-x86_64-2.txz: Rebuilt.
l/libcdio-paranoia-10.2+2.0.2-x86_64-1.txz: Upgraded.
l/libclc-18.1.8-x86_64-3.txz: Rebuilt.
l/libproxy-0.5.8-x86_64-1.txz: Upgraded.
l/lz4-1.10.0-x86_64-1.txz: Upgraded.
l/poppler-24.07.0-x86_64-2.txz: Rebuilt.
l/python-importlib_metadata-8.1.0-x86_64-1.txz: Upgraded.
l/python-sphinx-7.4.7-x86_64-1.txz: Upgraded.
l/qt5-5.15.14_20240716_ae0c8451-x86_64-1.txz: Upgraded.
l/qt5-webkit-5.212.0_alpha4-x86_64-13.txz: Rebuilt.
l/qt6-6.7.2_20240610_3f005f1e-x86_64-3.txz: Rebuilt.
l/sip-6.8.6-x86_64-2.txz: Rebuilt.
l/spirv-llvm-translator-18.1.2-x86_64-2.txz: Rebuilt.
l/v4l-utils-1.28.0-x86_64-1.txz: Upgraded.
n/bind-9.18.28-x86_64-1.txz: Upgraded.
This update fixes security issues:
Remove SIG(0) support from named as a countermeasure for CVE-2024-1975.
qctx-zversion was not being cleared when it should have been leading to
an assertion failure if it needed to be reused.
An excessively large number of rrtypes per owner can slow down database query
processing, so a limit has been placed on the number of rrtypes that can be
stored per owner (node) in a cache or zone database. This is configured with
the new "max-rrtypes-per-name" option, and defaults to 100.
Excessively large rdatasets can slow down database query processing, so a
limit has been placed on the number of records that can be stored per
rdataset in a cache or zone database. This is configured with the new
"max-records-per-type" option, and defaults to 100.
Malicious DNS client that sends many queries over TCP but never reads
responses can cause server to respond slowly or not respond at all for other
clients.
For more information, see:
https://www.cve.org/CVERecord?id=CVE-2024-1975
https://www.cve.org/CVERecord?id=CVE-2024-4076
https://www.cve.org/CVERecord?id=CVE-2024-1737
https://www.cve.org/CVERecord?id=CVE-2024-0760
(* Security fix *)
n/fetchmail-6.4.39-x86_64-1.txz: Upgraded.
n/obexftp-0.24.2-x86_64-13.txz: Rebuilt.
n/pinentry-1.3.1-x86_64-2.txz: Rebuilt.
n/wpa_supplicant-2.11-x86_64-1.txz: Upgraded.
x/fcitx5-qt-5.1.6-x86_64-3.txz: Rebuilt.
x/ibus-m17n-1.4.30-x86_64-1.txz: Upgraded.
x/libdrm-2.4.122-x86_64-2.txz: Rebuilt.
x/marisa-0.2.6-x86_64-10.txz: Rebuilt.
x/mesa-24.1.4-x86_64-2.txz: Rebuilt.
x/vulkan-sdk-1.3.275.0-x86_64-3.txz: Rebuilt.
xap/audacious-4.4-x86_64-2.txz: Rebuilt.
xap/audacious-plugins-4.4-x86_64-2.txz: Rebuilt.
xap/mozilla-thunderbird-128.0.1esr-x86_64-1.txz: Upgraded.
This is a bugfix release.
For more information, see:
https://www.mozilla.org/en-US/thunderbird/128.0.1esr/releasenotes/
xap/xaos-4.3.2-x86_64-2.txz: Rebuilt.
extra/emacs-regular-build/emacs-29.4-x86_64-2_regular.txz: Rebuilt.
</pre>]]>
</description>
</item>
<item> <item>
<title>Fri, 19 Jul 2024 20:08:29 GMT</title> <title>Fri, 19 Jul 2024 20:08:29 GMT</title>
<pubDate>Fri, 19 Jul 2024 20:08:29 GMT</pubDate> <pubDate>Fri, 19 Jul 2024 20:08:29 GMT</pubDate>

View file

@ -1,3 +1,114 @@
Tue Jul 23 18:54:25 UTC 2024
Hey folks, we got a new glibc and are beginning the process of baking the new
default compile flags into the toolchain, the graphics stack, and whatever else
happens along. Enjoy! :-)
a/aaa_glibc-solibs-2.40-x86_64-1.txz: Upgraded.
a/libblockdev-3.1.1_1-x86_64-2.txz: Rebuilt.
Fix build against recent ext2fs.h. Thanks to shipujin.
a/xfsprogs-6.9.0-x86_64-1.txz: Upgraded.
ap/rpm-4.19.1.1-x86_64-3.txz: Rebuilt.
ap/slackpkg-15.0.10-noarch-4.txz: Rebuilt.
Prefer gpg1 again. Going with the modern gpg with more dependencies was
a mistake in this case. (now we know why gnupg-1 is still around :-)
Thanks to Petri Kaukasoina.
d/binutils-2.42-x86_64-3.txz: Rebuilt.
d/cargo-vendor-filterer-0.5.14-x86_64-2.txz: Rebuilt.
d/cbindgen-0.26.0-x86_64-2.txz: Rebuilt.
d/ccache-4.10.2-x86_64-1.txz: Upgraded.
d/cmake-3.30.1-x86_64-2.txz: Rebuilt.
d/gcc-14.1.0-x86_64-2.txz: Rebuilt.
d/gcc-g++-14.1.0-x86_64-2.txz: Rebuilt.
d/gcc-gdc-14.1.0-x86_64-2.txz: Rebuilt.
d/gcc-gfortran-14.1.0-x86_64-2.txz: Rebuilt.
d/gcc-gm2-14.1.0-x86_64-2.txz: Rebuilt.
d/gcc-gnat-14.1.0-x86_64-2.txz: Rebuilt.
d/gcc-go-14.1.0-x86_64-2.txz: Rebuilt.
d/gcc-objc-14.1.0-x86_64-2.txz: Rebuilt.
d/libgccjit-14.1.0-x86_64-2.txz: Rebuilt.
d/libtool-2.4.7-x86_64-8.txz: Rebuilt.
d/parallel-20240722-noarch-1.txz: Upgraded.
d/pkg-config-0.29.2-x86_64-5.txz: Rebuilt.
d/python-setuptools-71.1.0-x86_64-1.txz: Upgraded.
d/ruby-3.3.4-x86_64-2.txz: Rebuilt.
d/rust-bindgen-0.69.4-x86_64-2.txz: Rebuilt.
d/strace-6.10-x86_64-1.txz: Upgraded.
d/subversion-1.14.3-x86_64-3.txz: Rebuilt.
e/emacs-29.4-x86_64-2.txz: Rebuilt.
l/PyQt-builder-1.16.4-x86_64-2.txz: Rebuilt.
l/PyQt5-5.15.11-x86_64-1.txz: Upgraded.
l/PyQt5_sip-12.15.0-x86_64-2.txz: Rebuilt.
l/argon2-20190702-x86_64-6.txz: Rebuilt.
l/ffmpeg-6.1.1-x86_64-5.txz: Rebuilt.
l/glibc-2.40-x86_64-1.txz: Upgraded.
This update fixes security issues:
nscd: Stack-based buffer overflow in netgroup cache.
nscd: Null pointer crash after notfound response.
nscd: netgroup cache may terminate daemon on memory allocation failure.
nscd: netgroup cache assumes NSS callback uses in-buffer strings.
These vulnerabilities were only present in the nscd binary.
For more information, see:
https://www.cve.org/CVERecord?id=CVE-2024-33599
https://www.cve.org/CVERecord?id=CVE-2024-33600
https://www.cve.org/CVERecord?id=CVE-2024-33601
https://www.cve.org/CVERecord?id=CVE-2024-33602
(* Security fix *)
l/glibc-i18n-2.40-x86_64-1.txz: Upgraded.
l/glibc-profile-2.40-x86_64-1.txz: Upgraded.
l/gst-plugins-good-1.24.5-x86_64-2.txz: Rebuilt.
l/libcdio-paranoia-10.2+2.0.2-x86_64-1.txz: Upgraded.
l/libclc-18.1.8-x86_64-3.txz: Rebuilt.
l/libproxy-0.5.8-x86_64-1.txz: Upgraded.
l/lz4-1.10.0-x86_64-1.txz: Upgraded.
l/poppler-24.07.0-x86_64-2.txz: Rebuilt.
l/python-importlib_metadata-8.1.0-x86_64-1.txz: Upgraded.
l/python-sphinx-7.4.7-x86_64-1.txz: Upgraded.
l/qt5-5.15.14_20240716_ae0c8451-x86_64-1.txz: Upgraded.
l/qt5-webkit-5.212.0_alpha4-x86_64-13.txz: Rebuilt.
l/qt6-6.7.2_20240610_3f005f1e-x86_64-3.txz: Rebuilt.
l/sip-6.8.6-x86_64-2.txz: Rebuilt.
l/spirv-llvm-translator-18.1.2-x86_64-2.txz: Rebuilt.
l/v4l-utils-1.28.0-x86_64-1.txz: Upgraded.
n/bind-9.18.28-x86_64-1.txz: Upgraded.
This update fixes security issues:
Remove SIG(0) support from named as a countermeasure for CVE-2024-1975.
qctx-zversion was not being cleared when it should have been leading to
an assertion failure if it needed to be reused.
An excessively large number of rrtypes per owner can slow down database query
processing, so a limit has been placed on the number of rrtypes that can be
stored per owner (node) in a cache or zone database. This is configured with
the new "max-rrtypes-per-name" option, and defaults to 100.
Excessively large rdatasets can slow down database query processing, so a
limit has been placed on the number of records that can be stored per
rdataset in a cache or zone database. This is configured with the new
"max-records-per-type" option, and defaults to 100.
Malicious DNS client that sends many queries over TCP but never reads
responses can cause server to respond slowly or not respond at all for other
clients.
For more information, see:
https://www.cve.org/CVERecord?id=CVE-2024-1975
https://www.cve.org/CVERecord?id=CVE-2024-4076
https://www.cve.org/CVERecord?id=CVE-2024-1737
https://www.cve.org/CVERecord?id=CVE-2024-0760
(* Security fix *)
n/fetchmail-6.4.39-x86_64-1.txz: Upgraded.
n/obexftp-0.24.2-x86_64-13.txz: Rebuilt.
n/pinentry-1.3.1-x86_64-2.txz: Rebuilt.
n/wpa_supplicant-2.11-x86_64-1.txz: Upgraded.
x/fcitx5-qt-5.1.6-x86_64-3.txz: Rebuilt.
x/ibus-m17n-1.4.30-x86_64-1.txz: Upgraded.
x/libdrm-2.4.122-x86_64-2.txz: Rebuilt.
x/marisa-0.2.6-x86_64-10.txz: Rebuilt.
x/mesa-24.1.4-x86_64-2.txz: Rebuilt.
x/vulkan-sdk-1.3.275.0-x86_64-3.txz: Rebuilt.
xap/audacious-4.4-x86_64-2.txz: Rebuilt.
xap/audacious-plugins-4.4-x86_64-2.txz: Rebuilt.
xap/mozilla-thunderbird-128.0.1esr-x86_64-1.txz: Upgraded.
This is a bugfix release.
For more information, see:
https://www.mozilla.org/en-US/thunderbird/128.0.1esr/releasenotes/
xap/xaos-4.3.2-x86_64-2.txz: Rebuilt.
extra/emacs-regular-build/emacs-29.4-x86_64-2_regular.txz: Rebuilt.
+--------------------------+
Fri Jul 19 20:08:29 UTC 2024 Fri Jul 19 20:08:29 UTC 2024
a/aaa_libraries-15.1-x86_64-32.txz: Rebuilt. a/aaa_libraries-15.1-x86_64-32.txz: Rebuilt.
Added: libgpg-error.so.0.37.0. Added: libgpg-error.so.0.37.0.

File diff suppressed because it is too large Load diff

View file

@ -493,7 +493,6 @@ gzip ./source/n/nc/nc.diff
gzip ./source/n/wpa_supplicant/patches/wpa_supplicant-quiet-scan-results-message.patch gzip ./source/n/wpa_supplicant/patches/wpa_supplicant-quiet-scan-results-message.patch
gzip ./source/n/wpa_supplicant/patches/wpa_supplicant-gui-qt4.patch gzip ./source/n/wpa_supplicant/patches/wpa_supplicant-gui-qt4.patch
gzip ./source/n/wpa_supplicant/patches/allow-tlsv1.patch gzip ./source/n/wpa_supplicant/patches/allow-tlsv1.patch
gzip ./source/n/wpa_supplicant/patches/8e6485a1bcb0baffdea9e55255a81270b768439c.patch
gzip ./source/n/wpa_supplicant/doinst.sh gzip ./source/n/wpa_supplicant/doinst.sh
gzip ./source/n/php/php-fpm.conf.diff gzip ./source/n/php/php-fpm.conf.diff
gzip ./source/n/php/doinst.sh gzip ./source/n/php/doinst.sh
@ -645,7 +644,6 @@ gzip ./source/t/xfig/xfig.fig.ad.diff
gzip ./source/l/glibc/glibc.ru_RU.CP1251.diff gzip ./source/l/glibc/glibc.ru_RU.CP1251.diff
gzip ./source/l/glibc/glibc.locale.no-archive.diff gzip ./source/l/glibc/glibc.locale.no-archive.diff
gzip ./source/l/glibc/patches/reenable_DT_HASH.patch gzip ./source/l/glibc/patches/reenable_DT_HASH.patch
gzip ./source/l/glibc/patches/CVE-2024-2961_glibc2.39.patch
gzip ./source/l/glibc/glibc-2.32.en_US.no.am.pm.date.format.diff gzip ./source/l/glibc/glibc-2.32.en_US.no.am.pm.date.format.diff
gzip ./source/l/fuse/fuse2-0007-util-ulockmgr_server.c-conditionally-define-closefro.patch gzip ./source/l/fuse/fuse2-0007-util-ulockmgr_server.c-conditionally-define-closefro.patch
gzip ./source/l/fuse/doinst.sh gzip ./source/l/fuse/doinst.sh
@ -757,6 +755,7 @@ gzip ./source/l/gdk-pixbuf2/doinst.sh
gzip ./source/l/qt5-webkit/webkit-offlineasm-warnings-ruby27.patch gzip ./source/l/qt5-webkit/webkit-offlineasm-warnings-ruby27.patch
gzip ./source/l/qt5-webkit/qt5-webkit.glib-2.68.0.diff gzip ./source/l/qt5-webkit/qt5-webkit.glib-2.68.0.diff
gzip ./source/l/qt5-webkit/icu68.patch gzip ./source/l/qt5-webkit/icu68.patch
gzip ./source/l/qt5-webkit/qtwebkit-fix-build-gcc14.patch
gzip ./source/l/qt5-webkit/qt5-webkit-bison-3.7.patch gzip ./source/l/qt5-webkit/qt5-webkit-bison-3.7.patch
gzip ./source/l/qt5-webkit/qt5-webkit-python-3.9.patch gzip ./source/l/qt5-webkit/qt5-webkit-python-3.9.patch
gzip ./source/l/qt5-webkit/qt5-webkit.gcc13.diff gzip ./source/l/qt5-webkit/qt5-webkit.gcc13.diff

View file

@ -25,12 +25,12 @@ cd $(dirname $0) ; CWD=$(pwd)
PKGNAM=libblockdev PKGNAM=libblockdev
VERSION=${VERSION:-$(echo $PKGNAM-*.tar.?z | rev | cut -f 3- -d . | rev | cut -f 2- -d -)} VERSION=${VERSION:-$(echo $PKGNAM-*.tar.?z | rev | cut -f 3- -d . | rev | cut -f 2- -d -)}
BUILD=${BUILD:-1} BUILD=${BUILD:-2}
# Automatically determine the architecture we're building on: # Automatically determine the architecture we're building on:
if [ -z "$ARCH" ]; then if [ -z "$ARCH" ]; then
case "$(uname -m)" in case "$(uname -m)" in
i?86) ARCH=i586 ;; i?86) ARCH=i686 ;;
arm*) readelf /usr/bin/file -A | grep -E -q "Tag_CPU.*[4,5]" && ARCH=arm || ARCH=armv7hl ;; arm*) readelf /usr/bin/file -A | grep -E -q "Tag_CPU.*[4,5]" && ARCH=arm || ARCH=armv7hl ;;
# Unless $ARCH is already set, use uname -m for all other archs: # Unless $ARCH is already set, use uname -m for all other archs:
*) ARCH=$(uname -m) ;; *) ARCH=$(uname -m) ;;
@ -52,13 +52,13 @@ if [ "$ARCH" = "i586" ]; then
SLKCFLAGS="-O2 -march=i586 -mtune=i686" SLKCFLAGS="-O2 -march=i586 -mtune=i686"
LIBDIRSUFFIX="" LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686" SLKCFLAGS="-O2 -march=pentium4 -mtune=generic"
LIBDIRSUFFIX="" LIBDIRSUFFIX=""
elif [ "$ARCH" = "s390" ]; then elif [ "$ARCH" = "s390" ]; then
SLKCFLAGS="-O2" SLKCFLAGS="-O2"
LIBDIRSUFFIX="" LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC" SLKCFLAGS="-O2 -march=x86-64 -mtune=generic -fPIC"
LIBDIRSUFFIX="64" LIBDIRSUFFIX="64"
elif [ "$ARCH" = "armv7hl" ]; then elif [ "$ARCH" = "armv7hl" ]; then
SLKCFLAGS="-O3 -march=armv7-a -mfpu=vfpv3-d16" SLKCFLAGS="-O3 -march=armv7-a -mfpu=vfpv3-d16"
@ -86,6 +86,10 @@ find . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \+ -exec chmod 644 {} \+
# Don't use -Werror. It fails the build with recent libext2fs.
find -name Makefile.am -exec sed -i "s/-Werror//" {} \;
find -name Makefile.in -exec sed -i "s/-Werror//" {} \;
# Configure, build, and install: # Configure, build, and install:
if [ ! -r configure ]; then if [ ! -r configure ]; then
if [ -x ./autogen.sh ]; then if [ -x ./autogen.sh ]; then

View file

@ -31,7 +31,7 @@ NUMJOBS=${NUMJOBS:-" -j$(expr $(nproc) + 1) "}
# Automatically determine the architecture we're building on: # Automatically determine the architecture we're building on:
if [ -z "$ARCH" ]; then if [ -z "$ARCH" ]; then
case "$( uname -m )" in case "$( uname -m )" in
i?86) export ARCH=i586 ;; i?86) export ARCH=i686 ;;
arm*) export ARCH=arm ;; arm*) export ARCH=arm ;;
# Unless $ARCH is already set, use uname -m for all other archs: # Unless $ARCH is already set, use uname -m for all other archs:
*) export ARCH=$( uname -m ) ;; *) export ARCH=$( uname -m ) ;;
@ -49,14 +49,14 @@ fi
TMP=${TMP:-/tmp} TMP=${TMP:-/tmp}
PKG=$TMP/package-xfsprogs PKG=$TMP/package-xfsprogs
if [ "$ARCH" = "i586" ]; then if [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i586 -mtune=i686" SLKCFLAGS="-O2 -march=pentium4 -mtune=generic"
LIBDIRSUFFIX="" LIBDIRSUFFIX=""
elif [ "$ARCH" = "s390" ]; then elif [ "$ARCH" = "s390" ]; then
SLKCFLAGS="-O2" SLKCFLAGS="-O2"
LIBDIRSUFFIX="" LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC" SLKCFLAGS="-O2 -march=x86-64 -mtune=generic -fPIC"
LIBDIRSUFFIX="64" LIBDIRSUFFIX="64"
else else
SLKCFLAGS="-O2" SLKCFLAGS="-O2"

View file

@ -26,14 +26,14 @@ cd $(dirname $0) ; CWD=$(pwd)
PKGNAM=rpm PKGNAM=rpm
VERSION=${VERSION:-$(echo $PKGNAM-*.tar.?z* | rev | cut -f 3- -d . | cut -f 1 -d - | rev)} VERSION=${VERSION:-$(echo $PKGNAM-*.tar.?z* | rev | cut -f 3- -d . | cut -f 1 -d - | rev)}
BUILD=${BUILD:-2} BUILD=${BUILD:-3}
NUMJOBS=${NUMJOBS:-" -j$(expr $(nproc) + 1) "} NUMJOBS=${NUMJOBS:-" -j$(expr $(nproc) + 1) "}
# Automatically determine the architecture we're building on: # Automatically determine the architecture we're building on:
if [ -z "$ARCH" ]; then if [ -z "$ARCH" ]; then
case "$( uname -m )" in case "$( uname -m )" in
i?86) export ARCH=i586 ;; i?86) export ARCH=i686 ;;
arm*) export ARCH=arm ;; arm*) export ARCH=arm ;;
# Unless $ARCH is already set, use uname -m for all other archs: # Unless $ARCH is already set, use uname -m for all other archs:
*) export ARCH=$( uname -m ) ;; *) export ARCH=$( uname -m ) ;;
@ -52,10 +52,10 @@ if [ "$ARCH" = "i586" ]; then
SLKCFLAGS="-O2 -march=i586 -mtune=i686" SLKCFLAGS="-O2 -march=i586 -mtune=i686"
LIBDIRSUFFIX="" LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686" SLKCFLAGS="-O2 -march=pentium4 -mtune=generic"
LIBDIRSUFFIX="" LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC" SLKCFLAGS="-O2 -march=x86-64 -mtune=generic -fPIC"
LIBDIRSUFFIX="64" LIBDIRSUFFIX="64"
elif [ "$ARCH" = "arm" ]; then elif [ "$ARCH" = "arm" ]; then
SLKCFLAGS="-O2 -march=armv4 -mtune=xscale" SLKCFLAGS="-O2 -march=armv4 -mtune=xscale"

View file

@ -31,6 +31,17 @@ One or more errors occurred while slackpkg was running:
} }
trap 'cleanup' 2 14 15 # trap CTRL+C and kill trap 'cleanup' 2 14 15 # trap CTRL+C and kill
# Define which version of gnupg to use. We'll prefer gpg1 since it has fewer
# dependencies, then gpg2, and if we don't find that we'll blindly set this
# to gpg and deal with it later.
if which gpg1 > /dev/null 2> /dev/null ; then
GPG=gpg1
elif which gpg2 > /dev/null 2> /dev/null ; then
GPG=gpg2
else
GPG=gpg
fi
# This create an spinning bar # This create an spinning bar
spinning() { spinning() {
local WAITFILE local WAITFILE
@ -371,7 +382,7 @@ as slackpkg cannot function without awk.\n"
# Check if gpg is enabled but no GPG command are found. # Check if gpg is enabled but no GPG command are found.
# #
if ! [ "$(which gpg2 2>/dev/null)" ] && [ "${CHECKGPG}" = "on" ]; then if ! [ "$(which $GPG 2>/dev/null)" ] && [ "${CHECKGPG}" = "on" ]; then
CHECKGPG=off CHECKGPG=off
echo -e "\n\ echo -e "\n\
gpg package not found! Please disable GPG in ${CONF}/slackpkg.conf or install\n\ gpg package not found! Please disable GPG in ${CONF}/slackpkg.conf or install\n\
@ -384,7 +395,7 @@ file distributed with slackpkg.\n"
# Check if the Slackware GPG key are found in the system # Check if the Slackware GPG key are found in the system
# #
GPGFIRSTTIME="$(gpg2 --list-keys \"$SLACKKEY\" 2>/dev/null \ GPGFIRSTTIME="$($GPG --list-keys \"$SLACKKEY\" 2>/dev/null \
| grep -c "$SLACKKEY")" | grep -c "$SLACKKEY")"
if [ "$GPGFIRSTTIME" = "0" ] && \ if [ "$GPGFIRSTTIME" = "0" ] && \
[ "$CMD" != "search" ] && \ [ "$CMD" != "search" ] && \
@ -546,7 +557,7 @@ function checkmd5() {
# Verify the GPG signature of files/packages # Verify the GPG signature of files/packages
# #
function checkgpg() { function checkgpg() {
gpg2 --verify ${1}.asc ${1} 2>/dev/null && echo "1" || echo "0" $GPG --verify ${1}.asc ${1} 2>/dev/null && echo "1" || echo "0"
} }
# Fetch $SLACKKEY from a trusted source # Fetch $SLACKKEY from a trusted source
@ -585,8 +596,8 @@ Do you want to import the GPG key from this source? (YES|NO)\n"
# Import $SLACKKEY # Import $SLACKKEY
function import_gpg_key() { function import_gpg_key() {
mkdir -p ~/.gnupg mkdir -p ~/.gnupg
gpg2 --yes --batch --delete-key "$SLACKKEY" &>/dev/null $GPG --yes --batch --delete-key "$SLACKKEY" &>/dev/null
gpg2 --import $TMPDIR/gpgkey &>/dev/null && \ $GPG --import $TMPDIR/gpgkey &>/dev/null && \
echo -e "\t\t\tSlackware Linux Project's GPG key added" echo -e "\t\t\tSlackware Linux Project's GPG key added"
} }

View file

@ -25,7 +25,7 @@ cd $(dirname $0) ; CWD=$(pwd)
PKGNAM=slackpkg PKGNAM=slackpkg
VERSION=${VERSION:-15.0.10} VERSION=${VERSION:-15.0.10}
ARCH="noarch" ARCH="noarch"
BUILD=${BUILD:-3} BUILD=${BUILD:-4}
# If the variable PRINT_PACKAGE_NAME is set, then this script will report what # If the variable PRINT_PACKAGE_NAME is set, then this script will report what
# the name of the created package would be, and then exit. This information # the name of the created package would be, and then exit. This information

View file

@ -26,13 +26,13 @@ cd $(dirname $0) ; CWD=$(pwd)
PKGNAM=binutils PKGNAM=binutils
VERSION=${VERSION:-$(echo $PKGNAM-*.tar.?z | rev | cut -f 3- -d . | cut -f 1 -d - | rev)} VERSION=${VERSION:-$(echo $PKGNAM-*.tar.?z | rev | cut -f 3- -d . | cut -f 1 -d - | rev)}
BUILD=${BUILD:-2} BUILD=${BUILD:-3}
# Automatically determine the architecture we're building on: # Automatically determine the architecture we're building on:
MARCH=$( uname -m ) MARCH=$( uname -m )
if [ -z "$ARCH" ]; then if [ -z "$ARCH" ]; then
case "$MARCH" in case "$MARCH" in
i?86) export ARCH=i586 ;; i?86) export ARCH=i686 ;;
armv7hl) export ARCH=$MARCH ;; armv7hl) export ARCH=$MARCH ;;
arm*) export ARCH=arm ;; arm*) export ARCH=arm ;;
# Unless $ARCH is already set, use uname -m for all other archs: # Unless $ARCH is already set, use uname -m for all other archs:
@ -59,7 +59,7 @@ if [ "$ARCH" = "i586" ]; then
WERROR="--enable-werror=no" WERROR="--enable-werror=no"
LIBDIRSUFFIX="" LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686" SLKCFLAGS="-O2 -march=pentium4 -mtune=generic"
# The config option below is currently needed to compile on x86: # The config option below is currently needed to compile on x86:
WERROR="--enable-werror=no" WERROR="--enable-werror=no"
LIBDIRSUFFIX="" LIBDIRSUFFIX=""
@ -67,7 +67,7 @@ elif [ "$ARCH" = "s390" ]; then
SLKCFLAGS="-O2" SLKCFLAGS="-O2"
LIBDIRSUFFIX="" LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC" SLKCFLAGS="-O2 -march=x86-64 -mtune=generic -fPIC"
LIBDIRSUFFIX="64" LIBDIRSUFFIX="64"
elif [ "$ARCH" = "armv7hl" ]; then elif [ "$ARCH" = "armv7hl" ]; then
SLKCFLAGS="-O2 -march=armv7-a -mfpu=vfpv3-d16" SLKCFLAGS="-O2 -march=armv7-a -mfpu=vfpv3-d16"

View file

@ -1,6 +1,6 @@
#!/bin/bash #!/bin/bash
# Copyright 2022 Patrick J. Volkerding, Sebeka, MN, USA # Copyright 2022, 2024 Patrick J. Volkerding, Sebeka, MN, USA
# Copyright 2022 Heinz Wiesinger, Amsterdam, The Netherlands # Copyright 2022 Heinz Wiesinger, Amsterdam, The Netherlands
# All rights reserved. # All rights reserved.
# #
@ -25,7 +25,7 @@ cd $(dirname $0) ; CWD=$(pwd)
PKGNAM=cargo-vendor-filterer PKGNAM=cargo-vendor-filterer
VERSION=${VERSION:-$(echo $PKGNAM-*.tar.?z | rev | cut -f 3- -d . | cut -f 1 -d - | rev)} VERSION=${VERSION:-$(echo $PKGNAM-*.tar.?z | rev | cut -f 3- -d . | cut -f 1 -d - | rev)}
BUILD=${BUILD:-1} BUILD=${BUILD:-2}
# Automatically determine the architecture we're building on: # Automatically determine the architecture we're building on:
if [ -z "$ARCH" ]; then if [ -z "$ARCH" ]; then
@ -48,17 +48,14 @@ fi
NUMJOBS=${NUMJOBS:-" -j$(expr $(nproc) + 1) "} NUMJOBS=${NUMJOBS:-" -j$(expr $(nproc) + 1) "}
if [ "$ARCH" = "i586" ]; then if [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i586 -mtune=i686" SLKCFLAGS="-O2 -march=pentium4 -mtune=generic"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686"
LIBDIRSUFFIX="" LIBDIRSUFFIX=""
elif [ "$ARCH" = "s390" ]; then elif [ "$ARCH" = "s390" ]; then
SLKCFLAGS="-O2" SLKCFLAGS="-O2"
LIBDIRSUFFIX="" LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC" SLKCFLAGS="-O2 -march=x86-64 -mtune=generic -fPIC"
LIBDIRSUFFIX="64" LIBDIRSUFFIX="64"
elif [ "$ARCH" = "armv7hl" ]; then elif [ "$ARCH" = "armv7hl" ]; then
SLKCFLAGS="-O3 -march=armv7-a -mfpu=vfpv3-d16" SLKCFLAGS="-O3 -march=armv7-a -mfpu=vfpv3-d16"

View file

@ -25,7 +25,7 @@ cd $(dirname $0) ; CWD=$(pwd)
PKGNAM=cbindgen PKGNAM=cbindgen
VERSION=${VERSION:-$(echo $PKGNAM-*.tar.?z | rev | cut -f 3- -d . | cut -f 1 -d - | rev)} VERSION=${VERSION:-$(echo $PKGNAM-*.tar.?z | rev | cut -f 3- -d . | cut -f 1 -d - | rev)}
BUILD=${BUILD:-1} BUILD=${BUILD:-2}
# Automatically determine the architecture we're building on: # Automatically determine the architecture we're building on:
if [ -z "$ARCH" ]; then if [ -z "$ARCH" ]; then
@ -48,17 +48,14 @@ fi
NUMJOBS=${NUMJOBS:-" -j$(expr $(nproc) + 1) "} NUMJOBS=${NUMJOBS:-" -j$(expr $(nproc) + 1) "}
if [ "$ARCH" = "i586" ]; then if [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i586 -mtune=i686" SLKCFLAGS="-O2 -march=pentium4 -mtune=generic"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686"
LIBDIRSUFFIX="" LIBDIRSUFFIX=""
elif [ "$ARCH" = "s390" ]; then elif [ "$ARCH" = "s390" ]; then
SLKCFLAGS="-O2" SLKCFLAGS="-O2"
LIBDIRSUFFIX="" LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC" SLKCFLAGS="-O2 -march=x86-64 -mtune=generic -fPIC"
LIBDIRSUFFIX="64" LIBDIRSUFFIX="64"
elif [ "$ARCH" = "armv7hl" ]; then elif [ "$ARCH" = "armv7hl" ]; then
SLKCFLAGS="-O3 -march=armv7-a -mfpu=vfpv3-d16" SLKCFLAGS="-O3 -march=armv7-a -mfpu=vfpv3-d16"

View file

@ -29,13 +29,30 @@ BUILD=${BUILD:-1}
# Automatically determine the architecture we're building on: # Automatically determine the architecture we're building on:
if [ -z "$ARCH" ]; then if [ -z "$ARCH" ]; then
case "$( uname -m )" in case "$( uname -m )" in
i?86) export ARCH=i586 ;; i?86) export ARCH=i686 ;;
arm*) export ARCH=arm ;; arm*) export ARCH=arm ;;
# Unless $ARCH is already set, use uname -m for all other archs: # Unless $ARCH is already set, use uname -m for all other archs:
*) export ARCH=$( uname -m ) ;; *) export ARCH=$( uname -m ) ;;
esac esac
fi fi
if [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=pentium4 -mtune=generic"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "s390" ]; then
SLKCFLAGS="-O2"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -march=x86-64 -mtune=generic -fPIC"
LIBDIRSUFFIX="64"
elif [ "$ARCH" = "armv7hl" ]; then
SLKCFLAGS="-O3 -march=armv7-a -mfpu=vfpv3-d16"
LIBDIRSUFFIX=""
else
SLKCFLAGS="-O2"
LIBDIRSUFFIX=""
fi
# If the variable PRINT_PACKAGE_NAME is set, then this script will report what # If the variable PRINT_PACKAGE_NAME is set, then this script will report what
# the name of the created package would be, and then exit. This information # the name of the created package would be, and then exit. This information
# could be useful to other scripts. # could be useful to other scripts.

View file

@ -24,7 +24,7 @@ cd $(dirname $0) ; CWD=$(pwd)
PKGNAM=cmake PKGNAM=cmake
VERSION=${VERSION:-$(echo $PKGNAM-*.tar.?z | rev | cut -f 3- -d . | cut -f 1 -d - | rev)} VERSION=${VERSION:-$(echo $PKGNAM-*.tar.?z | rev | cut -f 3- -d . | cut -f 1 -d - | rev)}
BUILD=${BUILD:-1} BUILD=${BUILD:-2}
# Automatically determine the architecture we're building on: # Automatically determine the architecture we're building on:
if [ -z "$ARCH" ]; then if [ -z "$ARCH" ]; then
@ -49,12 +49,11 @@ NUMJOBS=${NUMJOBS:-" -j$(expr $(nproc) + 1) "}
if [ "$ARCH" = "i586" ]; then if [ "$ARCH" = "i586" ]; then
SLKCFLAGS="-O2 -m32 -march=i586 -mtune=i686" SLKCFLAGS="-O2 -m32 -march=i586 -mtune=i686"
elif [ "$ARCH" = "i686" ]; then elif [ "$ARCH" = "i686" ]; then
# Looks like this is baseline now... maybe time to bump everything to at least i686 SLKCFLAGS="-O2 -march=pentium4 -mtune=generic"
SLKCFLAGS="-O2 -march=i686 -mtune=i686 -mfpmath=sse -msse -msse2 -fcf-protection=none"
elif [ "$ARCH" = "s390" ]; then elif [ "$ARCH" = "s390" ]; then
SLKCFLAGS="-O2" SLKCFLAGS="-O2"
elif [ "$ARCH" = "x86_64" ]; then elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC" SLKCFLAGS="-O2 -march=x86-64 -mtune=generic -fPIC"
else else
SLKCFLAGS="-O2" SLKCFLAGS="-O2"
fi fi

View file

@ -110,7 +110,6 @@ mkdir -p $PKG//usr/lib/distcc
ln -sf ../../bin/distcc gcc-$GCCVER ln -sf ../../bin/distcc gcc-$GCCVER
ln -sf ../../bin/distcc $ARCH-slackware-linux-g++ ln -sf ../../bin/distcc $ARCH-slackware-linux-g++
ln -sf ../../bin/distcc $ARCH-slackware-linux-gcc ln -sf ../../bin/distcc $ARCH-slackware-linux-gcc
ln -sf ../../bin/distcc $ARCH-slackware-linux-gcc-$GCCVER
) )
# If needed, make a symlink from /usr/lib${LIBDIRSUFFIX}/distcc -> /usr/lib/distcc: # If needed, make a symlink from /usr/lib${LIBDIRSUFFIX}/distcc -> /usr/lib/distcc:

View file

@ -57,7 +57,7 @@ cd $(dirname $0) ; CWD=$(pwd)
PKGNAM=gcc PKGNAM=gcc
SRCVER=${VERSION:-$(echo $PKGNAM-*.tar.?z | rev | cut -f 3- -d . | cut -f 1 -d - | rev)} SRCVER=${VERSION:-$(echo $PKGNAM-*.tar.?z | rev | cut -f 3- -d . | cut -f 1 -d - | rev)}
VERSION=$(echo $SRCVER | cut -f 1 -d _) VERSION=$(echo $SRCVER | cut -f 1 -d _)
BUILD=${BUILD:-1} BUILD=${BUILD:-2}
# How many jobs to run in parallel: # How many jobs to run in parallel:
NUMJOBS=${NUMJOBS:-" -j$(expr $(nproc) + 1) "} NUMJOBS=${NUMJOBS:-" -j$(expr $(nproc) + 1) "}
@ -65,7 +65,7 @@ NUMJOBS=${NUMJOBS:-" -j$(expr $(nproc) + 1) "}
# Automatically determine the architecture we're building on: # Automatically determine the architecture we're building on:
if [ -z "$ARCH" ]; then if [ -z "$ARCH" ]; then
case "$(uname -m)" in case "$(uname -m)" in
i?86) ARCH=i586 ;; i?86) ARCH=i686 ;;
arm*) readelf /usr/bin/file -A | grep -E -q "Tag_CPU.*[4,5]" && ARCH=arm || ARCH=armv7hl ;; arm*) readelf /usr/bin/file -A | grep -E -q "Tag_CPU.*[4,5]" && ARCH=arm || ARCH=armv7hl ;;
# Unless $ARCH is already set, use uname -m for all other archs: # Unless $ARCH is already set, use uname -m for all other archs:
*) ARCH=$(uname -m) ;; *) ARCH=$(uname -m) ;;
@ -101,7 +101,7 @@ elif [ "$ARCH" = "i586" ]; then
LIBDIRSUFFIX="" LIBDIRSUFFIX=""
LIB_ARCH=i386 LIB_ARCH=i386
elif [ "$ARCH" = "i686" ]; then elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686" SLKCFLAGS="-O2 -march=pentium4 -mtune=generic"
LIBDIRSUFFIX="" LIBDIRSUFFIX=""
LIB_ARCH=i386 LIB_ARCH=i386
elif [ "$ARCH" = "s390" ]; then elif [ "$ARCH" = "s390" ]; then
@ -109,7 +109,7 @@ elif [ "$ARCH" = "s390" ]; then
LIBDIRSUFFIX="" LIBDIRSUFFIX=""
LIB_ARCH=s390 LIB_ARCH=s390
elif [ "$ARCH" = "x86_64" ]; then elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC" SLKCFLAGS="-O2 -march=x86-64 -mtune=generic -fPIC"
LIBDIRSUFFIX="64" LIBDIRSUFFIX="64"
LIB_ARCH=amd64 LIB_ARCH=amd64
elif [ "$ARCH" = "armv7hl" ]; then elif [ "$ARCH" = "armv7hl" ]; then
@ -522,6 +522,10 @@ rm -f $PKG1/{,usr/}lib${LIBDIRSUFFIX}/*.la
mv $PKG1/usr/share/gdb usr/share mv $PKG1/usr/share/gdb usr/share
mkdir -p usr/share/gcc-$VERSION/python mkdir -p usr/share/gcc-$VERSION/python
mv $PKG1/usr/share/gcc-$VERSION/python/libstdcxx usr/share/gcc-$VERSION/python mv $PKG1/usr/share/gcc-$VERSION/python/libstdcxx usr/share/gcc-$VERSION/python
if [ -d $PKG2/usr/include/c++/$VERSION/i686-slackware-linux -a ! -e $PKG2/usr/include/c++/$VERSION/i586-slackware-linux ]; then
# This symlink will ease the headaches associated with changing our target:
ln -sf i686-slackware-linux $PKG2/usr/include/c++/$VERSION/i586-slackware-linux
fi
) )
# gcc-gfortran: # gcc-gfortran:

View file

@ -34,7 +34,7 @@ PKGNAM=libgccjit
SRCNAM=gcc SRCNAM=gcc
SRCVER=${VERSION:-$(echo $SRCNAM-*.tar.?z | rev | cut -f 3- -d . | cut -f 1 -d - | rev)} SRCVER=${VERSION:-$(echo $SRCNAM-*.tar.?z | rev | cut -f 3- -d . | cut -f 1 -d - | rev)}
VERSION=$(echo $SRCVER | cut -f 1 -d _) VERSION=$(echo $SRCVER | cut -f 1 -d _)
BUILD=${BUILD:-1} BUILD=${BUILD:-2}
# How many jobs to run in parallel: # How many jobs to run in parallel:
NUMJOBS=${NUMJOBS:-" -j$(expr $(nproc) + 1) "} NUMJOBS=${NUMJOBS:-" -j$(expr $(nproc) + 1) "}
@ -42,7 +42,7 @@ NUMJOBS=${NUMJOBS:-" -j$(expr $(nproc) + 1) "}
# Automatically determine the architecture we're building on: # Automatically determine the architecture we're building on:
if [ -z "$ARCH" ]; then if [ -z "$ARCH" ]; then
case "$(uname -m)" in case "$(uname -m)" in
i?86) ARCH=i586 ;; i?86) ARCH=i686 ;;
arm*) readelf /usr/bin/file -A | grep -E -q "Tag_CPU.*[4,5]" && ARCH=arm || ARCH=armv7hl ;; arm*) readelf /usr/bin/file -A | grep -E -q "Tag_CPU.*[4,5]" && ARCH=arm || ARCH=armv7hl ;;
# Unless $ARCH is already set, use uname -m for all other archs: # Unless $ARCH is already set, use uname -m for all other archs:
*) ARCH=$(uname -m) ;; *) ARCH=$(uname -m) ;;
@ -71,7 +71,7 @@ elif [ "$ARCH" = "i586" ]; then
LIBDIRSUFFIX="" LIBDIRSUFFIX=""
LIB_ARCH=i386 LIB_ARCH=i386
elif [ "$ARCH" = "i686" ]; then elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686" SLKCFLAGS="-O2 -march=pentium4 -mtune=generic"
LIBDIRSUFFIX="" LIBDIRSUFFIX=""
LIB_ARCH=i386 LIB_ARCH=i386
elif [ "$ARCH" = "s390" ]; then elif [ "$ARCH" = "s390" ]; then
@ -79,7 +79,7 @@ elif [ "$ARCH" = "s390" ]; then
LIBDIRSUFFIX="" LIBDIRSUFFIX=""
LIB_ARCH=s390 LIB_ARCH=s390
elif [ "$ARCH" = "x86_64" ]; then elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC" SLKCFLAGS="-O2 -march=x86-64 -mtune=generic -fPIC"
LIBDIRSUFFIX="64" LIBDIRSUFFIX="64"
LIB_ARCH=amd64 LIB_ARCH=amd64
elif [ "$ARCH" = "armv7hl" ]; then elif [ "$ARCH" = "armv7hl" ]; then

View file

@ -24,14 +24,14 @@ cd $(dirname $0) ; CWD=$(pwd)
PKGNAM=libtool PKGNAM=libtool
VERSION=${VERSION:-$(echo libtool-*.tar.xz | rev | cut -f 3- -d . | cut -f 1 -d - | rev)} VERSION=${VERSION:-$(echo libtool-*.tar.xz | rev | cut -f 3- -d . | cut -f 1 -d - | rev)}
BUILD=${BUILD:-7} BUILD=${BUILD:-8}
NUMJOBS=${NUMJOBS:-" -j$(expr $(nproc) + 1) "} NUMJOBS=${NUMJOBS:-" -j$(expr $(nproc) + 1) "}
# Automatically determine the architecture we're building on: # Automatically determine the architecture we're building on:
if [ -z "$ARCH" ]; then if [ -z "$ARCH" ]; then
case "$( uname -m )" in case "$( uname -m )" in
i?86) export ARCH=i586 ;; i?86) export ARCH=i686 ;;
arm*) export ARCH=arm ;; arm*) export ARCH=arm ;;
# Unless $ARCH is already set, use uname -m for all other archs: # Unless $ARCH is already set, use uname -m for all other archs:
*) export ARCH=$( uname -m ) ;; *) export ARCH=$( uname -m ) ;;
@ -53,10 +53,10 @@ if [ "$ARCH" = "i586" ]; then
SLKCFLAGS="-O2 -march=i586 -mtune=i686" SLKCFLAGS="-O2 -march=i586 -mtune=i686"
LIBDIRSUFFIX="" LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686" SLKCFLAGS="-O2 -march=pentium4 -mtune=generic"
LIBDIRSUFFIX="" LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC" SLKCFLAGS="-O2 -march=x86-64 -mtune=generic -fPIC"
LIBDIRSUFFIX="64" LIBDIRSUFFIX="64"
else else
SLKCFLAGS="-O2" SLKCFLAGS="-O2"

View file

@ -27,7 +27,7 @@ cd $(dirname $0) ; CWD=$(pwd)
PKGNAM=libclc PKGNAM=libclc
VERSION=${VERSION:-$(echo llvmorg-*.tar.?z | rev | cut -f 3- -d . | cut -f 1 -d - | rev)} VERSION=${VERSION:-$(echo llvmorg-*.tar.?z | rev | cut -f 3- -d . | cut -f 1 -d - | rev)}
BUILD=${BUILD:-2} BUILD=${BUILD:-3}
NUMJOBS=${NUMJOBS:-" -j$(expr $(nproc) + 1) "} NUMJOBS=${NUMJOBS:-" -j$(expr $(nproc) + 1) "}
@ -35,7 +35,7 @@ NUMJOBS=${NUMJOBS:-" -j$(expr $(nproc) + 1) "}
MARCH=$( uname -m ) MARCH=$( uname -m )
if [ -z "$ARCH" ]; then if [ -z "$ARCH" ]; then
case "$MARCH" in case "$MARCH" in
i?86) export ARCH=i586 ;; i?86) export ARCH=i686 ;;
armv7hl) export ARCH=$MARCH ;; armv7hl) export ARCH=$MARCH ;;
arm*) export ARCH=arm ;; arm*) export ARCH=arm ;;
# Unless $ARCH is already set, use uname -m for all other archs: # Unless $ARCH is already set, use uname -m for all other archs:
@ -54,11 +54,14 @@ fi
if [ "$ARCH" = "i586" ]; then if [ "$ARCH" = "i586" ]; then
SLKCFLAGS="-O2 -march=i586 -mtune=i686" SLKCFLAGS="-O2 -march=i586 -mtune=i686"
LIBDIRSUFFIX="" LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=pentium4 -mtune=generic"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "s390" ]; then elif [ "$ARCH" = "s390" ]; then
SLKCFLAGS="-O2" SLKCFLAGS="-O2"
LIBDIRSUFFIX="" LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC" SLKCFLAGS="-O2 -march=x86-64 -mtune=generic -fPIC"
LIBDIRSUFFIX="64" LIBDIRSUFFIX="64"
elif [ "$ARCH" = "armv7hl" ]; then elif [ "$ARCH" = "armv7hl" ]; then
SLKCFLAGS="-O2 -march=armv7-a -mfpu=vfpv3-d16" SLKCFLAGS="-O2 -march=armv7-a -mfpu=vfpv3-d16"

View file

@ -29,7 +29,7 @@ BUILD=${BUILD:-1}
# Automatically determine the architecture we're building on: # Automatically determine the architecture we're building on:
if [ -z "$ARCH" ]; then if [ -z "$ARCH" ]; then
case "$(uname -m)" in case "$(uname -m)" in
i?86) ARCH=i586 ;; i?86) ARCH=i686 ;;
arm*) readelf /usr/bin/file -A | grep -E -q "Tag_CPU.*[4,5]" && ARCH=arm || ARCH=armv7hl ;; arm*) readelf /usr/bin/file -A | grep -E -q "Tag_CPU.*[4,5]" && ARCH=arm || ARCH=armv7hl ;;
# Unless $ARCH is already set, use uname -m for all other archs: # Unless $ARCH is already set, use uname -m for all other archs:
*) ARCH=$(uname -m) ;; *) ARCH=$(uname -m) ;;
@ -43,13 +43,13 @@ if [ "$ARCH" = "i586" ]; then
SLKCFLAGS="-O2 -march=i586 -mtune=i686" SLKCFLAGS="-O2 -march=i586 -mtune=i686"
LIBDIRSUFFIX="" LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686" SLKCFLAGS="-O2 -march=pentium4 -mtune=generic"
LIBDIRSUFFIX="" LIBDIRSUFFIX=""
elif [ "$ARCH" = "s390" ]; then elif [ "$ARCH" = "s390" ]; then
SLKCFLAGS="-O2" SLKCFLAGS="-O2"
LIBDIRSUFFIX="" LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC" SLKCFLAGS="-O2 -march=x86-64 -mtune=generic -fPIC"
LIBDIRSUFFIX="64" LIBDIRSUFFIX="64"
elif [ "$ARCH" = "armv7hl" ]; then elif [ "$ARCH" = "armv7hl" ]; then
SLKCFLAGS="-O3 -march=armv7-a -mfpu=vfpv3-d16" SLKCFLAGS="-O3 -march=armv7-a -mfpu=vfpv3-d16"

View file

@ -1,6 +1,6 @@
#!/bin/bash #!/bin/bash
# Copyright 2008, 2009, 2010, 2017, 2018 Patrick J. Volkerding, Sebeka, Minnesota, USA # Copyright 2008, 2009, 2010, 2017, 2018, 2024 Patrick J. Volkerding, Sebeka, Minnesota, USA
# All rights reserved. # All rights reserved.
# #
# Redistribution and use of this script, with or without modification, is # Redistribution and use of this script, with or without modification, is
@ -24,12 +24,12 @@ cd $(dirname $0) ; CWD=$(pwd)
PKGNAM=pkg-config PKGNAM=pkg-config
VERSION=${VERSION:-$(echo $PKGNAM-*.tar.?z* | rev | cut -f 3- -d . | cut -f 1 -d - | rev)} VERSION=${VERSION:-$(echo $PKGNAM-*.tar.?z* | rev | cut -f 3- -d . | cut -f 1 -d - | rev)}
BUILD=${BUILD:-4} BUILD=${BUILD:-5}
# Automatically determine the architecture we're building on: # Automatically determine the architecture we're building on:
if [ -z "$ARCH" ]; then if [ -z "$ARCH" ]; then
case "$( uname -m )" in case "$( uname -m )" in
i?86) export ARCH=i586 ;; i?86) export ARCH=i686 ;;
arm*) export ARCH=arm ;; arm*) export ARCH=arm ;;
# Unless $ARCH is already set, use uname -m for all other archs: # Unless $ARCH is already set, use uname -m for all other archs:
*) export ARCH=$( uname -m ) ;; *) export ARCH=$( uname -m ) ;;
@ -54,11 +54,14 @@ mkdir -p $TMP $PKG/usr
if [ "$ARCH" = "i586" ]; then if [ "$ARCH" = "i586" ]; then
SLKCFLAGS="-O2 -march=i586 -mtune=i686" SLKCFLAGS="-O2 -march=i586 -mtune=i686"
LIBDIRSUFFIX="" LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=pentium4 -mtune=generic"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "s390" ]; then elif [ "$ARCH" = "s390" ]; then
SLKCFLAGS="-O2" SLKCFLAGS="-O2"
LIBDIRSUFFIX="" LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC" SLKCFLAGS="-O2 -march=x86-64 -mtune=generic -fPIC"
LIBDIRSUFFIX="64" LIBDIRSUFFIX="64"
elif [ "$ARCH" = "arm" ]; then elif [ "$ARCH" = "arm" ]; then
SLKCFLAGS="-O2 -march=armv4 -mtune=xscale" SLKCFLAGS="-O2 -march=armv4 -mtune=xscale"

View file

@ -31,7 +31,7 @@ SRCNAM=setuptools
if [ -z "$ARCH" ]; then if [ -z "$ARCH" ]; then
case "$( uname -m )" in case "$( uname -m )" in
i?86) ARCH=i586 ;; i?86) ARCH=i686 ;;
arm*) ARCH=arm ;; arm*) ARCH=arm ;;
*) ARCH=$( uname -m ) ;; *) ARCH=$( uname -m ) ;;
esac esac

View file

@ -32,12 +32,12 @@ else
VERSION=$(echo $PKGNAM-*.tar.?z | rev | cut -f 3- -d . | cut -f 1 -d - | rev) VERSION=$(echo $PKGNAM-*.tar.?z | rev | cut -f 3- -d . | cut -f 1 -d - | rev)
fi fi
BUILD=${BUILD:-1} BUILD=${BUILD:-2}
# Automatically determine the architecture we're building on: # Automatically determine the architecture we're building on:
if [ -z "$ARCH" ]; then if [ -z "$ARCH" ]; then
case "$( uname -m )" in case "$( uname -m )" in
i?86) export ARCH=i586 ;; i?86) export ARCH=i686 ;;
arm*) export ARCH=arm ;; arm*) export ARCH=arm ;;
# Unless $ARCH is already set, use uname -m for all other archs: # Unless $ARCH is already set, use uname -m for all other archs:
*) export ARCH=$( uname -m ) ;; *) export ARCH=$( uname -m ) ;;
@ -57,22 +57,17 @@ NUMJOBS=${NUMJOBS:-" -j$(expr $(nproc) + 1) "}
TMP=${TMP:-/tmp} TMP=${TMP:-/tmp}
PKG=$TMP/package-ruby PKG=$TMP/package-ruby
if [ "$ARCH" = "i586" ]; then if [ "$ARCH" = "i686" ]; then
# -O3 works around a compile failure due to a miniruby segfault SLKCFLAGS="-O2 -march=pentium4 -mtune=generic"
# when trying to build ruby with gcc-4.4 or newer. Evidently OPTFLAGS=-O2
# -O0 also works, but...
# other distributions also use -fno-strict-aliasing which helps stability
SLKCFLAGS="-march=i586 -mtune=i686 -O3 -fno-strict-aliasing"
OPTFLAGS=-O3
LIBDIRSUFFIX="" LIBDIRSUFFIX=""
elif [ "$ARCH" = "s390" ]; then elif [ "$ARCH" = "s390" ]; then
# Unknown if s390 also needs -O3. Check to see if it compiles with -O2. SLKCFLAGS="-O2"
SLKCFLAGS="-O3 -fno-strict-aliasing" OPTFLAGS=-O2
OPTFLAGS=-O3
LIBDIRSUFFIX="" LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O3 -fPIC -fno-strict-aliasing" SLKCFLAGS="-O2 -march=x86-64 -mtune=generic -fPIC"
OPTFLAGS=-O3 OPTFLAGS=-O2
LIBDIRSUFFIX="64" LIBDIRSUFFIX="64"
fi fi

View file

@ -25,7 +25,7 @@ cd $(dirname $0) ; CWD=$(pwd)
PKGNAM=rust-bindgen PKGNAM=rust-bindgen
VERSION=${VERSION:-$(echo $PKGNAM-*.tar.?z | rev | cut -f 3- -d . | cut -f 1 -d - | rev)} VERSION=${VERSION:-$(echo $PKGNAM-*.tar.?z | rev | cut -f 3- -d . | cut -f 1 -d - | rev)}
BUILD=${BUILD:-1} BUILD=${BUILD:-2}
# Automatically determine the architecture we're building on: # Automatically determine the architecture we're building on:
if [ -z "$ARCH" ]; then if [ -z "$ARCH" ]; then
@ -48,17 +48,14 @@ fi
NUMJOBS=${NUMJOBS:-" -j$(expr $(nproc) + 1) "} NUMJOBS=${NUMJOBS:-" -j$(expr $(nproc) + 1) "}
if [ "$ARCH" = "i586" ]; then if [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i586 -mtune=i686" SLKCFLAGS="-O2 -march=pentium4 -mtune=generic"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686"
LIBDIRSUFFIX="" LIBDIRSUFFIX=""
elif [ "$ARCH" = "s390" ]; then elif [ "$ARCH" = "s390" ]; then
SLKCFLAGS="-O2" SLKCFLAGS="-O2"
LIBDIRSUFFIX="" LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC" SLKCFLAGS="-O2 -march=x86-64 -mtune=generic -fPIC"
LIBDIRSUFFIX="64" LIBDIRSUFFIX="64"
elif [ "$ARCH" = "armv7hl" ]; then elif [ "$ARCH" = "armv7hl" ]; then
SLKCFLAGS="-O3 -march=armv7-a -mfpu=vfpv3-d16" SLKCFLAGS="-O3 -march=armv7-a -mfpu=vfpv3-d16"

View file

@ -29,7 +29,7 @@ BUILD=${BUILD:-1}
# Automatically determine the architecture we're building on: # Automatically determine the architecture we're building on:
if [ -z "$ARCH" ]; then if [ -z "$ARCH" ]; then
case "$( uname -m )" in case "$( uname -m )" in
i?86) export ARCH=i586 ;; i?86) export ARCH=i686 ;;
arm*) export ARCH=arm ;; arm*) export ARCH=arm ;;
# Unless $ARCH is already set, use uname -m for all other archs: # Unless $ARCH is already set, use uname -m for all other archs:
*) export ARCH=$( uname -m ) ;; *) export ARCH=$( uname -m ) ;;
@ -46,12 +46,12 @@ fi
NUMJOBS=${NUMJOBS:-" -j$(expr $(nproc) + 1) "} NUMJOBS=${NUMJOBS:-" -j$(expr $(nproc) + 1) "}
if [ "$ARCH" = "i586" ]; then if [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i586 -mtune=i686" SLKCFLAGS="-O2 -march=pentium4 -mtune=generic"
elif [ "$ARCH" = "s390" ]; then elif [ "$ARCH" = "s390" ]; then
SLKCFLAGS="-O2" SLKCFLAGS="-O2"
elif [ "$ARCH" = "x86_64" ]; then elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC" SLKCFLAGS="-O2 -march=x86-64 -mtune=generic -fPIC"
else else
SLKCFLAGS="-O2" SLKCFLAGS="-O2"
fi fi

View file

@ -1,2 +1,2 @@
https://github.com/strace/strace https://github.com/strace/strace
https://github.com/strace/strace/releases/download/v6.9/strace-6.9.tar.xz https://github.com/strace/strace/releases/download/v6.10/strace-6.10.tar.xz

View file

@ -24,12 +24,12 @@ cd $(dirname $0) ; CWD=$(pwd)
PKGNAM=subversion PKGNAM=subversion
VERSION=${VERSION:-$(echo subversion-*.tar.?z* | rev | cut -f 3- -d . | cut -f 1 -d - | rev)} VERSION=${VERSION:-$(echo subversion-*.tar.?z* | rev | cut -f 3- -d . | cut -f 1 -d - | rev)}
BUILD=${BUILD:-2} BUILD=${BUILD:-3}
# Automatically determine the architecture we're building on: # Automatically determine the architecture we're building on:
if [ -z "$ARCH" ]; then if [ -z "$ARCH" ]; then
case "$( uname -m )" in case "$( uname -m )" in
i?86) export ARCH=i586 ;; i?86) export ARCH=i686 ;;
arm*) export ARCH=arm ;; arm*) export ARCH=arm ;;
# Unless $ARCH is already set, use uname -m for all other archs: # Unless $ARCH is already set, use uname -m for all other archs:
*) export ARCH=$( uname -m ) ;; *) export ARCH=$( uname -m ) ;;
@ -46,14 +46,14 @@ fi
NUMJOBS=${NUMJOBS:-" -j$(expr $(nproc) + 1) "} NUMJOBS=${NUMJOBS:-" -j$(expr $(nproc) + 1) "}
if [ "$ARCH" = "i586" ]; then if [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i586 -mtune=i686" SLKCFLAGS="-O2 -march=pentium4 -mtune=generic"
LIBDIRSUFFIX="" LIBDIRSUFFIX=""
elif [ "$ARCH" = "s390" ]; then elif [ "$ARCH" = "s390" ]; then
SLKCFLAGS="-O2" SLKCFLAGS="-O2"
LIBDIRSUFFIX="" LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC" SLKCFLAGS="-O2 -march=x86-64 -mtune=generic -fPIC"
LIBDIRSUFFIX="64" LIBDIRSUFFIX="64"
else else
SLKCFLAGS="-O2" SLKCFLAGS="-O2"

View file

@ -28,7 +28,7 @@ cd $(dirname $0) ; CWD=$(pwd)
PKGNAM=${PKGNAM:-emacs} PKGNAM=${PKGNAM:-emacs}
SRCNAM=emacs SRCNAM=emacs
BUILD=${BUILD:-1} BUILD=${BUILD:-2}
# Determine version number the tarball is labeled with: # Determine version number the tarball is labeled with:
TARBALLVER=${TARBALLVER:-$(echo $SRCNAM-*.tar.xz | rev | cut -f 3- -d . | cut -f 1 -d - | rev)} TARBALLVER=${TARBALLVER:-$(echo $SRCNAM-*.tar.xz | rev | cut -f 3- -d . | cut -f 1 -d - | rev)}
# OK, now what's being used as the source directory version number... account # OK, now what's being used as the source directory version number... account
@ -70,7 +70,7 @@ fi
# Automatically determine the architecture we're building on: # Automatically determine the architecture we're building on:
if [ -z "$ARCH" ]; then if [ -z "$ARCH" ]; then
case "$(uname -m)" in case "$(uname -m)" in
i?86) ARCH=i586 ;; i?86) ARCH=i686 ;;
arm*) readelf /usr/bin/file -A | grep -E -q "Tag_CPU.*[4,5]" && ARCH=arm || ARCH=armv7hl ;; arm*) readelf /usr/bin/file -A | grep -E -q "Tag_CPU.*[4,5]" && ARCH=arm || ARCH=armv7hl ;;
# Unless $ARCH is already set, use uname -m for all other archs: # Unless $ARCH is already set, use uname -m for all other archs:
*) ARCH=$(uname -m) ;; *) ARCH=$(uname -m) ;;
@ -89,11 +89,11 @@ fi
if [ "$ARCH" = "i586" ]; then if [ "$ARCH" = "i586" ]; then
SLKCFLAGS="-O2 -march=i586 -mtune=i686" SLKCFLAGS="-O2 -march=i586 -mtune=i686"
elif [ "$ARCH" = "i686" ]; then elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686" SLKCFLAGS="-O2 -march=pentium4 -mtune=generic"
elif [ "$ARCH" = "s390" ]; then elif [ "$ARCH" = "s390" ]; then
SLKCFLAGS="-O2" SLKCFLAGS="-O2"
elif [ "$ARCH" = "x86_64" ]; then elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC" SLKCFLAGS="-O2 -march=x86-64 -mtune=generic -fPIC"
elif [ "$ARCH" = "armv7hl" ]; then elif [ "$ARCH" = "armv7hl" ]; then
SLKCFLAGS="-O2 -march=armv7-a -mfpu=vfpv3-d16" SLKCFLAGS="-O2 -march=armv7-a -mfpu=vfpv3-d16"
else else

View file

@ -6,7 +6,7 @@
# Automatically determine the architecture we're building on: # Automatically determine the architecture we're building on:
if [ -z "$ARCH" ]; then if [ -z "$ARCH" ]; then
case "$(uname -m)" in case "$(uname -m)" in
i?86) ARCH=i586 ;; i?86) ARCH=i686 ;;
arm*) readelf /usr/bin/file -A | egrep -q "Tag_CPU.*[4,5]" && ARCH=arm || ARCH=armv7hl ;; arm*) readelf /usr/bin/file -A | egrep -q "Tag_CPU.*[4,5]" && ARCH=arm || ARCH=armv7hl ;;
# Unless $ARCH is already set, use uname -m for all other archs: # Unless $ARCH is already set, use uname -m for all other archs:
*) ARCH=$(uname -m) ;; *) ARCH=$(uname -m) ;;
@ -24,11 +24,14 @@ if [ -z "$SLKCFLAGS" ]; then
elif [ "$ARCH" = "i586" ]; then elif [ "$ARCH" = "i586" ]; then
export SLKCFLAGS="-O2 -march=i586 -mtune=i686" export SLKCFLAGS="-O2 -march=i586 -mtune=i686"
export LIBDIRSUFFIX="" export LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
export SLKCFLAGS="-O2 -march=pentium4 -mtune=generic"
export LIBDIRSUFFIX=""
elif [ "$ARCH" = "s390" ]; then elif [ "$ARCH" = "s390" ]; then
export SLKCFLAGS="-O2" export SLKCFLAGS="-O2"
export LIBDIRSUFFIX="" export LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then elif [ "$ARCH" = "x86_64" ]; then
export SLKCFLAGS="-O2 -fPIC" export SLKCFLAGS="-O2 -march=x86-64 -mtune=generic -fPIC"
export LIBDIRSUFFIX="64" export LIBDIRSUFFIX="64"
elif [ "$ARCH" = "arm" ]; then elif [ "$ARCH" = "arm" ]; then
export SLKCFLAGS="-O2 -march=armv4 -mtune=xscale" export SLKCFLAGS="-O2 -march=armv4 -mtune=xscale"

View file

@ -25,14 +25,14 @@ cd $(dirname $0) ; CWD=$(pwd)
PKGNAM=PyQt-builder PKGNAM=PyQt-builder
SRCNAM=pyqt_builder SRCNAM=pyqt_builder
VERSION=${VERSION:-$(echo $SRCNAM-*.tar.?z | rev | cut -f 3- -d . | cut -f 1 -d - | rev)} VERSION=${VERSION:-$(echo $SRCNAM-*.tar.?z | rev | cut -f 3- -d . | cut -f 1 -d - | rev)}
BUILD=${BUILD:-1} BUILD=${BUILD:-2}
NUMJOBS=${NUMJOBS:-" -j$(expr $(nproc) + 1) "} NUMJOBS=${NUMJOBS:-" -j$(expr $(nproc) + 1) "}
# Automatically determine the architecture we're building on: # Automatically determine the architecture we're building on:
if [ -z "$ARCH" ]; then if [ -z "$ARCH" ]; then
case "$(uname -m)" in case "$(uname -m)" in
i?86) ARCH=i586 ;; i?86) ARCH=i686 ;;
arm*) readelf /usr/bin/file -A | grep -E -q "Tag_CPU.*[4,5]" && ARCH=arm || ARCH=armv7hl ;; arm*) readelf /usr/bin/file -A | grep -E -q "Tag_CPU.*[4,5]" && ARCH=arm || ARCH=armv7hl ;;
# Unless $ARCH is already set, use uname -m for all other archs: # Unless $ARCH is already set, use uname -m for all other archs:
*) ARCH=$(uname -m) ;; *) ARCH=$(uname -m) ;;
@ -51,9 +51,9 @@ fi
if [ "$ARCH" = "i586" ]; then if [ "$ARCH" = "i586" ]; then
SLKCFLAGS="-O2 -march=i586 -mtune=i686" SLKCFLAGS="-O2 -march=i586 -mtune=i686"
elif [ "$ARCH" = "i686" ]; then elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686" SLKCFLAGS="-O2 -march=pentium4 -mtune=generic"
elif [ "$ARCH" = "x86_64" ]; then elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC" SLKCFLAGS="-O2 -march=x86-64 -mtune=generic -fPIC"
elif [ "$ARCH" = "armv7hl" ]; then elif [ "$ARCH" = "armv7hl" ]; then
SLKCFLAGS="-O2 -march=armv7-a -mfpu=vfpv3-d16" SLKCFLAGS="-O2 -march=armv7-a -mfpu=vfpv3-d16"
else else

View file

@ -28,12 +28,12 @@ cd $(dirname $0) ; CWD=$(pwd)
PKGNAM=PyQt5 PKGNAM=PyQt5
VERSION=${VERSION:-$(echo $PKGNAM-*.tar.?z | rev | cut -f 3- -d . | cut -f 1 -d - | rev)} VERSION=${VERSION:-$(echo $PKGNAM-*.tar.?z | rev | cut -f 3- -d . | cut -f 1 -d - | rev)}
BUILD=${BUILD:-2} BUILD=${BUILD:-1}
# Automatically determine the architecture we're building on: # Automatically determine the architecture we're building on:
if [ -z "$ARCH" ]; then if [ -z "$ARCH" ]; then
case "$(uname -m)" in case "$(uname -m)" in
i?86) ARCH=i586 ;; i?86) ARCH=i686 ;;
arm*) readelf /usr/bin/file -A | grep -E -q "Tag_CPU.*[4,5]" && ARCH=arm || ARCH=armv7hl ;; arm*) readelf /usr/bin/file -A | grep -E -q "Tag_CPU.*[4,5]" && ARCH=arm || ARCH=armv7hl ;;
# Unless $ARCH is already set, use uname -m for all other archs: # Unless $ARCH is already set, use uname -m for all other archs:
*) ARCH=$(uname -m) ;; *) ARCH=$(uname -m) ;;
@ -41,17 +41,14 @@ if [ -z "$ARCH" ]; then
export ARCH export ARCH
fi fi
if [ "$ARCH" = "i486" ]; then if [ "$ARCH" = "i586" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i586" ]; then
SLKCFLAGS="-O2 -march=i586 -mtune=i686" SLKCFLAGS="-O2 -march=i586 -mtune=i686"
LIBDIRSUFFIX="" LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686" SLKCFLAGS="-O2 -march=pentium4 -mtune=generic"
LIBDIRSUFFIX="" LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC" SLKCFLAGS="-O2 -march=x86-64 -mtune=generic -fPIC"
LIBDIRSUFFIX="64" LIBDIRSUFFIX="64"
elif [ "$ARCH" = "armv7hl" ]; then elif [ "$ARCH" = "armv7hl" ]; then
SLKCFLAGS="-O2 -march=armv7-a -mfpu=vfpv3-d16" SLKCFLAGS="-O2 -march=armv7-a -mfpu=vfpv3-d16"

View file

@ -29,14 +29,14 @@ cd $(dirname $0) ; CWD=$(pwd)
PKGNAM=PyQt5_sip PKGNAM=PyQt5_sip
SRCNAM=PyQt5_sip SRCNAM=PyQt5_sip
VERSION=${VERSION:-$(echo $SRCNAM-*.tar.?z | rev | cut -f 3- -d . | cut -f 1 -d - | rev)} VERSION=${VERSION:-$(echo $SRCNAM-*.tar.?z | rev | cut -f 3- -d . | cut -f 1 -d - | rev)}
BUILD=${BUILD:-1} BUILD=${BUILD:-2}
NUMJOBS=${NUMJOBS:-" -j$(expr $(nproc) + 1) "} NUMJOBS=${NUMJOBS:-" -j$(expr $(nproc) + 1) "}
# Automatically determine the architecture we're building on: # Automatically determine the architecture we're building on:
if [ -z "$ARCH" ]; then if [ -z "$ARCH" ]; then
case "$(uname -m)" in case "$(uname -m)" in
i?86) ARCH=i586 ;; i?86) ARCH=i686 ;;
arm*) readelf /usr/bin/file -A | grep -E -q "Tag_CPU.*[4,5]" && ARCH=arm || ARCH=armv7hl ;; arm*) readelf /usr/bin/file -A | grep -E -q "Tag_CPU.*[4,5]" && ARCH=arm || ARCH=armv7hl ;;
# Unless $ARCH is already set, use uname -m for all other archs: # Unless $ARCH is already set, use uname -m for all other archs:
*) ARCH=$(uname -m) ;; *) ARCH=$(uname -m) ;;
@ -55,9 +55,9 @@ fi
if [ "$ARCH" = "i586" ]; then if [ "$ARCH" = "i586" ]; then
SLKCFLAGS="-O2 -march=i586 -mtune=i686" SLKCFLAGS="-O2 -march=i586 -mtune=i686"
elif [ "$ARCH" = "i686" ]; then elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686" SLKCFLAGS="-O2 -march=pentium4 -mtune=generic"
elif [ "$ARCH" = "x86_64" ]; then elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC" SLKCFLAGS="-O2 -march=x86-64 -mtune=generic -fPIC"
elif [ "$ARCH" = "armv7hl" ]; then elif [ "$ARCH" = "armv7hl" ]; then
SLKCFLAGS="-O2 -march=armv7-a -mfpu=vfpv3-d16" SLKCFLAGS="-O2 -march=armv7-a -mfpu=vfpv3-d16"
else else

View file

@ -1,6 +1,6 @@
#!/bin/bash #!/bin/bash
# Copyright 2019, 2020 Patrick J. Volkerding, Sebeka, Minnesota, USA # Copyright 2019, 2020, 2024 Patrick J. Volkerding, Sebeka, Minnesota, USA
# All rights reserved. # All rights reserved.
# #
# Redistribution and use of this script, with or without modification, is # Redistribution and use of this script, with or without modification, is
@ -24,12 +24,12 @@ cd $(dirname $0) ; CWD=$(pwd)
PKGNAM=argon2 PKGNAM=argon2
VERSION=${VERSION:-$(echo *.tar.?z | cut -f 1 -d .)} VERSION=${VERSION:-$(echo *.tar.?z | cut -f 1 -d .)}
BUILD=${BUILD:-5} BUILD=${BUILD:-6}
# Automatically determine the architecture we're building on: # Automatically determine the architecture we're building on:
if [ -z "$ARCH" ]; then if [ -z "$ARCH" ]; then
case "$(uname -m)" in case "$(uname -m)" in
i?86) ARCH=i586 ;; i?86) ARCH=i686 ;;
arm*) readelf /usr/bin/file -A | grep -E -q "Tag_CPU.*[4,5]" && ARCH=arm || ARCH=armv7hl ;; arm*) readelf /usr/bin/file -A | grep -E -q "Tag_CPU.*[4,5]" && ARCH=arm || ARCH=armv7hl ;;
# Unless $ARCH is already set, use uname -m for all other archs: # Unless $ARCH is already set, use uname -m for all other archs:
*) ARCH=$(uname -m) ;; *) ARCH=$(uname -m) ;;
@ -49,16 +49,16 @@ fi
#NUMJOBS=${NUMJOBS:-" -j$(expr $(nproc) + 1) "} #NUMJOBS=${NUMJOBS:-" -j$(expr $(nproc) + 1) "}
if [ "$ARCH" = "i586" ]; then if [ "$ARCH" = "i586" ]; then
SLKCFLAGS="-O2 -march=i586 -mtune=i686 -msse3" SLKCFLAGS="-O2 -march=i586 -mtune=i686"
LIBDIRSUFFIX="" LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -msse3" SLKCFLAGS="-O2 -march=pentium4 -mtune=generic"
LIBDIRSUFFIX="" LIBDIRSUFFIX=""
elif [ "$ARCH" = "s390" ]; then elif [ "$ARCH" = "s390" ]; then
SLKCFLAGS="-O2" SLKCFLAGS="-O2"
LIBDIRSUFFIX="" LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC" SLKCFLAGS="-O2 -march=x86-64 -mtune=generic -fPIC"
LIBDIRSUFFIX="64" LIBDIRSUFFIX="64"
elif [ "$ARCH" = "armv7hl" ]; then elif [ "$ARCH" = "armv7hl" ]; then
SLKCFLAGS="-O3 -march=armv7-a -mfpu=vfpv3-d16" SLKCFLAGS="-O3 -march=armv7-a -mfpu=vfpv3-d16"

View file

@ -30,11 +30,11 @@ cd $(dirname $0) ; CWD=$(pwd)
PKGNAM=ffmpeg PKGNAM=ffmpeg
VERSION=${VERSION:-$(echo $PKGNAM-*.tar.xz | rev | cut -f 3- -d . | cut -f 1 -d - | rev)} VERSION=${VERSION:-$(echo $PKGNAM-*.tar.xz | rev | cut -f 3- -d . | cut -f 1 -d - | rev)}
BUILD=${BUILD:-4} BUILD=${BUILD:-5}
if [ -z "$ARCH" ]; then if [ -z "$ARCH" ]; then
case "$( uname -m )" in case "$( uname -m )" in
i?86) ARCH=i586 ;; i?86) ARCH=i686 ;;
arm*) ARCH=arm ;; arm*) ARCH=arm ;;
*) ARCH=$( uname -m ) ;; *) ARCH=$( uname -m ) ;;
esac esac
@ -45,14 +45,11 @@ PKG=$TMP/package-$PKGNAM
NUMJOBS=${NUMJOBS:-" -j$(expr $(nproc) + 1) "} NUMJOBS=${NUMJOBS:-" -j$(expr $(nproc) + 1) "}
if [ "$ARCH" = "i586" ]; then if [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i586 -mtune=i686 -fPIC" SLKCFLAGS="-O2 -march=pentium4 -mtune=generic -fPIC"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686 -fPIC"
LIBDIRSUFFIX="" LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC" SLKCFLAGS="-O2 -march=x86-64 -mtune=generic -fPIC"
LIBDIRSUFFIX="64" LIBDIRSUFFIX="64"
else else
SLKCFLAGS="-O2" SLKCFLAGS="-O2"

View file

@ -25,16 +25,15 @@ cd $(dirname $0) ; CWD=$(pwd)
PKGNAM=glibc PKGNAM=glibc
VERSION=${VERSION:-$(echo glibc-*.tar.xz | rev | cut -f 3- -d . | cut -f 1 -d - | rev)} VERSION=${VERSION:-$(echo glibc-*.tar.xz | rev | cut -f 3- -d . | cut -f 1 -d - | rev)}
CHECKOUT=${CHECKOUT:-""} CHECKOUT=${CHECKOUT:-""}
BUILD=${BUILD:-2} BUILD=${BUILD:-1}
# I was considering disabling NSCD, but MoZes talked me out of it. :) # I was considering disabling NSCD, but MoZes talked me out of it. :)
#DISABLE_NSCD=" --disable-nscd " #DISABLE_NSCD=" --disable-nscd "
# $ARCH may be preset, otherwise i586 compatibility with i686 binary # $ARCH may be preset, otherwise i686 (pentium4) is the Slackware default.
# structuring is the Slackware default.
if [ -z "$ARCH" ]; then if [ -z "$ARCH" ]; then
case "$( uname -m )" in case "$( uname -m )" in
i?86) export ARCH=i586 ;; i?86) export ARCH=i686 ;;
arm*) export ARCH=arm ;; arm*) export ARCH=arm ;;
# Unless $ARCH is already set, use uname -m for all other archs: # Unless $ARCH is already set, use uname -m for all other archs:
*) export ARCH=$( uname -m ) ;; *) export ARCH=$( uname -m ) ;;
@ -80,7 +79,7 @@ case $ARCH in
LIBDIRSUFFIX="" LIBDIRSUFFIX=""
;; ;;
i686) i686)
OPTIMIZ="-O3 -march=i686" OPTIMIZ="-O3 -march=pentium4 -mtune=generic"
LIBDIRSUFFIX="" LIBDIRSUFFIX=""
;; ;;
athlon) athlon)
@ -92,7 +91,7 @@ case $ARCH in
LIBDIRSUFFIX="" LIBDIRSUFFIX=""
;; ;;
x86_64) x86_64)
OPTIMIZ="-O3 -fPIC" OPTIMIZ="-O3 -march=x86-64 -mtune=generic -fPIC"
LIBDIRSUFFIX="64" LIBDIRSUFFIX="64"
;; ;;
*) *)
@ -105,9 +104,9 @@ case $ARCH in
x86_64) x86_64)
TARGET=${TARGET:-x86_64} TARGET=${TARGET:-x86_64}
;; ;;
i586) i686)
# This should be i586 for all 32-bit x86 arch: # This should be i686 for all 32-bit x86 arch:
TARGET=${TARGET:-i586} TARGET=${TARGET:-i686}
;; ;;
esac esac

View file

@ -1,217 +0,0 @@
From 31da30f23cddd36db29d5b6a1c7619361b271fb4 Mon Sep 17 00:00:00 2001
From: Charles Fol <folcharles@gmail.com>
Date: Thu, 28 Mar 2024 12:25:38 -0300
Subject: [PATCH] iconv: ISO-2022-CN-EXT: fix out-of-bound writes when writing
escape sequence (CVE-2024-2961)
ISO-2022-CN-EXT uses escape sequences to indicate character set changes
(as specified by RFC 1922). While the SOdesignation has the expected
bounds checks, neither SS2designation nor SS3designation have its;
allowing a write overflow of 1, 2, or 3 bytes with fixed values:
'$+I', '$+J', '$+K', '$+L', '$+M', or '$*H'.
Checked on aarch64-linux-gnu.
Co-authored-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Reviewed-by: Carlos O'Donell <carlos@redhat.com>
Tested-by: Carlos O'Donell <carlos@redhat.com>
(cherry picked from commit f9dc609e06b1136bb0408be9605ce7973a767ada)
---
iconvdata/Makefile | 5 +-
iconvdata/iso-2022-cn-ext.c | 12 +++
iconvdata/tst-iconv-iso-2022-cn-ext.c | 128 ++++++++++++++++++++++++++
3 files changed, 144 insertions(+), 1 deletion(-)
create mode 100644 iconvdata/tst-iconv-iso-2022-cn-ext.c
diff --git a/iconvdata/Makefile b/iconvdata/Makefile
index ea019ce5c0..7196a8744b 100644
--- a/iconvdata/Makefile
+++ b/iconvdata/Makefile
@@ -75,7 +75,8 @@ ifeq (yes,$(build-shared))
tests = bug-iconv1 bug-iconv2 tst-loading tst-e2big tst-iconv4 bug-iconv4 \
tst-iconv6 bug-iconv5 bug-iconv6 tst-iconv7 bug-iconv8 bug-iconv9 \
bug-iconv10 bug-iconv11 bug-iconv12 tst-iconv-big5-hkscs-to-2ucs4 \
- bug-iconv13 bug-iconv14 bug-iconv15
+ bug-iconv13 bug-iconv14 bug-iconv15 \
+ tst-iconv-iso-2022-cn-ext
ifeq ($(have-thread-library),yes)
tests += bug-iconv3
endif
@@ -330,6 +331,8 @@ $(objpfx)bug-iconv14.out: $(addprefix $(objpfx), $(gconv-modules)) \
$(addprefix $(objpfx),$(modules.so))
$(objpfx)bug-iconv15.out: $(addprefix $(objpfx), $(gconv-modules)) \
$(addprefix $(objpfx),$(modules.so))
+$(objpfx)tst-iconv-iso-2022-cn-ext.out: $(addprefix $(objpfx), $(gconv-modules)) \
+ $(addprefix $(objpfx),$(modules.so))
$(objpfx)iconv-test.out: run-iconv-test.sh \
$(addprefix $(objpfx), $(gconv-modules)) \
diff --git a/iconvdata/iso-2022-cn-ext.c b/iconvdata/iso-2022-cn-ext.c
index b34c8a36f4..cce29b1969 100644
--- a/iconvdata/iso-2022-cn-ext.c
+++ b/iconvdata/iso-2022-cn-ext.c
@@ -574,6 +574,12 @@ DIAG_IGNORE_Os_NEEDS_COMMENT (5, "-Wmaybe-uninitialized");
{ \
const char *escseq; \
\
+ if (outptr + 4 > outend) \
+ { \
+ result = __GCONV_FULL_OUTPUT; \
+ break; \
+ } \
+ \
assert (used == CNS11643_2_set); /* XXX */ \
escseq = "*H"; \
*outptr++ = ESC; \
@@ -587,6 +593,12 @@ DIAG_IGNORE_Os_NEEDS_COMMENT (5, "-Wmaybe-uninitialized");
{ \
const char *escseq; \
\
+ if (outptr + 4 > outend) \
+ { \
+ result = __GCONV_FULL_OUTPUT; \
+ break; \
+ } \
+ \
assert ((used >> 5) >= 3 && (used >> 5) <= 7); \
escseq = "+I+J+K+L+M" + ((used >> 5) - 3) * 2; \
*outptr++ = ESC; \
diff --git a/iconvdata/tst-iconv-iso-2022-cn-ext.c b/iconvdata/tst-iconv-iso-2022-cn-ext.c
new file mode 100644
index 0000000000..96a8765fd5
--- /dev/null
+++ b/iconvdata/tst-iconv-iso-2022-cn-ext.c
@@ -0,0 +1,128 @@
+/* Verify ISO-2022-CN-EXT does not write out of the bounds.
+ Copyright (C) 2024 Free Software Foundation, Inc.
+ This file is part of the GNU C Library.
+
+ The GNU C Library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Lesser General Public
+ License as published by the Free Software Foundation; either
+ version 2.1 of the License, or (at your option) any later version.
+
+ The GNU C Library 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
+ Lesser General Public License for more details.
+
+ You should have received a copy of the GNU Lesser General Public
+ License along with the GNU C Library; if not, see
+ <https://www.gnu.org/licenses/>. */
+
+#include <stdio.h>
+#include <string.h>
+
+#include <errno.h>
+#include <iconv.h>
+#include <sys/mman.h>
+
+#include <support/xunistd.h>
+#include <support/check.h>
+#include <support/support.h>
+
+/* The test sets up a two memory page buffer with the second page marked
+ PROT_NONE to trigger a fault if the conversion writes beyond the exact
+ expected amount. Then we carry out various conversions and precisely
+ place the start of the output buffer in order to trigger a SIGSEGV if the
+ process writes anywhere between 1 and page sized bytes more (only one
+ PROT_NONE page is setup as a canary) than expected. These tests exercise
+ all three of the cases in ISO-2022-CN-EXT where the converter must switch
+ character sets and may run out of buffer space while doing the
+ operation. */
+
+static int
+do_test (void)
+{
+ iconv_t cd = iconv_open ("ISO-2022-CN-EXT", "UTF-8");
+ TEST_VERIFY_EXIT (cd != (iconv_t) -1);
+
+ char *ntf;
+ size_t ntfsize;
+ char *outbufbase;
+ {
+ int pgz = getpagesize ();
+ TEST_VERIFY_EXIT (pgz > 0);
+ ntfsize = 2 * pgz;
+
+ ntf = xmmap (NULL, ntfsize, PROT_READ | PROT_WRITE, MAP_PRIVATE
+ | MAP_ANONYMOUS, -1);
+ xmprotect (ntf + pgz, pgz, PROT_NONE);
+
+ outbufbase = ntf + pgz;
+ }
+
+ /* Check if SOdesignation escape sequence does not trigger an OOB write. */
+ {
+ char inbuf[] = "\xe4\xba\xa4\xe6\x8d\xa2";
+
+ for (int i = 0; i < 9; i++)
+ {
+ char *inp = inbuf;
+ size_t inleft = sizeof (inbuf) - 1;
+
+ char *outp = outbufbase - i;
+ size_t outleft = i;
+
+ TEST_VERIFY_EXIT (iconv (cd, &inp, &inleft, &outp, &outleft)
+ == (size_t) -1);
+ TEST_COMPARE (errno, E2BIG);
+
+ TEST_VERIFY_EXIT (iconv (cd, NULL, NULL, NULL, NULL) == 0);
+ }
+ }
+
+ /* Same as before for SS2designation. */
+ {
+ char inbuf[] = "ã´½ \xe3\xb4\xbd";
+
+ for (int i = 0; i < 14; i++)
+ {
+ char *inp = inbuf;
+ size_t inleft = sizeof (inbuf) - 1;
+
+ char *outp = outbufbase - i;
+ size_t outleft = i;
+
+ TEST_VERIFY_EXIT (iconv (cd, &inp, &inleft, &outp, &outleft)
+ == (size_t) -1);
+ TEST_COMPARE (errno, E2BIG);
+
+ TEST_VERIFY_EXIT (iconv (cd, NULL, NULL, NULL, NULL) == 0);
+ }
+ }
+
+ /* Same as before for SS3designation. */
+ {
+ char inbuf[] = "劄 \xe5\x8a\x84";
+
+ for (int i = 0; i < 14; i++)
+ {
+ char *inp = inbuf;
+ size_t inleft = sizeof (inbuf) - 1;
+
+ char *outp = outbufbase - i;
+ size_t outleft = i;
+
+ TEST_VERIFY_EXIT (iconv (cd, &inp, &inleft, &outp, &outleft)
+ == (size_t) -1);
+ TEST_COMPARE (errno, E2BIG);
+
+ TEST_VERIFY_EXIT (iconv (cd, NULL, NULL, NULL, NULL) == 0);
+ }
+ }
+
+ TEST_VERIFY_EXIT (iconv_close (cd) != -1);
+
+ xmunmap (ntf, ntfsize);
+
+ return 0;
+}
+
+#include <support/test-driver.c>
--
2.39.3

View file

@ -27,7 +27,7 @@ cd $(dirname $0) ; CWD=$(pwd)
PKGNAM=gst-plugins-good PKGNAM=gst-plugins-good
VERSION=${VERSION:-$(echo $PKGNAM-*.tar.?z | rev | cut -f 3- -d . | cut -f 1 -d - | rev)} VERSION=${VERSION:-$(echo $PKGNAM-*.tar.?z | rev | cut -f 3- -d . | cut -f 1 -d - | rev)}
BUILD=${BUILD:-1} BUILD=${BUILD:-2}
# Automatically determine the architecture we're building on: # Automatically determine the architecture we're building on:
if [ -z "$ARCH" ]; then if [ -z "$ARCH" ]; then
@ -45,17 +45,13 @@ TMP=${TMP:-/tmp}
PKG=$TMP/package-$PKGNAM PKG=$TMP/package-$PKGNAM
if [ "$ARCH" = "i686" ]; then if [ "$ARCH" = "i686" ]; then
# Looks like this is baseline now... maybe time to bump everything to at least i686 SLKCFLAGS="-O2 -march=pentium4 -mtune=generic"
SLKCFLAGS="-O2 -march=i686 -mtune=i686 -mfpmath=sse -msse -msse2 -fcf-protection=none"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
LIBDIRSUFFIX="" LIBDIRSUFFIX=""
elif [ "$ARCH" = "s390" ]; then elif [ "$ARCH" = "s390" ]; then
SLKCFLAGS="-O2" SLKCFLAGS="-O2"
LIBDIRSUFFIX="" LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC" SLKCFLAGS="-O2 -march=x86-64 -mtune=generic -fPIC"
LIBDIRSUFFIX="64" LIBDIRSUFFIX="64"
else else
SLKCFLAGS="-O2" SLKCFLAGS="-O2"

View file

@ -25,7 +25,7 @@ cd $(dirname $0) ; CWD=$(pwd)
PKGNAM=libcdio-paranoia PKGNAM=libcdio-paranoia
VERSION=${VERSION:-$(echo $PKGNAM-*.tar.?z | rev | cut -f 3- -d . | cut -f 1 -d - | rev)} VERSION=${VERSION:-$(echo $PKGNAM-*.tar.?z | rev | cut -f 3- -d . | cut -f 1 -d - | rev)}
BUILD=${BUILD:-3} BUILD=${BUILD:-1}
NUMJOBS=${NUMJOBS:-" -j$(expr $(nproc) + 1) "} NUMJOBS=${NUMJOBS:-" -j$(expr $(nproc) + 1) "}
@ -33,7 +33,7 @@ NUMJOBS=${NUMJOBS:-" -j$(expr $(nproc) + 1) "}
MARCH=$( uname -m ) MARCH=$( uname -m )
if [ -z "$ARCH" ]; then if [ -z "$ARCH" ]; then
case "$MARCH" in case "$MARCH" in
i?86) export ARCH=i586 ;; i?86) export ARCH=i686 ;;
armv7hl) export ARCH=$MARCH ;; armv7hl) export ARCH=$MARCH ;;
arm*) export ARCH=arm ;; arm*) export ARCH=arm ;;
# Unless $ARCH is already set, use uname -m for all other archs: # Unless $ARCH is already set, use uname -m for all other archs:
@ -49,14 +49,14 @@ if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
exit 0 exit 0
fi fi
if [ "$ARCH" = "i586" ]; then if [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i586 -mtune=i686" SLKCFLAGS="-O2 -march=pentium4 -mtune=generic"
LIBDIRSUFFIX="" LIBDIRSUFFIX=""
elif [ "$ARCH" = "s390" ]; then elif [ "$ARCH" = "s390" ]; then
SLKCFLAGS="-O2" SLKCFLAGS="-O2"
LIBDIRSUFFIX="" LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC" SLKCFLAGS="-O2 -march=x86-64 -mtune=generic -fPIC"
LIBDIRSUFFIX="64" LIBDIRSUFFIX="64"
elif [ "$ARCH" = "armv7hl" ]; then elif [ "$ARCH" = "armv7hl" ]; then
SLKCFLAGS="-O2 -march=armv7-a -mfpu=vfpv3-d16" SLKCFLAGS="-O2 -march=armv7-a -mfpu=vfpv3-d16"

View file

@ -29,7 +29,7 @@ BUILD=${BUILD:-1}
if [ -z "$ARCH" ]; then if [ -z "$ARCH" ]; then
case "$( uname -m )" in case "$( uname -m )" in
i?86) ARCH=i586 ;; i?86) ARCH=i686 ;;
arm*) ARCH=arm ;; arm*) ARCH=arm ;;
*) ARCH=$( uname -m ) ;; *) ARCH=$( uname -m ) ;;
esac esac
@ -52,10 +52,10 @@ if [ "$ARCH" = "i586" ]; then
SLKCFLAGS="-O2 -march=i586 -mtune=i686" SLKCFLAGS="-O2 -march=i586 -mtune=i686"
LIBDIRSUFFIX="" LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686" SLKCFLAGS="-O2 -march=pentium4 -mtune=generic"
LIBDIRSUFFIX="" LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC" SLKCFLAGS="-O2 -march=x86-64 -mtune=generic -fPIC"
LIBDIRSUFFIX="64" LIBDIRSUFFIX="64"
else else
SLKCFLAGS="-O2" SLKCFLAGS="-O2"

View file

@ -30,21 +30,21 @@ BUILD=${BUILD:-1}
# Automatically determine the architecture we're building on: # Automatically determine the architecture we're building on:
if [ -z "$ARCH" ]; then if [ -z "$ARCH" ]; then
case "$( uname -m )" in case "$( uname -m )" in
i?86) export ARCH=i586 ;; i?86) export ARCH=i686 ;;
arm*) export ARCH=arm ;; arm*) export ARCH=arm ;;
# Unless $ARCH is already set, use uname -m for all other archs: # Unless $ARCH is already set, use uname -m for all other archs:
*) export ARCH=$( uname -m ) ;; *) export ARCH=$( uname -m ) ;;
esac esac
fi fi
if [ "$ARCH" = "i586" ]; then if [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i586 -mtune=i686" SLKCFLAGS="-O2 -march=pentium4 -mtune=generic"
LIBDIRSUFFIX="" LIBDIRSUFFIX=""
elif [ "$ARCH" = "s390" ]; then elif [ "$ARCH" = "s390" ]; then
SLKCFLAGS="-O2" SLKCFLAGS="-O2"
LIBDIRSUFFIX="" LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC" SLKCFLAGS="-O2 -march=x86-64 -mtune=generic -fPIC"
LIBDIRSUFFIX="64" LIBDIRSUFFIX="64"
else else
SLKCFLAGS="-O2" SLKCFLAGS="-O2"
@ -80,7 +80,6 @@ find . \
CFLAGS="$SLKCFLAGS" \ CFLAGS="$SLKCFLAGS" \
make $NUMJOBS \ make $NUMJOBS \
PREFIX=/usr \ PREFIX=/usr \
LIBDIR=/usr/lib$LIBDIRSUFFIX \
MANDIR=/usr/man \ MANDIR=/usr/man \
BUILD_STATIC=no || exit 1 BUILD_STATIC=no || exit 1

View file

@ -58,10 +58,10 @@ if [ "$ARCH" = "i586" ]; then
SLKCFLAGS="-O2 -march=i586 -mtune=i686" SLKCFLAGS="-O2 -march=i586 -mtune=i686"
LIBDIRSUFFIX="" LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686" SLKCFLAGS="-O2 -march=pentium4 -mtune=generic"
LIBDIRSUFFIX="" LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC" SLKCFLAGS="-O2 -march=x86-64 -mtune=generic -fPIC"
LIBDIRSUFFIX="64" LIBDIRSUFFIX="64"
else else
SLKCFLAGS="-O2" SLKCFLAGS="-O2"

View file

@ -24,7 +24,7 @@ cd $(dirname $0) ; CWD=$(pwd)
PKGNAM=poppler PKGNAM=poppler
VERSION=${VERSION:-$(echo $PKGNAM-*.tar.?z | rev | cut -f 3- -d . | cut -f 1 -d - | rev)} VERSION=${VERSION:-$(echo $PKGNAM-*.tar.?z | rev | cut -f 3- -d . | cut -f 1 -d - | rev)}
BUILD=${BUILD:-1} BUILD=${BUILD:-2}
QT6OPT=${QT6OPT:--DENABLE_QT6=ON} QT6OPT=${QT6OPT:--DENABLE_QT6=ON}
# Automatically determine the architecture we're building on: # Automatically determine the architecture we're building on:
@ -51,15 +51,14 @@ if [ "$ARCH" = "i586" ]; then
SLKCFLAGS="-O2 -march=i586 -mtune=i686" SLKCFLAGS="-O2 -march=i586 -mtune=i686"
LIBDIRSUFFIX="" LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then elif [ "$ARCH" = "i686" ]; then
# Looks like this is baseline now... maybe time to bump everything to at least i686 SLKCFLAGS="-O2 -march=pentium4 -mtune=generic"
SLKCFLAGS="-O2 -march=i686 -mtune=i686 -mfpmath=sse -msse -msse2"
SLKLDFLAGS="" SLKLDFLAGS=""
LIBDIRSUFFIX="" LIBDIRSUFFIX=""
elif [ "$ARCH" = "s390" ]; then elif [ "$ARCH" = "s390" ]; then
SLKCFLAGS="-O2" SLKCFLAGS="-O2"
LIBDIRSUFFIX="" LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC" SLKCFLAGS="-O2 -march=x86-64 -mtune=generic -fPIC"
LIBDIRSUFFIX="64" LIBDIRSUFFIX="64"
else else
SLKCFLAGS="-O2" SLKCFLAGS="-O2"
@ -103,7 +102,7 @@ cmake \
$QT6OPT \ $QT6OPT \
.. || exit 1 .. || exit 1
make $NUMJOBS || make || exit 1 make $NUMJOBS || exit 1
make install DESTDIR=$PKG || exit 1 make install DESTDIR=$PKG || exit 1
# Back to source tarball root directory: # Back to source tarball root directory:

View file

@ -29,7 +29,7 @@ BUILD=${BUILD:-1}
if [ -z "$ARCH" ]; then if [ -z "$ARCH" ]; then
case "$( uname -m )" in case "$( uname -m )" in
i?86) ARCH=i586 ;; i?86) ARCH=i686 ;;
arm*) ARCH=arm ;; arm*) ARCH=arm ;;
*) ARCH=$( uname -m ) ;; *) ARCH=$( uname -m ) ;;
esac esac

View file

@ -29,7 +29,7 @@ BUILD=${BUILD:-1}
if [ -z "$ARCH" ]; then if [ -z "$ARCH" ]; then
case "$( uname -m )" in case "$( uname -m )" in
i?86) ARCH=i586 ;; i?86) ARCH=i686 ;;
arm*) ARCH=arm ;; arm*) ARCH=arm ;;
*) ARCH=$( uname -m ) ;; *) ARCH=$( uname -m ) ;;
esac esac

View file

@ -28,12 +28,12 @@ PKGNAM=qt5-webkit
SRCNAM=qtwebkit SRCNAM=qtwebkit
SRCVER=${SRCVER:-5.212.0-alpha4} SRCVER=${SRCVER:-5.212.0-alpha4}
VERSION=$(echo $SRCVER | tr - _) VERSION=$(echo $SRCVER | tr - _)
BUILD=${BUILD:-12} BUILD=${BUILD:-13}
# Automatically determine the architecture we're building on: # Automatically determine the architecture we're building on:
if [ -z "$ARCH" ]; then if [ -z "$ARCH" ]; then
case "$(uname -m)" in case "$(uname -m)" in
i?86) ARCH=i586 ;; i?86) ARCH=i686 ;;
arm*) readelf /usr/bin/file -A | grep -E -q "Tag_CPU.*[4,5]" && ARCH=arm || ARCH=armv7hl ;; arm*) readelf /usr/bin/file -A | grep -E -q "Tag_CPU.*[4,5]" && ARCH=arm || ARCH=armv7hl ;;
# Unless $ARCH is already set, use uname -m for all other archs: # Unless $ARCH is already set, use uname -m for all other archs:
*) ARCH=$(uname -m) ;; *) ARCH=$(uname -m) ;;
@ -55,13 +55,13 @@ if [ "$ARCH" = "i586" ]; then
SLKCFLAGS="-O2 -march=i586 -mtune=i686" SLKCFLAGS="-O2 -march=i586 -mtune=i686"
LIBDIRSUFFIX="" LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686" SLKCFLAGS="-O2 -march=pentium4 -mtune=generic"
LIBDIRSUFFIX="" LIBDIRSUFFIX=""
elif [ "$ARCH" = "s390" ]; then elif [ "$ARCH" = "s390" ]; then
SLKCFLAGS="-O2" SLKCFLAGS="-O2"
LIBDIRSUFFIX="" LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC" SLKCFLAGS="-O2 -march=x86-64 -mtune=generic -fPIC"
LIBDIRSUFFIX="64" LIBDIRSUFFIX="64"
elif [ "$ARCH" = "armv7hl" ]; then elif [ "$ARCH" = "armv7hl" ]; then
SLKCFLAGS="-O3 -march=armv7-a -mfpu=vfpv3-d16" SLKCFLAGS="-O3 -march=armv7-a -mfpu=vfpv3-d16"
@ -109,6 +109,9 @@ zcat $CWD/webkit-offlineasm-warnings-ruby27.patch | patch -p1 --verbose || exit
# Fix for gcc13: # Fix for gcc13:
zcat $CWD/qt5-webkit.gcc13.diff.gz | patch -p1 --verbose || exit 1 zcat $CWD/qt5-webkit.gcc13.diff.gz | patch -p1 --verbose || exit 1
# Fix for gcc14:
zcat $CWD/qtwebkit-fix-build-gcc14.patch.gz | patch -p1 --verbose || exit 1
# Fix for icu68: # Fix for icu68:
zcat $CWD/icu68.patch.gz | patch -p0 --verbose || exit 1 zcat $CWD/icu68.patch.gz | patch -p0 --verbose || exit 1

View file

@ -0,0 +1,15 @@
diff --git a/Source/WebCore/page/csp/ContentSecurityPolicy.cpp b/Source/WebCore/page/csp/ContentSecurityPolicy.cpp
index 9e726d5..4876f0f 100644
--- a/Source/WebCore/page/csp/ContentSecurityPolicy.cpp
+++ b/Source/WebCore/page/csp/ContentSecurityPolicy.cpp
@@ -231,8 +231,9 @@ bool isAllowedByAllWithHashFromContent(const CSPDirectiveListVector& policies, c
auto cryptoDigest = CryptoDigest::create(toCryptoDigestAlgorithm(algorithm));
cryptoDigest->addBytes(contentCString.data(), contentCString.length());
Vector<uint8_t> digest = cryptoDigest->computeHash();
+ ContentSecurityPolicyHash hash = std::make_pair(algorithm, digest);
for (auto& policy : policies) {
- if ((policy.get()->*allowed)(std::make_pair(algorithm, digest)))
+ if ((policy.get()->*allowed)(hash))
return true;
}
}

View file

@ -1,6 +1,6 @@
#!/bin/sh #!/bin/sh
# Copyright 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021, 2022, 2023 Patrick J. Volkerding, Sebeka, MN, USA # Copyright 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021, 2022, 2023, 2024 Patrick J. Volkerding, Sebeka, MN, USA
# All rights reserved. # All rights reserved.
# #
# Redistribution and use of this script, with or without modification, is # Redistribution and use of this script, with or without modification, is
@ -41,7 +41,7 @@ SYSTEM_FFMPEG=${SYSTEM_FFMPEG:-YES}
# Automatically determine the architecture we're building on: # Automatically determine the architecture we're building on:
if [ -z "$ARCH" ]; then if [ -z "$ARCH" ]; then
case "$(uname -m)" in case "$(uname -m)" in
i?86) ARCH=i586 ;; i?86) ARCH=i686 ;;
arm*) readelf /usr/bin/file -A | grep -E -q "Tag_CPU.*[4,5]" && ARCH=arm || ARCH=armv7hl ;; arm*) readelf /usr/bin/file -A | grep -E -q "Tag_CPU.*[4,5]" && ARCH=arm || ARCH=armv7hl ;;
# Unless $ARCH is already set, use uname -m for all other archs: # Unless $ARCH is already set, use uname -m for all other archs:
*) ARCH=$(uname -m) ;; *) ARCH=$(uname -m) ;;
@ -65,12 +65,16 @@ elif [ "$ARCH" = "i586" ]; then
SLKCFLAGS="-O2 -march=i586 -mtune=i686" SLKCFLAGS="-O2 -march=i586 -mtune=i686"
SLKLDFLAGS="" SLKLDFLAGS=""
LIBDIRSUFFIX="" LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=pentium4 -mtune=generic"
SLKLDFLAGS=""
LIBDIRSUFFIX=""
elif [ "$ARCH" = "s390" ]; then elif [ "$ARCH" = "s390" ]; then
SLKCFLAGS="-O2" SLKCFLAGS="-O2"
SLKLDFLAGS="" SLKLDFLAGS=""
LIBDIRSUFFIX="" LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC" SLKCFLAGS="-O2 -march=x86-64 -mtune=generic -fPIC"
SLKLDFLAGS="" SLKLDFLAGS=""
SLKLDFLAGS="-L/usr/lib64" SLKLDFLAGS="-L/usr/lib64"
LIBDIRSUFFIX="64" LIBDIRSUFFIX="64"

View file

@ -32,7 +32,7 @@ cd $(dirname $0) ; CWD=$(pwd)
PKGNAM=qt6 PKGNAM=qt6
VERSION=$(ls qt-*.tar.?z | rev | cut -f 3- -d . | cut -f 1 -d - | rev) VERSION=$(ls qt-*.tar.?z | rev | cut -f 3- -d . | cut -f 1 -d - | rev)
BUILD=${BUILD:-2} BUILD=${BUILD:-3}
PKGSRC=$(echo $VERSION | cut -d - -f 1) PKGSRC=$(echo $VERSION | cut -d - -f 1)
PKGVER=$(echo $VERSION | tr - _) PKGVER=$(echo $VERSION | tr - _)
@ -67,8 +67,7 @@ elif [ "$ARCH" = "i586" ]; then
SLKLDFLAGS="" SLKLDFLAGS=""
LIBDIRSUFFIX="" LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then elif [ "$ARCH" = "i686" ]; then
# Looks like this is baseline now... maybe time to bump everything to at least i686 SLKCFLAGS="-O2 -march=pentium4 -mtune=generic"
SLKCFLAGS="-O2 -march=i686 -mtune=i686 -mfpmath=sse -msse -msse2 -fcf-protection=none"
SLKLDFLAGS="" SLKLDFLAGS=""
LIBDIRSUFFIX="" LIBDIRSUFFIX=""
elif [ "$ARCH" = "s390" ]; then elif [ "$ARCH" = "s390" ]; then
@ -76,7 +75,7 @@ elif [ "$ARCH" = "s390" ]; then
SLKLDFLAGS="" SLKLDFLAGS=""
LIBDIRSUFFIX="" LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC" SLKCFLAGS="-O2 -march=x86-64 -mtune=generic -fPIC"
SLKLDFLAGS="-L/usr/lib64" SLKLDFLAGS="-L/usr/lib64"
LIBDIRSUFFIX="64" LIBDIRSUFFIX="64"
elif [ "$ARCH" = "armv7hl" ]; then elif [ "$ARCH" = "armv7hl" ]; then

View file

@ -28,14 +28,14 @@ cd $(dirname $0) ; CWD=$(pwd)
PKGNAM=sip PKGNAM=sip
VERSION=${VERSION:-$(echo $PKGNAM-*.tar.?z | rev | cut -f 3- -d . | cut -f 1 -d - | rev)} VERSION=${VERSION:-$(echo $PKGNAM-*.tar.?z | rev | cut -f 3- -d . | cut -f 1 -d - | rev)}
BUILD=${BUILD:-1} BUILD=${BUILD:-2}
NUMJOBS=${NUMJOBS:-" -j$(expr $(nproc) + 1) "} NUMJOBS=${NUMJOBS:-" -j$(expr $(nproc) + 1) "}
# Automatically determine the architecture we're building on: # Automatically determine the architecture we're building on:
if [ -z "$ARCH" ]; then if [ -z "$ARCH" ]; then
case "$(uname -m)" in case "$(uname -m)" in
i?86) ARCH=i586 ;; i?86) ARCH=i686 ;;
arm*) readelf /usr/bin/file -A | grep -E -q "Tag_CPU.*[4,5]" && ARCH=arm || ARCH=armv7hl ;; arm*) readelf /usr/bin/file -A | grep -E -q "Tag_CPU.*[4,5]" && ARCH=arm || ARCH=armv7hl ;;
# Unless $ARCH is already set, use uname -m for all other archs: # Unless $ARCH is already set, use uname -m for all other archs:
*) ARCH=$(uname -m) ;; *) ARCH=$(uname -m) ;;
@ -54,9 +54,9 @@ fi
if [ "$ARCH" = "i586" ]; then if [ "$ARCH" = "i586" ]; then
SLKCFLAGS="-O2 -march=i586 -mtune=i686" SLKCFLAGS="-O2 -march=i586 -mtune=i686"
elif [ "$ARCH" = "i686" ]; then elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686" SLKCFLAGS="-O2 -march=pentium4 -mtune=generic"
elif [ "$ARCH" = "x86_64" ]; then elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC" SLKCFLAGS="-O2 -march=x86-64 -mtune=generic -fPIC"
elif [ "$ARCH" = "armv7hl" ]; then elif [ "$ARCH" = "armv7hl" ]; then
SLKCFLAGS="-O2 -march=armv7-a -mfpu=vfpv3-d16" SLKCFLAGS="-O2 -march=armv7-a -mfpu=vfpv3-d16"
else else

View file

@ -24,7 +24,7 @@ cd $(dirname $0) ; CWD=$(pwd)
PKGNAM=spirv-llvm-translator PKGNAM=spirv-llvm-translator
VERSION=${VERSION:-$(echo SPIRV-LLVM-Translator-*.tar.?z* | rev | cut -f 3- -d . | cut -f 1 -d - | rev)} VERSION=${VERSION:-$(echo SPIRV-LLVM-Translator-*.tar.?z* | rev | cut -f 3- -d . | cut -f 1 -d - | rev)}
BUILD=${BUILD:-1} BUILD=${BUILD:-2}
NUMJOBS=${NUMJOBS:-" -j$(expr $(nproc) + 1) "} NUMJOBS=${NUMJOBS:-" -j$(expr $(nproc) + 1) "}
@ -32,7 +32,7 @@ NUMJOBS=${NUMJOBS:-" -j$(expr $(nproc) + 1) "}
MARCH=$( uname -m ) MARCH=$( uname -m )
if [ -z "$ARCH" ]; then if [ -z "$ARCH" ]; then
case "$MARCH" in case "$MARCH" in
i?86) export ARCH=i586 ;; i?86) export ARCH=i686 ;;
armv7hl) export ARCH=$MARCH ;; armv7hl) export ARCH=$MARCH ;;
arm*) export ARCH=arm ;; arm*) export ARCH=arm ;;
# Unless $ARCH is already set, use uname -m for all other archs: # Unless $ARCH is already set, use uname -m for all other archs:
@ -51,11 +51,14 @@ fi
if [ "$ARCH" = "i586" ]; then if [ "$ARCH" = "i586" ]; then
SLKCFLAGS="-O2 -march=i586 -mtune=i686" SLKCFLAGS="-O2 -march=i586 -mtune=i686"
LIBDIRSUFFIX="" LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=pentium4 -mtune=generic"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "s390" ]; then elif [ "$ARCH" = "s390" ]; then
SLKCFLAGS="-O2" SLKCFLAGS="-O2"
LIBDIRSUFFIX="" LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC" SLKCFLAGS="-O2 -march=x86-64 -mtune=generic -fPIC"
LIBDIRSUFFIX="64" LIBDIRSUFFIX="64"
elif [ "$ARCH" = "armv7hl" ]; then elif [ "$ARCH" = "armv7hl" ]; then
SLKCFLAGS="-O2 -march=armv7-a -mfpu=vfpv3-d16" SLKCFLAGS="-O2 -march=armv7-a -mfpu=vfpv3-d16"

View file

@ -1,7 +1,7 @@
#!/bin/bash #!/bin/bash
# Copyright 2009 Eric Hameleers, Eindhoven, NL # Copyright 2009 Eric Hameleers, Eindhoven, NL
# Copyright 2009, 2010, 2011, 2013, 2018, 2020, 2023 Patrick J. Volkerding, Sebeka, MN, USA # Copyright 2009, 2010, 2011, 2013, 2018, 2020, 2023, 2024 Patrick J. Volkerding, Sebeka, MN, USA
# All rights reserved. # All rights reserved.
# Redistribution and use of this script, with or without modification, is # Redistribution and use of this script, with or without modification, is
@ -32,7 +32,7 @@ NUMJOBS=${NUMJOBS:-" -j$(expr $(nproc) + 1) "}
# Automatically determine the architecture we're building on: # Automatically determine the architecture we're building on:
if [ -z "$ARCH" ]; then if [ -z "$ARCH" ]; then
case "$( uname -m )" in case "$( uname -m )" in
i?86) export ARCH=i586 ;; i?86) export ARCH=i686 ;;
arm*) export ARCH=arm ;; arm*) export ARCH=arm ;;
# Unless $ARCH is already set, use uname -m for all other archs: # Unless $ARCH is already set, use uname -m for all other archs:
*) export ARCH=$( uname -m ) ;; *) export ARCH=$( uname -m ) ;;
@ -53,11 +53,14 @@ PKG=$TMP/package-$PKGNAM
if [ "$ARCH" = "i586" ]; then if [ "$ARCH" = "i586" ]; then
SLKCFLAGS="-O2 -march=i586 -mtune=i686" SLKCFLAGS="-O2 -march=i586 -mtune=i686"
LIBDIRSUFFIX="" LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=pentium4 -mtune=generic"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "s390" ]; then elif [ "$ARCH" = "s390" ]; then
SLKCFLAGS="-O2" SLKCFLAGS="-O2"
LIBDIRSUFFIX="" LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC" SLKCFLAGS="-O2 -march=x86-64 -mtune=generic -fPIC"
LIBDIRSUFFIX="64" LIBDIRSUFFIX="64"
else else
SLKCFLAGS="-O2" SLKCFLAGS="-O2"
@ -101,12 +104,16 @@ meson setup \
--buildtype=release \ --buildtype=release \
-Ddoxygen-doc=disabled \ -Ddoxygen-doc=disabled \
-Ddoxygen-html=false \ -Ddoxygen-html=false \
-Dgconv=disabled \
.. || exit 1 .. || exit 1
"${NINJA:=ninja}" $NUMJOBS || exit 1 "${NINJA:=ninja}" $NUMJOBS || exit 1
DESTDIR=$PKG $NINJA install || exit 1 DESTDIR=$PKG $NINJA install || exit 1
cd .. cd ..
# DO NOT overwrite gconv-modules from glibc! # DO NOT overwrite gconv-modules from glibc!
# Yeah, I think we'll just disable these above since I'm not aware of
# any important reason for the gconv modules anyway.
# If I'm wrong, let me know.
if [ -r $PKG/usr/lib${LIBDIRSUFFIX}/gconv/gconv-modules ]; then if [ -r $PKG/usr/lib${LIBDIRSUFFIX}/gconv/gconv-modules ]; then
mkdir -p $PKG/usr/lib${LIBDIRSUFFIX}/gconv/gconv-modules.d mkdir -p $PKG/usr/lib${LIBDIRSUFFIX}/gconv/gconv-modules.d
mv $PKG/usr/lib${LIBDIRSUFFIX}/gconv/gconv-modules $PKG/usr/lib${LIBDIRSUFFIX}/gconv/gconv-modules.d/v4l-utils.conf mv $PKG/usr/lib${LIBDIRSUFFIX}/gconv/gconv-modules $PKG/usr/lib${LIBDIRSUFFIX}/gconv/gconv-modules.d/v4l-utils.conf

View file

@ -29,7 +29,7 @@ BUILD=${BUILD:-1}
# Automatically determine the architecture we're building on: # Automatically determine the architecture we're building on:
if [ -z "$ARCH" ]; then if [ -z "$ARCH" ]; then
case "$( uname -m )" in case "$( uname -m )" in
i?86) export ARCH=i586 ;; i?86) export ARCH=i686 ;;
arm*) export ARCH=arm ;; arm*) export ARCH=arm ;;
# Unless $ARCH is already set, use uname -m for all other archs: # Unless $ARCH is already set, use uname -m for all other archs:
*) export ARCH=$( uname -m ) ;; *) export ARCH=$( uname -m ) ;;
@ -51,14 +51,14 @@ PKG=$TMP/package-${PKGNAM}
rm -rf $PKG rm -rf $PKG
mkdir -p $TMP $PKG/etc/default mkdir -p $TMP $PKG/etc/default
if [ "$ARCH" = "i586" ]; then if [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i586 -mtune=i686" SLKCFLAGS="-O2 -march=pentium4 -mtune=generic"
LIBDIRSUFFIX="" LIBDIRSUFFIX=""
elif [ "$ARCH" = "s390" ]; then elif [ "$ARCH" = "s390" ]; then
SLKCFLAGS="-O2" SLKCFLAGS="-O2"
LIBDIRSUFFIX="" LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC" SLKCFLAGS="-O2 -march=x86-64 -mtune=generic -fPIC"
LIBDIRSUFFIX="64" LIBDIRSUFFIX="64"
fi fi

View file

@ -24,12 +24,12 @@ cd $(dirname $0) ; CWD=$(pwd)
PKGNAM=fetchmail PKGNAM=fetchmail
VERSION=${VERSION:-$(echo $PKGNAM-*.tar.?z | rev | cut -f 3- -d . | cut -f 1 -d - | rev)} VERSION=${VERSION:-$(echo $PKGNAM-*.tar.?z | rev | cut -f 3- -d . | cut -f 1 -d - | rev)}
BUILD=${BUILD:-2} BUILD=${BUILD:-1}
# Automatically determine the architecture we're building on: # Automatically determine the architecture we're building on:
if [ -z "$ARCH" ]; then if [ -z "$ARCH" ]; then
case "$( uname -m )" in case "$( uname -m )" in
i?86) export ARCH=i586 ;; i?86) export ARCH=i686 ;;
arm*) export ARCH=arm ;; arm*) export ARCH=arm ;;
# Unless $ARCH is already set, use uname -m for all other archs: # Unless $ARCH is already set, use uname -m for all other archs:
*) export ARCH=$( uname -m ) ;; *) export ARCH=$( uname -m ) ;;
@ -44,12 +44,12 @@ if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
exit 0 exit 0
fi fi
if [ "$ARCH" = "i586" ]; then if [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i586 -mtune=i686" SLKCFLAGS="-O2 -march=pentium4 -mtune=generic"
elif [ "$ARCH" = "s390" ]; then elif [ "$ARCH" = "s390" ]; then
SLKCFLAGS="-O2" SLKCFLAGS="-O2"
elif [ "$ARCH" = "x86_64" ]; then elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC" SLKCFLAGS="-O2 -march=x86-64 -mtune=generic -fPIC"
else else
SLKCFLAGS="-O2" SLKCFLAGS="-O2"
fi fi

View file

@ -23,14 +23,14 @@ cd $(dirname $0) ; CWD=$(pwd)
PKGNAM=obexftp PKGNAM=obexftp
VERSION=${VERSION:-$(echo $PKGNAM-*-Source.tar.?z* | rev | cut -f 3- -d . | cut -f 2 -d - | rev)} VERSION=${VERSION:-$(echo $PKGNAM-*-Source.tar.?z* | rev | cut -f 3- -d . | cut -f 2 -d - | rev)}
BUILD=${BUILD:-12} BUILD=${BUILD:-13}
NUMJOBS=${NUMJOBS:-" -j$(expr $(nproc) + 1) "} NUMJOBS=${NUMJOBS:-" -j$(expr $(nproc) + 1) "}
# Automatically determine the architecture we're building on: # Automatically determine the architecture we're building on:
if [ -z "$ARCH" ]; then if [ -z "$ARCH" ]; then
case "$( uname -m )" in case "$( uname -m )" in
i?86) export ARCH=i586 ;; i?86) export ARCH=i686 ;;
arm*) export ARCH=arm ;; arm*) export ARCH=arm ;;
# Unless $ARCH is already set, use uname -m for all other archs: # Unless $ARCH is already set, use uname -m for all other archs:
*) export ARCH=$( uname -m ) ;; *) export ARCH=$( uname -m ) ;;
@ -48,14 +48,14 @@ fi
TMP=${TMP:-/tmp} TMP=${TMP:-/tmp}
PKG=$TMP/package-${PKGNAM} PKG=$TMP/package-${PKGNAM}
if [ "$ARCH" = "i586" ]; then if [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i586 -mtune=i686" SLKCFLAGS="-O2 -march=pentium4 -mtune=generic"
LIBDIRSUFFIX="" LIBDIRSUFFIX=""
elif [ "$ARCH" = "s390" ]; then elif [ "$ARCH" = "s390" ]; then
SLKCFLAGS="-O2" SLKCFLAGS="-O2"
LIBDIRSUFFIX="" LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC" SLKCFLAGS="-O2 -march=x86-64 -mtune=generic -fPIC"
LIBDIRSUFFIX="64" LIBDIRSUFFIX="64"
else else
SLKCFLAGS="-O2" SLKCFLAGS="-O2"

View file

@ -25,7 +25,7 @@ cd $(dirname $0) ; CWD=$(pwd)
PKGNAM=pinentry PKGNAM=pinentry
VERSION=${VERSION:-$(echo $PKGNAM-*.tar.?z | rev | cut -f 3- -d . | cut -f 1 -d - | rev)} VERSION=${VERSION:-$(echo $PKGNAM-*.tar.?z | rev | cut -f 3- -d . | cut -f 1 -d - | rev)}
BUILD=${BUILD:-1} BUILD=${BUILD:-2}
# Automatically determine the architecture we're building on: # Automatically determine the architecture we're building on:
if [ -z "$ARCH" ]; then if [ -z "$ARCH" ]; then
@ -52,8 +52,7 @@ if [ "$ARCH" = "i586" ]; then
LIBDIRSUFFIX="" LIBDIRSUFFIX=""
ARCHQUADLET="" ARCHQUADLET=""
elif [ "$ARCH" = "i686" ]; then elif [ "$ARCH" = "i686" ]; then
# Looks like this is baseline now... maybe time to bump everything to at least i686 SLKCFLAGS="-O2 -march=pentium4 -mtune=generic"
SLKCFLAGS="-O2 -march=i686 -mtune=i686 -mfpmath=sse -msse -msse2"
LIBDIRSUFFIX="" LIBDIRSUFFIX=""
ARCHQUADLET="" ARCHQUADLET=""
elif [ "$ARCH" = "s390" ]; then elif [ "$ARCH" = "s390" ]; then
@ -61,7 +60,7 @@ elif [ "$ARCH" = "s390" ]; then
LIBDIRSUFFIX="" LIBDIRSUFFIX=""
ARCHQUADLET="" ARCHQUADLET=""
elif [ "$ARCH" = "x86_64" ]; then elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC" SLKCFLAGS="-O2 -march=x86-64 -mtune=generic -fPIC"
LIBDIRSUFFIX="64" LIBDIRSUFFIX="64"
ARCHQUADLET="" ARCHQUADLET=""
elif [ "$ARCH" = "arm" ]; then elif [ "$ARCH" = "arm" ]; then

View file

@ -1,210 +0,0 @@
From 8e6485a1bcb0baffdea9e55255a81270b768439c Mon Sep 17 00:00:00 2001
From: Jouni Malinen <j@w1.fi>
Date: Sat, 8 Jul 2023 19:55:32 +0300
Subject: PEAP client: Update Phase 2 authentication requirements
The previous PEAP client behavior allowed the server to skip Phase 2
authentication with the expectation that the server was authenticated
during Phase 1 through TLS server certificate validation. Various PEAP
specifications are not exactly clear on what the behavior on this front
is supposed to be and as such, this ended up being more flexible than
the TTLS/FAST/TEAP cases. However, this is not really ideal when
unfortunately common misconfiguration of PEAP is used in deployed
devices where the server trust root (ca_cert) is not configured or the
user has an easy option for allowing this validation step to be skipped.
Change the default PEAP client behavior to be to require Phase 2
authentication to be successfully completed for cases where TLS session
resumption is not used and the client certificate has not been
configured. Those two exceptions are the main cases where a deployed
authentication server might skip Phase 2 and as such, where a more
strict default behavior could result in undesired interoperability
issues. Requiring Phase 2 authentication will end up disabling TLS
session resumption automatically to avoid interoperability issues.
Allow Phase 2 authentication behavior to be configured with a new phase1
configuration parameter option:
'phase2_auth' option can be used to control Phase 2 (i.e., within TLS
tunnel) behavior for PEAP:
* 0 = do not require Phase 2 authentication
* 1 = require Phase 2 authentication when client certificate
(private_key/client_cert) is no used and TLS session resumption was
not used (default)
* 2 = require Phase 2 authentication in all cases
Signed-off-by: Jouni Malinen <j@w1.fi>
---
src/eap_peer/eap_config.h | 8 ++++++++
src/eap_peer/eap_peap.c | 40 +++++++++++++++++++++++++++++++++++---
src/eap_peer/eap_tls_common.c | 6 ++++++
src/eap_peer/eap_tls_common.h | 5 +++++
wpa_supplicant/wpa_supplicant.conf | 7 +++++++
5 files changed, 63 insertions(+), 3 deletions(-)
diff --git a/src/eap_peer/eap_config.h b/src/eap_peer/eap_config.h
index 26744ab68..58d5a1359 100644
--- a/src/eap_peer/eap_config.h
+++ b/src/eap_peer/eap_config.h
@@ -471,6 +471,14 @@ struct eap_peer_config {
* 1 = use cryptobinding if server supports it
* 2 = require cryptobinding
*
+ * phase2_auth option can be used to control Phase 2 (i.e., within TLS
+ * tunnel) behavior for PEAP:
+ * 0 = do not require Phase 2 authentication
+ * 1 = require Phase 2 authentication when client certificate
+ * (private_key/client_cert) is no used and TLS session resumption was
+ * not used (default)
+ * 2 = require Phase 2 authentication in all cases
+ *
* EAP-WSC (WPS) uses following options: pin=Device_Password and
* uuid=Device_UUID
*
diff --git a/src/eap_peer/eap_peap.c b/src/eap_peer/eap_peap.c
index 12e30df29..608069719 100644
--- a/src/eap_peer/eap_peap.c
+++ b/src/eap_peer/eap_peap.c
@@ -67,6 +67,7 @@ struct eap_peap_data {
u8 cmk[20];
int soh; /* Whether IF-TNCCS-SOH (Statement of Health; Microsoft NAP)
* is enabled. */
+ enum { NO_AUTH, FOR_INITIAL, ALWAYS } phase2_auth;
};
@@ -114,6 +115,19 @@ static void eap_peap_parse_phase1(struct eap_peap_data *data,
wpa_printf(MSG_DEBUG, "EAP-PEAP: Require cryptobinding");
}
+ if (os_strstr(phase1, "phase2_auth=0")) {
+ data->phase2_auth = NO_AUTH;
+ wpa_printf(MSG_DEBUG,
+ "EAP-PEAP: Do not require Phase 2 authentication");
+ } else if (os_strstr(phase1, "phase2_auth=1")) {
+ data->phase2_auth = FOR_INITIAL;
+ wpa_printf(MSG_DEBUG,
+ "EAP-PEAP: Require Phase 2 authentication for initial connection");
+ } else if (os_strstr(phase1, "phase2_auth=2")) {
+ data->phase2_auth = ALWAYS;
+ wpa_printf(MSG_DEBUG,
+ "EAP-PEAP: Require Phase 2 authentication for all cases");
+ }
#ifdef EAP_TNC
if (os_strstr(phase1, "tnc=soh2")) {
data->soh = 2;
@@ -142,6 +156,7 @@ static void * eap_peap_init(struct eap_sm *sm)
data->force_peap_version = -1;
data->peap_outer_success = 2;
data->crypto_binding = OPTIONAL_BINDING;
+ data->phase2_auth = FOR_INITIAL;
if (config && config->phase1)
eap_peap_parse_phase1(data, config->phase1);
@@ -454,6 +469,20 @@ static int eap_tlv_validate_cryptobinding(struct eap_sm *sm,
}
+static bool peap_phase2_sufficient(struct eap_sm *sm,
+ struct eap_peap_data *data)
+{
+ if ((data->phase2_auth == ALWAYS ||
+ (data->phase2_auth == FOR_INITIAL &&
+ !tls_connection_resumed(sm->ssl_ctx, data->ssl.conn) &&
+ !data->ssl.client_cert_conf) ||
+ data->phase2_eap_started) &&
+ !data->phase2_eap_success)
+ return false;
+ return true;
+}
+
+
/**
* eap_tlv_process - Process a received EAP-TLV message and generate a response
* @sm: Pointer to EAP state machine allocated with eap_peer_sm_init()
@@ -568,6 +597,11 @@ static int eap_tlv_process(struct eap_sm *sm, struct eap_peap_data *data,
" - force failed Phase 2");
resp_status = EAP_TLV_RESULT_FAILURE;
ret->decision = DECISION_FAIL;
+ } else if (!peap_phase2_sufficient(sm, data)) {
+ wpa_printf(MSG_INFO,
+ "EAP-PEAP: Server indicated Phase 2 success, but sufficient Phase 2 authentication has not been completed");
+ resp_status = EAP_TLV_RESULT_FAILURE;
+ ret->decision = DECISION_FAIL;
} else {
resp_status = EAP_TLV_RESULT_SUCCESS;
ret->decision = DECISION_UNCOND_SUCC;
@@ -887,8 +921,7 @@ continue_req:
/* EAP-Success within TLS tunnel is used to indicate
* shutdown of the TLS channel. The authentication has
* been completed. */
- if (data->phase2_eap_started &&
- !data->phase2_eap_success) {
+ if (!peap_phase2_sufficient(sm, data)) {
wpa_printf(MSG_DEBUG, "EAP-PEAP: Phase 2 "
"Success used to indicate success, "
"but Phase 2 EAP was not yet "
@@ -1199,8 +1232,9 @@ static struct wpabuf * eap_peap_process(struct eap_sm *sm, void *priv,
static bool eap_peap_has_reauth_data(struct eap_sm *sm, void *priv)
{
struct eap_peap_data *data = priv;
+
return tls_connection_established(sm->ssl_ctx, data->ssl.conn) &&
- data->phase2_success;
+ data->phase2_success && data->phase2_auth != ALWAYS;
}
diff --git a/src/eap_peer/eap_tls_common.c b/src/eap_peer/eap_tls_common.c
index 6193b4bdb..966cbd6c7 100644
--- a/src/eap_peer/eap_tls_common.c
+++ b/src/eap_peer/eap_tls_common.c
@@ -242,6 +242,12 @@ static int eap_tls_params_from_conf(struct eap_sm *sm,
sm->ext_cert_check = !!(params->flags & TLS_CONN_EXT_CERT_CHECK);
+ if (!phase2)
+ data->client_cert_conf = params->client_cert ||
+ params->client_cert_blob ||
+ params->private_key ||
+ params->private_key_blob;
+
return 0;
}
diff --git a/src/eap_peer/eap_tls_common.h b/src/eap_peer/eap_tls_common.h
index 9ac00121f..334863413 100644
--- a/src/eap_peer/eap_tls_common.h
+++ b/src/eap_peer/eap_tls_common.h
@@ -79,6 +79,11 @@ struct eap_ssl_data {
* tls_v13 - Whether TLS v1.3 or newer is used
*/
int tls_v13;
+
+ /**
+ * client_cert_conf: Whether client certificate has been configured
+ */
+ bool client_cert_conf;
};
diff --git a/wpa_supplicant/wpa_supplicant.conf b/wpa_supplicant/wpa_supplicant.conf
index f0b82443e..1b09f57d3 100644
--- a/wpa_supplicant/wpa_supplicant.conf
+++ b/wpa_supplicant/wpa_supplicant.conf
@@ -1370,6 +1370,13 @@ fast_reauth=1
# * 0 = do not use cryptobinding (default)
# * 1 = use cryptobinding if server supports it
# * 2 = require cryptobinding
+# 'phase2_auth' option can be used to control Phase 2 (i.e., within TLS
+# tunnel) behavior for PEAP:
+# * 0 = do not require Phase 2 authentication
+# * 1 = require Phase 2 authentication when client certificate
+# (private_key/client_cert) is no used and TLS session resumption was
+# not used (default)
+# * 2 = require Phase 2 authentication in all cases
# EAP-WSC (WPS) uses following options: pin=<Device Password> or
# pbc=1.
#
--
cgit v1.2.3-18-g5258

View file

@ -1,7 +1,7 @@
#!/bin/bash #!/bin/bash
# Copyright 2004-2008 Eric Hameleers, Eindhoven, NL # Copyright 2004-2008 Eric Hameleers, Eindhoven, NL
# Copyright 2008-2021 Patrick J. Volkerding, Sebeka, MN, USA # Copyright 2008-2024 Patrick J. Volkerding, Sebeka, MN, USA
# All rights reserved. # All rights reserved.
# #
# Redistribution and use of this script, with or without modification, is # Redistribution and use of this script, with or without modification, is
@ -24,15 +24,15 @@
cd $(dirname $0) ; CWD=$(pwd) cd $(dirname $0) ; CWD=$(pwd)
PKGNAM=wpa_supplicant PKGNAM=wpa_supplicant
VERSION=${VERSION:-$(echo $PKGNAM-*.tar.?z* | rev | cut -f 3- -d . | cut -f 1 -d - | rev)} VERSION=${VERSION:-$(echo $PKGNAM-*.tar.?z | rev | cut -f 3- -d . | cut -f 1 -d - | rev)}
BUILD=${BUILD:-5} BUILD=${BUILD:-1}
SRCVERSION=$(printf $VERSION | tr _ -) SRCVERSION=$(printf $VERSION | tr _ -)
# Automatically determine the architecture we're building on: # Automatically determine the architecture we're building on:
if [ -z "$ARCH" ]; then if [ -z "$ARCH" ]; then
case "$( uname -m )" in case "$( uname -m )" in
i?86) export ARCH=i586 ;; i?86) export ARCH=i686 ;;
arm*) export ARCH=arm ;; arm*) export ARCH=arm ;;
# Unless $ARCH is already set, use uname -m for all other archs: # Unless $ARCH is already set, use uname -m for all other archs:
*) export ARCH=$( uname -m ) ;; *) export ARCH=$( uname -m ) ;;
@ -49,14 +49,14 @@ fi
NUMJOBS=${NUMJOBS:-" -j$(expr $(nproc) + 1) "} NUMJOBS=${NUMJOBS:-" -j$(expr $(nproc) + 1) "}
if [ "$ARCH" = "i586" ]; then if [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i586 -mtune=i686" SLKCFLAGS="-O2 -march=pentium4 -mtune=generic"
LIBDIRSUFFIX="" LIBDIRSUFFIX=""
elif [ "$ARCH" = "s390" ]; then elif [ "$ARCH" = "s390" ]; then
SLKCFLAGS="-O2" SLKCFLAGS="-O2"
LIBDIRSUFFIX="" LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC" SLKCFLAGS="-O2 -march=x86-64 -mtune=generic -fPIC"
LIBDIRSUFFIX="64" LIBDIRSUFFIX="64"
elif [ "$ARCH" = "arm" ]; then elif [ "$ARCH" = "arm" ]; then
SLKCFLAGS="-O2 -march=armv4 -mtune=xscale" SLKCFLAGS="-O2 -march=armv4 -mtune=xscale"
@ -76,7 +76,7 @@ rm -rf $PKG
mkdir -p $TMP $PKG mkdir -p $TMP $PKG
cd $TMP cd $TMP
rm -rf ${PKGNAM}-${SRCVERSION} rm -rf ${PKGNAM}-${SRCVERSION}
tar xvf $CWD/${PKGNAM}-${SRCVERSION}.tar.?z* || exit 1 tar xvf $CWD/${PKGNAM}-${SRCVERSION}.tar.?z || exit 1
cd ${PKGNAM}-${SRCVERSION} cd ${PKGNAM}-${SRCVERSION}
chown -R root:root . chown -R root:root .
find . \ find . \
@ -91,9 +91,6 @@ zcat $CWD/patches/wpa_supplicant-quiet-scan-results-message.patch.gz | patch -p1
# Allow legacy tls to avoid breaking WPA2-Enterprise: # Allow legacy tls to avoid breaking WPA2-Enterprise:
zcat $CWD/patches/allow-tlsv1.patch.gz | patch -p1 --verbose || exit 1 zcat $CWD/patches/allow-tlsv1.patch.gz | patch -p1 --verbose || exit 1
# CVE-2023-52160:
zcat $CWD/patches/8e6485a1bcb0baffdea9e55255a81270b768439c.patch.gz | patch -p1 --verbose || exit 1
cd wpa_supplicant cd wpa_supplicant
# Create the configuration file for building wpa_supplicant: # Create the configuration file for building wpa_supplicant:

View file

@ -25,7 +25,7 @@ cd $(dirname $0) ; CWD=$(pwd)
PKGNAM=fcitx5-qt PKGNAM=fcitx5-qt
VERSION=${VERSION:-$(echo $PKGNAM-*.tar.zst | rev | cut -f 3- -d . | cut -f 1 -d- | rev)} VERSION=${VERSION:-$(echo $PKGNAM-*.tar.zst | rev | cut -f 3- -d . | cut -f 1 -d- | rev)}
BUILD=${BUILD:-2} BUILD=${BUILD:-3}
NUMJOBS=${NUMJOBS:-" -j$(expr $(nproc) + 1) "} NUMJOBS=${NUMJOBS:-" -j$(expr $(nproc) + 1) "}
@ -45,15 +45,14 @@ if [ "$ARCH" = "i586" ]; then
SLKCFLAGS="-O2 -march=i586 -mtune=i686" SLKCFLAGS="-O2 -march=i586 -mtune=i686"
LIBDIRSUFFIX="" LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then elif [ "$ARCH" = "i686" ]; then
# Looks like this is baseline now... maybe time to bump everything to at least i686 SLKCFLAGS="-O2 -march=pentium4 -mtune=generic"
SLKCFLAGS="-O2 -march=i686 -mtune=i686 -mfpmath=sse -msse -msse2"
SLKLDFLAGS="" SLKLDFLAGS=""
LIBDIRSUFFIX="" LIBDIRSUFFIX=""
elif [ "$ARCH" = "s390" ]; then elif [ "$ARCH" = "s390" ]; then
SLKCFLAGS="-O2" SLKCFLAGS="-O2"
LIBDIRSUFFIX="" LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC" SLKCFLAGS="-O2 -march=x86-64 -mtune=generic -fPIC"
LIBDIRSUFFIX="64" LIBDIRSUFFIX="64"
elif [ "$ARCH" = "armv7hl" ]; then elif [ "$ARCH" = "armv7hl" ]; then
SLKCFLAGS="-O2 -march=armv7-a -mfpu=vfpv3-d16" SLKCFLAGS="-O2 -march=armv7-a -mfpu=vfpv3-d16"

View file

@ -35,7 +35,7 @@ NUMJOBS=${NUMJOBS:-" -j$(expr $(nproc) + 1) "}
MARCH=$( uname -m ) MARCH=$( uname -m )
if [ -z "$ARCH" ]; then if [ -z "$ARCH" ]; then
case "$MARCH" in case "$MARCH" in
i?86) export ARCH=i586 ;; i?86) export ARCH=i686 ;;
armv7hl) export ARCH=$MARCH ;; armv7hl) export ARCH=$MARCH ;;
arm*) export ARCH=arm ;; arm*) export ARCH=arm ;;
# Unless $ARCH is already set, use uname -m for all other archs: # Unless $ARCH is already set, use uname -m for all other archs:
@ -47,13 +47,13 @@ if [ "$ARCH" = "i586" ]; then
SLKCFLAGS="-O2 -march=i586 -mtune=i686" SLKCFLAGS="-O2 -march=i586 -mtune=i686"
LIBDIRSUFFIX="" LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686" SLKCFLAGS="-O2 -march=pentium4 -mtune=generic"
LIBDIRSUFFIX="" LIBDIRSUFFIX=""
elif [ "$ARCH" = "s390" ]; then elif [ "$ARCH" = "s390" ]; then
SLKCFLAGS="-O2" SLKCFLAGS="-O2"
LIBDIRSUFFIX="" LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC" SLKCFLAGS="-O2 -march=x86-64 -mtune=generic -fPIC"
LIBDIRSUFFIX="64" LIBDIRSUFFIX="64"
elif [ "$ARCH" = "armv7hl" ]; then elif [ "$ARCH" = "armv7hl" ]; then
SLKCFLAGS="-O3 -march=armv7-a -mfpu=vfpv3-d16" SLKCFLAGS="-O3 -march=armv7-a -mfpu=vfpv3-d16"

View file

@ -24,12 +24,12 @@ cd $(dirname $0) ; CWD=$(pwd)
PKGNAM=libdrm PKGNAM=libdrm
VERSION=${VERSION:-$(echo $PKGNAM-*.tar.?z | rev | cut -f 3- -d . | cut -f 1 -d - | rev)} VERSION=${VERSION:-$(echo $PKGNAM-*.tar.?z | rev | cut -f 3- -d . | cut -f 1 -d - | rev)}
BUILD=${BUILD:-1} BUILD=${BUILD:-2}
# Automatically determine architecture for build & packaging: # Automatically determine architecture for build & packaging:
if [ -z "$ARCH" ]; then if [ -z "$ARCH" ]; then
case "$( uname -m )" in case "$( uname -m )" in
i?86) export ARCH=i586 ;; i?86) export ARCH=i686 ;;
# Unless $ARCH is already set, use uname -m for all other archs: # Unless $ARCH is already set, use uname -m for all other archs:
*) export ARCH=$( uname -m ) ;; *) export ARCH=$( uname -m ) ;;
esac esac
@ -54,11 +54,14 @@ if [ "$ARCH" = "i486" ]; then
elif [ "$ARCH" = "i586" ]; then elif [ "$ARCH" = "i586" ]; then
SLKCFLAGS="-O2 -march=i586 -mtune=i686" SLKCFLAGS="-O2 -march=i586 -mtune=i686"
LIBDIRSUFFIX="" LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=pentium4 -mtune=generic"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "s390" ]; then elif [ "$ARCH" = "s390" ]; then
SLKCFLAGS="-O2" SLKCFLAGS="-O2"
LIBDIRSUFFIX="" LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC" SLKCFLAGS="-O2 -march=x86-64 -mtune=generic -fPIC"
LIBDIRSUFFIX="64" LIBDIRSUFFIX="64"
else else
SLKCFLAGS="-O2" SLKCFLAGS="-O2"

View file

@ -26,7 +26,7 @@ cd $(dirname $0) ; CWD=$(pwd)
PKGNAM=marisa PKGNAM=marisa
SRCNAM=marisa-trie SRCNAM=marisa-trie
VERSION=${VERSION:-$(echo $SRCNAM-*.tar.?z | rev | cut -f 3- -d . | cut -f 1 -d- | rev)} VERSION=${VERSION:-$(echo $SRCNAM-*.tar.?z | rev | cut -f 3- -d . | cut -f 1 -d- | rev)}
BUILD=${BUILD:-9} BUILD=${BUILD:-10}
NUMJOBS=${NUMJOBS:-" -j$(expr $(nproc) + 1) "} NUMJOBS=${NUMJOBS:-" -j$(expr $(nproc) + 1) "}
@ -34,7 +34,7 @@ NUMJOBS=${NUMJOBS:-" -j$(expr $(nproc) + 1) "}
MARCH=$( uname -m ) MARCH=$( uname -m )
if [ -z "$ARCH" ]; then if [ -z "$ARCH" ]; then
case "$MARCH" in case "$MARCH" in
i?86) export ARCH=i586 ;; i?86) export ARCH=i686 ;;
armv7hl) export ARCH=$MARCH ;; armv7hl) export ARCH=$MARCH ;;
arm*) export ARCH=arm ;; arm*) export ARCH=arm ;;
# Unless $ARCH is already set, use uname -m for all other archs: # Unless $ARCH is already set, use uname -m for all other archs:
@ -42,14 +42,14 @@ if [ -z "$ARCH" ]; then
esac esac
fi fi
if [ "$ARCH" = "i586" ]; then if [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i586 -mtune=i686" SLKCFLAGS="-O2 -march=pentium4 -mtune=generic"
LIBDIRSUFFIX="" LIBDIRSUFFIX=""
elif [ "$ARCH" = "s390" ]; then elif [ "$ARCH" = "s390" ]; then
SLKCFLAGS="-O2" SLKCFLAGS="-O2"
LIBDIRSUFFIX="" LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC" SLKCFLAGS="-O2 -march=x86-64 -mtune=generic -fPIC"
LIBDIRSUFFIX="64" LIBDIRSUFFIX="64"
elif [ "$ARCH" = "armv7hl" ]; then elif [ "$ARCH" = "armv7hl" ]; then
SLKCFLAGS="-O2 -march=armv7-a -mfpu=vfpv3-d16" SLKCFLAGS="-O2 -march=armv7-a -mfpu=vfpv3-d16"

View file

@ -26,7 +26,7 @@ PKGNAM=mesa
VERSION=${VERSION:-$(echo $PKGNAM-[0-9]*.tar.?z | rev | cut -f 3- -d . | rev | cut -f 2- -d -)} VERSION=${VERSION:-$(echo $PKGNAM-[0-9]*.tar.?z | rev | cut -f 3- -d . | rev | cut -f 2- -d -)}
AMBERVERS=${AMBERVERS:-21.3.9} AMBERVERS=${AMBERVERS:-21.3.9}
DEMOVERS=${DEMOVERS:-8.5.0} DEMOVERS=${DEMOVERS:-8.5.0}
BUILD=${BUILD:-1} BUILD=${BUILD:-2}
BUILD_AMBER=${BUILD_AMBER:-YES} BUILD_AMBER=${BUILD_AMBER:-YES}
BUILD_DEMOS=${BUILD_DEMOS:-YES} BUILD_DEMOS=${BUILD_DEMOS:-YES}
CODECS=${CODECS:-h264dec,h264enc,h265dec,h265enc,vc1dec,av1dec,av1enc,vp9dec} CODECS=${CODECS:-h264dec,h264enc,h265dec,h265enc,vc1dec,av1dec,av1enc,vp9dec}
@ -38,7 +38,7 @@ GALLIUM_DRIVERS="nouveau,r300,r600,svga,radeonsi,swrast,virgl,i915,iris,crocus,z
if [ -z "$ARCH" ]; then if [ -z "$ARCH" ]; then
case "$( uname -m )" in case "$( uname -m )" in
i?86) export ARCH=i586 ;; i?86) export ARCH=i686 ;;
arm*) export ARCH=arm ;; arm*) export ARCH=arm ;;
*) export ARCH=$( uname -m ) ;; *) export ARCH=$( uname -m ) ;;
esac esac
@ -58,8 +58,11 @@ PKG=$TMP/package-mesa
if [ "$ARCH" = "i586" ]; then if [ "$ARCH" = "i586" ]; then
SLKCFLAGS="-O2 -march=i586 -mtune=i686" SLKCFLAGS="-O2 -march=i586 -mtune=i686"
LIBDIRSUFFIX="" LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=pentium4 -mtune=generic"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC" SLKCFLAGS="-O2 -march=x86-64 -mtune=generic -fPIC"
LIBDIRSUFFIX="64" LIBDIRSUFFIX="64"
# Only supported on x86_64: # Only supported on x86_64:
INTELRT="-Dintel-rt=enabled" INTELRT="-Dintel-rt=enabled"

View file

@ -27,7 +27,7 @@ cd $(dirname $0) ; CWD=$(pwd)
PKGNAM=vulkan-sdk PKGNAM=vulkan-sdk
# The ./VERSION file is created by ./fetch-sources.sh: # The ./VERSION file is created by ./fetch-sources.sh:
VERSION=${VERSION:-$(cat VERSION)} VERSION=${VERSION:-$(cat VERSION)}
BUILD=${BUILD:-2} BUILD=${BUILD:-3}
# Choose a compiler (gcc/g++ or clang/clang++ if you'd like to debug that ;-) # Choose a compiler (gcc/g++ or clang/clang++ if you'd like to debug that ;-)
export CC=${CC:-gcc} export CC=${CC:-gcc}
@ -37,7 +37,7 @@ export CXX=${CXX:-g++}
MARCH=$( uname -m ) MARCH=$( uname -m )
if [ -z "$ARCH" ]; then if [ -z "$ARCH" ]; then
case "$MARCH" in case "$MARCH" in
i?86) export ARCH=i586 ;; i?86) export ARCH=i686 ;;
armv7hl) export ARCH=$MARCH ;; armv7hl) export ARCH=$MARCH ;;
arm*) export ARCH=arm ;; arm*) export ARCH=arm ;;
# Unless $ARCH is already set, use uname -m for all other archs: # Unless $ARCH is already set, use uname -m for all other archs:
@ -55,14 +55,14 @@ fi
NUMJOBS=${NUMJOBS:-" -j$(expr $(nproc) + 1) "} NUMJOBS=${NUMJOBS:-" -j$(expr $(nproc) + 1) "}
if [ "$ARCH" = "i586" ]; then if [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i586 -mtune=i686" SLKCFLAGS="-O2 -march=pentium4 -mtune=generic"
LIBDIRSUFFIX="" LIBDIRSUFFIX=""
elif [ "$ARCH" = "s390" ]; then elif [ "$ARCH" = "s390" ]; then
SLKCFLAGS="-O2" SLKCFLAGS="-O2"
LIBDIRSUFFIX="" LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC" SLKCFLAGS="-O2 -march=x86-64 -mtune=generic -fPIC"
LIBDIRSUFFIX="64" LIBDIRSUFFIX="64"
elif [ "$ARCH" = "armv7hl" ]; then elif [ "$ARCH" = "armv7hl" ]; then
SLKCFLAGS="-O2 -march=armv7-a -mfpu=vfpv3-d16" SLKCFLAGS="-O2 -march=armv7-a -mfpu=vfpv3-d16"

View file

@ -24,7 +24,7 @@ cd $(dirname $0) ; CWD=$(pwd)
PKGNAM=audacious-plugins PKGNAM=audacious-plugins
VERSION=${VERSION:-$(echo $PKGNAM-*.tar.?z | rev | cut -f 3- -d . | cut -f 1 -d - | rev)} VERSION=${VERSION:-$(echo $PKGNAM-*.tar.?z | rev | cut -f 3- -d . | cut -f 1 -d - | rev)}
BUILD=${BUILD:-1} BUILD=${BUILD:-2}
# Whether to include faad/aac support: # Whether to include faad/aac support:
FAAD=${FAAD:---disable-aac} FAAD=${FAAD:---disable-aac}
@ -48,15 +48,14 @@ if [ "$ARCH" = "i586" ]; then
SLKCFLAGS="-O2 -march=i586 -mtune=i686" SLKCFLAGS="-O2 -march=i586 -mtune=i686"
LIBDIRSUFFIX="" LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then elif [ "$ARCH" = "i686" ]; then
# Looks like this is baseline now... maybe time to bump everything to at least i686 SLKCFLAGS="-O2 -march=pentium4 -mtune=generic"
SLKCFLAGS="-O2 -march=i686 -mtune=i686 -mfpmath=sse -msse -msse2"
SLKLDFLAGS="" SLKLDFLAGS=""
LIBDIRSUFFIX="" LIBDIRSUFFIX=""
elif [ "$ARCH" = "s390" ]; then elif [ "$ARCH" = "s390" ]; then
SLKCFLAGS="-O2" SLKCFLAGS="-O2"
LIBDIRSUFFIX="" LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2" SLKCFLAGS="-O2 -march=x86-64 -mtune=generic -fPIC"
LIBDIRSUFFIX="64" LIBDIRSUFFIX="64"
else else
SLKCFLAGS="-O2" SLKCFLAGS="-O2"

View file

@ -34,7 +34,7 @@ NUMJOBS=${NUMJOBS:-" -j$(expr $(nproc) + 1) "}
# Automatically determine the architecture we're building on: # Automatically determine the architecture we're building on:
if [ -z "$ARCH" ]; then if [ -z "$ARCH" ]; then
case "$( uname -m )" in case "$( uname -m )" in
i?86) export ARCH=i586 ;; i?86) export ARCH=i686 ;;
arm*) export ARCH=arm ;; arm*) export ARCH=arm ;;
# Unless $ARCH is already set, use uname -m for all other archs: # Unless $ARCH is already set, use uname -m for all other archs:
*) export ARCH=$( uname -m ) ;; *) export ARCH=$( uname -m ) ;;
@ -44,14 +44,14 @@ fi
TMP=${TMP:-/tmp} TMP=${TMP:-/tmp}
PKG=$TMP/package-${PKGNAM} PKG=$TMP/package-${PKGNAM}
if [ "$ARCH" = "i586" ]; then if [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i586 -mtune=i686" SLKCFLAGS="-O2 -march=pentium4 -mtune=generic"
LIBDIRSUFFIX="" LIBDIRSUFFIX=""
elif [ "$ARCH" = "s390" ]; then elif [ "$ARCH" = "s390" ]; then
SLKCFLAGS="-O2" SLKCFLAGS="-O2"
LIBDIRSUFFIX="" LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2" SLKCFLAGS="-O2 -march=x86-64 -mtune=generic -fPIC"
LIBDIRSUFFIX="64" LIBDIRSUFFIX="64"
else else
SLKCFLAGS="-O2" SLKCFLAGS="-O2"

View file

@ -24,7 +24,7 @@ cd $(dirname $0) ; CWD=$(pwd)
PKGNAM=audacious PKGNAM=audacious
VERSION=${VERSION:-$(echo $PKGNAM-*.tar.?z | rev | cut -f 3- -d . | cut -f 1 -d - | rev)} VERSION=${VERSION:-$(echo $PKGNAM-*.tar.?z | rev | cut -f 3- -d . | cut -f 1 -d - | rev)}
BUILD=${BUILD:-1} BUILD=${BUILD:-2}
NUMJOBS=${NUMJOBS:-" -j$(expr $(nproc) + 1) "} NUMJOBS=${NUMJOBS:-" -j$(expr $(nproc) + 1) "}
@ -53,15 +53,14 @@ if [ "$ARCH" = "i586" ]; then
SLKCFLAGS="-O2 -march=i586 -mtune=i686" SLKCFLAGS="-O2 -march=i586 -mtune=i686"
LIBDIRSUFFIX="" LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then elif [ "$ARCH" = "i686" ]; then
# Looks like this is baseline now... maybe time to bump everything to at least i686 SLKCFLAGS="-O2 -march=pentium4 -mtune=generic"
SLKCFLAGS="-O2 -march=i686 -mtune=i686 -mfpmath=sse -msse -msse2"
SLKLDFLAGS="" SLKLDFLAGS=""
LIBDIRSUFFIX="" LIBDIRSUFFIX=""
elif [ "$ARCH" = "s390" ]; then elif [ "$ARCH" = "s390" ]; then
SLKCFLAGS="-O2" SLKCFLAGS="-O2"
LIBDIRSUFFIX="" LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC" SLKCFLAGS="-O2 -march=x86-64 -mtune=generic -fPIC"
LIBDIRSUFFIX="64" LIBDIRSUFFIX="64"
elif [ "$ARCH" = "arm" ]; then elif [ "$ARCH" = "arm" ]; then
SLKCFLAGS="-O2 -march=armv4 -mtune=xscale" SLKCFLAGS="-O2 -march=armv4 -mtune=xscale"

View file

@ -31,7 +31,7 @@ NUMJOBS=${NUMJOBS:-" -j$(expr $(nproc) + 1) "}
# Automatically determine the architecture we're building on: # Automatically determine the architecture we're building on:
if [ -z "$ARCH" ]; then if [ -z "$ARCH" ]; then
case "$( uname -m )" in case "$( uname -m )" in
i?86) export ARCH=i586 ;; i?86) export ARCH=i686 ;;
arm*) export ARCH=arm ;; arm*) export ARCH=arm ;;
# Unless $ARCH is already set, use uname -m for all other archs: # Unless $ARCH is already set, use uname -m for all other archs:
*) export ARCH=$( uname -m ) ;; *) export ARCH=$( uname -m ) ;;
@ -49,14 +49,14 @@ fi
TMP=${TMP:-/tmp} TMP=${TMP:-/tmp}
PKG=$TMP/package-${PKGNAM} PKG=$TMP/package-${PKGNAM}
if [ "$ARCH" = "i586" ]; then if [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i586 -mtune=i686" SLKCFLAGS="-O2 -march=pentium4 -mtune=generic"
LIBDIRSUFFIX="" LIBDIRSUFFIX=""
elif [ "$ARCH" = "s390" ]; then elif [ "$ARCH" = "s390" ]; then
SLKCFLAGS="-O2" SLKCFLAGS="-O2"
LIBDIRSUFFIX="" LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC" SLKCFLAGS="-O2 -march=x86-64 -mtune=generic -fPIC"
LIBDIRSUFFIX="64" LIBDIRSUFFIX="64"
elif [ "$ARCH" = "arm" ]; then elif [ "$ARCH" = "arm" ]; then
SLKCFLAGS="-O2 -march=armv4 -mtune=xscale" SLKCFLAGS="-O2 -march=armv4 -mtune=xscale"

View file

@ -87,13 +87,13 @@ if [ "$ARCH" = "i586" ]; then
SLKCFLAGS="-g0" SLKCFLAGS="-g0"
LIBDIRSUFFIX="" LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-g0" SLKCFLAGS="-g0 -march=pentium4 -mtune=generic"
LIBDIRSUFFIX="" LIBDIRSUFFIX=""
elif [ "$ARCH" = "s390" ]; then elif [ "$ARCH" = "s390" ]; then
SLKCFLAGS="-g0" SLKCFLAGS="-g0"
LIBDIRSUFFIX="" LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-g0 -fPIC" SLKCFLAGS="-g0 -march=x86-64 -mtune=generic -fPIC"
LIBDIRSUFFIX="64" LIBDIRSUFFIX="64"
elif [ "$ARCH" = "arm" ]; then elif [ "$ARCH" = "arm" ]; then
SLKCFLAGS="-g0 -march=armv4 -mtune=xscale" SLKCFLAGS="-g0 -march=armv4 -mtune=xscale"

View file

@ -26,12 +26,11 @@ cd $(dirname $0) ; CWD=$(pwd)
PKGNAM=xaos PKGNAM=xaos
SRCNAM=XaoS SRCNAM=XaoS
VERSION=${VERSION:-$(echo $SRCNAM-*.tar.?z | cut -f 2 -d -)} VERSION=${VERSION:-$(echo $SRCNAM-*.tar.?z | cut -f 2 -d -)}
BUILD=${BUILD:-1} BUILD=${BUILD:-2}
# Automatically determine the architecture we're building on: # Automatically determine the architecture we're building on:
if [ -z "$ARCH" ]; then if [ -z "$ARCH" ]; then
case "$( uname -m )" in case "$( uname -m )" in
# might as well use i686 since it won't listen to our CFLAGS anyway
i?86) ARCH=i686 ;; i?86) ARCH=i686 ;;
arm*) ARCH=arm ;; arm*) ARCH=arm ;;
# Unless $ARCH is already set, use uname -m for all other archs: # Unless $ARCH is already set, use uname -m for all other archs:
@ -53,14 +52,13 @@ if [ "$ARCH" = "i586" ]; then
SLKCFLAGS="-O2 -march=i586 -mtune=i686" SLKCFLAGS="-O2 -march=i586 -mtune=i686"
LIBDIRSUFFIX="" LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then elif [ "$ARCH" = "i686" ]; then
# Looks like this is baseline now... maybe time to bump everything to at least i686 SLKCFLAGS="-O2 -march=pentium4 -mtune=generic"
SLKCFLAGS="-O2 -march=i686 -mtune=i686 -mfpmath=sse -msse -msse2"
LIBDIRSUFFIX="" LIBDIRSUFFIX=""
elif [ "$ARCH" = "s390" ]; then elif [ "$ARCH" = "s390" ]; then
SLKCFLAGS="-O2" SLKCFLAGS="-O2"
LIBDIRSUFFIX="" LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC" SLKCFLAGS="-O2 -march=x86-64 -mtune=generic -fPIC"
LIBDIRSUFFIX="64" LIBDIRSUFFIX="64"
elif [ "$ARCH" = "armv7hl" ]; then elif [ "$ARCH" = "armv7hl" ]; then
SLKCFLAGS="-O3 -march=armv7-a -mfpu=vfpv3-d16" SLKCFLAGS="-O3 -march=armv7-a -mfpu=vfpv3-d16"