summaryrefslogtreecommitdiff
path: root/Ports
diff options
context:
space:
mode:
authorGavin Downard <gavin.downard@runbox.com>2021-06-14 22:12:48 -0700
committerAndreas Kling <kling@serenityos.org>2021-06-18 10:19:00 +0200
commit3c6d99f6960228c6da95ffcba85bdc812ca93675 (patch)
treea1d764062998b8595093f9c837411c3937653a1c /Ports
parentd173945dad4abc806753cb4c19639b1753622376 (diff)
downloadserenity-3c6d99f6960228c6da95ffcba85bdc812ca93675.zip
Ports: Fix less by disabling wctype
The commit c2b47c067 (LibC: Add stubs for wctype and iswctype, 2021-05-27) introduced the wctype.h header, which caused the less port to try to build with wchar support. This patches the header generated by the configure script to remove wchar support.
Diffstat (limited to 'Ports')
-rwxr-xr-xPorts/less/package.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/Ports/less/package.sh b/Ports/less/package.sh
index 4fcfdc2093..59664655df 100755
--- a/Ports/less/package.sh
+++ b/Ports/less/package.sh
@@ -9,3 +9,8 @@ https://ftpmirror.gnu.org/gnu/gnu-keyring.gpg gnu-keyring.gpg"
depends="ncurses"
auth_type="sig"
auth_opts="--keyring ./gnu-keyring.gpg less-${version}.tar.gz.sig"
+
+post_configure() {
+ run_replace_in_file "s/#define HAVE_WCTYPE 1/\/* #undef HAVE_WCTYPE *\//" defines.h
+ run touch stamp-h # prevent config.status from overwriting our changes
+}