Lp 1850156: Add <osname>-git Makefile.install targets user/dyrcona/lp1850156-git-makefile.install-target
authorJason Stephenson <jason@sigio.com>
Wed, 29 Jan 2020 14:37:28 +0000 (09:37 -0500)
committerJason Stephenson <jason@sigio.com>
Mon, 16 Aug 2021 16:47:36 +0000 (12:47 -0400)
Add <osname>-git Makefile.install targets for Ubuntu and Debian so
that one can build Evergreen from Git without needing to install
Chromium, Firefox, and all of the dependencies that they bring with
them.

The <osname>-developer target depends on the <osname>-git target, so
it can still be used as before to install from Git.  It brings in the
Chromium and Firefox dependencies.

The <osname>-translator Makefile.install target depends on the
<osname>-git target.  Translators are not required to run tests.

The <osname>-packager Makefile.install target still depends on the
<osname>-developer target because packagers are expected to run tests.

To test these changes, one pretty much has to set up a virtual machine
for each support value of <osname> and run each Makefile.install
target one at a time to see that the appropriate dependencies are
brought in.  It is recommended to refresh the VM after each test.

Signed-off-by: Jason Stephenson <jason@sigio.com>
Open-ILS/src/extras/Makefile.install
Open-ILS/src/extras/install/Makefile.debian-buster
Open-ILS/src/extras/install/Makefile.debian-jessie
Open-ILS/src/extras/install/Makefile.debian-stretch
Open-ILS/src/extras/install/Makefile.ubuntu-bionic
Open-ILS/src/extras/install/Makefile.ubuntu-focal
docs/modules/installation/pages/server_installation.adoc

index e380fd6..45616fc 100644 (file)
@@ -100,6 +100,17 @@ postgres-server-ubuntu-focal-10:
 postgres-server-fedora:
        @make -f $(DIR)/Makefile.fedora install_postgres_server
 
+ubuntu-bionic-git:
+       @make -f $(DIR)/Makefile.ubuntu-bionic install_git
+ubuntu-xenial-git:
+       @make -f $(DIR)/Makefile.ubuntu-xenial install_git
+debian-buster-git:
+       @make -f $(DIR)/Makefile.debian-buster install_git
+debian-stretch-git:
+       @make -f $(DIR)/Makefile.debian-stretch install_git
+debian-jessie-git:
+       @make -f $(DIR)/Makefile.debian-jessie install_git
+
 ubuntu-bionic-developer:
        @make -f $(DIR)/Makefile.ubuntu-bionic install_developer
 ubuntu-focal-developer:
index 623e3a6..12f0243 100644 (file)
@@ -126,11 +126,12 @@ PGSQL_SERVER_DEBS_10 = \
 # note: some prereqs are repeated in the developer/packager 
 # sections to support building Evergreen packages on servers
 # where Evergreen and its prereqs are not installed.
-
-DEVELOPER_DEBS = \
+GIT_DEBS = \
        automake \
        autoconf \
-       libtool \
+       libtool
+
+DEVELOPER_DEBS = \
        chromium \
        firefox-esr
 
@@ -175,11 +176,14 @@ install_postgres_server_10:
 
 # note: if/when grunt-cli is available as a
 # package, use the packaged version instead.
-install_developer:
-       make -f $(DIR)/Makefile.debian DEBS="$(DEVELOPER_DEBS)"
+install_git:
+       make -f $(DIR)/Makefile.debian DEBS="$(GIT_DEBS)"
        make -f $(DIR)/Makefile.common install_nodejs_from_source
 
-install_translator: install_developer
+install_developer: intall_git
+       make -f $(DIR)/Makefile.debian DEBS="$(DEVELOPER_DEBS)"
+
+install_translator: install_git
        make -f $(DIR)/Makefile.debian DEBS="$(TRANSLATOR_DEBS)"
 
 install_packager: install_developer install_translator
index 545a1a5..392a8ac 100644 (file)
@@ -128,10 +128,12 @@ PGSQL_SERVER_DEBS_10 = \
 # sections to support building Evergreen packages on servers
 # where Evergreen and its prereqs are not installed.
 
-DEVELOPER_DEBS = \
+GIT_DEBS = \
        automake \
        autoconf \
-       libtool \
+       libtool
+
+DEVELOPER_DEBS = \
        chromium \
        firefox-esr
 
@@ -176,11 +178,14 @@ install_postgres_server_10:
 
 # note: if/when grunt-cli is available as a
 # package, use the packaged version instead.
-install_developer:
-       make -f $(DIR)/Makefile.debian DEBS="$(DEVELOPER_DEBS)"
+install_git:
+       make -f $(DIR)/Makefile.debian DEBS="$(GIT_DEBS)"
        make -f $(DIR)/Makefile.common install_nodejs_from_source
 
-install_translator: install_developer
+install_developer: intall_git
+       make -f $(DIR)/Makefile.debian DEBS="$(DEVELOPER_DEBS)"
+
+install_translator: install_git
        make -f $(DIR)/Makefile.debian DEBS="$(TRANSLATOR_DEBS)"
 
 install_packager: install_developer install_translator
index 93221e3..2b45bcf 100644 (file)
@@ -127,10 +127,12 @@ PGSQL_SERVER_DEBS_10 = \
 # sections to support building Evergreen packages on servers
 # where Evergreen and its prereqs are not installed.
 
-DEVELOPER_DEBS = \
+GIT_DEBS = \
        automake \
        autoconf \
-       libtool \
+       libtool
+
+DEVELOPER_DEBS = \
        chromium \
        firefox-esr
 
@@ -175,11 +177,14 @@ install_postgres_server_10:
 
 # note: if/when grunt-cli is available as a
 # package, use the packaged version instead.
-install_developer:
-       make -f $(DIR)/Makefile.debian DEBS="$(DEVELOPER_DEBS)"
+install_git:
+       make -f $(DIR)/Makefile.debian DEBS="$(GIT_DEBS)"
        make -f $(DIR)/Makefile.common install_nodejs_from_source
 
-install_translator: install_developer
+install_developer: intall_git
+       make -f $(DIR)/Makefile.debian DEBS="$(DEVELOPER_DEBS)"
+
+install_translator: install_git
        make -f $(DIR)/Makefile.debian DEBS="$(TRANSLATOR_DEBS)"
 
 install_packager: install_developer install_translator
index a734286..0bb42cd 100644 (file)
@@ -130,10 +130,12 @@ PGSQL_SERVER_DEBS_10 = \
 # sections to support building Evergreen packages on servers
 # where Evergreen and its prereqs are not installed.
 
-DEVELOPER_DEBS = \
+GIT_DEBS = \
        automake \
        autoconf \
-       libtool \
+       libtool
+
+DEVELOPER_DEBS = \
        chromium-browser \
        firefox
 
@@ -179,11 +181,14 @@ install_postgres_server_10:
 
 # note: if/when grunt-cli is available as a
 # package, use the packaged version instead.
-install_developer:
-       make -f $(DIR)/Makefile.debian DEBS="$(DEVELOPER_DEBS)"
+install_git:
+       make -f $(DIR)/Makefile.debian DEBS="$(GIT_DEBS)"
        make -f $(DIR)/Makefile.common install_nodejs_from_source
 
-install_translator: install_developer
+install_developer: intall_git
+       make -f $(DIR)/Makefile.debian DEBS="$(DEVELOPER_DEBS)"
+
+install_translator: install_git
        make -f $(DIR)/Makefile.debian DEBS="$(TRANSLATOR_DEBS)"
 
 install_packager: install_developer install_translator
index b002042..6c56fb9 100644 (file)
@@ -131,10 +131,12 @@ PGSQL_SERVER_DEBS_10 = \
 # sections to support building Evergreen packages on servers
 # where Evergreen and its prereqs are not installed.
 
-DEVELOPER_DEBS = \
+GIT_DEBS = \
        automake \
        autoconf \
-       libtool \
+       libtool
+
+DEVELOPER_DEBS = \
        chromium-browser \
        firefox
 
@@ -180,11 +182,14 @@ install_postgres_server_10:
 
 # note: if/when grunt-cli is available as a
 # package, use the packaged version instead.
-install_developer:
-       make -f $(DIR)/Makefile.debian DEBS="$(DEVELOPER_DEBS)"
+install_git:
+       make -f $(DIR)/Makefile.debian DEBS="$(GIT_DEBS)"
        make -f $(DIR)/Makefile.common install_nodejs_from_source
 
-install_translator: install_developer
+install_developer: intall_git
+       make -f $(DIR)/Makefile.debian DEBS="$(DEVELOPER_DEBS)"
+
+install_translator: install_git
        make -f $(DIR)/Makefile.debian DEBS="$(TRANSLATOR_DEBS)"
 
 install_packager: install_developer install_translator
index 694dc06..ffad8f5 100644 (file)
@@ -82,16 +82,23 @@ make -f Open-ILS/src/extras/Makefile.install <osname>
 3. OPTIONAL: Developer additions
 +
 To perform certain developer tasks from a Git source code checkout, 
-including the testing of the Angular web client components,
 additional packages may be required.  As the *root* Linux account:
 +
  * To install packages needed for retrieving and managing web dependencies,
-   use the <osname>-developer Makefile.install target.  Currently, 
+   use the <osname>-git Makefile.install target.  Currently, 
    this is only needed for building and installing the web
    staff client.
 +
 [source, bash]
 ------------------------------------------------------------------------------
+make -f Open-ILS/src/extras/Makefile.install <osname>-git
+------------------------------------------------------------------------------
++
+ * To install packages needed for testing the Angular web client components,
+   use the <osname>-developer Makefile.install target.
++
+[source, bash]
+------------------------------------------------------------------------------
 make -f Open-ILS/src/extras/Makefile.install <osname>-developer
 ------------------------------------------------------------------------------
 +