Ticket #21500: patch-Makefile.am.diff

File patch-Makefile.am.diff, 11.4 KB (added by mvfranz@…, 15 years ago)

Changes to IcedTea Makefile.am

  • Makefile.am

    old new  
    11OPENJDK_VERSION = b66
    22
    3 OPENJDK_CHANGESET = e7eeeda332ec
    4 CORBA_CHANGESET = 1741ea5cb854
    5 JAXP_CHANGESET = b3d2bf4c255d
    6 JAXWS_CHANGESET = c37936a72332
    7 JDK_CHANGESET = 51fcc41d8b24
    8 LANGTOOLS_CHANGESET = 634f519d6f9a
    9 HOTSPOT_CHANGESET = 945fcffdbcab
    10 
    11 OPENJDK_MD5SUM = 8f63dbb0dcd83d905e243c58d0135174
    12 CORBA_MD5SUM = 06ac898f583fc9eec179fc2d1dcb5c71
    13 JAXP_MD5SUM = 01118a1882ea1ac5205e232bd7c847f7
    14 JAXWS_MD5SUM = 8c53573f9f072bb273435ee75c7aaaa3
    15 JDK_MD5SUM = 5ca832939f80db7c2e836141a9cac98a
    16 LANGTOOLS_MD5SUM = cd1389112baa1b2b24da95555345c1b9
    17 HOTSPOT_MD5SUM = ce3ab877df030cf4842001918898244e
     3OPENJDK_CHANGESET = 428565383a55
     4CORBA_CHANGESET = d78d74f54632
     5JAXP_CHANGESET = 25b32432ad4c
     6JAXWS_CHANGESET = d2b6b2d2581d
     7JDK_CHANGESET = ac301b6fdfad
     8LANGTOOLS_CHANGESET = 41a366b862a2
     9HOTSPOT_CHANGESET = 4256b1662add
     10
     11OPENJDK_MD5SUM = 4b21f32c4b61a31a59ddce92b7641c7c
     12CORBA_MD5SUM = ee1aefb1f2371011e30eedf5166d13ff
     13JAXP_MD5SUM = f47e800c83813ec7bf5bf37235f71ae9
     14JAXWS_MD5SUM = 4a199b6dba3906ebd17af77b02c9794e
     15JDK_MD5SUM = 077b359417c0e3643e81354e6c6efaf8
     16LANGTOOLS_MD5SUM = 5e6dedf7204ab5aeaeb08ddaf145589c
     17HOTSPOT_MD5SUM = b6740f515b71e1edf22dc433f1f13e24
    1818
    1919CACAO_VERSION = 0.99.4
    2020CACAO_MD5SUM = 63220327925ace13756ae334c55a3baa
     
    17031703CVMI_HG_URL = http://hg.openjdk.java.net/cvmi/cvmi/
    17041704CLOSURES_HG_URL = http://hg.openjdk.java.net/closures/closures/
    17051705CACIOCAVALLO_HG_URL = http://hg.openjdk.java.net/caciocavallo/jdk7/
     1706#BSD_HG_URL = /Volumes/Data/Users/mfranz/developer/openjdk-bsd/repos/bsd-port-b66
    17061707BSD_HG_URL = http://hg.openjdk.java.net/bsd-port/bsd-port
    17071708NIO2_HG_URL = http://hg.openjdk.java.net/nio/nio/
    17081709
    1709 OPENJDK_URL = $(ICEDTEA_HG_URL)
    1710 CORBA_URL = $(ICEDTEA_HG_URL)/corba
    1711 JAXP_URL = $(ICEDTEA_HG_URL)/jaxp
    1712 JAXWS_URL = $(ICEDTEA_HG_URL)/jaxws
    1713 JDK_URL = $(ICEDTEA_HG_URL)/jdk
    1714 LANGTOOLS_URL = $(ICEDTEA_HG_URL)/langtools
    1715 HOTSPOT_URL = $(ICEDTEA_HG_URL)/hotspot
     1710OPENJDK_URL = $(BSD_HG_URL)
     1711CORBA_URL = $(BSD_HG_URL)/corba
     1712JAXP_URL = $(BSD_HG_URL)/jaxp
     1713JAXWS_URL = $(BSD_HG_URL)/jaxws
     1714JDK_URL = $(BSD_HG_URL)/jdk
     1715LANGTOOLS_URL = $(BSD_HG_URL)/langtools
     1716HOTSPOT_URL = $(BSD_HG_URL)/hotspot
    17161717
    17171718if USE_HG
    17181719  OPENJDK_SRC_ZIP =
     
    17921793if USE_CACIOCAVALLO
    17931794        $(HG) fclone $(CACIOCAVALLO_HG_URL) openjdk;
    17941795else
    1795 if USE_BSD
    1796         $(HG) fclone $(BSD_HG_URL) openjdk;
    1797 else
    17981796if USE_NIO2
    17991797        hg fclone $(NIO2_HG_URL) openjdk;
    18001798else
    18011799if USE_JDK7
    1802         hg fclone $(OPENJDK_HG_URL) openjdk;
     1800        hg fclone $(OPENJDK_HG_URL) openjdk;
    18031801else
    18041802if USE_HG
    18051803if WITH_HGREV
     
    18081806        $(HG) fclone $(ICEDTEA_HG_URL) openjdk;
    18091807endif
    18101808else
     1809if USE_BSD
    18111810        if ! echo "$(OPENJDK_MD5SUM)  $(OPENJDK_SRC_ZIP)" \
    18121811          | $(MD5SUM) --check ; \
    18131812        then \
     
    19751974        for target in $(abs_top_srcdir)/ports/hotspot/make/*/makefiles/* \
    19761975                      $(abs_top_srcdir)/ports/hotspot/src/cpu/zero/vm/* \
    19771976                      $(abs_top_srcdir)/ports/hotspot/src/share/vm/*; do \
    1978           link=$$(dirname $$target | sed 's/^.*ports/openjdk/'|sed "s#hotspot/build#hotspot/make#"); \
     1977          link=$$(dirname $$target | $(SED) 's/^.*ports/openjdk/'|sed "s#hotspot/build#hotspot/make#"); \
    19791978          ln -sfv $$target $$link; \
    19801979        done
    19811980        if ! test "x$(ICEDTEA_CORE_BUILD)$(ICEDTEA_SHARK_BUILD)$(WITH_CACAO)" \
     
    20182017        patches/icedtea-float-double-trailing-zeros.patch \
    20192018        patches/hotspot/$(HSBUILD)/icedtea-memory-limits.patch \
    20202019        patches/icedtea-sunsrc.patch \
    2021         patches/icedtea-libraries.patch \
    20222020        patches/icedtea-core-build.patch \
    20232021        patches/icedtea-zero-build.patch \
    20242022        patches/icedtea-print-lsb-release.patch \
     
    20302028        patches/hotspot/$(HSBUILD)/icedtea-sparc-ptracefix.patch \
    20312029        patches/hotspot/$(HSBUILD)/icedtea-sparc-trapsfix.patch \
    20322030        patches/icedtea-override-redirect-metacity.patch \
    2033         patches/icedtea-shark-build.patch \
    2034         patches/hotspot/$(HSBUILD)/icedtea-shark-build.patch \
    20352031        patches/icedtea-security-updates.patch \
    20362032        patches/icedtea-jdk-docs-target.patch \
    20372033        patches/icedtea-mbeanintrospector.patch \
    20382034        patches/icedtea-hotspot-gcc-pr36917.patch \
    20392035        patches/icedtea-alpha-fixes.patch \
    20402036        patches/icedtea-alt-jar.patch \
    2041         patches/icedtea-jdk-use-ssize_t.patch \
    20422037        patches/hotspot/$(HSBUILD)/icedtea-use-idx_t.patch \
    20432038        patches/hotspot/$(HSBUILD)/icedtea-params-cast-size_t.patch \
    20442039        patches/icedtea-clean-crypto.patch \
    20452040        patches/hotspot/$(HSBUILD)/icedtea-shark.patch \
    20462041        $(GCC_PATCH) \
    2047         patches/cacao/arch.patch \
    20482042        patches/icedtea-signed-types.patch \
    20492043        patches/icedtea-lc_ctype.patch \
    20502044        patches/icedtea-xjc.patch \
     
    20522046        patches/icedtea-tests-jdk.patch \
    20532047        patches/icedtea-stroker-finish.patch \
    20542048        patches/icedtea-alsa-default-device.patch \
    2055         patches/icedtea-linker-libs-order.patch \
    20562049        patches/icedtea-testenv.patch \
    20572050        patches/icedtea-samejvm-safe.patch \
    20582051        patches/icedtea-pr261.patch \
     
    21322125
    21332126stamps/extract.stamp: stamps/download.stamp
    21342127if OPENJDK_SRC_DIR_FOUND
    2135         cp -a $(OPENJDK_SRC_DIR) openjdk
     2128        ${CP) -a $(OPENJDK_SRC_DIR) openjdk
    21362129else
    21372130        if ! test -d openjdk ; then \
    21382131          if [ ! -z $(OPENJDK_SRC_ZIP) ] ; then \
     
    21402133              *.zip) $(UNZIP) -q $(OPENJDK_SRC_ZIP) ;; \
    21412134              *.tar.*) $(TAR) xf $(OPENJDK_SRC_ZIP) ;; \
    21422135            esac; \
    2143             mv jdk7-$(OPENJDK_CHANGESET) openjdk ; \
     2136            mv bsd-port-$(OPENJDK_CHANGESET) openjdk ; \
    21442137            if test "x${HSBUILD}" != "xdefault"; then \
    21452138              rm -rf openjdk/hotspot ; \
    21462139            fi ; \
     
    22312224        chmod -R ug+w openjdk
    22322225        sh $(srcdir)/fsg.sh ;
    22332226        find openjdk -name '*.java' \
    2234           -exec sed -i 's/^[[:space:]]*@Override//' {} + ; \
     2227          -exec $(SED) -i 's/^[[:space:]]*@Override//' {} + ; \
    22352228        mkdir -p stamps
    22362229        touch stamps/extract.stamp
    22372230
     
    22532246
    22542247stamps/generated.stamp: stamps/extract-cacao.stamp
    22552248        if [ ! -e $(abs_top_builddir)/generated ]; then \
    2256           cp -a $(abs_top_srcdir)/generated $(abs_top_builddir); \
     2249          $(CP) -a $(abs_top_srcdir)/generated $(abs_top_builddir); \
    22572250          find $(abs_top_builddir)/generated -type f -exec chmod 640 '{}' ';' \
    22582251            -o -type d -exec chmod 750 '{}' ';'; \
    22592252        fi
     
    22692262        do \
    22702263          if test x$${all_patches_ok} == "xyes" \
    22712264             && echo Checking $$p \
    2272              && $(PATCH) -l -p1 --dry-run -s -t -f -F 0 < $(abs_top_srcdir)/$$p ; \
     2265             && $(PATCH) -l -p1 --dry-run -s -t -f -F 3 < $(abs_top_srcdir)/$$p ; \
    22732266          then \
    22742267            echo Applying $$p ; \
    22752268            $(PATCH) -l -p1 < $(abs_top_srcdir)/$$p ; \
     
    22832276          if test x$${all_patches_ok} = "xyes" \
    22842277            && echo Checking $$p \
    22852278            && $(PATCH) -l -p0 --dry-run -s -t -f \
    2286               -F 0 < $(abs_top_srcdir)/$$p ; \
     2279              -F 3 < $(abs_top_srcdir)/$$p ; \
    22872280          then \
    22882281            echo Applying $$p ; \
    22892282            $(PATCH) -l -p0 < $(abs_top_srcdir)/$$p ; \
     
    23052298        mv stamps/patch.stamp.tmp stamps/patch.stamp
    23062299
    23072300if ENABLE_NPPLUGIN
    2308         cp -a $(abs_top_srcdir)/plugin/icedteanp/java/sun/applet/*java openjdk/jdk/src/share/classes/sun/applet/
     2301        $(CP) -a $(abs_top_srcdir)/plugin/icedteanp/java/sun/applet/*java openjdk/jdk/src/share/classes/sun/applet/
    23092302        mkdir -p rt
    2310         cp -a $(abs_top_srcdir)/plugin/icedteanp/java/netscape rt/
     2303        $(CP) -a $(abs_top_srcdir)/plugin/icedteanp/java/netscape rt/
    23112304else
    23122305if ENABLE_PLUGIN
    2313         cp -a $(abs_top_srcdir)/plugin/icedtea/sun/applet/*java openjdk/jdk/src/share/classes/sun/applet/
     2306        $(CP) -a $(abs_top_srcdir)/plugin/icedtea/sun/applet/*java openjdk/jdk/src/share/classes/sun/applet/
    23142307        mkdir -p rt
    2315         cp -a $(abs_top_srcdir)/plugin/icedtea/netscape rt/
     2308        $(CP) -a $(abs_top_srcdir)/plugin/icedtea/netscape rt/
    23162309        chmod -R ug+w rt
    23172310endif
    23182311endif
     
    23632356          if test x$${all_patches_ok} = "xyes" \
    23642357            && echo Checking $$p \
    23652358            && $(PATCH) -l -p0 --dry-run -s -t -f \
    2366               -F 0 < $(abs_top_srcdir)/$$p ; \
     2359              -F 3 < $(abs_top_srcdir)/$$p ; \
    23672360          then \
    23682361            echo Applying $$p ; \
    23692362            $(PATCH) -l -p0 < $(abs_top_srcdir)/$$p ; \
     
    24272420        if test x"$(VERSION_SUFFIX)" != "x"; then \
    24282421          ver_suffix="-$(VERSION_SUFFIX)"; \
    24292422        fi ; \
    2430         sed -i "s#BUILD_VARIANT_RELEASE)#BUILD_VARIANT_RELEASE)$${proj_suffix}$${ver_suffix}#" \
     2423        $(SED) -i "s#BUILD_VARIANT_RELEASE)#BUILD_VARIANT_RELEASE)$${proj_suffix}$${ver_suffix}#" \
    24312424          openjdk/jdk/make/common/shared/Defs.gmk; \
    24322425        cp -r $(abs_top_srcdir)/overlays/openjdk/* openjdk/
    24332426        chmod -R ug+w openjdk
     
    24392432# Copy over OpenJDK sources for ecj.
    24402433stamps/clone-ecj.stamp: stamps/overlay.stamp
    24412434        if ! test -d openjdk-ecj ; then \
    2442             cp -pPRl openjdk openjdk-ecj ; \
     2435            $(CP) -pPRl openjdk openjdk-ecj ; \
    24432436        fi
    24442437        mkdir -p stamps
    24452438        touch stamps/clone-ecj.stamp
     
    24922485          if test x$${all_patches_ok} = "xyes" \
    24932486            && echo Checking $$p \
    24942487            && $(PATCH) -l -p0 --dry-run -s -t -f \
    2495               -F 0 < $(abs_top_srcdir)/$$p ; \
     2488              -F 3 < $(abs_top_srcdir)/$$p ; \
    24962489          then \
    24972490            echo Applying $$p ; \
    24982491            $(PATCH) -l -p0 < $(abs_top_srcdir)/$$p ; \
     
    27402733        mkdir -p $(BUILD_OUTPUT_DIR)/j2sdk-image/tapset ; \
    27412734        grep "client IGNORE" $(BUILD_JRE_ARCH_DIR)/jvm.cfg; \
    27422735        if test $$? -eq 0; then \
    2743           sed -e '/\/client\/libjvm.so/d' \
     2736          $(SED) -e '/\/client\/libjvm.so/d' \
    27442737            < $(abs_top_builddir)/tapset/hotspot.stp \
    27452738            > $(BUILD_OUTPUT_DIR)/j2sdk-image/tapset/hotspot.stp; \
    27462739        else \
     
    28262819        mkdir -p $(BUILD_OUTPUT_DIR)/j2sdk-image/tapset ; \
    28272820        grep "client IGNORE" $(BUILD_JRE_ARCH_DIR)/jvm.cfg; \
    28282821        if test $$? -eq 0; then \
    2829           sed -e '/\/client\/libjvm.so/d' \
     2822          $(SED) -e '/\/client\/libjvm.so/d' \
    28302823            < $(abs_top_builddir)/tapset/hotspot.stp \
    28312824            > $(BUILD_OUTPUT_DIR)/j2sdk-image/tapset/hotspot.stp; \
    28322825        else \
     
    31593152        (cd $(abs_top_builddir)/netx.build ; \
    31603153         mkdir -p lib ; \
    31613154         $(ICEDTEA_BOOT_DIR)/bin/jar cf lib/classes.jar javax/jnlp net ; \
    3162          cp -a $(abs_top_srcdir)/netx src; \
     3155         $(CP) -a $(abs_top_srcdir)/netx src; \
    31633156         find src -type f -exec chmod 640 '{}' ';' -o -type d -exec chmod 750 '{}' ';'; \
    31643157         cd src ; \
    31653158         $(ICEDTEA_BOOT_DIR)/bin/jar uf $(abs_top_builddir)/netx.build/lib/classes.jar \
     
    31853178        ln -s $(JIBX_DIR)/jibx-run.jar $(JIBX_DEPS_DIR)
    31863179else
    31873180        mkdir -p $(BUILD_OUTPUT_DIR)/gensrc/javax/swing/plaf
    3188         cp -a $(abs_top_builddir)/generated/javax/swing/plaf/nimbus \
     3181        $(CP) -a $(abs_top_builddir)/generated/javax/swing/plaf/nimbus \
    31893182          $(BUILD_OUTPUT_DIR)/gensrc/javax/swing/plaf
    31903183endif
    31913184endif
     
    34593452                $(ARCH_PREFIX) $(MAKE) -C zerovm $(ICEDTEA_BUILD_TARGET)
    34603453
    34613454        mkdir -p $(BUILD_JRE_ARCH_DIR)/zero
    3462         cp -a zerovm/openjdk/build/$(OS_DIR)/hotspot/import/jre/lib/$(INSTALL_ARCH_DIR)/server/* \
     3455        $(CP) -a zerovm/openjdk/build/$(OS_DIR)/hotspot/import/jre/lib/$(INSTALL_ARCH_DIR)/server/* \
    34633456                $(BUILD_JRE_ARCH_DIR)/zero/
    34643457        printf -- '-zero KNOWN\n' >> $(BUILD_JRE_ARCH_DIR)/jvm.cfg
    34653458else
     
    34793472                $(ARCH_PREFIX) $(MAKE) -C zerovm $(ICEDTEA_DEBUG_BUILD_TARGET)
    34803473
    34813474        mkdir -p $(BUILD_DEBUG_JRE_ARCH_DIR)/zero
    3482         cp -a zerovm/openjdk/build/$(OS_DIR)/hotspot/import/jre/lib/$(INSTALL_ARCH_DIR)/server/* \
     3475        $(CP) -a zerovm/openjdk/build/$(OS_DIR)/hotspot/import/jre/lib/$(INSTALL_ARCH_DIR)/server/* \
    34833476                $(BUILD_DEBUG_JRE_ARCH_DIR)/zero/
    34843477        printf -- '-zero KNOWN\n' >> $(BUILD_DEBUG_JRE_ARCH_DIR)/jvm.cfg
    34853478else
     
    35493542# FIXME: this might need some adjustment for other OS than Linux
    35503543jtreg_processes = ps x -ww -o pid,ppid,args \
    35513544        | awk '$$2 == 1 && $$3 ~ /^$(subst /,\/,/scratch)/' \
    3552         | sed 's,$(CURDIR)/$(sdkimg),<sdkimg>,g;s,$(CURDIR),<pwd>,g'
     3545        | $(SED) 's,$(CURDIR)/$(sdkimg),<sdkimg>,g;s,$(CURDIR),<pwd>,g'
    35533546jtreg_pids = ps x --no-headers -ww -o pid,ppid,args \
    35543547        | awk '$$2 == 1 && $$3 ~ /^$(subst /,\/,$(CURDIR)/$(sdkimg))/ {print $$1}'
    35553548