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



I've managed to make a ton of progress with this issue, almost entirely thanks to a set of modern header files created by vidraj, who posted them on GitHub for me:

https://gist.github.com/vidraj/2267181fd7d1fef8cdd6f834f5f40716

If I follow their instructions, and place the header files in the correct directories (*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 regex errors. The list is so long the ancient terminal in CDE only shows the very tail end of it:

----
[~~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 install ln ls   mkdir mv printf pwd rm rmdir sed sh sort                        tail 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: Pattern 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:/opt/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/bin:/opt/resmon/bin:/usr/contrib/bin/X11:/opt/pd/bin:/opt/gnome/bin:/opt/firefox:/opt/mozilla:/opt/wbem/bin:/opt/wbem/sbin:/opt/graphics/common/bin:/opt/atok/bin:/opt/egb/bin:/usr/sbin/diag/contrib:/opt/vje/bin:/var/opt/netscape/servers/shared/bin:/var/opt/netscape/servers/bin/slapd/server:/var/opt/netscape/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/bin:/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_ = 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: Pattern 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: Pattern 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
===> exited with status 1
aborted.

---

Using testbootstrap to get a log fails (at the original awk issue), and I can't find a relevant config.log anywhere else either. I've also tried passing --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 errors, that'd be great - perhaps if there's a fix for that, the pkgsrc/hppa docs 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 Holwerda via gnats wrote:
> The following reply was made to PR pkg/59002; it has been noted by GNATS.
> 
> 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
> 
>  > What about this?
>  >
>  > Index: bootstrap
>  > ===================================================================
>  > 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="-std=gnu99 ${CFLAGS}"
>  > +       export CFLAGS
>  >         root_group=sys
>  >         need_bsd_install=yes
>  >         need_awk=yes
>  
>  I tried it, but sadly, that patch does not seem to work. I tried both
>  combinations:
>  
>  - nawk patch + bootstrap patch: fails at awk with stdint.h error (??)
>  - only bootstrap patch: fails at awk with stdint.h error
>  
>  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.
>  
>  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.
>  
>  
>  Thom
>  
> 



Home | Main Index | Thread Index | Old Index