Revert i686 gawk to a working version. (#11843)

Signed-off-by: Satadru Pramanik <satadru@gmail.com>
This commit is contained in:
Satadru Pramanik, DO, MPH, MEng
2025-04-28 22:00:15 -04:00
committed by GitHub
parent ee3dff4cbe
commit ec0d44bf51
2 changed files with 26 additions and 9 deletions

View File

@@ -1,5 +1,5 @@
/usr/local/bin/gawk
/usr/local/bin/gawk-5.3.1
/usr/local/bin/gawk-5.3.0
/usr/local/bin/gawkbug
/usr/local/etc/profile.d/gawk.csh
/usr/local/etc/profile.d/gawk.sh
@@ -68,7 +68,6 @@
/usr/local/share/locale/id/LC_MESSAGES/gawk.mo
/usr/local/share/locale/it/LC_MESSAGES/gawk.mo
/usr/local/share/locale/ja/LC_MESSAGES/gawk.mo
/usr/local/share/locale/ka/LC_MESSAGES/gawk.mo
/usr/local/share/locale/ko/LC_MESSAGES/gawk.mo
/usr/local/share/locale/ms/LC_MESSAGES/gawk.mo
/usr/local/share/locale/nl/LC_MESSAGES/gawk.mo

View File

@@ -1,19 +1,38 @@
# This uses the last commit before f346791bba5d53a516571e9826805d884097a1fa
# for i686 (as per the sailfish gawk mirror).
# Date: Thu, 21 Dec 2023 13:10:37 +0200
# Subject: [PATCH] Attempt to close SIGPIPE race condition.
# 00b12818868cc7546817536cf33dcc4f440810a
# Originally in 5.3.1, which appears to cause an out of memory
# issue on i686, especially when building glibc.
require 'buildsystems/autotools'
class Gawk < Autotools
description 'The gawk utility interprets a special-purpose programming language that makes it possible to handle simple data-reformatting jobs with just a few lines of code.'
homepage 'https://www.gnu.org/software/gawk/'
version '5.3.2'
case ARCH
when 'i686'
version '5.3.0-1'
else
version '5.3.2'
end
license 'GPL-2'
compatibility 'all'
source_url "https://ftpmirror.gnu.org/gawk/gawk-#{version}.tar.xz"
source_sha256 'f8c3486509de705192138b00ef2c00bbbdd0e84c30d5c07d23fc73a9dc4cc9cc'
case ARCH
when 'i686'
# The Savannah git server keeps throwing 502 errors.
source_url 'https://github.com/sailfishos-mirror/gawk/archive/605a77387523a07e3636d3a72c7a612dc15a5b31.tar.gz'
source_sha256 'f8c3486509de70519asas'
else
source_url "https://ftpmirror.gnu.org/gawk/gawk-#{version.split('-').first}.tar.xz"
source_sha256 'f8c3486509de705192138b00ef2c00bbbdd0e84c30d5c07d23fc73a9dc4cc9cc'
end
binary_compression 'tar.zst'
binary_sha256({
aarch64: '154f49e5a9b9851c0301a98d16b94d962cb1f664c59e3f7d1750539c221efc6d',
armv7l: '154f49e5a9b9851c0301a98d16b94d962cb1f664c59e3f7d1750539c221efc6d',
i686: 'c1e0bce5e9d858e5d16107037a031e8e6b10d26f7e5eeb45ce2c8e0873a3f72a',
i686: '1581fef815f82fbed1d986f9e668aeb329ef28ac42cbc22c347d5715ec03e18a',
x86_64: '637fa0913219b0072b6992176489c937784de2a9a95db29f20c9807d54d18f50'
})
@@ -26,9 +45,8 @@ class Gawk < Autotools
no_shrink
# Tests on i686 run out of memory.
# Tests appear to have container issues on other platforms.
# run_tests unless ARCH == 'i686'
# Tests appear to have container issues...
run_tests if ARCH == 'i686'
configure_options '--without-libsigsegv-prefix'