On Sun, Feb 10, 2019 at 3:40 AM Svante Signell <svante.sign...@gmail.com> wrote: > > > I've found some problems. Current problem is with the mksysinfo.sh patch. > > But > > there are some other things missing. New patches will be submitted tomorrow. > > Attached are three additional patches needed to build libgo on GNU/Hurd: > src_libgo_mksysinfo.sh.diff > src_libgo_go_syscall_wait.c.diff > src_libgo_testsuite_gotest.diff > > For the first patch, src_libgo_mksysinfo.sh.diff, I had to go back to the old > version, using sed -i -e. As written now ${fsid_to_dev} expands to > fsid_to_dev='-e '\''s/st_fsid/Dev/'\''' resulting in: "sed: -e expression #4, > char 1: unknown command: `''". Unfortunately, I have not yet been able to > modify > the expansion omitting the single qoutes around the shell variable.
I fixed this a slightly different way, as attached. Bootstrapped and ran Go testsuite on x86_64-pc-linux-gnu. Committed to mainline. Ian
Index: gcc/go/gofrontend/MERGE =================================================================== --- gcc/go/gofrontend/MERGE (revision 268605) +++ gcc/go/gofrontend/MERGE (working copy) @@ -1,4 +1,4 @@ -9b66264ed6adcf3fd215dbfd125c12b022b7280e +fc8aa5a46433d6ecba9fd1cd0bee4290c314ca06 The first line of this file holds the git revision number of the last merge done from the gofrontend repository. Index: libgo/mksysinfo.sh =================================================================== --- libgo/mksysinfo.sh (revision 268461) +++ libgo/mksysinfo.sh (working copy) @@ -486,9 +486,9 @@ grep '^type _st_timespec ' gen-sysinfo.g # Special treatment of struct stat st_dev for GNU/Hurd # /usr/include/i386-gnu/bits/stat.h: #define st_dev st_fsid -fsid_to_dev= +st_dev='-e s/st_dev/Dev/' if grep 'define st_dev st_fsid' gen-sysinfo.go > /dev/null 2>&1; then - fsid_to_dev="-e 's/st_fsid/Dev/'" + st_dev='-e s/st_fsid/Dev/' fi # The stat type. @@ -500,8 +500,7 @@ else grep '^type _stat ' gen-sysinfo.go fi | sed -e 's/type _stat64/type Stat_t/' \ -e 's/type _stat/type Stat_t/' \ - -e 's/st_dev/Dev/' \ - ${fsid_to_dev} \ + ${st_dev} \ -e 's/st_ino/Ino/g' \ -e 's/st_nlink/Nlink/' \ -e 's/st_mode/Mode/' \