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 &lt;<a href=3D"mailto:gnats-admin@=
 netbsd.org">gnats-admin%netbsd.org@localhost</a>&gt; wrote:<br>&gt; The following rep=
 ly was made to PR pkg/59002; it has been noted by GNATS.<br>&gt;<br>&gt; Fr=
 om: Taylor R Campbell &lt;<a href=3D"mailto:campbell%mumble.net@localhost";>campbell@m=
 umble.net</a>&gt;<br>&gt; To: <a href=3D"mailto:thomholwerda%osnews.com@localhost";>th=
 omholwerda%osnews.com@localhost</a><br>&gt; Cc: gnats-bugs%NetBSD.org@localhost, pkgsrc-bugs@Ne=
 tBSD.org<br>&gt; Subject: Re: pkg/59002: Bootstrapping pkgsrc on HP-UX 11.1=
 1/PA-RISC fails due to lack of stdint.h<br>&gt; Date: Fri, 17 Jan 2025 15:1=
 5:40 +0000<br>&gt;<br>&gt; =C2=A0This is a multi-part message in MIME forma=
 t.<br>&gt; =C2=A0--=3D_Jk88w0qeZbZBxabcXkD5GbHSqAbVNpLw<br>&gt; =C2=A0<br>&=
 gt; =C2=A0Can you please try the attached patch?<br>&gt;<br>&gt; =C2=A0--=
 =3D_Jk88w0qeZbZBxabcXkD5GbHSqAbVNpLw<br>&gt; =C2=A0Content-Type: text/plain=
 ; charset=3D&quot;ISO-8859-1&quot;; name=3D&quot;pr59002-nawkc89&quot;<br>&=
 gt; =C2=A0Content-Transfer-Encoding: quoted-printable<br>&gt; =C2=A0Content=
 -Disposition: attachment; filename=3D&quot;pr59002-nawkc89.patch&quot;<br>&=
 gt;<br>&gt; =C2=A0&gt;From 8b26da34e8f2b100fe26b72d910d5b530f7de236 Mon Sep=
  17 00:00:00 2001<br>&gt; =C2=A0From: Taylor R Campbell &lt;riastradh@NetBS=
 D.org&gt;<br>&gt; =C2=A0Date: Fri, 17 Jan 2025 15:13:40 +0000<br>&gt; =C2=
 =A0Subject: [PATCH] lang/nawk: Provide compatibility with pre-C99 compilers=
 .<br>&gt;<br>&gt; =C2=A0No change to post-C99 compilers -- change is condit=
 ional on<br>&gt; =C2=A0__STDC_VERSION__ predating the C99 value.<br>&gt;<br=
 >&gt; =C2=A0PR pkg/59002: Bootstrapping pkgsrc on HP-UX 11.11/PA-RISC fails=
  due<br>&gt; =C2=A0to lack of stdint.h<br>&gt; =C2=A0---<br>&gt; =C2=A0 lan=
 g/nawk/files/awk.h | 9 +++++++++<br>&gt; =C2=A0 1 file changed, 9 insertion=
 s(+)<br>&gt;<br>&gt; =C2=A0diff --git a/lang/nawk/files/awk.h b/lang/nawk/f=
 iles/awk.h<br>&gt; =C2=A0index ccd16c906f3a..d6dd0f160d9f 100644<br>&gt; =
 =C2=A0--- a/lang/nawk/files/awk.h<br>&gt; =C2=A0+++ b/lang/nawk/files/awk.h=
 <br>&gt; =C2=A0@@ -23,8 +23,17 @@ THIS SOFTWARE.<br>&gt; =C2=A0 ***********=
 *****************************************************/<br>&gt; =C2=A0=3D20<=
 br>&gt; =C2=A0 #include &lt;assert.h&gt;<br>&gt; =C2=A0+#if __STDC_VERSION_=
 _ &lt; 199901L<br>&gt; =C2=A0+typedef long intptr_t;<br>&gt; =C2=A0+typedef=
  int bool;<br>&gt; =C2=A0+enum {<br>&gt; =C2=A0+=C2=A0 =C2=A0 =C2=A0 false =
 =3D3D 0,<br>&gt; =C2=A0+=C2=A0 =C2=A0 =C2=A0 true =3D3D 1,<br>&gt; =C2=A0+}=
 ;<br>&gt; =C2=A0+#else<br>&gt; =C2=A0 #include &lt;stdint.h&gt;<br>&gt; =C2=
 =A0 #include &lt;stdbool.h&gt;<br>&gt; =C2=A0+#endif<br>&gt; =C2=A0 #if __S=
 TDC_VERSION__ &lt;=3D3D 199901L<br>&gt; =C2=A0 #define noreturn<br>&gt; =C2=
 =A0 #else<br>&gt;<br>&gt; =C2=A0--=3D_Jk88w0qeZbZBxabcXkD5GbHSqAbVNpLw--<br=
 >&gt;<br>&gt;
 
 --000000000000633d2b062bf93e09--
 


Home | Main Index | Thread Index | Old Index