pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Can't bootstrap pkgsrc-current on Solaris 10



Well problem seems to be related to the "/bin/sh" bundled with Solaris :

[root@zone2 libnbcompat]$  /bin/sh  config.sub sun4
config.sub: -r: is not an identifier
[root@zone2 libnbcompat]$ /usr/xpg4/bin/sh  config.sub sun4
sparc-sun-sunos4.1.1
[root@zone2 libnbcompat]$ /bin/ksh  config.sub sun4
sparc-sun-sunos4.1.1

Also, as requested : 

[root@zone2 libnbcompat]$  /bin/sh -x config.sub sun4
timestamp=2018-08-29
+ echo config.sub
+ sed -e s,.*/,,
me=config.sub
usage=Usage: config.sub [OPTION] CPU-MFR-OPSYS or ALIAS

Canonicalize a configuration name.

Options:
  -h, --help         print this help, then exit
  -t, --time-stamp   print date of last modification, then exit
  -v, --version      print version number, then exit

Report bugs and patches to <config-patches%gnu.org@localhost>.
version=GNU config.sub (2018-08-29)

Copyright 1992-2018 Free Software Foundation, Inc.

This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
help=
Try `config.sub --help' for more information.
+ test 1 -gt 0
+ break
IFS=-
+ read -r field1 field2 field3 field4
sun4
config.sub: -r: is not an identifier

How can I force another shell to be used in bootstrap ?

On Wed, Oct 3, 2018 at 7:40 PM Robert Elz <kre%munnari.oz.au@localhost> wrote:
    Date:        Tue, 2 Oct 2018 21:24:50 -0400
    From:        Julien Savard <juliensavard17%gmail.com@localhost>
    Message-ID:  <CAFVXn8SCtKnN8xvx1APzKmU-Qu+YK0-5agEczcbjWyO9_B8peA%mail.gmail.com@localhost>

  | configure: error: cannot run /bin/sh ./config.sub
  | *** Error code 1

Try running

        /bin/sh config.sub sun4

and see what happens.   When run from configure stdout and stderr are
redirected, so no error messages appear.

It should just print something like

        sparc-sun-sunos4.1.1

and do nothing else, but in your case it appears to be failing for
some reason.   Perhaps /bin/sh is not a good enough shell for the
script - you mighht need to set SHELL to /bin/ksh (or some other
sh - perhaps /usr/xpg4/sh or wherever it is).

Certainly the version of gcc is irrelevant for this, it is simply a shell
script failing in some way.

If it prints nothing at all, and simply exits with a non-zero status, then
add tthe -x option to show how far it gets ...

        /bin/sh -x config.sub sun4

(you need to be in the pkgsrc/pkgtools/libnbcompat/files ditrectory to
find config.sub for all of this.)

kre



Home | Main Index | Thread Index | Old Index