successfully built hostprep on Ubuntu 18.04
Michael D Labriola [Sat, 22 Jun 2019 04:30:22 +0000 (18:30 -1000)]
- updated sha25sums for gettext archive.dir-latest
- using latest dev snapshot of flex to fix compilation errors
- disabled gcc warnings for m4 because -Werror goes boom

get_sources.sha256sums
src/flex
utils/bootstrap-early/functions
utils/bootstrap-early/go

index 069ca09..71566b1 100644 (file)
@@ -1,6 +1,6 @@
 015fde82b3979fbe5f83501986d328331ba8ddf008c1ff3da3c238f49ca062bc  src/mpfr/mpfr-3.1.5.tar.xz
 4122dfa099a7785084dfdf58c8dfb67af60f1c14b275eba7f030dee5c2fee132  src/mpfr/mpfr-3.1.5-fixes-1.patch
-2f778748dfbc8d0481ad9f19f88665b9b5a71520bd3a389f0e1ad1257b18f279  src/gettext/gettext-tools/misc/archive.dir-latest.tar.xz
+7e8ff0d12453ddfb230fc323b981d23d2aec4d548f9fb1009b5f9377baa36d34  src/gettext/gettext-tools/misc/archive.dir-latest.tar.xz
 87b565e89a9a684fe4ebeeddb8399dce2599f9c9049854ca8c0dfbdea0e21912  src/gmp/gmp-6.1.2.tar.xz
 1795c7d067a43174113fdf03447532f373e1c6c57c08d61d9e4e9be5e244b05e  src/xen/stubdom/zlib-1.2.3.tar.gz
 f60ae61cfbd5da1d849d0beaa21f593c38dac9359f0b3ddc612f447408265b24  src/xen/stubdom/pciutils-2.2.9.tar.bz2
index ab49343..98018e3 160000 (submodule)
--- a/src/flex
+++ b/src/flex
@@ -1 +1 @@
-Subproject commit ab49343b08c933e32de8de78132649f9560a3727
+Subproject commit 98018e3f58d79e082216d406866942841d4bdf8a
index 11fcdf7..4d3c434 100644 (file)
@@ -359,6 +359,30 @@ compile_generic()
     shift
 
     # if we're in the stage2 bootstrap, we need to install as root user.
+    #
+    # FIXME: should we do this for bootstrap-early (aka hostprep) as well?
+    #        this way we could install hostprep in /usr/local instead of
+    #        /some/strange/path/owned/by/user...  i didn't originally do that,
+    #        because i didn't want to have to assume that the build user had
+    #        passwordless sudo privs, and i don't want the build stalling out
+    #        waiting for user input.  but continually patching Xen's scripts to
+    #        work when it's installed in strange places is painful... and i'm
+    #        feeling less and less inclined to keep the hostprep stuff
+    #        "private" to the build user
+    #
+    #        Xen might hate being in /usr/local as much as it hate's being in
+    #        /scrap/ruckus-hostprep, though...
+    #
+    #        And, I'm really hesitant to install compilation toolchain stuff
+    #        that we're building ALL the time into /usr/local... could be
+    #        downgrading tools.  that's why i wanted the user to need to
+    #        explicitly put hostprep in PATH...
+    #
+    #        Plus, I'm just plain old paranoid that I'll hose up my host
+    #        system...
+    #
+    #if [ -n "$RUCKUS_BOOTSTRAP_STAGE2" ] || [ -n "$RUCKUS_BOOTSTRAP_EARLY" ]; then
+    #
     if [ -n "$RUCKUS_BOOTSTRAP_STAGE2" ]; then
        SUDO=sudo
     else
index a67b85d..8019a8a 100755 (executable)
@@ -7,6 +7,9 @@
 [ -n "$ruckus_srcdir" ] || ruckus_srcdir=$PWD/../..
 [ -n "$ruckus_builddir" ] || ruckus_builddir=$PWD/../..
 
+# set this so we can detect that we're in the bootstrap-early environment
+RUCKUS_BOOTSTRAP_EARLY=1
+
 # source our common variables and functions
 . $ruckus_srcdir/utils/bootstrap-early/functions
 
@@ -31,6 +34,11 @@ fi
 build()
 {
     case "$1" in
+        m4)
+            # gosh darned -Werror
+            build_generic $1 --prefix=$PREFIX_HOSTPREP \
+                --disable-gcc-warnings || exit 1
+            ;;
        #rsync)
            # rsync seems to have a parallel build problem... (still true as of
            # v3.0.9)