Received: (at 79847) by debbugs.gnu.org; 20 Nov 2025 17:51:25 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Thu Nov 20 12:51:25 2025 Received: from localhost ([127.0.0.1]:49623 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1vM8oW-0001AE-Pz for submit <at> debbugs.gnu.org; Thu, 20 Nov 2025 12:51:25 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:34262) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1vM8oV-00019Y-19 for 79847 <at> debbugs.gnu.org; Thu, 20 Nov 2025 12:51:23 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <eliz@HIDDEN>) id 1vM8oA-0005Iq-78; Thu, 20 Nov 2025 12:51:17 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=lRs49dzvUoSzqQFkhLQKKV+y5FTbDpQPbQinll86iKY=; b=T1hUz/YGJ49s+kvQmtF4 qjnEPSJUyuvgo8TR4wAAXfHFi0pab9kyZ2QJqgagEMZPGeIN1WfIfM02vMyPpvac8TQ+ai/8BtP1x o0EIAoJrsKBMFi+pnjp099rSjhc83Hdxf57tipN5SZEEdN97kP3iMukcu4jTTP6Xc3LChTGRPiIVh Gmhi+RBUIgbHR4K0++vsIScfg7f1H+G1sn9h1EC3O3fX0DaMnIlCeuPd2JbCQq/K1O4KJ5NxFSDi+ PuVDz7z8XaLEQLhT0uv99qTBxRZyCdqzoq68y/0EqjKpT/hEd973nRJl40G701zgI2IGWst5iE1K6 ZB4V1zmPT04vQw==; Date: Thu, 20 Nov 2025 19:50:59 +0200 Message-Id: <864iqoioe4.fsf@HIDDEN> From: Eli Zaretskii <eliz@HIDDEN> To: Robert Pluim <rpluim@HIDDEN> In-Reply-To: <87ikf4vi1s.fsf@HIDDEN> (message from Robert Pluim on Thu, 20 Nov 2025 16:29:35 +0100) Subject: Re: bug#79847: [PATCH 1/1] 31.0.50; xwidgets: pacify macOS compiler warnings References: <9573bce6939f36b65835ff52094e2684@HIDDEN> <86o6p0lu95.fsf@HIDDEN> <87ikf4vi1s.fsf@HIDDEN> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 79847 Cc: 79847 <at> debbugs.gnu.org, alexander.adolf@HIDDEN X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) > From: Robert Pluim <rpluim@HIDDEN> > Cc: Alexander Adolf <alexander.adolf@HIDDEN>, > 79847 <at> debbugs.gnu.org > Date: Thu, 20 Nov 2025 16:29:35 +0100 > > >>>>> On Mon, 17 Nov 2025 14:27:02 +0200, Eli Zaretskii <eliz@HIDDEN> said: > > >> Date: Sun, 16 Nov 2025 18:31:22 +0100 > >> From: Alexander Adolf via "Bug reports for GNU Emacs, > >> the Swiss army knife of text editors" <bug-gnu-emacs@HIDDEN> > >> > >> on macOS, when including --with-xwidgets in the configure options, but > >> without having the wxwidgets library installed (e.g. homebrew), so that > >> the build uses the WebKit from macOS, I get the same compiler warning > >> for a lengthy list of C files, with dispnew.c being the first one: > >> > >> clang: warning: no such include directory: '/System/Library/Frameworks/WebKit.framework/Headers' [-Wmissing-include-dirs] > >> > >> The executable resulting from such a build does work as expected, > >> however. It seems that the Xcode tools employ some further magic to do > >> the right thing. > >> > >> The reason for the compiler warnings is that the hard-coded path for the > >> macOS WebKit header files in configure.ac may or may not be usable. > >> Several SDK versions may be installed in parallel, each one providing > >> its own set of development headers. Usually, the safest bet is to query > >> for the correct path to SDK files using the xcrun command. > >> > >> That is what the attached patch does. > >> > >> It also keeps the original hard-coded path as a fallback in case xcrun > >> should fail to deliver meaningful results. > >> > >> > >> Hoping to have helped, and looking forward to your thoughts, > > Eli> Thanks. Could someone who can build Emacs on macOS please test the > Eli> patch in the various variants, and provide feedback? > > Applying the patch successfully suppresses the warning that I got when > building --with-xwidgets without the patch. This is macOS 15.7 with > the 15.7 SDK (Iʼm *really* reluctant to move to 26, it looks like > theyʼve broken a bunch of stuff). Thanks. I think we need someone with 26 to confirm the patch works, before we apply it. Any volunteers?
bug-gnu-emacs@HIDDEN:bug#79847; Package emacs.
Full text available.
Received: (at 79847) by debbugs.gnu.org; 20 Nov 2025 15:29:46 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Nov 20 10:29:46 2025
Received: from localhost ([127.0.0.1]:48838 helo=debbugs.gnu.org)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
id 1vM6bR-0006ET-G9
for submit <at> debbugs.gnu.org; Thu, 20 Nov 2025 10:29:46 -0500
Received: from mail-wm1-x32a.google.com ([2a00:1450:4864:20::32a]:57715)
by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
(Exim 4.84_2) (envelope-from <rpluim@HIDDEN>) id 1vM6bO-0006Dy-Rr
for 79847 <at> debbugs.gnu.org; Thu, 20 Nov 2025 10:29:43 -0500
Received: by mail-wm1-x32a.google.com with SMTP id
5b1f17b1804b1-477a1c28778so12449595e9.3
for <79847 <at> debbugs.gnu.org>; Thu, 20 Nov 2025 07:29:42 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20230601; t=1763652576; x=1764257376; darn=debbugs.gnu.org;
h=content-transfer-encoding:mime-version:message-id:date:references
:in-reply-to:subject:cc:to:from:from:to:cc:subject:date:message-id
:reply-to; bh=GPUz3Pey/Fe9CkW4ljHrHX/qBgRgz1Qeu7oa2TJRMgI=;
b=ewInJgSrTLnXDdD72K5whshHNlKTh+arN3jx82PxF05PyfTjZNUhDe000vxWUeEeE3
wQQuSLJNaLiI2GJhfIZlU9E/Up7OsoZO4nDzOTbbm7xXdWFXi8fVj/zB14HHoyzAjNjg
Kdhg9cbRXMvOpCIWEWTNozCTaa2/qNe3IAWfvzeq9KzZYGceXUpMyr+x0eyZwJx09XYD
7bVnwf1/wJBWoLcDAI4yn2Z1I9shAUKBJ360JWyLrgzhfWAkUEhGZU8It0Y9CqHcZ2YU
AfC3c/DgAPQJVF9eRPcJb6vBFBZrIvwBX7JAR1taax7rgTLose4xDhkjvBkyuRaBKsht
4qhA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20230601; t=1763652576; x=1764257376;
h=content-transfer-encoding:mime-version:message-id:date:references
:in-reply-to:subject:cc:to:from:x-gm-gg:x-gm-message-state:from:to
:cc:subject:date:message-id:reply-to;
bh=GPUz3Pey/Fe9CkW4ljHrHX/qBgRgz1Qeu7oa2TJRMgI=;
b=vd9gmHvn6JKP2xbfrodMozhK4YyuDbJ2y8zVMcOF5VikVWl0WyPgGF414LFsARQfTK
xPMw1G+JzIboew8iv5kL9g3mSM3d1y7KcBNvFX/9XF+ngCqoVeF7IGy5cJyI4v2bvKkE
FGjQwOqs8bA3H1X6nXSFbxbocZfP+GT3KW8eEcdwKG3RSq/68qHamBas8Oj+Zr97QRcP
zspCbd94PSXCZq92llQgZ1CqxFk5S7uoxCP+SS4DLszJnNW5UBhJ5ThkauGGbven4pa3
jcwhccDFLfgGp68Ip/31nWQFxpah1vUWD7PHAMob1jKbaIEekICGB4BSC0eXqlJLTqzi
o7WQ==
X-Forwarded-Encrypted: i=1;
AJvYcCU4Fg7Zulph7WCTamwaXDiYwQCudt+O8Zo/wGReBWZDDCNvIJzT9VByWqrwBCOEdc0tbhGaoA==@debbugs.gnu.org
X-Gm-Message-State: AOJu0Yxwning14czNTo/z5jv0KXaYJd9a0nNbYlmGQz78rcigK0J0yN3
Z9+LexM44Z5q4dMnGJGydU7qljY2BgAjitMSXG7FuJo+QfOhAhBX38YQR7/DFNVX
X-Gm-Gg: ASbGnctANslX11Rg2wVcYmfmxU2N/gLCXF6JGvODnPlqz9aNpLCgOU74QJCcWomnkU8
GkBI3SbrSVsqd/gmnwbNRLL27CDqPODNn0SLASlTr4RCJjJ/KTJxX4JDps9uqQFrX/GbpeZHxDO
f6e8FrNMrI9luPK70eVxNUl2OduxcX9l7KOUWrD3oA6UHLcwtL1adrchX3ieJ+wkLAMwBr1Z149
P/95AyBbMZd5QZKNwymmxseMLfwFE5TF231pxs+AYRHj/uMWBpulHM6qjHZw0BPdmG72wilLXyU
+wJZemj6SSBhujNovexhvxy0ojzQD93PNfzl3zTt+ZwSaSXSEtzXer3bug1D55GN+wF7q4343iS
f+tGrO1h/BnXGAz+WooDc3PomotkohY3ULZpvRpdEbVMA7ChjW/q4geG6aHLf1sXa5gw+kTxB
X-Google-Smtp-Source: AGHT+IGk3SQogV1qr38PVyk6WQhymdR3iuuz+SIMWXYJ9DL92zkNoXRABgSratC+XJJn6J43Nj8hZA==
X-Received: by 2002:a05:600c:1d29:b0:477:55ce:f3bc with SMTP id
5b1f17b1804b1-477b8a89e68mr42702115e9.19.1763652575946;
Thu, 20 Nov 2025 07:29:35 -0800 (PST)
Received: from rltb ([2a01:e0a:3f3:fb50:bb43:df9:9151:8d71])
by smtp.gmail.com with ESMTPSA id
5b1f17b1804b1-477b106b10asm113456695e9.10.2025.11.20.07.29.35
(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
Thu, 20 Nov 2025 07:29:35 -0800 (PST)
From: Robert Pluim <rpluim@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#79847: [PATCH 1/1] 31.0.50; xwidgets: pacify macOS compiler
warnings
In-Reply-To: <86o6p0lu95.fsf@HIDDEN>
References: <9573bce6939f36b65835ff52094e2684@HIDDEN>
<86o6p0lu95.fsf@HIDDEN>
Date: Thu, 20 Nov 2025 16:29:35 +0100
Message-ID: <87ikf4vi1s.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 79847
Cc: 79847 <at> debbugs.gnu.org,
Alexander Adolf <alexander.adolf@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)
>>>>> On Mon, 17 Nov 2025 14:27:02 +0200, Eli Zaretskii <eliz@HIDDEN> said:
>> Date: Sun, 16 Nov 2025 18:31:22 +0100
>> From: Alexander Adolf via "Bug reports for GNU Emacs,
>> the Swiss army knife of text editors" <bug-gnu-emacs@HIDDEN>
>>=20
>> on macOS, when including --with-xwidgets in the configure options, b=
ut
>> without having the wxwidgets library installed (e.g. homebrew), so t=
hat
>> the build uses the WebKit from macOS, I get the same compiler warning
>> for a lengthy list of C files, with dispnew.c being the first one:
>>=20
>> clang: warning: no such include directory: '/System/Library/Framewor=
ks/WebKit.framework/Headers' [-Wmissing-include-dirs]
>>=20
>> The executable resulting from such a build does work as expected,
>> however. It seems that the Xcode tools employ some further magic to =
do
>> the right thing.
>>=20
>> The reason for the compiler warnings is that the hard-coded path for=
the
>> macOS WebKit header files in configure.ac may or may not be usable.
>> Several SDK versions may be installed in parallel, each one providing
>> its own set of development headers. Usually, the safest bet is to qu=
ery
>> for the correct path to SDK files using the xcrun command.
>>=20
>> That is what the attached patch does.
>>=20
>> It also keeps the original hard-coded path as a fallback in case xcr=
un
>> should fail to deliver meaningful results.
>>=20
>>=20
>> Hoping to have helped, and looking forward to your thoughts,
Eli> Thanks. Could someone who can build Emacs on macOS please test the
Eli> patch in the various variants, and provide feedback?
Applying the patch successfully suppresses the warning that I got when
building --with-xwidgets without the patch. This is macOS 15.7 with
the 15.7 SDK (I=CA=BCm *really* reluctant to move to 26, it looks like
they=CA=BCve broken a bunch of stuff).
Robert
--=20
bug-gnu-emacs@HIDDEN:bug#79847; Package emacs.
Full text available.Received: (at 79847) by debbugs.gnu.org; 17 Nov 2025 12:27:15 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Mon Nov 17 07:27:15 2025 Received: from localhost ([127.0.0.1]:51027 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1vKyKB-0002hK-8l for submit <at> debbugs.gnu.org; Mon, 17 Nov 2025 07:27:15 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:59230) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1vKyK9-0002h2-0P for 79847 <at> debbugs.gnu.org; Mon, 17 Nov 2025 07:27:13 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <eliz@HIDDEN>) id 1vKyK3-0005ok-7c; Mon, 17 Nov 2025 07:27:07 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=ql+nhe5uCd5JSfpYo+tV53sz+OXOLBxuJivBO2JNwl0=; b=mxSmjrW/Jdbs 4Krdsvx6+ynYe6YwNPys/laTxIJqnAjbYDssZ7YuCpGQaKaXHYTHzbOTmqRawr2h3l0FfuNMxh3+f sJirtGxBbhs1lBRMs7pmeyRDmxSuByl4NuET1DKYYR06w9hdP4jD5X9mDMsxPVG4FddSJ1iI3A+a9 GZM1ZIndYRD5l2tlzCn3bao0f8FZyk5AzFup8zEbHSluge0g2v905rB77l+Ry4nF3ZIRLYUZRbREw wZ10p9SI+CogQeFyOt6W+PIqnoXZojzW0WejeN8SFbDeX92GozIpYrh+dJYe0MxM1HXKZQgFd0hYR ugtRK+4IprDwjB/Dp7Nf9g==; Date: Mon, 17 Nov 2025 14:27:02 +0200 Message-Id: <86o6p0lu95.fsf@HIDDEN> From: Eli Zaretskii <eliz@HIDDEN> To: Alexander Adolf <alexander.adolf@HIDDEN> In-Reply-To: <9573bce6939f36b65835ff52094e2684@HIDDEN> (bug-gnu-emacs@HIDDEN) Subject: Re: bug#79847: [PATCH 1/1] 31.0.50; xwidgets: pacify macOS compiler warnings References: <9573bce6939f36b65835ff52094e2684@HIDDEN> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 79847 Cc: 79847 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) > Date: Sun, 16 Nov 2025 18:31:22 +0100 > From: Alexander Adolf via "Bug reports for GNU Emacs, > the Swiss army knife of text editors" <bug-gnu-emacs@HIDDEN> > > on macOS, when including --with-xwidgets in the configure options, but > without having the wxwidgets library installed (e.g. homebrew), so that > the build uses the WebKit from macOS, I get the same compiler warning > for a lengthy list of C files, with dispnew.c being the first one: > > clang: warning: no such include directory: '/System/Library/Frameworks/WebKit.framework/Headers' [-Wmissing-include-dirs] > > The executable resulting from such a build does work as expected, > however. It seems that the Xcode tools employ some further magic to do > the right thing. > > The reason for the compiler warnings is that the hard-coded path for the > macOS WebKit header files in configure.ac may or may not be usable. > Several SDK versions may be installed in parallel, each one providing > its own set of development headers. Usually, the safest bet is to query > for the correct path to SDK files using the xcrun command. > > That is what the attached patch does. > > It also keeps the original hard-coded path as a fallback in case xcrun > should fail to deliver meaningful results. > > > Hoping to have helped, and looking forward to your thoughts, Thanks. Could someone who can build Emacs on macOS please test the patch in the various variants, and provide feedback?
bug-gnu-emacs@HIDDEN:bug#79847; Package emacs.
Full text available.
Received: (at submit) by debbugs.gnu.org; 16 Nov 2025 17:31:40 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Nov 16 12:31:40 2025
Received: from localhost ([127.0.0.1]:46222 helo=debbugs.gnu.org)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
id 1vKgbE-0006wa-4l
for submit <at> debbugs.gnu.org; Sun, 16 Nov 2025 12:31:40 -0500
Received: from lists.gnu.org ([2001:470:142::17]:39226)
by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
(Exim 4.84_2) (envelope-from <alexander.adolf@HIDDEN>)
id 1vKgbB-0006wK-2b
for submit <at> debbugs.gnu.org; Sun, 16 Nov 2025 12:31:37 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10])
by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
(Exim 4.90_1) (envelope-from <alexander.adolf@HIDDEN>)
id 1vKgb5-0004HU-An
for bug-gnu-emacs@HIDDEN; Sun, 16 Nov 2025 12:31:31 -0500
Received: from www191.your-server.de ([188.40.2.11])
by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
(Exim 4.90_1) (envelope-from <alexander.adolf@HIDDEN>)
id 1vKgb3-0002QB-GV
for bug-gnu-emacs@HIDDEN; Sun, 16 Nov 2025 12:31:31 -0500
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;
d=condition-alpha.com; s=default2503; h=Content-Type:MIME-Version:Date:
Subject:To:From:Message-Id:Sender:Reply-To:Cc:Content-Transfer-Encoding:
Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender:
Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References;
bh=XxehayQTaM8M7/8in/Y1CZo6Oo0GB/Fd6JaSiiXjf+k=; b=G7r/oDHxh8NwiAJjqiMqmPZwCL
VmY1hUVGsXajoPeQ4m+co4gAXhfgQ1mAsqtnosgjRdcTzzLpEKh3kB7A6af90gAWyhalgGMiHEHOV
sIO1/15083DCBD/Akq3ZQxwNhgyafJvwoxbXllkIiLbF48RhZJhMlirWApGYVVwsNbn0bZNyQhzWT
ORRNE3TISf0OrHlnuIhbROZ04QsVx5ND5I6w2QYHnPz9SZbQTJ6zQ4ynlYIWpER+jYELUs77nuC8i
0JMeuzkdflt/lj7uubtdaTUq4UYMEz1XlQpCwrYO3HfOKpSvCIr5bU5hUWV7HBQw/7quOEiPr9ggv
t3CbCnDg==;
Received: from sslproxy02.your-server.de ([78.47.166.47])
by www191.your-server.de with esmtpsa (TLS1.3) tls TLS_AES_256_GCM_SHA384
(Exim 4.96.2) (envelope-from <alexander.adolf@HIDDEN>)
id 1vKgax-0009WE-1H for bug-gnu-emacs@HIDDEN;
Sun, 16 Nov 2025 18:31:23 +0100
Received: from localhost ([127.0.0.1])
by sslproxy02.your-server.de with esmtpsa (TLS1.3) tls TLS_AES_256_GCM_SHA384
(Exim 4.96) (envelope-from <alexander.adolf@HIDDEN>)
id 1vKgaw-0003Vq-2V for bug-gnu-emacs@HIDDEN;
Sun, 16 Nov 2025 18:31:23 +0100
Message-Id: <9573bce6939f36b65835ff52094e2684@HIDDEN>
From: Alexander Adolf <alexander.adolf@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Subject: [PATCH 1/1] 31.0.50; xwidgets: pacify macOS compiler warnings
Date: Sun, 16 Nov 2025 18:31:22 +0100
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="=-=-="
X-Virus-Scanned: Clear (ClamAV 1.0.9/27822/Fri Nov 14 10:08:05 2025)
Received-SPF: pass client-ip=188.40.2.11;
envelope-from=alexander.adolf@HIDDEN; helo=www191.your-server.de
X-Spam_score_int: -20
X-Spam_score: -2.1
X-Spam_bar: --
X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,
RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001,
SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: 0.9 (/)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.1 (/)
--=-=-=
Content-Type: text/plain
Hello,
on macOS, when including --with-xwidgets in the configure options, but
without having the wxwidgets library installed (e.g. homebrew), so that
the build uses the WebKit from macOS, I get the same compiler warning
for a lengthy list of C files, with dispnew.c being the first one:
clang: warning: no such include directory: '/System/Library/Frameworks/WebKit.framework/Headers' [-Wmissing-include-dirs]
The executable resulting from such a build does work as expected,
however. It seems that the Xcode tools employ some further magic to do
the right thing.
The reason for the compiler warnings is that the hard-coded path for the
macOS WebKit header files in configure.ac may or may not be usable.
Several SDK versions may be installed in parallel, each one providing
its own set of development headers. Usually, the safest bet is to query
for the correct path to SDK files using the xcrun command.
That is what the attached patch does.
It also keeps the original hard-coded path as a fallback in case xcrun
should fail to deliver meaningful results.
Hoping to have helped, and looking forward to your thoughts,
--alexander
--=-=-=
Content-Type: text/x-patch
Content-Disposition: attachment;
filename=0001-xwidgets--pacify-macOS-compiler-warnings.patch
Content-Description: [PATCH 1/1] ; xwidgets: pacify macOS compiler warnings
From 95fbd6eb3cc849cdcc878afaebeced77a084c134 Mon Sep 17 00:00:00 2001
From: Alexander Adolf <alexander.adolf@HIDDEN>
Date: Sun, 16 Nov 2025 17:59:02 +0100
Subject: [PATCH 1/1] ; xwidgets: pacify macOS compiler warnings
* configure.ac: when the WebKit header files are not available
in the hard-coded location, query for the location of the
currently active SDK, and resort to the header files there
---
configure.ac | 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)
diff --git a/configure.ac b/configure.ac
index 44d9cae1e7e..23690eabb40 100644
--- a/configure.ac
+++ b/configure.ac
@@ -4454,7 +4454,16 @@ AC_DEFUN
dnl FIXME: Check framework WebKit2
dnl WEBKIT_REQUIRED=M.m.p
WEBKIT_LIBS="-Wl,-framework -Wl,WebKit"
- WEBKIT_CFLAGS="-I/System/Library/Frameworks/WebKit.framework/Headers"
+ WEBKIT_HEADERS="/System/Library/Frameworks/WebKit.framework/Headers"
+ if test -z "$xcsdkdir" -a -n "$XCRUN" -a ! -d "${WEBKIT_HEADERS}"; then
+ dnl WebKit headers not found. Try Xcode SDK dir if it is sane.
+ xcsdkdir=`$XCRUN --show-sdk-path 2>/dev/null`
+ case $xcsdkdir in
+ *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*)
+ xcsdkdir="" ;;
+ esac
+ fi
+ WEBKIT_CFLAGS="-I${xcsdkdir}${WEBKIT_HEADERS}"
HAVE_WEBKIT="yes"
HAVE_XWIDGETS=$HAVE_WEBKIT
XWIDGETS_OBJ="xwidget.o"
--
2.50.1 (Apple Git-155)
--=-=-=--
Alexander Adolf <alexander.adolf@HIDDEN>:bug-gnu-emacs@HIDDEN.
Full text available.bug-gnu-emacs@HIDDEN:bug#79847; Package emacs.
Full text available.
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.