New commits:
commit 78058076d0633f05ad2fbac0803c0f5bac282297
Author: Ismael Luceno <ismael AT sourcemage.org>
Commit: Ismael Luceno <ismael AT sourcemage.org>
gtkmm3: Use force_dialect function
commit 42211c85f88517db1041ee75d55437c1f5fd83c9
Author: Ismael Luceno <ismael AT sourcemage.org>
Commit: Ismael Luceno <ismael AT sourcemage.org>
gtkmm2: Use force_dialect function
commit 0a8a88dbf198f411ccc535fbfd9160ce7874896b
Author: Ismael Luceno <ismael AT sourcemage.org>
Commit: Ismael Luceno <ismael AT sourcemage.org>
gtk+: Use force_dialect function
commit d4191c86105fd03c49cd55647e84609a140ed545
Author: Ismael Luceno <ismael AT sourcemage.org>
Commit: Ismael Luceno <ismael AT sourcemage.org>
cairomm1.0: Use force_dialect function
commit e6033357602b49f6518813ad9381f5c8ca1c98e1
Author: Ismael Luceno <ismael AT sourcemage.org>
Commit: Ismael Luceno <ismael AT sourcemage.org>
cairomm: Use force_dialect function
commit 8621a699ac68292071cc20589c5994b280e59875
Author: Ismael Luceno <ismael AT sourcemage.org>
Commit: Ismael Luceno <ismael AT sourcemage.org>
dbus-c++: Use force_dialect function
commit 1b401e9c524eb989576b7ac5e8c36a1ae3d829e1
Author: Ismael Luceno <ismael AT sourcemage.org>
Commit: Ismael Luceno <ismael AT sourcemage.org>
containers: Use force_dialect function
commit 78a984f01222d9a3618c591da0df25aed2d64915
Author: Ismael Luceno <ismael AT sourcemage.org>
Commit: Ismael Luceno <ismael AT sourcemage.org>
ucommon: Use force_dialect function
commit aaa9c7031015090cbcec18ed13cf9bd9b9685714
Author: Ismael Luceno <ismael AT sourcemage.org>
Commit: Ismael Luceno <ismael AT sourcemage.org>
screen: Use force_dialect function
commit c9103dbd7e43f8c1c1955fb6b49c20868b9c121c
Author: Ismael Luceno <ismael AT sourcemage.org>
Commit: Ismael Luceno <ismael AT sourcemage.org>
ghostscript: Use force_dialect function
commit 78cd0b78ad9d035e377635467f8861bae8dea3ef
Author: Ismael Luceno <ismael AT sourcemage.org>
Commit: Ismael Luceno <ismael AT sourcemage.org>
cups-filters: Use force_dialect function
commit 988486376e412ddb9b5146416fd609966ccc1e54
Author: Ismael Luceno <ismael AT sourcemage.org>
Commit: Ismael Luceno <ismael AT sourcemage.org>
ppp: Use force_dialect function
commit 47580bd887fd7a7187a676c07573d3d6c3246f80
Author: Ismael Luceno <ismael AT sourcemage.org>
Commit: Ismael Luceno <ismael AT sourcemage.org>
megatools: Use force_dialect function
commit 0316779b6bf71cb9cc3544a8d733c85ee51267c9
Author: Ismael Luceno <ismael AT sourcemage.org>
Commit: Ismael Luceno <ismael AT sourcemage.org>
ncurses: Use force_dialect function
commit 3639122c0308bec7173489641f26faad3b6667d2
Author: Ismael Luceno <ismael AT sourcemage.org>
Commit: Ismael Luceno <ismael AT sourcemage.org>
libc++: Use force_dialect function
commit d9986d5758caacf88aeeb0d65bf7e722f5ce4b6e
Author: Ismael Luceno <ismael AT sourcemage.org>
Commit: Ismael Luceno <ismael AT sourcemage.org>
gmp: Use force_dialect function
commit 2aab96614ba169aa491449f5646d1876c4399f4e
Author: Ismael Luceno <ismael AT sourcemage.org>
Commit: Ismael Luceno <ismael AT sourcemage.org>
glib: Use force_dialect function
commit df4d43b658d459dfeb6263decc5b208df112426f
Author: Ismael Luceno <ismael AT sourcemage.org>
Commit: Ismael Luceno <ismael AT sourcemage.org>
kseexpr: Use force_dialect function
commit d5d0437b50462ea5948216fed490b923d69cd7a6
Author: Ismael Luceno <ismael AT sourcemage.org>
Commit: Ismael Luceno <ismael AT sourcemage.org>
webkitgtk3: Use force_dialect function
commit 19ab2ed81a312a9f60f02116795f56f7fd99ba0f
Author: Ismael Luceno <ismael AT sourcemage.org>
Commit: Ismael Luceno <ismael AT sourcemage.org>
libraw: Use force_dialect function
commit 19f5bc0d3fe1366e9aece7e1e2d3965580b91e8c
Author: Ismael Luceno <ismael AT sourcemage.org>
Commit: Ismael Luceno <ismael AT sourcemage.org>
ilmbase: Use force_dialect function
commit 713a34d553bfea8b0914732b6481e4ed50922ca4
Author: Ismael Luceno <ismael AT sourcemage.org>
Commit: Ismael Luceno <ismael AT sourcemage.org>
libglademm: Use force_dialect function
commit b5f93e13e8bf99a36c45a072a996afe7fdbe18ed
Author: Ismael Luceno <ismael AT sourcemage.org>
Commit: Ismael Luceno <ismael AT sourcemage.org>
source-highlight: Use force_dialect function
commit 65c745cf205b75bb6036dda27da36640cf75411c
Author: Ismael Luceno <ismael AT sourcemage.org>
Commit: Ismael Luceno <ismael AT sourcemage.org>
reiserfsprogs: Use force_dialect function
commit 301f0ec6940aac68e9eda731a57da3abcef90a22
Author: Ismael Luceno <ismael AT sourcemage.org>
Commit: Ismael Luceno <ismael AT sourcemage.org>
sdcc: Use force_dialect function
commit e0632fa42b38aac4799cf339611b15d7d5d131e7
Author: Ismael Luceno <ismael AT sourcemage.org>
Commit: Ismael Luceno <ismael AT sourcemage.org>
rr: Use force_dialect function
commit 13602d32898ec86711574a873c48ff26aaa4da1a
Author: Ismael Luceno <ismael AT sourcemage.org>
Commit: Ismael Luceno <ismael AT sourcemage.org>
python: Use force_dialect function
commit d7350f989d7b6bfb89e977052db25fce127aaee4
Author: Ismael Luceno <ismael AT sourcemage.org>
Commit: Ismael Luceno <ismael AT sourcemage.org>
pkgconfig: Use force_dialect function
commit eb730a49fad2c97a77428dec74c647f3ff5ef74e
Author: Ismael Luceno <ismael AT sourcemage.org>
Commit: Ismael Luceno <ismael AT sourcemage.org>
pacc: Use force_dialect function
commit b1a32b93d417bfbf91144da200c55d2e737b8274
Author: Ismael Luceno <ismael AT sourcemage.org>
Commit: Ismael Luceno <ismael AT sourcemage.org>
guile: Use force_dialect function
commit 69f267a69979adbf09a6b20fd032be9a7d194594
Author: Ismael Luceno <ismael AT sourcemage.org>
Commit: Ismael Luceno <ismael AT sourcemage.org>
mysql: Use force_dialect function
commit 2cf39380a8066f49f09014841f8b6ff575fb506c
Author: Ismael Luceno <ismael AT sourcemage.org>
Commit: Ismael Luceno <ismael AT sourcemage.org>
pinentry: Use force_dialect function
commit eadde14721aa2d1e21bcd7cb2cbe66efbc8c1a03
Author: Ismael Luceno <ismael AT sourcemage.org>
Commit: Ismael Luceno <ismael AT sourcemage.org>
nettle: Use force_dialect function
commit 95fdcd15192ce83c107fed5796367da95c5f6c70
Author: Ismael Luceno <ismael AT sourcemage.org>
Commit: Ismael Luceno <ismael AT sourcemage.org>
mosh: Use force_dialect function
commit ee8a172f5b49c9e1e335fc5909abb6ba3480fc64
Author: Ismael Luceno <ismael AT sourcemage.org>
Commit: Ismael Luceno <ismael AT sourcemage.org>
cyrus-sasl: Use force_dialect function
commit 6145ce223c2626acfc57c3ec8aec38b8d7520fd0
Author: Ismael Luceno <ismael AT sourcemage.org>
Commit: Ismael Luceno <ismael AT sourcemage.org>
libstrophe: Use force_dialect function
commit aa023dec15184c7119a65e5b46b997ced58bf2a7
Author: Ismael Luceno <ismael AT sourcemage.org>
Commit: Ismael Luceno <ismael AT sourcemage.org>
pamixer: Use force_dialect function
commit 77cc64f93791e1e6b0ca10a6c5da5cf0395f7890
Author: Ismael Luceno <ismael AT sourcemage.org>
Commit: Ismael Luceno <ismael AT sourcemage.org>
faac: Use force_dialect function
commit e819644cdd96ee0e7170cb32524ff972366e198c
Author: Ismael Luceno <ismael AT sourcemage.org>
Commit: Ismael Luceno <ismael AT sourcemage.org>
audiofile: Use force_dialect function
commit 20c464aee3b6af81199f3b03d0147bf4b0a39a26
Author: Ismael Luceno <ismael AT sourcemage.org>
Commit: Ismael Luceno <ismael AT sourcemage.org>
guitarix2: Use force_dialect function
commit 227964e84f1adcbcf925893e7ad0086c2ac1952c
Author: Ismael Luceno <ismael AT sourcemage.org>
Commit: Ismael Luceno <ismael AT sourcemage.org>
ardour5: Use force_dialect function
commit 6b15eb86a22a311ce097511c1694a503e59c5d04
Author: Ismael Luceno <ismael AT sourcemage.org>
Commit: Ismael Luceno <ismael AT sourcemage.org>
ardour4: Use force_dialect function
commit f6d62a75bee5a734dcbb7bdb2bad80cc461cf512
Author: Ismael Luceno <ismael AT sourcemage.org>
Commit: Ismael Luceno <ismael AT sourcemage.org>
unzip: Use force_dialect function
commit d1aa92f318b5709aa81642d3631664c0499b5738
Author: Ismael Luceno <ismael AT sourcemage.org>
Commit: Ismael Luceno <ismael AT sourcemage.org>
par2cmdline-tbb: Use force_dialect function
commit f65814b259517151d314f3efa8f32562348d24f9
Author: Ismael Luceno <ismael AT sourcemage.org>
Commit: Ismael Luceno <ismael AT sourcemage.org>
cpio: Use force_dialect function
commit e10c4896d026af7a6a321871ece3d794b66c1d52
Author: Ismael Luceno <ismael AT sourcemage.org>
Commit: Ismael Luceno <ismael AT sourcemage.org>
ucl: Use force_dialect function
commit 9c04d6e270f54be6642bba3ee9ed789cdb32f98e
Author: Ismael Luceno <ismael AT sourcemage.org>
Commit: Ismael Luceno <ismael AT sourcemage.org>
FUNCTIONS: Add force_dialect
Force specific programming language dialects to avoid build failures.
diff --git a/FUNCTIONS b/FUNCTIONS
index 969d098..7e1413e 100755
--- a/FUNCTIONS
+++ b/FUNCTIONS
@@ -1098,6 +1098,43 @@ function cast_dependents_on_update()
}
#---
+## Force specific programming language dialects to avoid build failures.
+## Newer compilers might default to a backwards incompatible dialect, which
+## can break buildsystems not testing for it.
+#---
+force_dialect()
+{
+ while ! [ $# = 0 ]; do
+ case "$1" in
+ ( c89 | gnu89 \
+ | c99 | gnu99 \
+ | c11 | gnu11 \
+ | c17 | gnu17 \
+ | c23 | gnu23 )
+ case "$(${CC:-cc} --help)" in
+ (*\ -std=*) CFLAGS+=" -std=$1";;
+ esac
+ ;;
+ ( c++98 | gnu++98 \
+ | c++11 | gnu++11 \
+ | c++14 | gnu++14 \
+ | c++17 | gnu++17 \
+ | c++20 | gnu++20 \
+ | c++23 | gnu++23 \
+ | c++26 | gnu++26 )
+ case "$(${CXX:-c++} --help)" in
+ (*\ -std=*) CXXFLAGS+=" -std=$1";;
+ esac
+ ;;
+ (*)
+ message "${PROBLEM_COLOR}Unknown language dialect:
$FILE_COLOR$1$DEFAULT_COLOR"
+ ;;
+ esac
+ shift
+ done
+}
+
+#---
## Trigger check_self on a certain version jump (known ABI breakage).
## You know that a spell changed ABI most recently in version x, so you
## provide this version and the function checks if updating the spell
diff --git a/archive-libs/ucl/BUILD b/archive-libs/ucl/BUILD
index 7f9dbef..5d5305b 100755
--- a/archive-libs/ucl/BUILD
+++ b/archive-libs/ucl/BUILD
@@ -1,5 +1,5 @@
OPTS="--enable-shared $OPTS" &&
-CFLAGS+=" -std=gnu90" &&
+force_dialect gnu89 &&
default_build
diff --git a/archive-libs/ucl/HISTORY b/archive-libs/ucl/HISTORY
index 26b4a01..8257bc9 100644
--- a/archive-libs/ucl/HISTORY
+++ b/archive-libs/ucl/HISTORY
@@ -1,3 +1,6 @@
+2025-12-20 Ismael Luceno <ismael AT sourcemage.org>
+ * BUILD: Use force_dialect function
+
2022-08-07 Ismael Luceno <ismael AT sourcemage.org>
* PRE_BUILD: Fixed build against musl
diff --git a/archive/cpio/BUILD b/archive/cpio/BUILD
index fd660fa..e0d7825 100755
--- a/archive/cpio/BUILD
+++ b/archive/cpio/BUILD
@@ -1,7 +1,5 @@
# Force a specific C standard to avoid build failures with newer compilers
-case "$(${CC-gcc} --help)" in
- (*\ -std=*) CFLAGS+=' -std=c17';;
-esac &&
+force_dialect c17 &&
OPTS+=" --build=${BUILD}" &&
if [[ $CROSS_INSTALL == on ]]; then
diff --git a/archive/cpio/HISTORY b/archive/cpio/HISTORY
index 8af29c9..c7c4e82 100644
--- a/archive/cpio/HISTORY
+++ b/archive/cpio/HISTORY
@@ -1,3 +1,6 @@
+2025-12-20 Ismael Luceno <ismael AT sourcemage.org>
+ * BUILD: Use force_dialect function
+
2025-12-18 Ismael Luceno <ismael AT sourcemage.org>
* BUILD: fixed command chaining
* BUILD, PRE_BUILD: moved buildsystem fixups to PRE_BUILD
diff --git a/archive/par2cmdline-tbb/BUILD b/archive/par2cmdline-tbb/BUILD
index 0a43a7f..d6fb725 100755
--- a/archive/par2cmdline-tbb/BUILD
+++ b/archive/par2cmdline-tbb/BUILD
@@ -1,3 +1,3 @@
-export CXXFLAGS+=' -std=c++11' &&
+force_dialect c++11 &&
export LDFLAGS+=' -lrt' &&
default_build
diff --git a/archive/par2cmdline-tbb/HISTORY b/archive/par2cmdline-tbb/HISTORY
index ceac7db..45238da 100644
--- a/archive/par2cmdline-tbb/HISTORY
+++ b/archive/par2cmdline-tbb/HISTORY
@@ -1,3 +1,6 @@
+2025-12-20 Ismael Luceno <ismael AT sourcemage.org>
+ * BUILD: Use force_dialect function
+
2014-01-19 Treeve Jelbert <treeve AT sourcemage.org>
* DETAILS: version 0.4-tbb-20100203
* DEPENDS: only need tbb
diff --git a/archive/unzip/BUILD b/archive/unzip/BUILD
index f31cbca..608dea8 100755
--- a/archive/unzip/BUILD
+++ b/archive/unzip/BUILD
@@ -1,7 +1,5 @@
# Force a specific C standard to avoid build failures with newer compilers
-case "$(${CC-gcc} --help)" in
- (*\ -std=*) CFLAGS+=' -std=gnu99';;
-esac &&
+force_dialect gnu99 &&
DEFINES='-DACORN_FTYPE_NFS -DWILD_STOP_AT_DIR -DLARGE_FILE_SUPPORT \
-DUNICODE_SUPPORT -DUNICODE_WCHAR -DUTF8_MAYBE_NATIVE -DNO_LCHMOD \
diff --git a/archive/unzip/HISTORY b/archive/unzip/HISTORY
index 1f3b87a..ddfc744 100644
--- a/archive/unzip/HISTORY
+++ b/archive/unzip/HISTORY
@@ -1,3 +1,6 @@
+2025-12-20 Ismael Luceno <ismael AT sourcemage.org>
+ * BUILD: Use force_dialect function
+
2025-12-06 Remko van der Vossen <wich AT sourcemage.org>
* BUILD: default to gcc if CC is not set
diff --git a/audio-creation/ardour4/BUILD b/audio-creation/ardour4/BUILD
index 40cf8a1..bb28fa3 100755
--- a/audio-creation/ardour4/BUILD
+++ b/audio-creation/ardour4/BUILD
@@ -6,5 +6,5 @@ OPTS="--noconfirm \
$OPTS" &&
# C++11 features used in glibmm headers.
# Should one fix it there? Globally?!
-CXXFLAGS="$CXXFLAGS -std=c++11" &&
+force_dialect c++11 &&
waf_build
diff --git a/audio-creation/ardour4/HISTORY b/audio-creation/ardour4/HISTORY
index 312d477..2479fda 100644
--- a/audio-creation/ardour4/HISTORY
+++ b/audio-creation/ardour4/HISTORY
@@ -1,3 +1,6 @@
+2025-12-20 Ismael Luceno <ismael AT sourcemage.org>
+ * BUILD: Use force_dialect function
+
2019-05-18 Ismael Luceno <ismael AT sourcemage.org>
* DEPENDS: Update dependency; s/gettext/GETTEXT/
diff --git a/audio-creation/ardour5/BUILD b/audio-creation/ardour5/BUILD
index 40cf8a1..bb28fa3 100755
--- a/audio-creation/ardour5/BUILD
+++ b/audio-creation/ardour5/BUILD
@@ -6,5 +6,5 @@ OPTS="--noconfirm \
$OPTS" &&
# C++11 features used in glibmm headers.
# Should one fix it there? Globally?!
-CXXFLAGS="$CXXFLAGS -std=c++11" &&
+force_dialect c++11 &&
waf_build
diff --git a/audio-creation/ardour5/HISTORY b/audio-creation/ardour5/HISTORY
index 39e6fc7..89ba55c 100644
--- a/audio-creation/ardour5/HISTORY
+++ b/audio-creation/ardour5/HISTORY
@@ -1,3 +1,6 @@
+2025-12-20 Ismael Luceno <ismael AT sourcemage.org>
+ * BUILD: Use force_dialect function
+
2020-09-22 Thomas Orgis <sobukus AT sourcemage.org>
* DEPENDS: sub-dep on fftw2f_threads, hard-depend on GETTEXT
due to build failure (the latter to be changed again on
diff --git a/audio-creation/guitarix2/BUILD b/audio-creation/guitarix2/BUILD
index e330e5f..37c25f4 100755
--- a/audio-creation/guitarix2/BUILD
+++ b/audio-creation/guitarix2/BUILD
@@ -2,5 +2,5 @@
OPTS="$OPTS --includeresampler --includeconvolver" &&
# This depends on waf_build magically inserting CXXFLAGS.
# Appending to $OPTS does not work because of spaces in $CXXFLAGS ...
-CXXFLAGS+=" -std=gnu++11" &&
+force_dialect gnu++11 &&
waf_build
diff --git a/audio-creation/guitarix2/HISTORY
b/audio-creation/guitarix2/HISTORY
index eee0e16..18bbce3 100644
--- a/audio-creation/guitarix2/HISTORY
+++ b/audio-creation/guitarix2/HISTORY
@@ -1,3 +1,6 @@
+2025-12-20 Ismael Luceno <ismael AT sourcemage.org>
+ * BUILD: Use force_dialect function
+
2016-03-09 Thomas Orgis <sobukus AT sourcemage.org>
* BUILD: C++11
diff --git a/audio-libs/audiofile/BUILD b/audio-libs/audiofile/BUILD
index 1b9b019..e51bf4d 100755
--- a/audio-libs/audiofile/BUILD
+++ b/audio-libs/audiofile/BUILD
@@ -1,3 +1,3 @@
-CXXFLAGS+=' -std=c++98' &&
+force_dialect c++98 &&
OPTS+=" --disable-static" &&
default_build
diff --git a/audio-libs/audiofile/HISTORY b/audio-libs/audiofile/HISTORY
index 3928c46..95c57b2 100644
--- a/audio-libs/audiofile/HISTORY
+++ b/audio-libs/audiofile/HISTORY
@@ -1,3 +1,6 @@
+2025-12-20 Ismael Luceno <ismael AT sourcemage.org>
+ * BUILD: Use force_dialect function
+
2022-01-27 Ismael Luceno <ismael AT sourcemage.org>
* PRE_BUILD: disabled installation of libtool pseudo-libraries
* DETAILS: PATCHLEVEL++
diff --git a/audio-libs/faac/BUILD b/audio-libs/faac/BUILD
index 6d47876..be5672b 100755
--- a/audio-libs/faac/BUILD
+++ b/audio-libs/faac/BUILD
@@ -1,2 +1,2 @@
-CXXFLAGS+=' -std=c++98'
+force_dialect c++98 &&
default_build
diff --git a/audio-libs/faac/HISTORY b/audio-libs/faac/HISTORY
index b5cc502..ccf20c8 100644
--- a/audio-libs/faac/HISTORY
+++ b/audio-libs/faac/HISTORY
@@ -1,3 +1,6 @@
+2025-12-20 Ismael Luceno <ismael AT sourcemage.org>
+ * BUILD: Use force_dialect function
+
2025-01-06 Treeve Jelbert <treeve AT sourcemage.org>
* PRE_BUILD: prevent .la files
diff --git a/audio-soft/pamixer/BUILD b/audio-soft/pamixer/BUILD
index b52c7f7..86419d7 100755
--- a/audio-soft/pamixer/BUILD
+++ b/audio-soft/pamixer/BUILD
@@ -1,3 +1,2 @@
-CXXFLAGS="-std=c++0x ${CXXFLAGS}" &&
-
+force_dialect c++11 &&
make
diff --git a/audio-soft/pamixer/HISTORY b/audio-soft/pamixer/HISTORY
index 3b2ebed..87cf7b0 100644
--- a/audio-soft/pamixer/HISTORY
+++ b/audio-soft/pamixer/HISTORY
@@ -1,2 +1,5 @@
+2025-12-20 Ismael Luceno <ismael AT sourcemage.org>
+ * BUILD: Use force_dialect function
+
2019-04-11 Vlad Glagolev <stealth AT sourcemage.org>
* DETAILS, DEPENDS, BUILD, INSTALL: created spell, version 1.4
diff --git a/chat-libs/libstrophe/BUILD b/chat-libs/libstrophe/BUILD
index c8df507..62a8927 100755
--- a/chat-libs/libstrophe/BUILD
+++ b/chat-libs/libstrophe/BUILD
@@ -1,3 +1,2 @@
-CFLAGS="${CFLAGS} -std=gnu89" &&
-
+force_dialect gnu89 &&
default_build
diff --git a/chat-libs/libstrophe/HISTORY b/chat-libs/libstrophe/HISTORY
index beeeaae..3c89241 100644
--- a/chat-libs/libstrophe/HISTORY
+++ b/chat-libs/libstrophe/HISTORY
@@ -1,3 +1,6 @@
+2025-12-20 Ismael Luceno <ismael AT sourcemage.org>
+ * BUILD: Use force_dialect function
+
2025-10-31 Pavel Vinogradov <public AT sourcemage.org>
* BUILD: added to build with current gcc (15.2.0) (thanks to sobukus)
diff --git a/crypto/cyrus-sasl/BUILD b/crypto/cyrus-sasl/BUILD
index 7261c0e..b56d92d 100755
--- a/crypto/cyrus-sasl/BUILD
+++ b/crypto/cyrus-sasl/BUILD
@@ -7,7 +7,7 @@ if [[ "$CS_DB" == none ]]; then
fi &&
# Old-style function declarations go against new compiler defaults.
-CFLAGS="$CFLAGS -std=gnu89" &&
+force_dialect gnu89 &&
OPTS="$OPTS \
$CS_PLAIN \
diff --git a/crypto/cyrus-sasl/HISTORY b/crypto/cyrus-sasl/HISTORY
index 9ad0491..adee7cd 100644
--- a/crypto/cyrus-sasl/HISTORY
+++ b/crypto/cyrus-sasl/HISTORY
@@ -1,3 +1,6 @@
+2025-12-20 Ismael Luceno <ismael AT sourcemage.org>
+ * BUILD: Use force_dialect function
+
2025-10-27 Thomas Orgis <sobukus AT sourcemage.org>
* DETAILS: version 2.1.28
* BUILD: hotfix for new gcc, setting std=gnu89
diff --git a/crypto/mosh/BUILD b/crypto/mosh/BUILD
index 9028452..e9d1d33 100755
--- a/crypto/mosh/BUILD
+++ b/crypto/mosh/BUILD
@@ -1,2 +1,2 @@
-CXXFLAGS+=' -std=gnu++20'
+force_dialect gnu++20 &&
default_build
diff --git a/crypto/mosh/HISTORY b/crypto/mosh/HISTORY
index 67393ea..d684da7 100644
--- a/crypto/mosh/HISTORY
+++ b/crypto/mosh/HISTORY
@@ -1,3 +1,6 @@
+2025-12-20 Ismael Luceno <ismael AT sourcemage.org>
+ * BUILD: Use force_dialect function
+
2024-09-16 Treeve Jelbert <treeve AT sourcemage.org>
* PRE_BUILD; readd, to run utogen
* BUILD: fix CXXFLAGS
diff --git a/crypto/nettle/BUILD b/crypto/nettle/BUILD
index 0578115..f951a1c 100755
--- a/crypto/nettle/BUILD
+++ b/crypto/nettle/BUILD
@@ -1,4 +1,4 @@
OPTS+=" --libdir=$INSTALL_ROOT/usr/lib" &&
-CFLAGS+=" -std=c99" &&
LDFLAGS+=" -L$INSTALL_ROOT/lib" &&
+force_dialect c99 &&
default_build
diff --git a/crypto/nettle/HISTORY b/crypto/nettle/HISTORY
index 27ee7c8..d9f958c 100644
--- a/crypto/nettle/HISTORY
+++ b/crypto/nettle/HISTORY
@@ -1,3 +1,6 @@
+2025-12-20 Ismael Luceno <ismael AT sourcemage.org>
+ * BUILD: Use force_dialect function
+
2025-06-27 Treeve Jelbert <treeve AT sourcemage.org>
* DETAILS: version 3.10.2
* UP_TRIGGERS: tweak, ignore patch versions
diff --git a/crypto/pinentry/BUILD b/crypto/pinentry/BUILD
index 570e76c..2d28a1f 100755
--- a/crypto/pinentry/BUILD
+++ b/crypto/pinentry/BUILD
@@ -6,5 +6,5 @@ elif is_depends_enabled $SPELL qt4;then
export PKG_CONFIG_PATH="$QT4DIR/lib/pkgconfig"
export PATH+=":$QT4DIR/bin"
fi &&
-CXXFLAGS+=" -std=c++11" &&
+force_dialect c++11 &&
default_build
diff --git a/crypto/pinentry/HISTORY b/crypto/pinentry/HISTORY
index 6b32f8d..edce341 100644
--- a/crypto/pinentry/HISTORY
+++ b/crypto/pinentry/HISTORY
@@ -1,3 +1,6 @@
+2025-12-20 Ismael Luceno <ismael AT sourcemage.org>
+ * BUILD: Use force_dialect function
+
2025-10-17 Treeve Jelbert <treeve AT sourcemage.org>
* DETAILS: version 1.3.2
diff --git a/database/mysql/HISTORY b/database/mysql/HISTORY
index 64d79f3..6a6e3aa 100644
--- a/database/mysql/HISTORY
+++ b/database/mysql/HISTORY
@@ -1,3 +1,6 @@
+2025-12-20 Ismael Luceno <ismael AT sourcemage.org>
+ * BUILD: Use force_dialect function
+
2017-04-04 Eric Sandall <sandalle AT sourcemage.org>
* DETAILS: Updated to 5.1.73 (released September 2013...)
Someone should work on redoing this, latest stable is 5.7.17!
diff --git a/devel/guile/BUILD b/devel/guile/BUILD
index ff7506f..c0703c7 100755
--- a/devel/guile/BUILD
+++ b/devel/guile/BUILD
@@ -1,5 +1,6 @@
OPTS="--disable-error-on-warning $OPTS" &&
# not C23 compatible yet (3.0.10)
-CFLAGS="${CFLAGS//-ffast-math } -std=gnu17" &&
+force_dialect gnu17 &&
+CFLAGS="${CFLAGS//-ffast-math }" &&
LDFLAGS+=" -L$INSTALL_ROOT/lib" &&
default_build
diff --git a/devel/guile/HISTORY b/devel/guile/HISTORY
index 806624c..de44c84 100644
--- a/devel/guile/HISTORY
+++ b/devel/guile/HISTORY
@@ -1,3 +1,6 @@
+2025-12-20 Ismael Luceno <ismael AT sourcemage.org>
+ * BUILD: Use force_dialect function
+
2025-05-31 Thomas Orgis <sobukus AT sourcemage.org>
* BUILD: use -std=gnu17 to fix build with modern gcc
diff --git a/devel/pacc/BUILD b/devel/pacc/BUILD
index 1bc0c4e..56b751a 100755
--- a/devel/pacc/BUILD
+++ b/devel/pacc/BUILD
@@ -1,2 +1,3 @@
+force_dialect c99 &&
make pacc doc/pacc.man \
- CFLAGS="$CFLAGS -std=c99 -Wall -Wextra -I."
+ CFLAGS="$CFLAGS -Wall -Wextra -I."
diff --git a/devel/pacc/HISTORY b/devel/pacc/HISTORY
index d2d2fc5..26a7665 100644
--- a/devel/pacc/HISTORY
+++ b/devel/pacc/HISTORY
@@ -1,2 +1,5 @@
+2025-12-20 Ismael Luceno <ismael AT sourcemage.org>
+ * BUILD: Use force_dialect function
+
2019-08-01 Ismael Luceno <ismael AT sourcemage.org>
* BUILD, DEPENDS, DETAILS, INSTALL: spell created
diff --git a/devel/pkgconfig/BUILD b/devel/pkgconfig/BUILD
index 96f1b6e..605d318 100755
--- a/devel/pkgconfig/BUILD
+++ b/devel/pkgconfig/BUILD
@@ -1,7 +1,5 @@
# Force a specific C standard to avoid build failures with newer compilers
-case "$(${CC-gcc} --help)" in
- (*\ -std=*) CFLAGS+=' -std=gnu17';;
-esac &&
+force_dialect gnu17 &&
# Keep dependencies minimal: If for some reason glib2 is broken, it cannot
# subsequently be built when pkg-config is also broken due to linking to
diff --git a/devel/pkgconfig/HISTORY b/devel/pkgconfig/HISTORY
index af804f3..e2e7ae9 100644
--- a/devel/pkgconfig/HISTORY
+++ b/devel/pkgconfig/HISTORY
@@ -1,3 +1,6 @@
+2025-12-20 Ismael Luceno <ismael AT sourcemage.org>
+ * BUILD: Use force_dialect function
+
2025-12-07 Remko van der Vossen <wich AT sourcemage.org>
* BUILD: force gnu17 standard
diff --git a/devel/python/BUILD b/devel/python/BUILD
index 563e9a0..2c01e7c 100755
--- a/devel/python/BUILD
+++ b/devel/python/BUILD
@@ -9,7 +9,7 @@ if [[ -f
$INSTALL_ROOT/usr/lib/python$PYTHON_VERSION/pydcop.py ]]; then
"$SOURCE_DIRECTORY/spell-tmp"
fi &&
default_build
diff --git a/graphics-libs/ilmbase/HISTORY b/graphics-libs/ilmbase/HISTORY
index a801287..97f72e5 100644
--- a/graphics-libs/ilmbase/HISTORY
+++ b/graphics-libs/ilmbase/HISTORY
@@ -1,3 +1,6 @@
+2025-12-20 Ismael Luceno <ismael AT sourcemage.org>
+ * BUILD: Use force_dialect function
+
2023-12-15 Thomas Orgis <sobukus AT sourcemage.org>
* CONFLICTS: added conflict with imath, as things break
when dependents confuse the headers
diff --git a/graphics-libs/libraw/BUILD b/graphics-libs/libraw/BUILD
index a4b93bb..be5672b 100755
--- a/graphics-libs/libraw/BUILD
+++ b/graphics-libs/libraw/BUILD
@@ -1,2 +1,2 @@
-CXXFLAGS+=" --std=c++03" &&
+force_dialect c++98 &&
default_build
diff --git a/graphics-libs/libraw/HISTORY b/graphics-libs/libraw/HISTORY
index def8db6..b1232b8 100644
--- a/graphics-libs/libraw/HISTORY
+++ b/graphics-libs/libraw/HISTORY
@@ -1,3 +1,6 @@
+2025-12-20 Ismael Luceno <ismael AT sourcemage.org>
+ * BUILD: Use force_dialect function
+
2023-01-07 Florian Franzmann <bwlf AT bandrate.org>
* DETAILS: version 0.21.1
diff --git a/http/webkitgtk3/BUILD b/http/webkitgtk3/BUILD
index 5c35587..3f0c4df 100755
--- a/http/webkitgtk3/BUILD
+++ b/http/webkitgtk3/BUILD
@@ -3,5 +3,5 @@ LDFLAGS="${LDFLAGS//-Wl,-znoseparate-code}" &&
OPTS="$WEBKIT_OPTS $OPTS -DENABLE_GAMEPAD=false -DENABLE_WEBKIT_LEGACY=off
-DCMAKE_SKIP_RPATH=on -DUSE_SYSTEM_MALLOC=on -DPORT=GTK" &&
# Libraries we don't have
OPTS+=' -DUSE_LIBBACKTRACE=NO -DUSE_SYSTEM_SYSPROF_CAPTURE=NO' &&
-CXXFLAGS+=' -std=c++17' &&
+force_dialect c++17 &&
default_build
diff --git a/http/webkitgtk3/HISTORY b/http/webkitgtk3/HISTORY
index d101cbb..17ba903 100644
--- a/http/webkitgtk3/HISTORY
+++ b/http/webkitgtk3/HISTORY
@@ -1,3 +1,6 @@
+2025-12-20 Ismael Luceno <ismael AT sourcemage.org>
+ * BUILD: Use force_dialect function
+
2025-04-03 Ismael Luceno <ismael AT sourcemage.org>
* patches/0001-Support-ICU-76.1-build.patch: removed, no longer needed
* DETAILS: updated spell to 2.48.0
diff --git a/kde-support/kseexpr/BUILD b/kde-support/kseexpr/BUILD
index 89d7baa..4ce4db9 100755
--- a/kde-support/kseexpr/BUILD
+++ b/kde-support/kseexpr/BUILD
@@ -1,4 +1,4 @@
-CXXFLAGS+=" -std=gnu++17" &&
+force_dialect gnu++17 &&
OPTS+=" -DBUILD_DEMOS=0" &&
OPTS+=" -DBUILD_DOC=0" &&
OPTS+=" -DBUILD_TESTS=0" &&
diff --git a/kde-support/kseexpr/HISTORY b/kde-support/kseexpr/HISTORY
index 2fe44ef..93a8df6 100644
--- a/kde-support/kseexpr/HISTORY
+++ b/kde-support/kseexpr/HISTORY
@@ -1,3 +1,6 @@
+2025-12-20 Ismael Luceno <ismael AT sourcemage.org>
+ * BUILD: Use force_dialect function
+
2025-02-25 Treeve Jelbert <treeve AT sourcemage.org>
* DETAILS: version 6.0.0.0
* BUILD: c++17
diff --git a/libs/glib/BUILD b/libs/glib/BUILD
index cab88ab..62a8927 100755
--- a/libs/glib/BUILD
+++ b/libs/glib/BUILD
@@ -1,2 +1,2 @@
-CFLAGS+=" -std=gnu89" &&
+force_dialect gnu89 &&
default_build
diff --git a/libs/glib/HISTORY b/libs/glib/HISTORY
index cca829d..ae19c15 100644
--- a/libs/glib/HISTORY
+++ b/libs/glib/HISTORY
@@ -1,3 +1,6 @@
+2025-12-20 Ismael Luceno <ismael AT sourcemage.org>
+ * BUILD: Use force_dialect function
+
2022-08-08 Ismael Luceno <ismael AT sourcemage.org>
* PRE_BUILD, patches/0001-Fix-function-inlining-with-newer-GCC.patch:
Fixed glib.h header for newer GCC
diff --git a/libs/gmp/BUILD b/libs/gmp/BUILD
index ba91015..77bdc80 100755
--- a/libs/gmp/BUILD
+++ b/libs/gmp/BUILD
@@ -1,7 +1,5 @@
# Force a specific C standard to avoid build failures with newer compilers
-case "$(${CC-gcc} --help)" in
- (*\ -std=*) CFLAGS+=' -std=c17';;
-esac &&
+force_dialect c17 &&
# For use in INSTALL for Bug #16031
persistent_add gmp_old_version &&
diff --git a/libs/gmp/HISTORY b/libs/gmp/HISTORY
index 0dd23da..19614ee 100644
--- a/libs/gmp/HISTORY
+++ b/libs/gmp/HISTORY
@@ -1,3 +1,6 @@
+2025-12-20 Ismael Luceno <ismael AT sourcemage.org>
+ * BUILD: Use force_dialect function
+
2025-12-07 Remko van der Vossen <wich AT sourcemage.org>
* BUILD: incompatible with gnu23 so default to c17