As mchyzer on i2mibuild...
cd ~mchyzer/2.3.0.pspng-patches
The makePspngPatch.sh script needs to be run:
- A new patch needs a new work area: Answer N to not keep the existing work area: Do you want to resuse the existing temporary work/ directory [y/N]
- Point to the temporary work area ("work")
- Enter in a Grouper temp directory to download tarballs (note: better if no spaces or special chars) [/home/mchyzer/2.3.0.pspng-patches]: work
- Continue creating a patch as normal
Generally, this builds the patch in one shot. However, major grouper (not just pspng) changes will cause pspng-compilation to fail the first time. In these cases, the makePspngPatch.sh script needs to be run a second time with "Keep existing work area: YES" and point to the same "work" temporary directory.
Example terminal history:
[mchyzer@i2mibuild ~]$ cd 2.3.0.pspng-patches [mchyzer@i2mibuild 2.3.0.pspng-patches]$ ls grouperInstaller.jar grouperInstaller.jar.1 grouperInstaller.jar.2 grouperInstaller.jar.3 grouperInstaller.jar.4 grouperInstaller.jar.5 m2 make_patch work [mchyzer@i2mibuild 2.3.0.pspng-patches]$ ./make_patch PSPNG Patches take two runs of this script to create. Work directory exists You should keep the work directory only when you're in the second pass or otherwise iterating on the same patch Do you want to resuse the existing temporary work/ directory [y/N] <return, to delete work directory> Deleting and recreating temporary work directory --2016-11-16 17:28:42-- http://software.internet2.edu/grouper/release/2.3.0/grouperInstaller.jar Resolving software.internet2.edu... 207.75.164.52, 2001:48a8:68fe::52 Connecting to software.internet2.edu|207.75.164.52|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 2342163 (2.2M) [application/x-java-archive] Saving to: `grouperInstaller.jar.6' 100%[===================================================================================================================================>] 2,342,163 --.-K/s in 0.04s 2016-11-16 17:28:42 (55.1 MB/s) - `grouperInstaller.jar.6' saved [2342163/2342163] Running grouper installer. Use 'work' as the temporary directory.... Do you want to 'install' a new installation of grouper, 'upgrade' an existing installation, 'patch' an existing installation, or 'createPatch' for Grouper developers (enter: 'install', 'upgrade', 'patch', 'createPatch' or blank for the default) [install]: createPatch Enter in a Grouper temp directory to download tarballs (note: better if no spaces or special chars) [/home/mchyzer/2.3.0.pspng-patches]:work What do you want to create a patch for? api, ui, ws, pspng, or psp? [api]: pspng What branch do you want to create a patch for (e.g. GROUPER_2_2_BRANCH)? [GROUPER_2_3_BRANCH]: Downloading from URL: http://software.internet2.edu/grouper/release/2.3.0/patches/grouper_v2_3_0_pspng_patch_0.tar.gz to file: /home/mchyzer/2.3.0.pspng-patches/work/grouper_v2_3_0_pspng_patch_0.tar.gz Unzipping: /home/mchyzer/2.3.0.pspng-patches/work/grouper_v2_3_0_pspng_patch_0.tar.gz Expanding: /home/mchyzer/2.3.0.pspng-patches/work/grouper_v2_3_0_pspng_patch_0.tar Downloading from URL: http://software.internet2.edu/grouper/release/2.3.0/patches/grouper_v2_3_0_pspng_patch_1.tar.gz to file: /home/mchyzer/2.3.0.pspng-patches/work/grouper_v2_3_0_pspng_patch_1.tar.gz Unzipping: /home/mchyzer/2.3.0.pspng-patches/work/grouper_v2_3_0_pspng_patch_1.tar.gz Expanding: /home/mchyzer/2.3.0.pspng-patches/work/grouper_v2_3_0_pspng_patch_1.tar Downloading from URL: http://software.internet2.edu/grouper/release/2.3.0/patches/grouper_v2_3_0_pspng_patch_2.tar.gz to file: /home/mchyzer/2.3.0.pspng-patches/work/grouper_v2_3_0_pspng_patch_2.tar.gz Unzipping: /home/mchyzer/2.3.0.pspng-patches/work/grouper_v2_3_0_pspng_patch_2.tar.gz Expanding: /home/mchyzer/2.3.0.pspng-patches/work/grouper_v2_3_0_pspng_patch_2.tar Downloading from URL: http://software.internet2.edu/grouper/release/2.3.0/patches/grouper_v2_3_0_pspng_patch_3.tar.gz to file: /home/mchyzer/2.3.0.pspng-patches/work/grouper_v2_3_0_pspng_patch_3.tar.gz Unzipping: /home/mchyzer/2.3.0.pspng-patches/work/grouper_v2_3_0_pspng_patch_3.tar.gz Expanding: /home/mchyzer/2.3.0.pspng-patches/work/grouper_v2_3_0_pspng_patch_3.tar Downloading from URL: http://software.internet2.edu/grouper/release/2.3.0/patches/grouper_v2_3_0_pspng_patch_4.tar.gz to file: /home/mchyzer/2.3.0.pspng-patches/work/grouper_v2_3_0_pspng_patch_4.tar.gz Unzipping: /home/mchyzer/2.3.0.pspng-patches/work/grouper_v2_3_0_pspng_patch_4.tar.gz Expanding: /home/mchyzer/2.3.0.pspng-patches/work/grouper_v2_3_0_pspng_patch_4.tar Downloading from URL: http://software.internet2.edu/grouper/release/2.3.0/patches/grouper_v2_3_0_pspng_patch_5.tar.gz to file: /home/mchyzer/2.3.0.pspng-patches/work/grouper_v2_3_0_pspng_patch_5.tar.gz Unzipping: /home/mchyzer/2.3.0.pspng-patches/work/grouper_v2_3_0_pspng_patch_5.tar.gz Expanding: /home/mchyzer/2.3.0.pspng-patches/work/grouper_v2_3_0_pspng_patch_5.tar Patch doesnt exist yet (not an error): http://software.internet2.edu/grouper/release/2.3.0/patches/grouper_v2_3_0_pspng_patch_6.tar.gz Next patch index for PSPNG is 6. ok (grouper_v2_3_0_pspng_patch_6)? (t|f)? [t]: Nov 16, 2016 5:32:08 PM edu.internet2.middleware.grouperInstallerExt.org.apache.commons.httpclient.HttpMethodBase processResponseHeaders WARNING: Cookie rejected: "$Version=0; logged_in=no; $Path=/; $Domain=.github.com". Illegal domain attribute ".github.com". Domain of origin: "github.com" Downloading from URL: https://github.com/Internet2/grouper/archive/GROUPER_2_3_BRANCH.zip to file: /home/mchyzer/2.3.0.pspng-patches/work/GROUPER_2_3_BRANCH.zip
Latest RTF from Bert
Script started on Wed 14 Aug 2019 04:42:14 PM UTC _kroot@i2midev6:/home/mchyzer/2.4.pspng-patches_\[root@i2midev6 2.4.pspng-patches]# ./make__patch Work directory exists Removing selective files Should latest source code be downloaded [Y/n] y Fetching master.zip --2019-08-14 16:43:05-- https://github.com/Internet2/grouper/archive/master.zip Resolving github.com (github.com)... 192.30.253.112 Connecting to github.com (github.com)|192.30.253.112|:443... connected. HTTP request sent, awaiting response... 302 Found Location: https://codeload.github.com/Internet2/grouper/zip/master [following] --2019-08-14 16:43:05-- https://codeload.github.com/Internet2/grouper/zip/master Resolving codeload.github.com (codeload.github.com)... 140.82.113.10 Connecting to codeload.github.com (codeload.github.com)|140.82.113.10|:443... connected. HTTP request sent, awaiting response... 200 OK Length: unspecified [application/zip] Saving to: ‘master.zip’ ... 2019-08-14 16:43:19 (15.2 MB/s) - ‘master.zip’ saved [220297466] Unzipping latest grouper zip file Source code has been unzipped. Press return to continue...\_ _ Going to use latest docker image to fetch dependent jars: 2.4.0-a65-u38-w6-p8-20190722-rc1 Loaded plugins: fastestmirror, ovl Determining fastest mirrors * base: repo.miserver.it.umich.edu * epel: mirror.uic.edu * extras: repo.miserver.it.umich.edu * updates: repo.miserver.it.umich.edu Resolving Dependencies --> Running transaction check ---> Package zip.x86_64 0:3.0-11.el7 will be installed --> Finished Dependency Resolution Dependencies Resolved ================================================================================ Package Arch Version Repository Size ================================================================================ Installing: zip x86_64 3.0-11.el7 base 260 k Transaction Summary ================================================================================ Install 1 Package Total download size: 260 k Installed size: 796 k Downloading packages: Running transaction check Running transaction test Transaction test succeeded Running transaction Installing : zip-3.0-11.el7.x86_64 1/1 Verifying : zip-3.0-11.el7.x86_64 1/1 Installed: zip.x86_64 0:3.0-11.el7 Complete! Grabbing grouperClient.jar from 2.4.0-a65-u38-w6-p8-20190722-rc1 Grabbing morphString.jar from 2.4.0-a65-u38-w6-p8-20190722-rc1 Grabbing a patched grouper-api jar file from 2.4.0-a65-u38-w6-p8-20190722-rc1 … total bytes=874853, compressed=288780 -> 67% savings [INFO] Scanning for projects... [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building Grouper 2.4.0-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- license-maven-plugin:2.6:check (default) @ grouper-parent --- [INFO] Checking licenses... [WARNING] Missing header in: /home/mchyzer/2.4.pspng-patches/work/grouper-master/grouper-parent/build.xml [WARNING] Some files do not have the expected license header [INFO] [INFO] --- maven-jar-plugin:2.5:test-jar (default) @ grouper-parent --- [WARNING] JAR will be empty - no content was marked for inclusion! [INFO] Building jar: /home/mchyzer/2.4.pspng-patches/work/grouper-master/grouper-parent/target/grouper-parent-2.4.0-SNAPSHOT-tests.jar [INFO] [INFO] --- maven-source-plugin:2.3:jar-no-fork (source) @ grouper-parent --- [INFO] [INFO] --- maven-install-plugin:2.4:install (default-install) @ grouper-parent --- [INFO] Installing /home/mchyzer/2.4.pspng-patches/work/grouper-master/grouper-parent/pom.xml to /home/mchyzer/2.4.pspng-patches/m2/edu/internet2/middleware/grouper/grouper-parent/2.4.0-SNAPSHOT/grouper-parent-2.4.0-SNAPSHOT.pom [INFO] Installing /home/mchyzer/2.4.pspng-patches/work/grouper-master/grouper-parent/target/grouper-parent-2.4.0-SNAPSHOT-tests.jar to /home/mchyzer/2.4.pspng-patches/m2/edu/internet2/middleware/grouper/grouper-parent/2.4.0-SNAPSHOT/grouper-parent-2.4.0-SNAPSHOT-tests.jar [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 6.236 s [INFO] Finished at: 2019-08-14T16:44:33+00:00 [INFO] Final Memory: 14M/89M [INFO] ------------------------------------------------------------------------ [INFO] Scanning for projects... [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building Maven Stub Project (No POM) 1 [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- maven-install-plugin:2.4:install-file (default-cli) @ standalone-pom --- [INFO] Installing /home/mchyzer/2.4.pspng-patches/work/container_jars/grouperClient.jar to /home/mchyzer/2.4.pspng-patches/m2/edu/internet2/middleware/grouper/grouperClient/2.4.0-SNAPSHOT/grouperClient-2.4.0-SNAPSHOT.jar [INFO] Installing /home/mchyzer/2.4.pspng-patches/work/grouper-master/grouper-misc/grouperClient/pom.xml to /home/mchyzer/2.4.pspng-patches/m2/edu/internet2/middleware/grouper/grouperClient/2.4.0-SNAPSHOT/grouperClient-2.4.0-SNAPSHOT.pom [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 0.924 s [INFO] Finished at: 2019-08-14T16:44:36+00:00 [INFO] Final Memory: 8M/89M [INFO] ------------------------------------------------------------------------ [INFO] Scanning for projects... [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building Maven Stub Project (No POM) 1 [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- maven-install-plugin:2.4:install-file (default-cli) @ standalone-pom --- [INFO] Installing /home/mchyzer/2.4.pspng-patches/work/container_jars/morphString.jar to /home/mchyzer/2.4.pspng-patches/m2/edu/internet2/middleware/grouper/morphString/2.4.0-SNAPSHOT/morphString-2.4.0-SNAPSHOT.jar [INFO] Installing /home/mchyzer/2.4.pspng-patches/work/grouper-master/grouper-misc/morphString/pom.xml to /home/mchyzer/2.4.pspng-patches/m2/edu/internet2/middleware/grouper/morphString/2.4.0-SNAPSHOT/morphString-2.4.0-SNAPSHOT.pom [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 0.788 s [INFO] Finished at: 2019-08-14T16:44:39+00:00 [INFO] Final Memory: 8M/89M [INFO] ------------------------------------------------------------------------ [INFO] Scanning for projects... [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building Maven Stub Project (No POM) 1 [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- maven-install-plugin:2.4:install-file (default-cli) @ standalone-pom --- [INFO] Installing /home/mchyzer/2.4.pspng-patches/work/container_jars/grouper-2.4.0-SNAPSHOT.jar to /home/mchyzer/2.4.pspng-patches/m2/edu/internet2/middleware/grouper/grouper/2.4.0-SNAPSHOT/grouper-2.4.0-SNAPSHOT.jar [INFO] Installing /home/mchyzer/2.4.pspng-patches/work/grouper-master/grouper/pom.xml to /home/mchyzer/2.4.pspng-patches/m2/edu/internet2/middleware/grouper/grouper/2.4.0-SNAPSHOT/grouper-2.4.0-SNAPSHOT.pom [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 0.829 s [INFO] Finished at: 2019-08-14T16:44:42+00:00 [INFO] Final Memory: 8M/89M [INFO] ------------------------------------------------------------------------ Grouper SNAPSHOT jars have been installed. Press return to continue... [INFO] Scanning for projects... [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building Maven Stub Project (No POM) 1 [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- maven-install-plugin:2.4:install-file (default-cli) @ standalone-pom --- [INFO] Installing /home/mchyzer/2.4.pspng-patches/work/container_jars/grouper-pspng-2.4.0-SNAPSHOT.jar to /home/mchyzer/2.4.pspng-patches/m2/edu/internet2/middleware/grouper/grouper-pspng/2.4.0-SNAPSHOT/grouper-pspng-2.4.0-SNAPSHOT.jar [INFO] Installing /home/mchyzer/2.4.pspng-patches/work/grouper-master/grouper-misc/grouper-pspng/pom.xml to /home/mchyzer/2.4.pspng-patches/m2/edu/internet2/middleware/grouper/grouper-pspng/2.4.0-SNAPSHOT/grouper-pspng-2.4.0-SNAPSHOT.pom [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 0.773 s [INFO] Finished at: 2019-08-14T16:44:50+00:00 [INFO] Final Memory: 8M/89M [INFO] ------------------------------------------------------------------------ Running grouper installer.... Do you want to 'install' a new installation of grouper, 'upgrade' an existing installation, 'patch' an existing installation, 'admin' utilities, or 'createPatch' for Grouper developers (enter: 'install', 'upgrade', 'patch', 'admin', 'createPatch' or blank for the default) [createPatch]: Enter in a Grouper temp directory to download tarballs (note: better if no spaces or special chars) [/home/mchyzer/2.4.pspng-patches/tarballs]: <using autorun property grouperInstaller.autorun.tarballDirectory>: 'work' What do you want to create a patch for? api, ui, ws, pspng, or psp? [API]: <using autorun property grouperInstaller.autorun.appToUpgrade>: 'pspng' What branch do you want to create a patch for (e.g. GROUPER_2_2_BRANCH)? [GROUPER_2_4_BRANCH]: <using autorun property grouperInstaller.autorun.branchToCreatePatchFor>: 'master' File exists: /home/mchyzer/2.4.pspng-patches/work/patches/grouper_v2_4_0_pspng_patch_0.tar.gz, should we use the local file (t|f)? [t]: <using autorun property grouperInstaller.autorun.useLocalPatchIfExists>: 't' Would you like to use all local files (t|f)? [t]: Unzipped file exists: /home/mchyzer/2.4.pspng-patches/work/patches/grouper_v2_4_0_pspng_patch_0.tar, use unzipped file (t|f)? [t]: <using autorun property grouperInstaller.autorun.useLocalPatchIfExists>: 't' Would you like to use all existing unzipped files (t|f)? [t]: Untarred dir exists: /home/mchyzer/2.4.pspng-patches/work/patches/grouper_v2_4_0_pspng_patch_0, use untarred dir (t|f)? [t]: <using autorun property grouperInstaller.autorun.useLocalPatchIfExists>: 't' Would you like to use all existing untarred directories (t|f)? [t]: Downloading from URL: https://software.internet2.edu/grouper/release/2.4.0/patches/grouper_v2_4_0_pspng_patch_8.tar.gz to file: /home/mchyzer/2.4.pspng-patches/work/patches/grouper_v2_4_0_pspng_patch_8.tar.gz Patch doesnt exist yet (not an error): https://software.internet2.edu/grouper/release/2.4.0/patches/grouper_v2_4_0_pspng_patch_9.tar.gz Next patch index for PSPNG is 9. ok (grouper_v2_4_0_pspng_patch_9)? (t|f)? [t]: <using autorun property grouperInstaller.autorun.patchIndexIsOk>: 't' Unzipping: /home/mchyzer/2.4.pspng-patches/work/master.zip ^CRemoving conatiner 32cb7db8a949e6df8eb0b61023fb0067ca949ea2470d918a4801fed457018268 _kroot@i2midev6:/home/mchyzer/2.4.pspng-patches_\[root@i2midev6 2.4.pspng-patches]# exit Script done on Wed 14 Aug 2019 04:45:14 PM UTC