pkgsrc-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: pkg/59002: Bootstrapping pkgsrc on HP-UX 11.11/PA-RISC fails due to lack of stdint.h
The following reply was made to PR pkg/59002; it has been noted by GNATS.
From: Thom Holwerda <thomholwerda%osnews.com@localhost>
To: "gnats-bugs%netbsd.org@localhost" <gnats-bugs%netbsd.org@localhost>
Cc: "pkg-manager%netbsd.org@localhost" <pkg-manager%netbsd.org@localhost>,
"gnats-admin%netbsd.org@localhost" <gnats-admin%netbsd.org@localhost>, "pkgsrc-bugs%netbsd.org@localhost" <pkgsrc-bugs%netbsd.org@localhost>
Subject: Re: pkg/59002: Bootstrapping pkgsrc on HP-UX 11.11/PA-RISC fails due
to lack of stdint.h
Date: Sat, 18 Jan 2025 12:22:33 +0100
--000000000000633d2b062bf93e09
Content-Type: text/plain; charset="UTF-8"
The patch works, and gets us beyond awk. However, when bootstrap compiles
libarchive, it throws up the same error, so I think that one, too, needs
the same or at least similar patch.
Thom
On Friday, 17 January 2025, Taylor R Campbell via gnats <
gnats-admin%netbsd.org@localhost> wrote:
> The following reply was made to PR pkg/59002; it has been noted by GNATS.
>
> From: Taylor R Campbell <campbell%mumble.net@localhost>
> To: thomholwerda%osnews.com@localhost
> Cc: gnats-bugs%NetBSD.org@localhost, pkgsrc-bugs%NetBSD.org@localhost
> Subject: Re: pkg/59002: Bootstrapping pkgsrc on HP-UX 11.11/PA-RISC fails
due to lack of stdint.h
> Date: Fri, 17 Jan 2025 15:15:40 +0000
>
> This is a multi-part message in MIME format.
> --=_Jk88w0qeZbZBxabcXkD5GbHSqAbVNpLw
>
> Can you please try the attached patch?
>
> --=_Jk88w0qeZbZBxabcXkD5GbHSqAbVNpLw
> Content-Type: text/plain; charset="ISO-8859-1"; name="pr59002-nawkc89"
> Content-Transfer-Encoding: quoted-printable
> Content-Disposition: attachment; filename="pr59002-nawkc89.patch"
>
> >From 8b26da34e8f2b100fe26b72d910d5b530f7de236 Mon Sep 17 00:00:00 2001
> From: Taylor R Campbell <riastradh%NetBSD.org@localhost>
> Date: Fri, 17 Jan 2025 15:13:40 +0000
> Subject: [PATCH] lang/nawk: Provide compatibility with pre-C99 compilers.
>
> No change to post-C99 compilers -- change is conditional on
> __STDC_VERSION__ predating the C99 value.
>
> PR pkg/59002: Bootstrapping pkgsrc on HP-UX 11.11/PA-RISC fails due
> to lack of stdint.h
> ---
> lang/nawk/files/awk.h | 9 +++++++++
> 1 file changed, 9 insertions(+)
>
> diff --git a/lang/nawk/files/awk.h b/lang/nawk/files/awk.h
> index ccd16c906f3a..d6dd0f160d9f 100644
> --- a/lang/nawk/files/awk.h
> +++ b/lang/nawk/files/awk.h
> @@ -23,8 +23,17 @@ THIS SOFTWARE.
> ****************************************************************/
> =20
> #include <assert.h>
> +#if __STDC_VERSION__ < 199901L
> +typedef long intptr_t;
> +typedef int bool;
> +enum {
> + false =3D 0,
> + true =3D 1,
> +};
> +#else
> #include <stdint.h>
> #include <stdbool.h>
> +#endif
> #if __STDC_VERSION__ <=3D 199901L
> #define noreturn
> #else
>
> --=_Jk88w0qeZbZBxabcXkD5GbHSqAbVNpLw--
>
>
--000000000000633d2b062bf93e09
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
The patch works, and gets us beyond awk. However, when bootstrap compiles l=
ibarchive, it throws up the same error, so I think that one, too, needs the=
same or at least similar patch.<br><br><br>Thom<br><br><br>On Friday, 17 J=
anuary 2025, Taylor R Campbell via gnats <<a href=3D"mailto:gnats-admin@=
netbsd.org">gnats-admin%netbsd.org@localhost</a>> wrote:<br>> The following rep=
ly was made to PR pkg/59002; it has been noted by GNATS.<br>><br>> Fr=
om: Taylor R Campbell <<a href=3D"mailto:campbell%mumble.net@localhost">campbell@m=
umble.net</a>><br>> To: <a href=3D"mailto:thomholwerda%osnews.com@localhost">th=
omholwerda%osnews.com@localhost</a><br>> Cc: gnats-bugs%NetBSD.org@localhost, pkgsrc-bugs@Ne=
tBSD.org<br>> Subject: Re: pkg/59002: Bootstrapping pkgsrc on HP-UX 11.1=
1/PA-RISC fails due to lack of stdint.h<br>> Date: Fri, 17 Jan 2025 15:1=
5:40 +0000<br>><br>> =C2=A0This is a multi-part message in MIME forma=
t.<br>> =C2=A0--=3D_Jk88w0qeZbZBxabcXkD5GbHSqAbVNpLw<br>> =C2=A0<br>&=
gt; =C2=A0Can you please try the attached patch?<br>><br>> =C2=A0--=
=3D_Jk88w0qeZbZBxabcXkD5GbHSqAbVNpLw<br>> =C2=A0Content-Type: text/plain=
; charset=3D"ISO-8859-1"; name=3D"pr59002-nawkc89"<br>&=
gt; =C2=A0Content-Transfer-Encoding: quoted-printable<br>> =C2=A0Content=
-Disposition: attachment; filename=3D"pr59002-nawkc89.patch"<br>&=
gt;<br>> =C2=A0>From 8b26da34e8f2b100fe26b72d910d5b530f7de236 Mon Sep=
17 00:00:00 2001<br>> =C2=A0From: Taylor R Campbell <riastradh@NetBS=
D.org><br>> =C2=A0Date: Fri, 17 Jan 2025 15:13:40 +0000<br>> =C2=
=A0Subject: [PATCH] lang/nawk: Provide compatibility with pre-C99 compilers=
.<br>><br>> =C2=A0No change to post-C99 compilers -- change is condit=
ional on<br>> =C2=A0__STDC_VERSION__ predating the C99 value.<br>><br=
>> =C2=A0PR pkg/59002: Bootstrapping pkgsrc on HP-UX 11.11/PA-RISC fails=
due<br>> =C2=A0to lack of stdint.h<br>> =C2=A0---<br>> =C2=A0 lan=
g/nawk/files/awk.h | 9 +++++++++<br>> =C2=A0 1 file changed, 9 insertion=
s(+)<br>><br>> =C2=A0diff --git a/lang/nawk/files/awk.h b/lang/nawk/f=
iles/awk.h<br>> =C2=A0index ccd16c906f3a..d6dd0f160d9f 100644<br>> =
=C2=A0--- a/lang/nawk/files/awk.h<br>> =C2=A0+++ b/lang/nawk/files/awk.h=
<br>> =C2=A0@@ -23,8 +23,17 @@ THIS SOFTWARE.<br>> =C2=A0 ***********=
*****************************************************/<br>> =C2=A0=3D20<=
br>> =C2=A0 #include <assert.h><br>> =C2=A0+#if __STDC_VERSION_=
_ < 199901L<br>> =C2=A0+typedef long intptr_t;<br>> =C2=A0+typedef=
int bool;<br>> =C2=A0+enum {<br>> =C2=A0+=C2=A0 =C2=A0 =C2=A0 false =
=3D3D 0,<br>> =C2=A0+=C2=A0 =C2=A0 =C2=A0 true =3D3D 1,<br>> =C2=A0+}=
;<br>> =C2=A0+#else<br>> =C2=A0 #include <stdint.h><br>> =C2=
=A0 #include <stdbool.h><br>> =C2=A0+#endif<br>> =C2=A0 #if __S=
TDC_VERSION__ <=3D3D 199901L<br>> =C2=A0 #define noreturn<br>> =C2=
=A0 #else<br>><br>> =C2=A0--=3D_Jk88w0qeZbZBxabcXkD5GbHSqAbVNpLw--<br=
>><br>>
--000000000000633d2b062bf93e09--
Home |
Main Index |
Thread Index |
Old Index