sm-commit AT lists.ibiblio.org
Subject: Source Mage code commit list
List archive
[[SM-Commit] ] GIT changes to master grimoire by Ismael Luceno (78058076d0633f05ad2fbac0803c0f5bac282297)
- From: Ismael Luceno <scm AT sourcemage.org>
- To: sm-commit AT lists.ibiblio.org, sm-commit AT lists.sourcemage.org
- Subject: [[SM-Commit] ] GIT changes to master grimoire by Ismael Luceno (78058076d0633f05ad2fbac0803c0f5bac282297)
- Date: Sat, 20 Dec 2025 04:55:35 +0000
GIT changes to master grimoire by Ismael Luceno <ismael AT sourcemage.org>:
FUNCTIONS | 37
+++++++++++++++++++++++++++++++++++++
archive-libs/ucl/BUILD | 2 +-
archive-libs/ucl/HISTORY | 3 +++
archive/cpio/BUILD | 4 +---
archive/cpio/HISTORY | 3 +++
archive/par2cmdline-tbb/BUILD | 2 +-
archive/par2cmdline-tbb/HISTORY | 3 +++
archive/unzip/BUILD | 4 +---
archive/unzip/HISTORY | 3 +++
audio-creation/ardour4/BUILD | 2 +-
audio-creation/ardour4/HISTORY | 3 +++
audio-creation/ardour5/BUILD | 2 +-
audio-creation/ardour5/HISTORY | 3 +++
audio-creation/guitarix2/BUILD | 2 +-
audio-creation/guitarix2/HISTORY | 3 +++
audio-libs/audiofile/BUILD | 2 +-
audio-libs/audiofile/HISTORY | 3 +++
audio-libs/faac/BUILD | 2 +-
audio-libs/faac/HISTORY | 3 +++
audio-soft/pamixer/BUILD | 3 +--
audio-soft/pamixer/HISTORY | 3 +++
chat-libs/libstrophe/BUILD | 3 +--
chat-libs/libstrophe/HISTORY | 3 +++
crypto/cyrus-sasl/BUILD | 2 +-
crypto/cyrus-sasl/HISTORY | 3 +++
crypto/mosh/BUILD | 2 +-
crypto/mosh/HISTORY | 3 +++
crypto/nettle/BUILD | 2 +-
crypto/nettle/HISTORY | 3 +++
crypto/pinentry/BUILD | 2 +-
crypto/pinentry/HISTORY | 3 +++
database/mysql/BUILD | 3 +--
database/mysql/HISTORY | 3 +++
devel/guile/BUILD | 3 ++-
devel/guile/HISTORY | 3 +++
devel/pacc/BUILD | 3 ++-
devel/pacc/HISTORY | 3 +++
devel/pkgconfig/BUILD | 4 +---
devel/pkgconfig/HISTORY | 3 +++
devel/python/BUILD | 2 +-
devel/python/HISTORY | 3 +++
devel/rr/BUILD | 2 +-
devel/rr/HISTORY | 3 +++
devel/sdcc/BUILD | 3 ++-
devel/sdcc/HISTORY | 3 +++
disk/reiserfsprogs/BUILD | 2 +-
disk/reiserfsprogs/HISTORY | 3 +++
doc/source-highlight/BUILD | 2 +-
doc/source-highlight/HISTORY | 3 +++
gnome2-libs/libglademm/BUILD | 2 +-
gnome2-libs/libglademm/HISTORY | 3 +++
graphics-libs/ilmbase/BUILD | 2 +-
graphics-libs/ilmbase/HISTORY | 3 +++
graphics-libs/libraw/BUILD | 2 +-
graphics-libs/libraw/HISTORY | 3 +++
http/webkitgtk3/BUILD | 2 +-
http/webkitgtk3/HISTORY | 3 +++
kde-support/kseexpr/BUILD | 2 +-
kde-support/kseexpr/HISTORY | 3 +++
libs/glib/BUILD | 2 +-
libs/glib/HISTORY | 3 +++
libs/gmp/BUILD | 4 +---
libs/gmp/HISTORY | 3 +++
libs/libc++/BUILD | 2 +-
libs/libc++/HISTORY | 3 +++
libs/ncurses/BUILD | 2 +-
libs/ncurses/HISTORY | 3 +++
net/megatools/BUILD | 3 +--
net/megatools/HISTORY | 3 +++
net/ppp/BUILD | 4 +---
net/ppp/HISTORY | 3 +++
openprinting/cups-filters/BUILD | 2 +-
openprinting/cups-filters/HISTORY | 3 +++
printer/ghostscript/BUILD | 2 +-
printer/ghostscript/HISTORY | 3 +++
shell-term-fm/screen/BUILD | 2 +-
shell-term-fm/screen/HISTORY | 3 +++
telephony/ucommon/BUILD | 2 +-
telephony/ucommon/HISTORY | 3 +++
utils/containers/BUILD | 3 ++-
utils/containers/HISTORY | 3 +++
utils/dbus-c++/BUILD | 3 ++-
utils/dbus-c++/HISTORY | 3 +++
x11-libs/cairomm/BUILD | 2 +-
x11-libs/cairomm/HISTORY | 3 +++
x11-libs/cairomm1.0/BUILD | 2 +-
x11-libs/cairomm1.0/HISTORY | 3 +++
x11-toolkits/gtk+/BUILD | 2 +-
x11-toolkits/gtk+/HISTORY | 3 +++
x11-toolkits/gtkmm2/BUILD | 2 +-
x11-toolkits/gtkmm2/HISTORY | 3 +++
x11-toolkits/gtkmm3/BUILD | 2 +-
x11-toolkits/gtkmm3/HISTORY | 3 +++
93 files changed, 226 insertions(+), 60 deletions(-)
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/BUILD b/database/mysql/BUILD
index c08c733..a9be6c2 100755
--- a/database/mysql/BUILD
+++ b/database/mysql/BUILD
@@ -60,8 +60,7 @@ OPTS="$OPTS --with-mysqld-user=mysql --without-bench \
--enable-assembler --enable-thread-safe-client" &&
# Fix compiling with gcc 6+ (C++11 and newer)
-export CFLAGS=" -std=gnu++98 ${CFLAGS}" &&
-export CXXFLAGS=" -std=gnu++98 ${CXXFLAGS}" &&
+force_dialect gnu++98 &&
default_build &&
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 &&
-CFLAGS="$CFLAGS -std=gnu89" &&
+force_dialect gnu89 &&
default_build &&
# python -c 'print "(c)", "lynx"*3'
diff --git a/devel/python/HISTORY b/devel/python/HISTORY
index bc635c8..8942515 100644
--- a/devel/python/HISTORY
+++ b/devel/python/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>
* BUILD: hack build for new gccs, for whoever cares
diff --git a/devel/rr/BUILD b/devel/rr/BUILD
index f40c16f..0ca673b 100755
--- a/devel/rr/BUILD
+++ b/devel/rr/BUILD
@@ -1,3 +1,3 @@
OPTS="$OPTS -Ddisable32bit=ON" &&
-CXXFLAGS="$CXXFLAGS -std=c++14"
+force_dialect c++14 &&
default_build
diff --git a/devel/rr/HISTORY b/devel/rr/HISTORY
index 754fcfb..52b584c 100644
--- a/devel/rr/HISTORY
+++ b/devel/rr/HISTORY
@@ -1,3 +1,6 @@
+2025-12-20 Ismael Luceno <ismael AT sourcemage.org>
+ * BUILD: Use force_dialect function
+
2022-07-27 Vlad Glagolev <stealth AT sourcemage.org>
* DEPENDS: switch to PKG-CONFIG provider (automated)
diff --git a/devel/sdcc/BUILD b/devel/sdcc/BUILD
index 6ec8d65..2b118e6 100755
--- a/devel/sdcc/BUILD
+++ b/devel/sdcc/BUILD
@@ -2,5 +2,6 @@
# configure script. [SDCC 4.5.0]
# See: https://sourceforge.net/p/sdcc/bugs/3896/
export DEFAULT_ASSEMBLER="$(which as)" &&
-CFLAGS+=" -std=gnu11 -Wno-unused" &&
+force_dialect gnu11 &&
+CFLAGS+=" -Wno-unused" &&
default_build
diff --git a/devel/sdcc/HISTORY b/devel/sdcc/HISTORY
index 4258c57..60a3934 100644
--- a/devel/sdcc/HISTORY
+++ b/devel/sdcc/HISTORY
@@ -1,3 +1,6 @@
+2025-12-20 Ismael Luceno <ismael AT sourcemage.org>
+ * BUILD: Use force_dialect function
+
2025-11-20 Ismael Luceno <ismael AT sourcemage.org>
* BUILD: fixed build against GCC 15+
diff --git a/disk/reiserfsprogs/BUILD b/disk/reiserfsprogs/BUILD
index bcadd76..a49f77d 100755
--- a/disk/reiserfsprogs/BUILD
+++ b/disk/reiserfsprogs/BUILD
@@ -1,4 +1,4 @@
# Fixes Bug #1108
OPTS="$OPTS --sbindir=${INSTALL_ROOT}/sbin" &&
-CFLAGS+=" -std=gnu90"
+force_dialect gnu89 &&
default_build
diff --git a/disk/reiserfsprogs/HISTORY b/disk/reiserfsprogs/HISTORY
index 12a1ab4..1cfc54f 100644
--- a/disk/reiserfsprogs/HISTORY
+++ b/disk/reiserfsprogs/HISTORY
@@ -1,3 +1,6 @@
+2025-12-20 Ismael Luceno <ismael AT sourcemage.org>
+ * BUILD: Use force_dialect function
+
2015-05-24 Remko van der Vossen <wich AT sourcemage.org>
* DETAILS: 3.6.24
* BUILD: C standard == gnu90 to build with gcc 5+
diff --git a/doc/source-highlight/BUILD b/doc/source-highlight/BUILD
index e6fd0a7..ece2d66 100755
--- a/doc/source-highlight/BUILD
+++ b/doc/source-highlight/BUILD
@@ -1,2 +1,2 @@
-CXXFLAGS+=" -std=c++11" &&
+force_dialect c++11 &&
default_build
diff --git a/doc/source-highlight/HISTORY b/doc/source-highlight/HISTORY
index 64bf7a3..9a38a73 100644
--- a/doc/source-highlight/HISTORY
+++ b/doc/source-highlight/HISTORY
@@ -1,3 +1,6 @@
+2025-12-20 Ismael Luceno <ismael AT sourcemage.org>
+ * BUILD: Use force_dialect function
+
2021-09-26 Florian Franzmann <bwlf AT bandrate.org>
* BUILD: force C++ standard to C++11 to fix build error
diff --git a/gnome2-libs/libglademm/BUILD b/gnome2-libs/libglademm/BUILD
index a6f4236..2700cda 100755
--- a/gnome2-libs/libglademm/BUILD
+++ b/gnome2-libs/libglademm/BUILD
@@ -1,5 +1,5 @@
export SED=sed &&
patch -p1 < $SCRIPT_DIRECTORY/configure.patch &&
autoconf &&
-CXXFLAGS+=' -std=gnu++11' &&
+force_dialect gnu++11 &&
default_build
diff --git a/gnome2-libs/libglademm/HISTORY b/gnome2-libs/libglademm/HISTORY
index 4df33c2..dc56ec0 100644
--- a/gnome2-libs/libglademm/HISTORY
+++ b/gnome2-libs/libglademm/HISTORY
@@ -1,3 +1,6 @@
+2025-12-20 Ismael Luceno <ismael AT sourcemage.org>
+ * BUILD: Use force_dialect function
+
2016-03-13 Thomas Orgis <sobukus AT souremage.org>
* BUILD: C++11
diff --git a/graphics-libs/ilmbase/BUILD b/graphics-libs/ilmbase/BUILD
index 43dc726..d643eb4 100755
--- a/graphics-libs/ilmbase/BUILD
+++ b/graphics-libs/ilmbase/BUILD
@@ -1,3 +1,3 @@
-CXXFLAGS+=" -std=c++14" &&
+force_dialect c++14 &&
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
diff --git a/libs/libc++/BUILD b/libs/libc++/BUILD
index 8a3db42..24f9b7d 100755
--- a/libs/libc++/BUILD
+++ b/libs/libc++/BUILD
@@ -1,4 +1,4 @@
-CXXFLAGS="-std=c++11 ${CXXFLAGS}" &&
+force_dialect c++11 &&
OPTS="-DCMAKE_C_COMPILER=clang \
-DCMAKE_CXX_COMPILER=clang++ \
diff --git a/libs/libc++/HISTORY b/libs/libc++/HISTORY
index 33fc56b..28a2439 100644
--- a/libs/libc++/HISTORY
+++ b/libs/libc++/HISTORY
@@ -1,3 +1,6 @@
+2025-12-20 Ismael Luceno <ismael AT sourcemage.org>
+ * BUILD: Use force_dialect function
+
2018-01-31 Vlad Glagolev <stealth AT sourcemage.org>
* DETAILS, DEPENDS, {PRE_,}BUILD, CONFIGURE, INSTALL, FINAL:
created spell, version 3.5.0
diff --git a/libs/ncurses/BUILD b/libs/ncurses/BUILD
index 2943c64..46d536d 100755
--- a/libs/ncurses/BUILD
+++ b/libs/ncurses/BUILD
@@ -7,7 +7,7 @@ fi &&
OPTS+=" --with-shared --enable-pc-files" &&
# for GCC >= 15
-CFLAGS="-std=gnu17 ${CFLAGS}" &&
+force_dialect gnu17 &&
./configure --prefix="$TRACK_ROOT"/usr \
--sysconfdir="$TRACK_ROOT"/etc \
diff --git a/libs/ncurses/HISTORY b/libs/ncurses/HISTORY
index 6ff5436..aadd868 100644
--- a/libs/ncurses/HISTORY
+++ b/libs/ncurses/HISTORY
@@ -1,3 +1,6 @@
+2025-12-20 Ismael Luceno <ismael AT sourcemage.org>
+ * BUILD: Use force_dialect function
+
2025-07-27 Pavel Vinogradov <public AT sourcemage.org>
* BUILD: fixed building with GCC >= 15
diff --git a/net/megatools/BUILD b/net/megatools/BUILD
index 0aadf98..a25cb51 100755
--- a/net/megatools/BUILD
+++ b/net/megatools/BUILD
@@ -1,3 +1,2 @@
-CFLAGS="-std=c99 ${CFLAGS}" &&
-
+force_dialect c99 &&
default_build
diff --git a/net/megatools/HISTORY b/net/megatools/HISTORY
index b83ea65..b61205e 100644
--- a/net/megatools/HISTORY
+++ b/net/megatools/HISTORY
@@ -1,3 +1,6 @@
+2025-12-20 Ismael Luceno <ismael AT sourcemage.org>
+ * BUILD: Use force_dialect function
+
2020-05-19 Vlad Glagolev <stealth AT sourcemage.org>
* DETAILS: updated spell to 1.10.3; switch to hash verification;
switch to https
diff --git a/net/ppp/BUILD b/net/ppp/BUILD
index 4aade51..fcfaa0b 100755
--- a/net/ppp/BUILD
+++ b/net/ppp/BUILD
@@ -1,6 +1,4 @@
create_group ppp &&
# Force a specific C standard to avoid build failures with newer compilers
-case "$($CC --help)" in
- (*\ -std=*) CFLAGS+=' -std=gnu99';;
-esac &&
+force_dialect gnu99 &&
default_build
diff --git a/net/ppp/HISTORY b/net/ppp/HISTORY
index 12e6b62..2819e74 100644
--- a/net/ppp/HISTORY
+++ b/net/ppp/HISTORY
@@ -1,3 +1,6 @@
+2025-12-20 Ismael Luceno <ismael AT sourcemage.org>
+ * BUILD: Use force_dialect function
+
2025-10-28 Ismael Luceno <ismael AT sourcemage.org>
* BUILD, CONFIGURE, DEPENDS, DETAILS, INSTALL, PRE_BUILD:
updated spell to 2.5.2;
diff --git a/openprinting/cups-filters/BUILD b/openprinting/cups-filters/BUILD
index 1164743..2c77c1d 100755
--- a/openprinting/cups-filters/BUILD
+++ b/openprinting/cups-filters/BUILD
@@ -4,5 +4,5 @@ OPTS+=" $CPF_OPTS" &&
CPPFLAGS+=" -Wno-deprecated-declarations" &&
# C++17 is required to build against qpdf 11.4.0+
# (not detected as of cups-filters 1.28.17)
-CXXFLAGS+=' -std=c++17' &&
+force_dialect c++17 &&
default_build
diff --git a/openprinting/cups-filters/HISTORY
b/openprinting/cups-filters/HISTORY
index b02ba3b..7108789 100644
--- a/openprinting/cups-filters/HISTORY
+++ b/openprinting/cups-filters/HISTORY
@@ -1,3 +1,6 @@
+2025-12-20 Ismael Luceno <ismael AT sourcemage.org>
+ * BUILD: Use force_dialect function
+
2024-10-03 Treeve Jelbert <treeve AT sourcemage.org>
* DEPENDS: add mupdf
* BUILD: delete spurious line
diff --git a/printer/ghostscript/BUILD b/printer/ghostscript/BUILD
index f501518..4f010e1 100755
--- a/printer/ghostscript/BUILD
+++ b/printer/ghostscript/BUILD
@@ -1,6 +1,6 @@
CFLAGS+=" -Wno-unused-but-set-variable -Wno-unused-variable
-Wno-maybe-uninitialized"
CFLAGS+=" -Wno-incompatible-pointer-types" &&
-CFLAGS+=' -std=gnu17' &&
+force_dialect gnu17 &&
# need a comma separated list
OPTS="--with-drivers=`echo ${GS_PRINTERS} | \
sed "s/ */ /g;s/^ *//;s/ *$/ /;s/^NONE //;s/ /,/g"`JAPAN,FILES \
diff --git a/printer/ghostscript/HISTORY b/printer/ghostscript/HISTORY
index 17cf02a..bd4a1ad 100644
--- a/printer/ghostscript/HISTORY
+++ b/printer/ghostscript/HISTORY
@@ -1,3 +1,6 @@
+2025-12-20 Ismael Luceno <ismael AT sourcemage.org>
+ * BUILD: Use force_dialect function
+
2025-10-04 Treeve Jelbert <treeve AT sourcemage.org>
* DETAILS: version 10.06.0
SECURITY_PATCH=++ fixes:
diff --git a/shell-term-fm/screen/BUILD b/shell-term-fm/screen/BUILD
index 1827fcd..ff352f3 100755
--- a/shell-term-fm/screen/BUILD
+++ b/shell-term-fm/screen/BUILD
@@ -1,5 +1,5 @@
OPTS="$OPTS --with-sys-screenrc=/etc/screenrc" &&
-CFLAGS="$CFLAGS -std=gnu89" &&
+force_dialect gnu89 &&
# Avoid world-writable ptys! Even with the patches from OpenSUSE.
OPTS="$OPTS -with-pty-mode=0620 --with-pty-group=5" &&
if [[ $SCREEN_256COLOR == "y" ]]; then
diff --git a/shell-term-fm/screen/HISTORY b/shell-term-fm/screen/HISTORY
index 0c4668d..b5c0942 100644
--- a/shell-term-fm/screen/HISTORY
+++ b/shell-term-fm/screen/HISTORY
@@ -1,3 +1,6 @@
+2025-12-20 Ismael Luceno <ismael AT sourcemage.org>
+ * BUILD: Use force_dialect function
+
2025-11-01 Thomas Orgis <sobukus AT sourcemage.org>
* BUILD: std=gnu89
* CONFIGURE: choice about suid, default off
diff --git a/telephony/ucommon/BUILD b/telephony/ucommon/BUILD
index 51793e8..e25e70c 100755
--- a/telephony/ucommon/BUILD
+++ b/telephony/ucommon/BUILD
@@ -1,2 +1,2 @@
-CXXFLAGS+=' -std=c++14' &&
+force_dialect c++14 &&
default_build
diff --git a/telephony/ucommon/HISTORY b/telephony/ucommon/HISTORY
index f6d70cb..2185473 100644
--- a/telephony/ucommon/HISTORY
+++ b/telephony/ucommon/HISTORY
@@ -1,3 +1,6 @@
+2025-12-20 Ismael Luceno <ismael AT sourcemage.org>
+ * BUILD: Use force_dialect function
+
2023-03-27 Ismael Luceno <ismael AT sourcemage.org>
* DETAILS: updated spell to 7.0.0
* BUILD: added CXXFLAGS needed to build
diff --git a/utils/containers/BUILD b/utils/containers/BUILD
index 2898c43..978c5a8 100755
--- a/utils/containers/BUILD
+++ b/utils/containers/BUILD
@@ -1 +1,2 @@
-make CFLAGS="-std=gnu99 $CFLAGS"
+force_c_std gnu99 &&
+make CFLAGS="$CFLAGS"
diff --git a/utils/containers/HISTORY b/utils/containers/HISTORY
index e2a1a01..3d9118d 100644
--- a/utils/containers/HISTORY
+++ b/utils/containers/HISTORY
@@ -1,3 +1,6 @@
+2025-12-20 Ismael Luceno <ismael AT sourcemage.org>
+ * BUILD: Use force_dialect function
+
2019-08-16 Ismael Luceno <ismael AT sourcemage.org>
* DETAILS: updated spell to 1.6
diff --git a/utils/dbus-c++/BUILD b/utils/dbus-c++/BUILD
index 3600499..1f74256 100755
--- a/utils/dbus-c++/BUILD
+++ b/utils/dbus-c++/BUILD
@@ -1,2 +1,3 @@
-CXXFLAGS+=" -std=c++11 -fpermissive" &&
+force_dialect c++11 &&
+CXXFLAGS+=" -fpermissive" &&
default_build
diff --git a/utils/dbus-c++/HISTORY b/utils/dbus-c++/HISTORY
index 458cd5c..2456b24 100644
--- a/utils/dbus-c++/HISTORY
+++ b/utils/dbus-c++/HISTORY
@@ -1,3 +1,6 @@
+2025-12-20 Ismael Luceno <ismael AT sourcemage.org>
+ * BUILD: Use force_dialect function
+
2017-09-25 Thomas Orgis <sobukus AT sourcemage.org>
* BUILD: -fpermissive needed for gcc7
* PRE_BUILD, dbus-c++-threading.patch: Disable broken code.
diff --git a/x11-libs/cairomm/BUILD b/x11-libs/cairomm/BUILD
index e01574b..845e32a 100755
--- a/x11-libs/cairomm/BUILD
+++ b/x11-libs/cairomm/BUILD
@@ -1,2 +1,2 @@
-CXXFLAGS+=" -std=c++17" &&
+force_dialect c++17 &&
default_build
diff --git a/x11-libs/cairomm/HISTORY b/x11-libs/cairomm/HISTORY
index 511b534..03eb049 100644
--- a/x11-libs/cairomm/HISTORY
+++ b/x11-libs/cairomm/HISTORY
@@ -1,3 +1,6 @@
+2025-12-20 Ismael Luceno <ismael AT sourcemage.org>
+ * BUILD: Use force_dialect function
+
2022-05-28 Florian Franzmann <bwlf AT bandrate.org>
* DEPENDS: use MESON_DEPENDS
diff --git a/x11-libs/cairomm1.0/BUILD b/x11-libs/cairomm1.0/BUILD
index e01574b..845e32a 100755
--- a/x11-libs/cairomm1.0/BUILD
+++ b/x11-libs/cairomm1.0/BUILD
@@ -1,2 +1,2 @@
-CXXFLAGS+=" -std=c++17" &&
+force_dialect c++17 &&
default_build
diff --git a/x11-libs/cairomm1.0/HISTORY b/x11-libs/cairomm1.0/HISTORY
index abdd7e8..e838a80 100644
--- a/x11-libs/cairomm1.0/HISTORY
+++ b/x11-libs/cairomm1.0/HISTORY
@@ -1,3 +1,6 @@
+2025-12-20 Ismael Luceno <ismael AT sourcemage.org>
+ * BUILD: Use force_dialect function
+
2020-09-21 Thomas Orgis <sobukus AT sourcemage.org>
* DETAILS: back to 1.12.0 to preserve 1.0 ABI,
turn off redundant GATHER_DOCS,
diff --git a/x11-toolkits/gtk+/BUILD b/x11-toolkits/gtk+/BUILD
index 907f46c..3b50dcf 100755
--- a/x11-toolkits/gtk+/BUILD
+++ b/x11-toolkits/gtk+/BUILD
@@ -1,3 +1,3 @@
OPTS+=" --host=$HOST" &&
-CFLAGS+=" -std=gnu89" &&
+force_dialect gnu89 &&
default_build
diff --git a/x11-toolkits/gtk+/HISTORY b/x11-toolkits/gtk+/HISTORY
index b04c735..3f45381 100644
--- a/x11-toolkits/gtk+/HISTORY
+++ b/x11-toolkits/gtk+/HISTORY
@@ -1,3 +1,6 @@
+2025-12-20 Ismael Luceno <ismael AT sourcemage.org>
+ * BUILD: Use force_dialect function
+
2025-04-09 Ismael Luceno <ismael AT sourcemage.org>
* PRE_BUILD: Fixed build against musl
* PRE_BUILD, patches/config.sub.patch: migrated to apply_patch_dir
diff --git a/x11-toolkits/gtkmm2/BUILD b/x11-toolkits/gtkmm2/BUILD
index 5ca9d8c..6d548ce 100755
--- a/x11-toolkits/gtkmm2/BUILD
+++ b/x11-toolkits/gtkmm2/BUILD
@@ -1,3 +1,3 @@
OPTS="$GTKMM2_OPTS $OPTS" &&
-CXXFLAGS+=" -std=c++11" &&
+force_dialect gnu++11 &&
default_build
diff --git a/x11-toolkits/gtkmm2/HISTORY b/x11-toolkits/gtkmm2/HISTORY
index 73e0a14..51e8845 100644
--- a/x11-toolkits/gtkmm2/HISTORY
+++ b/x11-toolkits/gtkmm2/HISTORY
@@ -1,3 +1,6 @@
+2025-12-20 Ismael Luceno <ismael AT sourcemage.org>
+ * BUILD: Use force_dialect function
+
2023-11-12 Thomas Orgis <sobukus AT sourcemage.org>
* DEPENDS: handle atk deprecation (half-automated)
diff --git a/x11-toolkits/gtkmm3/BUILD b/x11-toolkits/gtkmm3/BUILD
index d163999..dd0f91f 100755
--- a/x11-toolkits/gtkmm3/BUILD
+++ b/x11-toolkits/gtkmm3/BUILD
@@ -1,3 +1,3 @@
OPTS="$GTKMM3_OPTS $OPTS" &&
-CXXFLAGS+=" -std=gnu++11" &&
+force_dialect gnu++11 &&
default_build
diff --git a/x11-toolkits/gtkmm3/HISTORY b/x11-toolkits/gtkmm3/HISTORY
index b12cd32..22c8e72 100644
--- a/x11-toolkits/gtkmm3/HISTORY
+++ b/x11-toolkits/gtkmm3/HISTORY
@@ -1,3 +1,6 @@
+2025-12-20 Ismael Luceno <ismael AT sourcemage.org>
+ * BUILD: Use force_dialect function
+
2023-11-12 Thomas Orgis <sobukus AT sourcemage.org>
* DEPENDS: handle atk deprecation (half-automated)
- [[SM-Commit] ] GIT changes to master grimoire by Ismael Luceno (78058076d0633f05ad2fbac0803c0f5bac282297), Ismael Luceno, 12/19/2025
Archive powered by MHonArc 2.6.24.