File tree Expand file tree Collapse file tree 2 files changed +13
-9
lines changed
Expand file tree Collapse file tree 2 files changed +13
-9
lines changed Original file line number Diff line number Diff line change @@ -165,27 +165,31 @@ create_openssl: ../openssl_source/$(OPENSSL_VER)-icc.tar.gz
165165# Untar the sources for the version of OpenSSL we use
166166# since 1.1.1u the OpenSSL tar has icc patches applied
167167# the first dir name in the archive will vary so we make an empty directory to extract
168- [ -n "$(EX_SUFFIX)" ] || \
169168 ( \
170169 cd .. ; \
171170 rm -r $(OPENSSL_VER) openssl ; \
172171 rm -rf x; mkdir x; cd x; \
173172 tar xzf ../openssl_source/$(OPENSSL_VER)-icc.tar.gz ; \
174- mv `ls -d *`/ openssl ../$(OPENSSL_VER) ; \
173+ mv openssl ../$(OPENSSL_VER) ; \
175174 chmod +x ../$(OPENSSL_VER)/Configure ; \
176175 cd ..; \
176+ rmdir x; \
177177 )
178- # Apply all the patches
178+ # Apply all the patches and fixes
179179# rm Makefile , which SHOULDN'T BE THERE ANYWAY
180180# Note: since 1.1.1u we are not applying patches.
181+ # ref opensslver.mk: OSSL_DIR is ../$(OPENSSL_VER)$(EX_SUFFIX) and EX_SUFFIX is usually "" so they are the same.
181182 ( \
182- cd $(OSSL_DIR) ;\
183- [ -n "$(EX_SUFFIX)" ] || \
184- sh ../openssl_source/tools/patchem2 "../openssl_source/$(OPENSSL_BIN)" ;\
185- chmod +x tools/*;\
186- rm -f Makefile; \
183+ if [ -d $(OSSL_DIR) ] ; then \
184+ cd $(OSSL_DIR) ;\
185+ sh ../openssl_source/tools/patchem2 "../openssl_source/$(OPENSSL_BIN)" ;\
186+ chmod +x tools/*;\
187+ rm -f Makefile; \
188+ else exit 1 ; \
189+ fi \
187190 )
188191
192+
189193# - Create the OpenSSL sources from tarfile and patches on zOS
190194# - This has NO automated dependencies as that messes the automated builds
191195# - this MUST be tripped manually.
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ OPENSSL_VER = openssl-$(OPENSSL_BIN)
2020# checked into source control. This option is used by iSeries/OS400 for Clearcase builds.
2121
2222# Where the source tree for OpenSSL will be
23- OSSL_DIR = .. /$(OPENSSL_VER )$(EX_SUFFIX )
23+ OSSL_DIR = $( ICC_ROOT ) /$(OPENSSL_VER )$(EX_SUFFIX )
2424
2525# What file we use in the OpenSSL tree to trip a regen of the sources
2626OSSL_TAG = $(OSSL_DIR ) /Makefile
You can’t perform that action at this time.
0 commit comments