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 <thom%thomholwerda.com@localhost>
To: pkg-manager%netbsd.org@localhost, gnats-admin%netbsd.org@localhost, pkgsrc-bugs%netbsd.org@localhost,
gnats-bugs%netbsd.org@localhost
Cc:
Subject: Re: pkg/59002: Bootstrapping pkgsrc on HP-UX 11.11/PA-RISC fails due to lack
of stdint.h
Date: Sun, 02 Feb 2025 23:48:11 +0100
I've managed to make a ton of progress with this issue, almost entirely tha=
nks to a set of modern header files created by vidraj, who posted them on G=
itHub for me:
https://gist.github.com/vidraj/2267181fd7d1fef8cdd6f834f5f40716
If I follow their instructions, and place the header files in the correct d=
irectories (*except* for stdlib.h, ignore that one), bootstrap will make it=
all the way to pkgtools (without any of the proposed patches from earlier =
in this thread), where it sadly errors out with a truly massive list of reg=
ex errors. The list is so long the ancient terminal in CDE only shows the v=
ery tail end of it:
=2D---
[~~terminal can't scroll back further than this~~]
while evaluating variable "USE_TOOLS" with value "sed [ awk dirname=
echo grep pwd sed test true date tr awk:pkgsrc cut:pkgsrc echo:pkgsrc pwd:=
pkgsrc sed:pkgsrc tr:pkgsrc uname:pkgsrc date date awk cat cmp diff echo=
find grep rm sed test touch true [ awk basename cat chgrp chmod chown cmp =
cp cut dirname echo egrep env false fgrep find grep head hostname id instal=
l ln ls mkdir mv printf pwd rm rmdir sed sh sort t=
ail test touch tr true wc xargs expr"
in /sw/pkgsrc/mk/bsd.pkg.mk:432
in /sw/pkgsrc/pkgtools/bootstrap-mk-files/Makefile:46
bmake: "/sw/pkgsrc/mk/compiler/gcc.mk" line 335: Unexpected regex error: Pa=
ttern not found.
while evaluating variable "PATH" with value "/usr/pkg/bin:/usr/pkg/=
sbin::/usr/dt/bin:/usr/sbin:/bin:/usr/bin:/usr/bin/X11:/sbin:/home/root:/op=
t/Migration/bin:/usr/vue/bin:/opt/ansic/bin:/usr/ccs/bin:/usr/contrib/bin:/=
opt/ipf/bin:/opt/hparray/bin:/opt/nettladm/bin:/opt/upgrade/bin:/opt/fcms/b=
in:/opt/resmon/bin:/usr/contrib/bin/X11:/opt/pd/bin:/opt/gnome/bin:/opt/fir=
efox:/opt/mozilla:/opt/wbem/bin:/opt/wbem/sbin:/opt/graphics/common/bin:/op=
t/atok/bin:/opt/egb/bin:/usr/sbin/diag/contrib:/opt/vje/bin:/var/opt/netsca=
pe/servers/shared/bin:/var/opt/netscape/servers/bin/slapd/server:/var/opt/n=
etscape/servers/bin:/opt/hpsmh/bin:/opt/perl/bin:/opt/ssh/bin:/opt/java1.4/=
jre/bin:/opt/spb/bin:/opt/mx/bin:/opt/gwlm/bin:/opt/graphics/phigs/bin:/opt=
/aCC/bin:/opt/cadvise/bin:/opt/sentinel/bin:/opt/langtools/bin:/opt/imake/b=
in:/opt/thunderbird:/usr/local/gcc4/bin:/sbin/fs/vxfs3.5/bin:/opt/fortran90=
/bin:/opt/fortran90/contrib/bin:/opt/perf/bin:/opt/pascal/bin:/opt/perl_32/=
bin:/opt/perl_64/bin:/opt/prm/bin:/sbin:/usr/sbin:/usr/ccs/bin"
in .for loop from /sw/pkgsrc/mk/compiler.mk:212 with _compiler_ =3D=
gcc
in /sw/pkgsrc/mk/bsd.pkg.mk:448
in /sw/pkgsrc/pkgtools/bootstrap-mk-files/Makefile:46
bmake: "/sw/pkgsrc/mk/pkgformat/pkg/metadata.mk" line 273: Unexpected regex=
error: Pattern not found.
while evaluating variable "MACHINE_ARCH" with value "hppa"
in /sw/pkgsrc/mk/pkgformat/pkg/pkgformat.mk:14
in /sw/pkgsrc/mk/pkgformat/bsd.pkgformat.mk:7
in /sw/pkgsrc/mk/bsd.pkg.mk:661
in /sw/pkgsrc/pkgtools/bootstrap-mk-files/Makefile:46
bmake: "/sw/pkgsrc/mk/pkgformat/pkg/metadata.mk" line 276: Unexpected regex=
error: Pattern not found.
while evaluating variable "MACHINE_ARCH" with value "hppa"
in /sw/pkgsrc/mk/pkgformat/pkg/pkgformat.mk:14
in /sw/pkgsrc/mk/pkgformat/bsd.pkgformat.mk:7
in /sw/pkgsrc/mk/bsd.pkg.mk:661
in /sw/pkgsrc/pkgtools/bootstrap-mk-files/Makefile:46
bmake: "/sw/pkgsrc/mk/plist/plist.mk" line 59: Unexpected regex error: Patt=
ern not found.
while evaluating variable "MACHINE_ARCH" with value "hppa"
in /sw/pkgsrc/mk/plist/bsd.plist.mk:6
in /sw/pkgsrc/mk/bsd.pkg.mk:832
in /sw/pkgsrc/pkgtools/bootstrap-mk-files/Makefile:46
bmake: "/sw/pkgsrc/mk/plist/plist.mk" line 59: Unexpected regex error: Patt=
ern not found.
while evaluating variable "MACHINE_ARCH" with value "hppa"
in /sw/pkgsrc/mk/plist/bsd.plist.mk:6
in /sw/pkgsrc/mk/bsd.pkg.mk:832
in /sw/pkgsrc/pkgtools/bootstrap-mk-files/Makefile:46
bmake: Fatal errors encountered -- cannot continue
bmake: stopped making "install" in /sw/pkgsrc/pkgtools/bootstrap-mk-files
=3D=3D=3D> exited with status 1
aborted.
=2D--
Using testbootstrap to get a log fails (at the original awk issue), and I c=
an't find a relevant config.log anywhere else either. I've also tried passi=
ng --prefer-pkgsrc and/or --full, but with those passed it also ends at the=
same massive list of regex errors, which all seem to occur in .mk files in=
/pkgsrc/mk/ and its subdirectories.
So there's definitely progress. If anyone has any idea about the regex erro=
rs, that'd be great - perhaps if there's a fix for that, the pkgsrc/hppa do=
cs can maybe be edited to include information about the custom header files=
and where to get them.
Thanks!
Thom
On Sunday, 19 January 2025 21:55:01 Central European Standard Time Thom Hol=
werda via gnats wrote:
> The following reply was made to PR pkg/59002; it has been noted by GNATS.
>=20
> From: Thom Holwerda <thomholwerda%osnews.com@localhost>
> To: nia <nia%netbsd.org@localhost>
> Cc: "gnats-bugs%netbsd.org@localhost" <gnats-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: Sun, 19 Jan 2025 21:51:08 +0100
>=20
> > What about this?
> >
> > Index: bootstrap
> > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
> > RCS file: /cvsroot/pkgsrc/bootstrap/bootstrap,v
> > retrieving revision 1.325
> > diff -u -r1.325 bootstrap
> > --- bootstrap 29 Apr 2024 12:37:25 -0000 1.325
> > +++ bootstrap 19 Jan 2025 11:07:09 -0000
> > @@ -666,6 +666,8 @@
> > esac
> > ;;
> > HPUX)
> > + CFLAGS=3D"-std=3Dgnu99 ${CFLAGS}"
> > + export CFLAGS
> > root_group=3Dsys
> > need_bsd_install=3Dyes
> > need_awk=3Dyes
> =20
> I tried it, but sadly, that patch does not seem to work. I tried both
> combinations:
> =20
> - nawk patch + bootstrap patch: fails at awk with stdint.h error (??)
> - only bootstrap patch: fails at awk with stdint.h error
> =20
> I'm considering adding the original nawk patch's ifdev wherever
> bootstrap fails with the stdint.h error. Not being a programmer, that
> might take me a bit longer than it would take someone who knows what
> they're doing, but it doesn't seem too hard assuming the relevant
> lines/includes are easy enough to spot.
> =20
> My worry is that assuming I can get the bootstrap to complete
> properly, I'll run into a neverending list of similar stdint.h issues,
> but I'll cross that bridge when we get there! My HP-UX workstation's
> hostname is "pain" for a reason.
> =20
> =20
> Thom
> =20
>=20
Home |
Main Index |
Thread Index |
Old Index