From 68c6fc718d348a219673542548fe921bdd60ad70 Mon Sep 17 00:00:00 2001 From: Peter Lemenkov Date: Sun, 19 Apr 2020 23:16:20 +0200 Subject: [PATCH 001/135] Erlang ver. 23.0-rc2 Signed-off-by: Peter Lemenkov --- erlang.spec | 44 ++++++++------ ...n-pages-and-do-not-install-miscellan.patch | 4 +- otp-0002-Remove-rpath.patch | 4 +- otp-0003-Do-not-install-C-sources.patch | 17 +++--- otp-0004-Do-not-install-Java-sources.patch | 4 +- ...teventlog-and-related-doc-files-on-n.patch | 10 ++-- otp-0006-Do-not-install-erlang-sources.patch | 54 +++++++++--------- otp-0007-Add-extra-search-directory.patch | 2 +- ...man-pages-from-system-wide-directory.patch | 4 +- ...etup-reduce-number-of-calls-to-close.patch | 57 ------------------- sources | 2 +- 11 files changed, 78 insertions(+), 124 deletions(-) delete mode 100644 otp-0010-erl_child_setup-reduce-number-of-calls-to-close.patch diff --git a/erlang.spec b/erlang.spec index 85fa346..0b1243d 100644 --- a/erlang.spec +++ b/erlang.spec @@ -65,8 +65,8 @@ Name: erlang -Version: 22.3.2 -Release: 1%{?dist} +Version: 23.0 +Release: 0.1.rc2%{?dist} Summary: General-purpose programming language and runtime environment License: ASL 2.0 @@ -74,7 +74,8 @@ URL: https://www.erlang.org %if ! (0%{?rhel} && 0%{?rhel} <= 6) VCS: scm:git:https://github.com/erlang/otp %endif -Source0: https://github.com/erlang/otp/archive/OTP-%{version}/otp-OTP-%{version}.tar.gz +#Source0: https://github.com/erlang/otp/archive/OTP-%{version}/otp-OTP-%{version}.tar.gz +Source0: https://github.com/erlang/otp/archive/OTP-%{version}-rc2/otp-OTP-%{version}-rc2.tar.gz Source5: epmd.service Source6: epmd.socket Source7: epmd@.service @@ -106,7 +107,6 @@ Patch6: otp-0006-Do-not-install-erlang-sources.patch Patch7: otp-0007-Add-extra-search-directory.patch Patch8: otp-0008-Avoid-forking-sed-to-get-basename.patch Patch9: otp-0009-Load-man-pages-from-system-wide-directory.patch -Patch10: otp-0010-erl_child_setup-reduce-number-of-calls-to-close.patch # end of autogenerated patch tag list BuildRequires: gcc @@ -712,17 +712,16 @@ Provides support for XML 1.0. ### END OF AUTOGENERATED LIST ### %prep -%autosetup -p1 -n otp-OTP-%{version} +%autosetup -p1 -n otp-OTP-%{version}-rc2 # FIXME we should come up with a better solution # remove shipped zlib sources #rm -f erts/emulator/zlib/*.[ch] -# Reconfigure everything to apply changes to the autotools templates -./otp_build autoconf - %build +# Reconfigure everything to apply changes to the autotools templates +./otp_build autoconf # Set up proper cflags/cxxflags first %ifarch sparcv9 sparc64 @@ -1017,6 +1016,9 @@ useradd -r -g epmd -d /dev/null -s /sbin/nologin \ %files compiler %{_libdir}/erlang/lib/compiler-*/ %if %{with doc} +%{_mandir}/man3/cerl.* +%{_mandir}/man3/cerl_clauses.* +%{_mandir}/man3/cerl_trees.* %{_mandir}/man3/compile.* %endif @@ -1048,8 +1050,8 @@ useradd -r -g epmd -d /dev/null -s /sbin/nologin \ %{_libdir}/erlang/erts-*/bin/typer %{_libdir}/erlang/lib/dialyzer-*/ %if %{with doc} +%{_mandir}/man1/typer.* %{_mandir}/man3/dialyzer.* -%{_mandir}/man3/typer.* %endif %endif # __with_wxwidgets @@ -1107,13 +1109,14 @@ useradd -r -g epmd -d /dev/null -s /sbin/nologin \ %{_mandir}/man1/erl_call.* %{_mandir}/man3/ei.* %{_mandir}/man3/ei_connect.* -%{_mandir}/man3/erl_connect.* -%{_mandir}/man3/erl_error.* -%{_mandir}/man3/erl_eterm.* -%{_mandir}/man3/erl_format.* -%{_mandir}/man3/erl_global.* -%{_mandir}/man3/erl_malloc.* -%{_mandir}/man3/erl_marshal.* +%{_mandir}/man3/ei_global.* +#%%{_mandir}/man3/erl_connect.* +#%%{_mandir}/man3/erl_error.* +#%%{_mandir}/man3/erl_eterm.* +#%%{_mandir}/man3/erl_format.* +#%%{_mandir}/man3/erl_global.* +#%%{_mandir}/man3/erl_malloc.* +#%%{_mandir}/man3/erl_marshal.* %{_mandir}/man3/registry.* %endif @@ -1165,6 +1168,7 @@ useradd -r -g epmd -d /dev/null -s /sbin/nologin \ %{_libdir}/erlang/erts-*/bin/start.src %{_libdir}/erlang/erts-*/bin/start_erl.src %{_libdir}/erlang/erts-*/bin/to_erl +%{_libdir}/erlang/erts-*/bin/yielding_c_fun %{_libdir}/erlang/erts-*/include %{_libdir}/erlang/erts-*/lib/ %{_libdir}/erlang/erts-*/src/ @@ -1296,6 +1300,7 @@ useradd -r -g epmd -d /dev/null -s /sbin/nologin \ %dir %{_javadir}/%{name}/ %{_javadir}/%{name}/OtpErlang.jar %{_libdir}/erlang/lib/jinterface-*/ +%{_mandir}/man3/jinterface.* %endif # __with_java %files kernel @@ -1313,6 +1318,7 @@ useradd -r -g epmd -d /dev/null -s /sbin/nologin \ %{_mandir}/man3/erl_epmd.* %{_mandir}/man3/erl_prim_loader_stub.* %{_mandir}/man3/erlang_stub.* +%{_mandir}/man3/erpc.* %{_mandir}/man3/error_handler.* %{_mandir}/man3/error_logger.* %{_mandir}/man3/file.* @@ -1333,6 +1339,7 @@ useradd -r -g epmd -d /dev/null -s /sbin/nologin \ %{_mandir}/man3/net_adm.* %{_mandir}/man3/net_kernel.* %{_mandir}/man3/os.* +%{_mandir}/man3/pg.* %{_mandir}/man3/pg2.* %{_mandir}/man3/rpc.* %{_mandir}/man3/seq_trace.* @@ -1533,6 +1540,7 @@ useradd -r -g epmd -d /dev/null -s /sbin/nologin \ %{_libdir}/erlang/lib/ssh-*/src %if %{with doc} %{_mandir}/man3/ssh.* +%{_mandir}/man3/ssh_agent.* %{_mandir}/man3/ssh_client_channel.* %{_mandir}/man3/ssh_client_key_api.* %{_mandir}/man3/ssh_connection.* @@ -1613,6 +1621,7 @@ useradd -r -g epmd -d /dev/null -s /sbin/nologin \ %{_mandir}/man3/sets.* %{_mandir}/man3/shell.* %{_mandir}/man3/shell_default.* +%{_mandir}/man3/shell_docs.* %{_mandir}/man3/slave.* %{_mandir}/man3/sofs.* %{_mandir}/man3/string.* @@ -1943,6 +1952,9 @@ useradd -r -g epmd -d /dev/null -s /sbin/nologin \ %changelog +* Sun Apr 19 2020 Peter Lemenkov - 23.0-0.1.rc2 +- Ver. 23.0-rc2 + * Thu Apr 9 2020 Peter Lemenkov - 22.3.2-1 - Ver. 22.3.2 diff --git a/otp-0001-Do-not-format-man-pages-and-do-not-install-miscellan.patch b/otp-0001-Do-not-format-man-pages-and-do-not-install-miscellan.patch index dff0d12..418b2a8 100644 --- a/otp-0001-Do-not-format-man-pages-and-do-not-install-miscellan.patch +++ b/otp-0001-Do-not-format-man-pages-and-do-not-install-miscellan.patch @@ -6,10 +6,10 @@ Subject: [PATCH] Do not format man-pages and do not install miscellaneous Signed-off-by: Peter Lemenkov diff --git a/erts/etc/common/Makefile.in b/erts/etc/common/Makefile.in -index 05d7b5679f..cbac9956bc 100644 +index ef40341c87..84e6c3cb2f 100644 --- a/erts/etc/common/Makefile.in +++ b/erts/etc/common/Makefile.in -@@ -504,10 +504,6 @@ endif +@@ -501,10 +501,6 @@ endif ifneq ($(INSTALL_TOP_BIN),) $(INSTALL_PROGRAM) $(INSTALL_TOP_BIN) "$(RELEASE_PATH)" endif diff --git a/otp-0002-Remove-rpath.patch b/otp-0002-Remove-rpath.patch index 51bfbad..8c1671d 100644 --- a/otp-0002-Remove-rpath.patch +++ b/otp-0002-Remove-rpath.patch @@ -5,10 +5,10 @@ Subject: [PATCH] Remove rpath Signed-off-by: Peter Lemenkov diff --git a/lib/crypto/c_src/Makefile.in b/lib/crypto/c_src/Makefile.in -index 129d0a7822..56af1b60bc 100644 +index d06dc95aa4..c9d5a7064a 100644 --- a/lib/crypto/c_src/Makefile.in +++ b/lib/crypto/c_src/Makefile.in -@@ -113,7 +113,7 @@ TEST_ENGINE_LIB = $(LIBDIR)/otp_test_engine$(TYPEMARKER).@DED_EXT@ +@@ -114,7 +114,7 @@ TEST_ENGINE_LIB = $(LIBDIR)/otp_test_engine$(TYPEMARKER).@DED_EXT@ DYNAMIC_CRYPTO_LIB=@SSL_DYNAMIC_ONLY@ ifeq ($(DYNAMIC_CRYPTO_LIB),yes) diff --git a/otp-0003-Do-not-install-C-sources.patch b/otp-0003-Do-not-install-C-sources.patch index 08d9363..340a15a 100644 --- a/otp-0003-Do-not-install-C-sources.patch +++ b/otp-0003-Do-not-install-C-sources.patch @@ -27,10 +27,10 @@ index 1f714df357..95835d6ed2 100644 release_docs_spec: diff --git a/lib/crypto/c_src/Makefile.in b/lib/crypto/c_src/Makefile.in -index 56af1b60bc..141168d3f8 100644 +index c9d5a7064a..5f2dfb8e02 100644 --- a/lib/crypto/c_src/Makefile.in +++ b/lib/crypto/c_src/Makefile.in -@@ -222,16 +222,11 @@ docs: +@@ -223,16 +223,11 @@ docs: include $(ERL_TOP)/make/otp_release_targets.mk release_spec: opt @@ -48,10 +48,10 @@ index 56af1b60bc..141168d3f8 100644 release_docs_spec: diff --git a/lib/erl_interface/src/Makefile.in b/lib/erl_interface/src/Makefile.in -index ba0164ea51..9ccbbee1b3 100644 +index 55827ce097..e01ab3ef36 100644 --- a/lib/erl_interface/src/Makefile.in +++ b/lib/erl_interface/src/Makefile.in -@@ -848,14 +848,14 @@ ifneq ($(EXE_TARGETS),) +@@ -748,14 +748,13 @@ ifneq ($(EXE_TARGETS),) $(INSTALL_PROGRAM) $(EXE_TARGETS) "$(RELSYSDIR)/bin" endif $(INSTALL_DATA) $(EXTRA) "$(RELSYSDIR)/src" @@ -61,7 +61,7 @@ index ba0164ea51..9ccbbee1b3 100644 - $(INSTALL_DATA) epmd/*.[ch] "$(RELSYSDIR)/src/epmd" - $(INSTALL_DATA) misc/*.[ch] "$(RELSYSDIR)/src/misc" - $(INSTALL_DATA) registry/*.[ch] "$(RELSYSDIR)/src/registry" -- $(INSTALL_DATA) legacy/*.[ch] "$(RELSYSDIR)/src/legacy" +- $(INSTALL_DATA) global/*.[ch] "$(RELSYSDIR)/src/global" - $(INSTALL_DATA) prog/*.[ch] "$(RELSYSDIR)/src/prog" + $(INSTALL_DATA) connect/*.h "$(RELSYSDIR)/src/connect" + $(INSTALL_DATA) decode/*.h "$(RELSYSDIR)/src/decode" @@ -69,7 +69,6 @@ index ba0164ea51..9ccbbee1b3 100644 + $(INSTALL_DATA) epmd/*.h "$(RELSYSDIR)/src/epmd" + $(INSTALL_DATA) misc/*.h "$(RELSYSDIR)/src/misc" + $(INSTALL_DATA) registry/*.h "$(RELSYSDIR)/src/registry" -+ $(INSTALL_DATA) legacy/*.h "$(RELSYSDIR)/src/legacy" + $(INSTALL_DATA) prog/*.h "$(RELSYSDIR)/src/prog" release_docs: @@ -88,7 +87,7 @@ index cd409fa54f..c65e817385 100644 endif diff --git a/lib/odbc/c_src/Makefile.in b/lib/odbc/c_src/Makefile.in -index 294d832797..173f660f26 100644 +index 3c16e7e294..82fe1492ef 100644 --- a/lib/odbc/c_src/Makefile.in +++ b/lib/odbc/c_src/Makefile.in @@ -129,11 +129,8 @@ include $(ERL_TOP)/make/otp_release_targets.mk @@ -117,10 +116,10 @@ index 27b156a2c9..f11ff303b6 100644 $(INSTALL_PROGRAM) $(TARGET_FILES) "$(RELSYSDIR)/priv/bin" diff --git a/lib/tools/c_src/Makefile.in b/lib/tools/c_src/Makefile.in -index 0cd760b137..b2d7cf94c9 100644 +index 8e13571786..ae18ef3cf4 100644 --- a/lib/tools/c_src/Makefile.in +++ b/lib/tools/c_src/Makefile.in -@@ -189,8 +189,6 @@ include ../vsn.mk +@@ -188,8 +188,6 @@ include ../vsn.mk RELSYSDIR = $(RELEASE_PATH)/lib/tools-$(TOOLS_VSN) release_spec: all diff --git a/otp-0004-Do-not-install-Java-sources.patch b/otp-0004-Do-not-install-Java-sources.patch index 7b8bbd4..29f1fde 100644 --- a/otp-0004-Do-not-install-Java-sources.patch +++ b/otp-0004-Do-not-install-Java-sources.patch @@ -5,10 +5,10 @@ Subject: [PATCH] Do not install Java sources Signed-off-by: Peter Lemenkov diff --git a/lib/jinterface/java_src/com/ericsson/otp/erlang/Makefile b/lib/jinterface/java_src/com/ericsson/otp/erlang/Makefile -index ee616f3d7e..fdd28e79b3 100644 +index bcbb206db6..1451378b35 100644 --- a/lib/jinterface/java_src/com/ericsson/otp/erlang/Makefile +++ b/lib/jinterface/java_src/com/ericsson/otp/erlang/Makefile -@@ -120,8 +120,6 @@ release release_docs release_tests release_html: +@@ -123,8 +123,6 @@ release release_docs release_tests release_html: $(V_at)$(MAKE) $(MFLAGS) RELEASE_PATH="$(RELEASE_PATH)" $(TARGET_MAKEFILE) $@_spec release_spec: opt diff --git a/otp-0005-Do-not-install-nteventlog-and-related-doc-files-on-n.patch b/otp-0005-Do-not-install-nteventlog-and-related-doc-files-on-n.patch index cfd78de..a36294b 100644 --- a/otp-0005-Do-not-install-nteventlog-and-related-doc-files-on-n.patch +++ b/otp-0005-Do-not-install-nteventlog-and-related-doc-files-on-n.patch @@ -6,10 +6,10 @@ Subject: [PATCH] Do not install nteventlog and related doc-files on non-win32 Signed-off-by: Peter Lemenkov diff --git a/lib/os_mon/doc/src/Makefile b/lib/os_mon/doc/src/Makefile -index 8e9a4c333c..33b32b09b9 100644 +index d16f2b4831..c5b721f995 100644 --- a/lib/os_mon/doc/src/Makefile +++ b/lib/os_mon/doc/src/Makefile -@@ -36,11 +36,16 @@ RELSYSDIR = $(RELEASE_PATH)/lib/$(APPLICATION)-$(VSN) +@@ -31,11 +31,16 @@ APPLICATION=os_mon # Target Specs # ---------------------------------------------------- XML_APPLICATION_FILES = ref_man.xml @@ -28,20 +28,20 @@ index 8e9a4c333c..33b32b09b9 100644 XML_REF6_FILES = os_mon_app.xml diff --git a/lib/os_mon/src/Makefile b/lib/os_mon/src/Makefile -index 923a31f290..5963351b0f 100644 +index 98c5ced068..e2f4d5a090 100644 --- a/lib/os_mon/src/Makefile +++ b/lib/os_mon/src/Makefile @@ -34,7 +34,13 @@ RELSYSDIR = $(RELEASE_PATH)/lib/os_mon-$(VSN) # ---------------------------------------------------- # Target Specs # ---------------------------------------------------- --MODULES= disksup memsup cpu_sup os_mon os_sup os_mon_sysinfo nteventlog +-MODULES= disksup memsup cpu_sup os_mon os_mon_mib os_sup os_mon_sysinfo nteventlog +ifeq ($(findstring win32,$(TARGET)),win32) +NTEVENTLOG=nteventlog +else +NTEVENTLOG= +endif -+MODULES= disksup memsup cpu_sup os_mon os_sup os_mon_sysinfo \ ++MODULES= disksup memsup cpu_sup os_mon os_mon_mib os_sup os_mon_sysinfo \ + $(NTEVENTLOG) INCLUDE=../include diff --git a/otp-0006-Do-not-install-erlang-sources.patch b/otp-0006-Do-not-install-erlang-sources.patch index 8533794..54605e7 100644 --- a/otp-0006-Do-not-install-erlang-sources.patch +++ b/otp-0006-Do-not-install-erlang-sources.patch @@ -21,10 +21,10 @@ index d2153f23e1..1eb33a5922 100644 $(INSTALL_DATA) $(STATIC_TARGET_FILES) $(APP_TARGET) "$(RELSYSDIR)/ebin" diff --git a/lib/asn1/src/Makefile b/lib/asn1/src/Makefile -index a6ff72898c..35d4530f32 100644 +index 1c3bdfcaa8..8c2e6c9fbc 100644 --- a/lib/asn1/src/Makefile +++ b/lib/asn1/src/Makefile -@@ -155,7 +155,7 @@ release_spec: opt +@@ -154,7 +154,7 @@ release_spec: opt $(INSTALL_DIR) "$(RELSYSDIR)/ebin" $(INSTALL_DATA) $(TARGET_FILES) $(APP_TARGET) $(APPUP_TARGET) "$(RELSYSDIR)/ebin" $(INSTALL_DIR) "$(RELSYSDIR)/src" @@ -63,10 +63,10 @@ index f015064b39..57f96d2929 100644 $(INSTALL_SCRIPT) $(PROGRAMS) "$(RELEASE_PATH)/test_server" diff --git a/lib/compiler/src/Makefile b/lib/compiler/src/Makefile -index e42032c3ae..501ed4d3d6 100644 +index b1531ac985..dbcfe0042c 100644 --- a/lib/compiler/src/Makefile +++ b/lib/compiler/src/Makefile -@@ -179,8 +179,8 @@ include $(ERL_TOP)/make/otp_release_targets.mk +@@ -184,8 +184,8 @@ include $(ERL_TOP)/make/otp_release_targets.mk release_spec: opt $(INSTALL_DIR) "$(RELSYSDIR)/src" @@ -104,10 +104,10 @@ index 118cb6b758..86722d8767 100644 $(INSTALL_DATA) $(TARGET_FILES) $(TARGET_TOOLBOX_FILES) "$(RELSYSDIR)/ebin" diff --git a/lib/dialyzer/src/Makefile b/lib/dialyzer/src/Makefile -index bddd761705..f0c2e7c35b 100644 +index 1f5b308c7d..1f728c56d6 100644 --- a/lib/dialyzer/src/Makefile +++ b/lib/dialyzer/src/Makefile -@@ -160,7 +160,7 @@ include $(ERL_TOP)/make/otp_release_targets.mk +@@ -161,7 +161,7 @@ include $(ERL_TOP)/make/otp_release_targets.mk release_spec: opt $(INSTALL_DIR) "$(RELSYSDIR)/src" @@ -117,10 +117,10 @@ index bddd761705..f0c2e7c35b 100644 $(INSTALL_DIR) "$(RELSYSDIR)/ebin" $(INSTALL_DATA) $(INSTALL_FILES) "$(RELSYSDIR)/ebin" diff --git a/lib/diameter/src/Makefile b/lib/diameter/src/Makefile -index d6854cfd27..fab5f3dec3 100644 +index 36e8fefd4c..d3a10890ce 100644 --- a/lib/diameter/src/Makefile +++ b/lib/diameter/src/Makefile -@@ -257,11 +257,8 @@ release_spec: opt +@@ -263,11 +263,8 @@ release_spec: opt $(MAKE) $(EXAMPLE_DIRS:%/=release_examples_%) $(TARGET_DIRS:%/=release_src_%): release_src_%: @@ -168,10 +168,10 @@ index b79a537424..d0b231e5fc 100644 release_docs_spec: diff --git a/lib/erl_docgen/src/Makefile b/lib/erl_docgen/src/Makefile -index 82d051e9bb..950fdbe177 100644 +index 4c6f542ebb..d0cd6d8f68 100644 --- a/lib/erl_docgen/src/Makefile +++ b/lib/erl_docgen/src/Makefile -@@ -90,8 +90,6 @@ $(APPUP_TARGET): $(APPUP_SRC) ../vsn.mk +@@ -91,8 +91,6 @@ $(APPUP_TARGET): $(APPUP_SRC) ../vsn.mk include $(ERL_TOP)/make/otp_release_targets.mk release_spec: opt @@ -343,10 +343,10 @@ index 8248e37c44..1f1b23184b 100644 $(INSTALL_DATA) $(TARGET_FILES) "$(RELSYSDIR)/ebin" diff --git a/lib/inets/src/http_server/Makefile b/lib/inets/src/http_server/Makefile -index 9848fd4b35..387475febb 100644 +index da9549406f..eaa14b628f 100644 --- a/lib/inets/src/http_server/Makefile +++ b/lib/inets/src/http_server/Makefile -@@ -136,7 +136,7 @@ include $(ERL_TOP)/make/otp_release_targets.mk +@@ -134,7 +134,7 @@ include $(ERL_TOP)/make/otp_release_targets.mk release_spec: opt $(INSTALL_DIR) "$(RELSYSDIR)/src" $(INSTALL_DIR) "$(RELSYSDIR)/src/http_server" @@ -369,10 +369,10 @@ index ec1ae70305..88c084ef58 100644 $(INSTALL_DATA) $(EXTERNAL_HRL_FILES) "$(RELSYSDIR)/include" $(INSTALL_DIR) "$(RELSYSDIR)/ebin" diff --git a/lib/kernel/src/Makefile b/lib/kernel/src/Makefile -index 2d2b84c206..9d67cb0c01 100644 +index 07f4f2304c..9c8913a5c1 100644 --- a/lib/kernel/src/Makefile +++ b/lib/kernel/src/Makefile -@@ -231,7 +231,6 @@ include $(ERL_TOP)/make/otp_release_targets.mk +@@ -235,7 +235,6 @@ include $(ERL_TOP)/make/otp_release_targets.mk release_spec: opt $(INSTALL_DIR) "$(RELSYSDIR)/src" @@ -394,10 +394,10 @@ index ab45548099..5c7a7f0be9 100644 $(INSTALL_DATA) $(EXTERNAL_HRL_FILES) "$(RELSYSDIR)/include" diff --git a/lib/megaco/src/binary/Makefile b/lib/megaco/src/binary/Makefile -index b9643669f6..5b5a4cf482 100644 +index 7fc90fd6d5..6ad086ed01 100644 --- a/lib/megaco/src/binary/Makefile +++ b/lib/megaco/src/binary/Makefile -@@ -176,7 +176,7 @@ release_spec: opt +@@ -177,7 +177,7 @@ release_spec: opt $(INSTALL_DATA) $(TARGET_FILES) "$(RELSYSDIR)/ebin" $(INSTALL_DIR) "$(RELSYSDIR)/src" $(INSTALL_DIR) "$(RELSYSDIR)/src/binary" @@ -445,10 +445,10 @@ index d07db3fa4b..7f421d24cc 100644 release_docs_spec: diff --git a/lib/megaco/src/text/Makefile b/lib/megaco/src/text/Makefile -index 8e7e82b276..2a118d24e3 100644 +index 3dd24b1df7..836e163499 100644 --- a/lib/megaco/src/text/Makefile +++ b/lib/megaco/src/text/Makefile -@@ -135,7 +135,7 @@ release_spec: opt +@@ -131,7 +131,7 @@ release_spec: opt $(INSTALL_DATA) $(BEAM_TARGET_FILES) "$(RELSYSDIR)/ebin" $(INSTALL_DIR) "$(RELSYSDIR)/src" $(INSTALL_DIR) "$(RELSYSDIR)/src/text" @@ -471,10 +471,10 @@ index 028a63e98e..9e11e9bfb2 100644 release_docs_spec: diff --git a/lib/mnesia/src/Makefile b/lib/mnesia/src/Makefile -index 7d316df263..60fdefb5d0 100644 +index 90e8780754..1a13d764b3 100644 --- a/lib/mnesia/src/Makefile +++ b/lib/mnesia/src/Makefile -@@ -134,7 +134,7 @@ include $(ERL_TOP)/make/otp_release_targets.mk +@@ -135,7 +135,7 @@ include $(ERL_TOP)/make/otp_release_targets.mk release_spec: opt $(INSTALL_DIR) "$(RELSYSDIR)/src" @@ -509,7 +509,7 @@ index 7ca59495ed..a52ade2fe3 100644 $(INSTALL_DATA) $(EXT_HRL_FILES) "$(RELSYSDIR)/include" $(INSTALL_DIR) "$(RELSYSDIR)/ebin" diff --git a/lib/os_mon/src/Makefile b/lib/os_mon/src/Makefile -index 5963351b0f..22c41137d0 100644 +index e2f4d5a090..57f21a145b 100644 --- a/lib/os_mon/src/Makefile +++ b/lib/os_mon/src/Makefile @@ -105,7 +105,6 @@ include $(ERL_TOP)/make/otp_release_targets.mk @@ -665,10 +665,10 @@ index adc2c4858f..89ce954e99 100644 $(INSTALL_DATA) $(TARGET_FILES) "$(RELSYSDIR)/ebin" # $(INSTALL_DIR) "$(RELSYSDIR)/include" diff --git a/lib/ssh/src/Makefile b/lib/ssh/src/Makefile -index 2b96020678..3e692d25b2 100644 +index 4985774f4c..afd93dc922 100644 --- a/lib/ssh/src/Makefile +++ b/lib/ssh/src/Makefile -@@ -148,7 +148,7 @@ include $(ERL_TOP)/make/otp_release_targets.mk +@@ -153,7 +153,7 @@ include $(ERL_TOP)/make/otp_release_targets.mk release_spec: opt $(INSTALL_DIR) "$(RELSYSDIR)/src" @@ -678,10 +678,10 @@ index 2b96020678..3e692d25b2 100644 $(INSTALL_DATA) $(BEHAVIOUR_TARGET_FILES) $(TARGET_FILES) $(APP_TARGET) \ $(APPUP_TARGET) "$(RELSYSDIR)/ebin" diff --git a/lib/ssl/src/Makefile b/lib/ssl/src/Makefile -index 03c39b4722..4a8fc58a18 100644 +index 0b99cdde52..7ffa86b1fc 100644 --- a/lib/ssl/src/Makefile +++ b/lib/ssl/src/Makefile -@@ -190,7 +190,7 @@ include $(ERL_TOP)/make/otp_release_targets.mk +@@ -196,7 +196,7 @@ include $(ERL_TOP)/make/otp_release_targets.mk release_spec: opt $(INSTALL_DIR) "$(RELSYSDIR)/src" @@ -691,10 +691,10 @@ index 03c39b4722..4a8fc58a18 100644 $(INSTALL_DATA) $(BEHAVIOUR_TARGET_FILES) $(TARGET_FILES) $(APP_TARGET) \ $(APPUP_TARGET) "$(RELSYSDIR)/ebin" diff --git a/lib/stdlib/src/Makefile b/lib/stdlib/src/Makefile -index 9d8a5f98f9..e5afdcfa27 100644 +index e3e0c9c03d..ff9bad32ab 100644 --- a/lib/stdlib/src/Makefile +++ b/lib/stdlib/src/Makefile -@@ -216,7 +216,6 @@ include $(ERL_TOP)/make/otp_release_targets.mk +@@ -223,7 +223,6 @@ include $(ERL_TOP)/make/otp_release_targets.mk release_spec: opt $(INSTALL_DIR) "$(RELSYSDIR)/src" diff --git a/otp-0007-Add-extra-search-directory.patch b/otp-0007-Add-extra-search-directory.patch index 18d8e5e..ed9e2ac 100644 --- a/otp-0007-Add-extra-search-directory.patch +++ b/otp-0007-Add-extra-search-directory.patch @@ -5,7 +5,7 @@ Subject: [PATCH] Add extra search directory Signed-off-by: Peter Lemenkov diff --git a/lib/kernel/src/code_server.erl b/lib/kernel/src/code_server.erl -index 126de66d13..ad926ea1da 100644 +index 4c4823eb38..de0ab149fb 100644 --- a/lib/kernel/src/code_server.erl +++ b/lib/kernel/src/code_server.erl @@ -79,11 +79,17 @@ init(Ref, Parent, [Root,Mode]) -> diff --git a/otp-0009-Load-man-pages-from-system-wide-directory.patch b/otp-0009-Load-man-pages-from-system-wide-directory.patch index 0b6cb3d..64c270b 100644 --- a/otp-0009-Load-man-pages-from-system-wide-directory.patch +++ b/otp-0009-Load-man-pages-from-system-wide-directory.patch @@ -7,10 +7,10 @@ Patch allows one to use standard man path with erl -man command. as required by Debian policy.) diff --git a/erts/etc/common/erlexec.c b/erts/etc/common/erlexec.c -index 681a4c1299..034f7902ae 100644 +index 890a5b381a..9f84a16353 100644 --- a/erts/etc/common/erlexec.c +++ b/erts/etc/common/erlexec.c -@@ -719,8 +719,10 @@ int main(int argc, char **argv) +@@ -721,8 +721,10 @@ int main(int argc, char **argv) error("-man not supported on Windows"); #else argv[i] = "man"; diff --git a/otp-0010-erl_child_setup-reduce-number-of-calls-to-close.patch b/otp-0010-erl_child_setup-reduce-number-of-calls-to-close.patch deleted file mode 100644 index 8739391..0000000 --- a/otp-0010-erl_child_setup-reduce-number-of-calls-to-close.patch +++ /dev/null @@ -1,57 +0,0 @@ -From: John Eckersberg -Date: Fri, 11 Oct 2019 13:06:20 -0400 -Subject: [PATCH] erl_child_setup: reduce number of calls to close() - -On systems without closefrom(), such as Linux, iterating over all -possible file descriptors and calling close() for each is inefficient. -This is markedly so when the maximum number of file descriptors has -been tuned to a large number. - -Instead, walk the open descriptors under /dev/fd and close only those -which are open. - -diff --git a/erts/emulator/sys/unix/erl_child_setup.c b/erts/emulator/sys/unix/erl_child_setup.c -index 129861ebd5..7ddd753136 100644 ---- a/erts/emulator/sys/unix/erl_child_setup.c -+++ b/erts/emulator/sys/unix/erl_child_setup.c -@@ -411,6 +411,7 @@ main(int argc, char *argv[]) - int uds_fd = 3, max_fd = 3; - #ifndef HAVE_CLOSEFROM - int i; -+ DIR *dir; - #endif - struct sigaction sa; - -@@ -426,11 +427,29 @@ main(int argc, char *argv[]) - #if defined(HAVE_CLOSEFROM) - closefrom(4); - #else -- for (i = 4; i < max_files; i++) -+ dir = opendir("/dev/fd"); -+ if (dir == NULL) { /* /dev/fd not available */ -+ for (i = 4; i < max_files; i++) - #if defined(__ANDROID__) -- if (i != system_properties_fd()) -+ if (i != system_properties_fd()) - #endif -- (void) close(i); -+ (void) close(i); -+ } else { -+ /* Iterate over fds obtained from /dev/fd */ -+ struct dirent *entry; -+ int dir_fd = dirfd(dir); -+ -+ while ((entry = readdir(dir)) != NULL) { -+ i = atoi(entry->d_name); -+#if defined(__ANDROID__) -+ if (i != system_properties_fd()) -+#endif -+ if (i >= 4 && i != dir_fd) -+ (void) close(i); -+ } -+ -+ closedir(dir); -+ } - #endif - - if (pipe(sigchld_pipe) < 0) { diff --git a/sources b/sources index d17587f..cb89363 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (otp-OTP-22.3.2.tar.gz) = 02333fed57394012834452aff38d9a3340c52b109b14e444b6e7975ac3a65485de1deda6ae6c732a28f75ca2518000de576f70497118306699e35af5f249a0d1 +SHA512 (otp-OTP-23.0-rc2.tar.gz) = 38c68e9731814911a867bb663802fb6b290d892097c1f834c5fad33c0f202c34a9237025d189553bcf8775cdf2e960072fad65d89dedb90ced7c34e13ee45c6f From 468685baa4a79dcbe10f4510c1c976dbd8a2e1bf Mon Sep 17 00:00:00 2001 From: Peter Lemenkov Date: Mon, 20 Apr 2020 14:01:52 +0200 Subject: [PATCH 002/135] Don't build jinterface man-page for arm Signed-off-by: Peter Lemenkov --- erlang.spec | 2 ++ 1 file changed, 2 insertions(+) diff --git a/erlang.spec b/erlang.spec index 0b1243d..2ce6608 100644 --- a/erlang.spec +++ b/erlang.spec @@ -1300,7 +1300,9 @@ useradd -r -g epmd -d /dev/null -s /sbin/nologin \ %dir %{_javadir}/%{name}/ %{_javadir}/%{name}/OtpErlang.jar %{_libdir}/erlang/lib/jinterface-*/ +%if %{with doc} %{_mandir}/man3/jinterface.* +%endif %endif # __with_java %files kernel From 8bb7bd01fa5d7fb773de5184cc25ca6b3a70c82b Mon Sep 17 00:00:00 2001 From: Peter Lemenkov Date: Thu, 23 Apr 2020 00:06:40 +0200 Subject: [PATCH 003/135] Erlang ver. 23.0-rc3 Signed-off-by: Peter Lemenkov --- erlang.spec | 13 ++++++++----- otp-0003-Do-not-install-C-sources.patch | 4 ++-- otp-0006-Do-not-install-erlang-sources.patch | 12 ++++++------ sources | 2 +- 4 files changed, 17 insertions(+), 14 deletions(-) diff --git a/erlang.spec b/erlang.spec index 2ce6608..7c5c0fc 100644 --- a/erlang.spec +++ b/erlang.spec @@ -66,7 +66,7 @@ Name: erlang Version: 23.0 -Release: 0.1.rc2%{?dist} +Release: 0.2.rc3%{?dist} Summary: General-purpose programming language and runtime environment License: ASL 2.0 @@ -75,7 +75,7 @@ URL: https://www.erlang.org VCS: scm:git:https://github.com/erlang/otp %endif #Source0: https://github.com/erlang/otp/archive/OTP-%{version}/otp-OTP-%{version}.tar.gz -Source0: https://github.com/erlang/otp/archive/OTP-%{version}-rc2/otp-OTP-%{version}-rc2.tar.gz +Source0: https://github.com/erlang/otp/archive/OTP-%{version}-rc3/otp-OTP-%{version}-rc3.tar.gz Source5: epmd.service Source6: epmd.socket Source7: epmd@.service @@ -712,7 +712,7 @@ Provides support for XML 1.0. ### END OF AUTOGENERATED LIST ### %prep -%autosetup -p1 -n otp-OTP-%{version}-rc2 +%autosetup -p1 -n otp-OTP-%{version}-rc3 # FIXME we should come up with a better solution # remove shipped zlib sources @@ -725,9 +725,9 @@ Provides support for XML 1.0. # Set up proper cflags/cxxflags first %ifarch sparcv9 sparc64 -ERL_FLAGS="${RPM_OPT_FLAGS} -mcpu=ultrasparc -fno-strict-aliasing -fcommon" +ERL_FLAGS="${RPM_OPT_FLAGS} -mcpu=ultrasparc -fno-strict-aliasing" %else -ERL_FLAGS="${RPM_OPT_FLAGS} -fno-strict-aliasing -fcommon" +ERL_FLAGS="${RPM_OPT_FLAGS} -fno-strict-aliasing" %endif # Kernel poll is buggy on s390x for unknown reasons, disable it @@ -1954,6 +1954,9 @@ useradd -r -g epmd -d /dev/null -s /sbin/nologin \ %changelog +* Thu Apr 23 2020 Peter Lemenkov - 23.0-0.2.rc3 +- Ver. 23.0-rc3 + * Sun Apr 19 2020 Peter Lemenkov - 23.0-0.1.rc2 - Ver. 23.0-rc2 diff --git a/otp-0003-Do-not-install-C-sources.patch b/otp-0003-Do-not-install-C-sources.patch index 340a15a..5940508 100644 --- a/otp-0003-Do-not-install-C-sources.patch +++ b/otp-0003-Do-not-install-C-sources.patch @@ -48,10 +48,10 @@ index c9d5a7064a..5f2dfb8e02 100644 release_docs_spec: diff --git a/lib/erl_interface/src/Makefile.in b/lib/erl_interface/src/Makefile.in -index 55827ce097..e01ab3ef36 100644 +index 5a07b5542a..dd16380160 100644 --- a/lib/erl_interface/src/Makefile.in +++ b/lib/erl_interface/src/Makefile.in -@@ -748,14 +748,13 @@ ifneq ($(EXE_TARGETS),) +@@ -749,14 +749,13 @@ ifneq ($(EXE_TARGETS),) $(INSTALL_PROGRAM) $(EXE_TARGETS) "$(RELSYSDIR)/bin" endif $(INSTALL_DATA) $(EXTRA) "$(RELSYSDIR)/src" diff --git a/otp-0006-Do-not-install-erlang-sources.patch b/otp-0006-Do-not-install-erlang-sources.patch index 54605e7..875ec9d 100644 --- a/otp-0006-Do-not-install-erlang-sources.patch +++ b/otp-0006-Do-not-install-erlang-sources.patch @@ -8,7 +8,7 @@ Signed-off-by: Peter Lemenkov Signed-off-by: Hans Ulrich Niedermann diff --git a/erts/preloaded/src/Makefile b/erts/preloaded/src/Makefile -index d2153f23e1..1eb33a5922 100644 +index b0c205cec8..7fad1ddc75 100644 --- a/erts/preloaded/src/Makefile +++ b/erts/preloaded/src/Makefile @@ -121,8 +121,6 @@ $(APP_TARGET): $(APP_SRC) $(ERL_TOP)/erts/vsn.mk @@ -21,10 +21,10 @@ index d2153f23e1..1eb33a5922 100644 $(INSTALL_DATA) $(STATIC_TARGET_FILES) $(APP_TARGET) "$(RELSYSDIR)/ebin" diff --git a/lib/asn1/src/Makefile b/lib/asn1/src/Makefile -index 1c3bdfcaa8..8c2e6c9fbc 100644 +index a6ff72898c..35d4530f32 100644 --- a/lib/asn1/src/Makefile +++ b/lib/asn1/src/Makefile -@@ -154,7 +154,7 @@ release_spec: opt +@@ -155,7 +155,7 @@ release_spec: opt $(INSTALL_DIR) "$(RELSYSDIR)/ebin" $(INSTALL_DATA) $(TARGET_FILES) $(APP_TARGET) $(APPUP_TARGET) "$(RELSYSDIR)/ebin" $(INSTALL_DIR) "$(RELSYSDIR)/src" @@ -369,10 +369,10 @@ index ec1ae70305..88c084ef58 100644 $(INSTALL_DATA) $(EXTERNAL_HRL_FILES) "$(RELSYSDIR)/include" $(INSTALL_DIR) "$(RELSYSDIR)/ebin" diff --git a/lib/kernel/src/Makefile b/lib/kernel/src/Makefile -index 07f4f2304c..9c8913a5c1 100644 +index 6c75bcffee..d15bdb867a 100644 --- a/lib/kernel/src/Makefile +++ b/lib/kernel/src/Makefile -@@ -235,7 +235,6 @@ include $(ERL_TOP)/make/otp_release_targets.mk +@@ -236,7 +236,6 @@ include $(ERL_TOP)/make/otp_release_targets.mk release_spec: opt $(INSTALL_DIR) "$(RELSYSDIR)/src" @@ -678,7 +678,7 @@ index 4985774f4c..afd93dc922 100644 $(INSTALL_DATA) $(BEHAVIOUR_TARGET_FILES) $(TARGET_FILES) $(APP_TARGET) \ $(APPUP_TARGET) "$(RELSYSDIR)/ebin" diff --git a/lib/ssl/src/Makefile b/lib/ssl/src/Makefile -index 0b99cdde52..7ffa86b1fc 100644 +index d53b73a747..c74b9b8ca3 100644 --- a/lib/ssl/src/Makefile +++ b/lib/ssl/src/Makefile @@ -196,7 +196,7 @@ include $(ERL_TOP)/make/otp_release_targets.mk diff --git a/sources b/sources index cb89363..611512a 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (otp-OTP-23.0-rc2.tar.gz) = 38c68e9731814911a867bb663802fb6b290d892097c1f834c5fad33c0f202c34a9237025d189553bcf8775cdf2e960072fad65d89dedb90ced7c34e13ee45c6f +SHA512 (otp-OTP-23.0-rc3.tar.gz) = 4b900016687c6b66570d9ed3a70859d91c9c5bdbb0deadd0c658c94ed1156816cd14bb57dbf2e9c9d984f643ef25842a248b10813b227ecb3e8dcdd29e8da1ed From cdf874dc770e0c4240c85137a7856d1bee234c71 Mon Sep 17 00:00:00 2001 From: Peter Lemenkov Date: Fri, 1 May 2020 17:05:41 +0200 Subject: [PATCH 004/135] We no longer ship man 6 ssh Signed-off-by: Peter Lemenkov --- erlang.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erlang.spec b/erlang.spec index 7c5c0fc..9b05d66 100644 --- a/erlang.spec +++ b/erlang.spec @@ -1551,7 +1551,7 @@ useradd -r -g epmd -d /dev/null -s /sbin/nologin \ %{_mandir}/man3/ssh_server_key_api.* %{_mandir}/man3/ssh_sftp.* %{_mandir}/man3/ssh_sftpd.* -%{_mandir}/man6/ssh.* +#%%{_mandir}/man6/ssh.* %endif %files ssl From 755939eed8e374a5c86fa78ad2e978c1f6aaa3c0 Mon Sep 17 00:00:00 2001 From: Peter Lemenkov Date: Fri, 1 May 2020 18:05:09 +0200 Subject: [PATCH 005/135] We no longer ship man 6 ssh - we ship man 6 SSH Signed-off-by: Peter Lemenkov --- erlang.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erlang.spec b/erlang.spec index 9b05d66..d15f7d7 100644 --- a/erlang.spec +++ b/erlang.spec @@ -1551,7 +1551,7 @@ useradd -r -g epmd -d /dev/null -s /sbin/nologin \ %{_mandir}/man3/ssh_server_key_api.* %{_mandir}/man3/ssh_sftp.* %{_mandir}/man3/ssh_sftpd.* -#%%{_mandir}/man6/ssh.* +%{_mandir}/man6/SSH.* %endif %files ssl From 4a788b08bd9b469753f2b46060faf53061a46059 Mon Sep 17 00:00:00 2001 From: Peter Lemenkov Date: Wed, 13 May 2020 11:43:44 +0200 Subject: [PATCH 006/135] Erlang ver. 23.0 Signed-off-by: Peter Lemenkov --- erlang.spec | 10 ++++++---- ...format-man-pages-and-do-not-install-miscellan.patch | 8 ++++---- otp-0003-Do-not-install-C-sources.patch | 6 +++--- ...009-Load-man-pages-from-system-wide-directory.patch | 4 ++-- sources | 2 +- 5 files changed, 16 insertions(+), 14 deletions(-) diff --git a/erlang.spec b/erlang.spec index d15f7d7..253595f 100644 --- a/erlang.spec +++ b/erlang.spec @@ -66,7 +66,7 @@ Name: erlang Version: 23.0 -Release: 0.2.rc3%{?dist} +Release: 1%{?dist} Summary: General-purpose programming language and runtime environment License: ASL 2.0 @@ -74,8 +74,7 @@ URL: https://www.erlang.org %if ! (0%{?rhel} && 0%{?rhel} <= 6) VCS: scm:git:https://github.com/erlang/otp %endif -#Source0: https://github.com/erlang/otp/archive/OTP-%{version}/otp-OTP-%{version}.tar.gz -Source0: https://github.com/erlang/otp/archive/OTP-%{version}-rc3/otp-OTP-%{version}-rc3.tar.gz +Source0: https://github.com/erlang/otp/archive/OTP-%{version}/otp-OTP-%{version}.tar.gz Source5: epmd.service Source6: epmd.socket Source7: epmd@.service @@ -712,7 +711,7 @@ Provides support for XML 1.0. ### END OF AUTOGENERATED LIST ### %prep -%autosetup -p1 -n otp-OTP-%{version}-rc3 +%autosetup -p1 -n otp-OTP-%{version} # FIXME we should come up with a better solution # remove shipped zlib sources @@ -1954,6 +1953,9 @@ useradd -r -g epmd -d /dev/null -s /sbin/nologin \ %changelog +* Wed May 13 2020 Peter Lemenkov - 23.0-1 +- Ver. 23.0 + * Thu Apr 23 2020 Peter Lemenkov - 23.0-0.2.rc3 - Ver. 23.0-rc3 diff --git a/otp-0001-Do-not-format-man-pages-and-do-not-install-miscellan.patch b/otp-0001-Do-not-format-man-pages-and-do-not-install-miscellan.patch index 418b2a8..3bb6243 100644 --- a/otp-0001-Do-not-format-man-pages-and-do-not-install-miscellan.patch +++ b/otp-0001-Do-not-format-man-pages-and-do-not-install-miscellan.patch @@ -6,10 +6,10 @@ Subject: [PATCH] Do not format man-pages and do not install miscellaneous Signed-off-by: Peter Lemenkov diff --git a/erts/etc/common/Makefile.in b/erts/etc/common/Makefile.in -index ef40341c87..84e6c3cb2f 100644 +index 650ab1f6fe..fc9a200c3c 100644 --- a/erts/etc/common/Makefile.in +++ b/erts/etc/common/Makefile.in -@@ -501,10 +501,6 @@ endif +@@ -521,10 +521,6 @@ endif ifneq ($(INSTALL_TOP_BIN),) $(INSTALL_PROGRAM) $(INSTALL_TOP_BIN) "$(RELEASE_PATH)" endif @@ -21,10 +21,10 @@ index ef40341c87..84e6c3cb2f 100644 $(INSTALL_DIR) "$(RELEASE_PATH)/erts-$(VSN)/src" $(INSTALL_DATA) $(INSTALL_SRC) "$(RELEASE_PATH)/erts-$(VSN)/src" diff --git a/erts/etc/unix/Install.src b/erts/etc/unix/Install.src -index e4b842877c..382561821f 100644 +index 2dbf628972..5151f5130a 100644 --- a/erts/etc/unix/Install.src +++ b/erts/etc/unix/Install.src -@@ -141,14 +141,5 @@ cp -p ../releases/%I_SYSTEM_VSN%/start_*.boot . +@@ -142,14 +142,5 @@ cp -p ../releases/%I_SYSTEM_VSN%/start_*.boot . cp -p ../releases/%I_SYSTEM_VSN%/no_dot_erlang.boot . cp -p $Name.boot start.boot cp -p ../releases/%I_SYSTEM_VSN%/$Name.script start.script diff --git a/otp-0003-Do-not-install-C-sources.patch b/otp-0003-Do-not-install-C-sources.patch index 5940508..920480e 100644 --- a/otp-0003-Do-not-install-C-sources.patch +++ b/otp-0003-Do-not-install-C-sources.patch @@ -48,12 +48,12 @@ index c9d5a7064a..5f2dfb8e02 100644 release_docs_spec: diff --git a/lib/erl_interface/src/Makefile.in b/lib/erl_interface/src/Makefile.in -index 5a07b5542a..dd16380160 100644 +index 7ff3f09abb..2b94ce7de0 100644 --- a/lib/erl_interface/src/Makefile.in +++ b/lib/erl_interface/src/Makefile.in -@@ -749,14 +749,13 @@ ifneq ($(EXE_TARGETS),) +@@ -748,14 +748,13 @@ release: opt + $(INSTALL_DATA) $(OBJ_TARGETS) "$(RELEASE_PATH)/usr/lib" $(INSTALL_PROGRAM) $(EXE_TARGETS) "$(RELSYSDIR)/bin" - endif $(INSTALL_DATA) $(EXTRA) "$(RELSYSDIR)/src" - $(INSTALL_DATA) connect/*.[ch] "$(RELSYSDIR)/src/connect" - $(INSTALL_DATA) decode/*.[ch] "$(RELSYSDIR)/src/decode" diff --git a/otp-0009-Load-man-pages-from-system-wide-directory.patch b/otp-0009-Load-man-pages-from-system-wide-directory.patch index 64c270b..edc2a75 100644 --- a/otp-0009-Load-man-pages-from-system-wide-directory.patch +++ b/otp-0009-Load-man-pages-from-system-wide-directory.patch @@ -7,10 +7,10 @@ Patch allows one to use standard man path with erl -man command. as required by Debian policy.) diff --git a/erts/etc/common/erlexec.c b/erts/etc/common/erlexec.c -index 890a5b381a..9f84a16353 100644 +index 9a2488c93c..b0e46745db 100644 --- a/erts/etc/common/erlexec.c +++ b/erts/etc/common/erlexec.c -@@ -721,8 +721,10 @@ int main(int argc, char **argv) +@@ -726,8 +726,10 @@ int main(int argc, char **argv) error("-man not supported on Windows"); #else argv[i] = "man"; diff --git a/sources b/sources index 611512a..4cee182 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (otp-OTP-23.0-rc3.tar.gz) = 4b900016687c6b66570d9ed3a70859d91c9c5bdbb0deadd0c658c94ed1156816cd14bb57dbf2e9c9d984f643ef25842a248b10813b227ecb3e8dcdd29e8da1ed +SHA512 (otp-OTP-23.0.tar.gz) = e5d1e4b52951234f8bd4f8db7bef59a330d2783aae317468e0b94ad23cd55a60afba5d3841efad49dfcda6d7ba0a51e60208bb6a950951683fd297df56636f83 From 9946af651b8655afbcf4956feff3731bce581a06 Mon Sep 17 00:00:00 2001 From: Peter Lemenkov Date: Wed, 13 May 2020 12:38:14 +0200 Subject: [PATCH 007/135] new executable - erl_call Signed-off-by: Peter Lemenkov --- erlang.spec | 2 ++ 1 file changed, 2 insertions(+) diff --git a/erlang.spec b/erlang.spec index 253595f..70fd0bb 100644 --- a/erlang.spec +++ b/erlang.spec @@ -1103,6 +1103,8 @@ useradd -r -g epmd -d /dev/null -s /sbin/nologin \ %endif %files erl_interface +%{_libdir}/erlang/bin/erl_call +%{_libdir}/erlang/erts-*/bin/erl_call %{_libdir}/erlang/lib/erl_interface-*/ %if %{with doc} %{_mandir}/man1/erl_call.* From 989a16e8e740b7a19a22e98e2cd5f40a5e948291 Mon Sep 17 00:00:00 2001 From: Peter Lemenkov Date: Wed, 20 May 2020 15:54:04 +0200 Subject: [PATCH 008/135] Erlang ver. 23.0.1 Signed-off-by: Peter Lemenkov --- erlang.spec | 5 ++++- sources | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/erlang.spec b/erlang.spec index 70fd0bb..6c4f32f 100644 --- a/erlang.spec +++ b/erlang.spec @@ -65,7 +65,7 @@ Name: erlang -Version: 23.0 +Version: 23.0.1 Release: 1%{?dist} Summary: General-purpose programming language and runtime environment @@ -1955,6 +1955,9 @@ useradd -r -g epmd -d /dev/null -s /sbin/nologin \ %changelog +* Wed May 20 2020 Peter Lemenkov - 23.0.1-1 +- Ver. 23.0.1 + * Wed May 13 2020 Peter Lemenkov - 23.0-1 - Ver. 23.0 diff --git a/sources b/sources index 4cee182..8a398be 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (otp-OTP-23.0.tar.gz) = e5d1e4b52951234f8bd4f8db7bef59a330d2783aae317468e0b94ad23cd55a60afba5d3841efad49dfcda6d7ba0a51e60208bb6a950951683fd297df56636f83 +SHA512 (otp-OTP-23.0.1.tar.gz) = fc9114312327f2b7289078b29ae658a1100c860dfae03e892c1b316007b5ff286cfc301772b336eb1f5b983b3d5f507f03eff2917f418b1b9cb9714f42a59db4 From 7595736931d498f4a26a40f770aeae021f6de277 Mon Sep 17 00:00:00 2001 From: Peter Lemenkov Date: Thu, 28 May 2020 21:34:39 +0200 Subject: [PATCH 009/135] Erlang ver. 23.0.2 Signed-off-by: Peter Lemenkov --- erlang.spec | 5 ++++- sources | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/erlang.spec b/erlang.spec index 6c4f32f..6816eed 100644 --- a/erlang.spec +++ b/erlang.spec @@ -65,7 +65,7 @@ Name: erlang -Version: 23.0.1 +Version: 23.0.2 Release: 1%{?dist} Summary: General-purpose programming language and runtime environment @@ -1955,6 +1955,9 @@ useradd -r -g epmd -d /dev/null -s /sbin/nologin \ %changelog +* Thu May 28 2020 Peter Lemenkov - 23.0.2-1 +- Ver. 23.0.2 + * Wed May 20 2020 Peter Lemenkov - 23.0.1-1 - Ver. 23.0.1 diff --git a/sources b/sources index 8a398be..4d9aa98 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (otp-OTP-23.0.1.tar.gz) = fc9114312327f2b7289078b29ae658a1100c860dfae03e892c1b316007b5ff286cfc301772b336eb1f5b983b3d5f507f03eff2917f418b1b9cb9714f42a59db4 +SHA512 (otp-OTP-23.0.2.tar.gz) = 82764ab879ea7588de505c6d58716999dc207163d8dcded226fe6849a3239c00088cb614558b77c038dcad1440f9b2e3ca2b2f1251df5d71b423d3f6e7497c6e From f4bbbaa33f7e53cc1c5f2b87e3ec4e17a8957f94 Mon Sep 17 00:00:00 2001 From: Jiri Date: Fri, 10 Jul 2020 18:40:03 +0200 Subject: [PATCH 010/135] Rebuilt for JDK-11 --- erlang.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/erlang.spec b/erlang.spec index 6816eed..7f6f0d8 100644 --- a/erlang.spec +++ b/erlang.spec @@ -66,7 +66,7 @@ Name: erlang Version: 23.0.2 -Release: 1%{?dist} +Release: 2%{?dist} Summary: General-purpose programming language and runtime environment License: ASL 2.0 @@ -1955,6 +1955,9 @@ useradd -r -g epmd -d /dev/null -s /sbin/nologin \ %changelog +* Fri Jul 10 2020 Jiri Vanek - 23.0.2-2 +- Rebuilt for JDK-11, see https://fedoraproject.org/wiki/Changes/Java11 + * Thu May 28 2020 Peter Lemenkov - 23.0.2-1 - Ver. 23.0.2 From e322f8d8e30f6a4d87184293031f67c335ab1586 Mon Sep 17 00:00:00 2001 From: Peter Lemenkov Date: Mon, 20 Jul 2020 22:16:34 +0200 Subject: [PATCH 011/135] Erlang ver. 23.0.3 Signed-off-by: Peter Lemenkov --- erlang.spec | 7 +++++-- sources | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/erlang.spec b/erlang.spec index 7f6f0d8..7c31779 100644 --- a/erlang.spec +++ b/erlang.spec @@ -65,8 +65,8 @@ Name: erlang -Version: 23.0.2 -Release: 2%{?dist} +Version: 23.0.3 +Release: 1%{?dist} Summary: General-purpose programming language and runtime environment License: ASL 2.0 @@ -1955,6 +1955,9 @@ useradd -r -g epmd -d /dev/null -s /sbin/nologin \ %changelog +* Mon Jul 20 2020 Peter Lemenkov - 23.0.3-1 +- Ver. 23.0.3 + * Fri Jul 10 2020 Jiri Vanek - 23.0.2-2 - Rebuilt for JDK-11, see https://fedoraproject.org/wiki/Changes/Java11 diff --git a/sources b/sources index 4d9aa98..64f9ff7 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (otp-OTP-23.0.2.tar.gz) = 82764ab879ea7588de505c6d58716999dc207163d8dcded226fe6849a3239c00088cb614558b77c038dcad1440f9b2e3ca2b2f1251df5d71b423d3f6e7497c6e +SHA512 (otp-OTP-23.0.3.tar.gz) = f7752bfa06dd283b36e330ba4270ee37ca759be697c804e6ac249becdc67de4bccb43f60a8d47f9a094d778f11fb17cf6d29de8ce60471aeb18c5fbd64cdfb4d From bb67f2a92efbbac96bf5d26b5ec3f9eb6f5ae76f Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Mon, 27 Jul 2020 16:39:18 +0000 Subject: [PATCH 012/135] - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- erlang.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/erlang.spec b/erlang.spec index 7c31779..b5cbdaa 100644 --- a/erlang.spec +++ b/erlang.spec @@ -66,7 +66,7 @@ Name: erlang Version: 23.0.3 -Release: 1%{?dist} +Release: 2%{?dist} Summary: General-purpose programming language and runtime environment License: ASL 2.0 @@ -1955,6 +1955,9 @@ useradd -r -g epmd -d /dev/null -s /sbin/nologin \ %changelog +* Mon Jul 27 2020 Fedora Release Engineering - 23.0.3-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + * Mon Jul 20 2020 Peter Lemenkov - 23.0.3-1 - Ver. 23.0.3 From 2b4952392ecb50a3548de1e66a05a7b26e1a8a50 Mon Sep 17 00:00:00 2001 From: Peter Lemenkov Date: Tue, 15 Sep 2020 16:16:56 +0200 Subject: [PATCH 013/135] Erlang ver. 23.0.4 Signed-off-by: Peter Lemenkov --- erlang.spec | 7 +++++-- sources | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/erlang.spec b/erlang.spec index b5cbdaa..87cd3d4 100644 --- a/erlang.spec +++ b/erlang.spec @@ -65,8 +65,8 @@ Name: erlang -Version: 23.0.3 -Release: 2%{?dist} +Version: 23.0.4 +Release: 1%{?dist} Summary: General-purpose programming language and runtime environment License: ASL 2.0 @@ -1955,6 +1955,9 @@ useradd -r -g epmd -d /dev/null -s /sbin/nologin \ %changelog +* Tue Sep 15 2020 Peter Lemenkov - 23.0.4-1 +- Ver. 23.0.4 + * Mon Jul 27 2020 Fedora Release Engineering - 23.0.3-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild diff --git a/sources b/sources index 64f9ff7..145ce1c 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (otp-OTP-23.0.3.tar.gz) = f7752bfa06dd283b36e330ba4270ee37ca759be697c804e6ac249becdc67de4bccb43f60a8d47f9a094d778f11fb17cf6d29de8ce60471aeb18c5fbd64cdfb4d +SHA512 (otp-OTP-23.0.4.tar.gz) = 53d4b7a5e76113bb3a9695a266e58dbebb57887b1eea4e8acb56bb85d194295231d739719d526dfc6d1f0bf745d7f059fdf5ec9dc79859f5b16a75c4d0a6b348 From c07d3ab79fd0b2000c2d8dac5373ed62f6969351 Mon Sep 17 00:00:00 2001 From: Peter Lemenkov Date: Sat, 3 Oct 2020 22:09:17 +0200 Subject: [PATCH 014/135] Erlang ver. 23.1.1 Signed-off-by: Peter Lemenkov --- erlang.spec | 5 ++++- ...rmat-man-pages-and-do-not-install-miscellan.patch | 4 ++-- otp-0002-Remove-rpath.patch | 2 +- otp-0003-Do-not-install-C-sources.patch | 6 +++--- otp-0006-Do-not-install-erlang-sources.patch | 12 ++++++------ ...9-Load-man-pages-from-system-wide-directory.patch | 4 ++-- sources | 2 +- 7 files changed, 19 insertions(+), 16 deletions(-) diff --git a/erlang.spec b/erlang.spec index 87cd3d4..48b15cd 100644 --- a/erlang.spec +++ b/erlang.spec @@ -65,7 +65,7 @@ Name: erlang -Version: 23.0.4 +Version: 23.1.1 Release: 1%{?dist} Summary: General-purpose programming language and runtime environment @@ -1955,6 +1955,9 @@ useradd -r -g epmd -d /dev/null -s /sbin/nologin \ %changelog +* Sat Oct 3 2020 Peter Lemenkov - 23.1.1-1 +- Ver. 23.1.1 + * Tue Sep 15 2020 Peter Lemenkov - 23.0.4-1 - Ver. 23.0.4 diff --git a/otp-0001-Do-not-format-man-pages-and-do-not-install-miscellan.patch b/otp-0001-Do-not-format-man-pages-and-do-not-install-miscellan.patch index 3bb6243..3fd02f3 100644 --- a/otp-0001-Do-not-format-man-pages-and-do-not-install-miscellan.patch +++ b/otp-0001-Do-not-format-man-pages-and-do-not-install-miscellan.patch @@ -6,10 +6,10 @@ Subject: [PATCH] Do not format man-pages and do not install miscellaneous Signed-off-by: Peter Lemenkov diff --git a/erts/etc/common/Makefile.in b/erts/etc/common/Makefile.in -index 650ab1f6fe..fc9a200c3c 100644 +index 7a2b821c46..f5f3ee69cb 100644 --- a/erts/etc/common/Makefile.in +++ b/erts/etc/common/Makefile.in -@@ -521,10 +521,6 @@ endif +@@ -528,10 +528,6 @@ endif ifneq ($(INSTALL_TOP_BIN),) $(INSTALL_PROGRAM) $(INSTALL_TOP_BIN) "$(RELEASE_PATH)" endif diff --git a/otp-0002-Remove-rpath.patch b/otp-0002-Remove-rpath.patch index 8c1671d..06c9b9b 100644 --- a/otp-0002-Remove-rpath.patch +++ b/otp-0002-Remove-rpath.patch @@ -5,7 +5,7 @@ Subject: [PATCH] Remove rpath Signed-off-by: Peter Lemenkov diff --git a/lib/crypto/c_src/Makefile.in b/lib/crypto/c_src/Makefile.in -index d06dc95aa4..c9d5a7064a 100644 +index 786fbc1031..530022eb0d 100644 --- a/lib/crypto/c_src/Makefile.in +++ b/lib/crypto/c_src/Makefile.in @@ -114,7 +114,7 @@ TEST_ENGINE_LIB = $(LIBDIR)/otp_test_engine$(TYPEMARKER).@DED_EXT@ diff --git a/otp-0003-Do-not-install-C-sources.patch b/otp-0003-Do-not-install-C-sources.patch index 920480e..befada3 100644 --- a/otp-0003-Do-not-install-C-sources.patch +++ b/otp-0003-Do-not-install-C-sources.patch @@ -14,7 +14,7 @@ https://bugzilla.redhat.com/818419 Signed-off-by: Peter Lemenkov diff --git a/lib/asn1/c_src/Makefile b/lib/asn1/c_src/Makefile -index 1f714df357..95835d6ed2 100644 +index cb606fd74e..48a7c2f4f1 100644 --- a/lib/asn1/c_src/Makefile +++ b/lib/asn1/c_src/Makefile @@ -136,8 +136,6 @@ include $(ERL_TOP)/make/otp_release_targets.mk @@ -27,10 +27,10 @@ index 1f714df357..95835d6ed2 100644 release_docs_spec: diff --git a/lib/crypto/c_src/Makefile.in b/lib/crypto/c_src/Makefile.in -index c9d5a7064a..5f2dfb8e02 100644 +index 530022eb0d..a37eeb1b12 100644 --- a/lib/crypto/c_src/Makefile.in +++ b/lib/crypto/c_src/Makefile.in -@@ -223,16 +223,11 @@ docs: +@@ -225,16 +225,11 @@ docs: include $(ERL_TOP)/make/otp_release_targets.mk release_spec: opt diff --git a/otp-0006-Do-not-install-erlang-sources.patch b/otp-0006-Do-not-install-erlang-sources.patch index 875ec9d..5c97b4f 100644 --- a/otp-0006-Do-not-install-erlang-sources.patch +++ b/otp-0006-Do-not-install-erlang-sources.patch @@ -193,10 +193,10 @@ index b6347d8b6d..a695d2cc2d 100644 $(INSTALL_DIR) "$(RELSYSDIR)/include" $(INSTALL_DATA) $(HRL_FILES) "$(RELSYSDIR)/include" diff --git a/lib/eunit/src/Makefile b/lib/eunit/src/Makefile -index 3510d3cc93..9179e9b4c2 100644 +index 32f75202a0..a89fa7f2d2 100644 --- a/lib/eunit/src/Makefile +++ b/lib/eunit/src/Makefile -@@ -120,7 +120,6 @@ release_spec: opt +@@ -121,7 +121,6 @@ release_spec: opt $(INSTALL_DIR) "$(RELSYSDIR)/ebin" $(INSTALL_DATA) $(PARSE_TRANSFORM_BIN) $(OBJECTS) "$(RELSYSDIR)/ebin" $(INSTALL_DIR) "$(RELSYSDIR)/src" @@ -549,10 +549,10 @@ index 1fef168463..e5411b903b 100644 $(INSTALL_DATA) $(TARGET_FILES) "$(RELSYSDIR)/ebin" diff --git a/lib/public_key/src/Makefile b/lib/public_key/src/Makefile -index e61390bce3..6ed6c2cf9f 100644 +index 76bdffe089..fc5e4dfa8e 100644 --- a/lib/public_key/src/Makefile +++ b/lib/public_key/src/Makefile -@@ -109,8 +109,6 @@ $(APPUP_TARGET): $(APPUP_SRC) ../vsn.mk +@@ -110,8 +110,6 @@ $(APPUP_TARGET): $(APPUP_SRC) ../vsn.mk include $(ERL_TOP)/make/otp_release_targets.mk release_spec: opt @@ -678,10 +678,10 @@ index 4985774f4c..afd93dc922 100644 $(INSTALL_DATA) $(BEHAVIOUR_TARGET_FILES) $(TARGET_FILES) $(APP_TARGET) \ $(APPUP_TARGET) "$(RELSYSDIR)/ebin" diff --git a/lib/ssl/src/Makefile b/lib/ssl/src/Makefile -index d53b73a747..c74b9b8ca3 100644 +index b0f4cfd2da..122d4d5c31 100644 --- a/lib/ssl/src/Makefile +++ b/lib/ssl/src/Makefile -@@ -196,7 +196,7 @@ include $(ERL_TOP)/make/otp_release_targets.mk +@@ -201,7 +201,7 @@ include $(ERL_TOP)/make/otp_release_targets.mk release_spec: opt $(INSTALL_DIR) "$(RELSYSDIR)/src" diff --git a/otp-0009-Load-man-pages-from-system-wide-directory.patch b/otp-0009-Load-man-pages-from-system-wide-directory.patch index edc2a75..93f3ccf 100644 --- a/otp-0009-Load-man-pages-from-system-wide-directory.patch +++ b/otp-0009-Load-man-pages-from-system-wide-directory.patch @@ -7,10 +7,10 @@ Patch allows one to use standard man path with erl -man command. as required by Debian policy.) diff --git a/erts/etc/common/erlexec.c b/erts/etc/common/erlexec.c -index 9a2488c93c..b0e46745db 100644 +index 59dcf700d7..dc9cb5828a 100644 --- a/erts/etc/common/erlexec.c +++ b/erts/etc/common/erlexec.c -@@ -726,8 +726,10 @@ int main(int argc, char **argv) +@@ -727,8 +727,10 @@ int main(int argc, char **argv) error("-man not supported on Windows"); #else argv[i] = "man"; diff --git a/sources b/sources index 145ce1c..92b7978 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (otp-OTP-23.0.4.tar.gz) = 53d4b7a5e76113bb3a9695a266e58dbebb57887b1eea4e8acb56bb85d194295231d739719d526dfc6d1f0bf745d7f059fdf5ec9dc79859f5b16a75c4d0a6b348 +SHA512 (otp-OTP-23.1.1.tar.gz) = 572164e601796bc7b0df3818c859b23872f148dcc72f44f611d9d5684b0c9974b00496aa0fd521dc01d0d3481556b6641d3cbd859bd7bfadefd15115728d16d9 From 7b0e9887acc89e6f31f7d26d181b5908be67ecd0 Mon Sep 17 00:00:00 2001 From: Peter Lemenkov Date: Tue, 17 Nov 2020 17:52:05 +0100 Subject: [PATCH 015/135] Erlang ver. 23.1.3 Signed-off-by: Peter Lemenkov --- erlang.spec | 5 ++++- sources | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/erlang.spec b/erlang.spec index 48b15cd..76e6bf0 100644 --- a/erlang.spec +++ b/erlang.spec @@ -65,7 +65,7 @@ Name: erlang -Version: 23.1.1 +Version: 23.1.3 Release: 1%{?dist} Summary: General-purpose programming language and runtime environment @@ -1955,6 +1955,9 @@ useradd -r -g epmd -d /dev/null -s /sbin/nologin \ %changelog +* Tue Nov 17 2020 Peter Lemenkov - 23.1.3-1 +- Ver. 23.1.3 + * Sat Oct 3 2020 Peter Lemenkov - 23.1.1-1 - Ver. 23.1.1 diff --git a/sources b/sources index 92b7978..7a1c818 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (otp-OTP-23.1.1.tar.gz) = 572164e601796bc7b0df3818c859b23872f148dcc72f44f611d9d5684b0c9974b00496aa0fd521dc01d0d3481556b6641d3cbd859bd7bfadefd15115728d16d9 +SHA512 (otp-OTP-23.1.3.tar.gz) = ae88070b226df54c22693887352d3e0bd8cc3f77a872731cf52b59c386c0416efdc7f00db2690f4ab566e95d31fc828e4039ae1e9914fe35220d354c12bf086c From 9315954432e54b20f156cf3f9f491d99b0bcf8a0 Mon Sep 17 00:00:00 2001 From: Peter Lemenkov Date: Fri, 20 Nov 2020 17:20:22 +0100 Subject: [PATCH 016/135] Erlang ver. 23.1.4 Signed-off-by: Peter Lemenkov --- erlang.spec | 5 ++++- sources | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/erlang.spec b/erlang.spec index 76e6bf0..aa1798b 100644 --- a/erlang.spec +++ b/erlang.spec @@ -65,7 +65,7 @@ Name: erlang -Version: 23.1.3 +Version: 23.1.4 Release: 1%{?dist} Summary: General-purpose programming language and runtime environment @@ -1955,6 +1955,9 @@ useradd -r -g epmd -d /dev/null -s /sbin/nologin \ %changelog +* Fri Nov 20 2020 Peter Lemenkov - 23.1.4-1 +- Ver. 23.1.4 + * Tue Nov 17 2020 Peter Lemenkov - 23.1.3-1 - Ver. 23.1.3 diff --git a/sources b/sources index 7a1c818..e95dbeb 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (otp-OTP-23.1.3.tar.gz) = ae88070b226df54c22693887352d3e0bd8cc3f77a872731cf52b59c386c0416efdc7f00db2690f4ab566e95d31fc828e4039ae1e9914fe35220d354c12bf086c +SHA512 (otp-OTP-23.1.4.tar.gz) = 864b69fc69f3843dfe839faf1c1e86ec505282ec4d86ed1add445998ba28bcc623522471d8d8636a9cf1e24e84f99d5cae3880a4b1171abab9651ef242a55367 From c505375f3e6d3de1fc5278846a8c3298528d897c Mon Sep 17 00:00:00 2001 From: Peter Lemenkov Date: Fri, 11 Dec 2020 12:52:45 +0100 Subject: [PATCH 017/135] Erlang ver. 23.1.5 Signed-off-by: Peter Lemenkov --- erlang.spec | 5 ++++- otp-0006-Do-not-install-erlang-sources.patch | 4 ++-- sources | 2 +- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/erlang.spec b/erlang.spec index aa1798b..f57ae3d 100644 --- a/erlang.spec +++ b/erlang.spec @@ -65,7 +65,7 @@ Name: erlang -Version: 23.1.4 +Version: 23.1.5 Release: 1%{?dist} Summary: General-purpose programming language and runtime environment @@ -1955,6 +1955,9 @@ useradd -r -g epmd -d /dev/null -s /sbin/nologin \ %changelog +* Fri Dec 11 2020 Peter Lemenkov - 23.1.5-1 +- Ver. 23.1.5 + * Fri Nov 20 2020 Peter Lemenkov - 23.1.4-1 - Ver. 23.1.4 diff --git a/otp-0006-Do-not-install-erlang-sources.patch b/otp-0006-Do-not-install-erlang-sources.patch index 5c97b4f..a5f7f08 100644 --- a/otp-0006-Do-not-install-erlang-sources.patch +++ b/otp-0006-Do-not-install-erlang-sources.patch @@ -665,10 +665,10 @@ index adc2c4858f..89ce954e99 100644 $(INSTALL_DATA) $(TARGET_FILES) "$(RELSYSDIR)/ebin" # $(INSTALL_DIR) "$(RELSYSDIR)/include" diff --git a/lib/ssh/src/Makefile b/lib/ssh/src/Makefile -index 4985774f4c..afd93dc922 100644 +index ab6137e518..bdeabca8c3 100644 --- a/lib/ssh/src/Makefile +++ b/lib/ssh/src/Makefile -@@ -153,7 +153,7 @@ include $(ERL_TOP)/make/otp_release_targets.mk +@@ -154,7 +154,7 @@ include $(ERL_TOP)/make/otp_release_targets.mk release_spec: opt $(INSTALL_DIR) "$(RELSYSDIR)/src" diff --git a/sources b/sources index e95dbeb..ce6de21 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (otp-OTP-23.1.4.tar.gz) = 864b69fc69f3843dfe839faf1c1e86ec505282ec4d86ed1add445998ba28bcc623522471d8d8636a9cf1e24e84f99d5cae3880a4b1171abab9651ef242a55367 +SHA512 (otp-OTP-23.1.5.tar.gz) = dccb863ace1f3c3fd17c848bf21c982338546e2be2a3b81ade35bcefeb4ff75afff28ebe2363ccf7f4680417f83bbeaa51c74274a23621139b5a4be6bb824955 From 30b1bae6ce3d9e5dd6f70173815684ab41e2244a Mon Sep 17 00:00:00 2001 From: Tom Stellard Date: Thu, 17 Dec 2020 05:09:18 +0000 Subject: [PATCH 018/135] Add BuildRequires: make https://fedoraproject.org/wiki/Changes/Remove_make_from_BuildRoot --- erlang.spec | 1 + 1 file changed, 1 insertion(+) diff --git a/erlang.spec b/erlang.spec index f57ae3d..70e000a 100644 --- a/erlang.spec +++ b/erlang.spec @@ -689,6 +689,7 @@ A set of programming tools including a coverage analyzer etc. %package wx Summary: A library for wxWidgets support in Erlang BuildRequires: wxGTK3-devel +BuildRequires: make Requires: %{name}-erts%{?_isa} = %{version}-%{release} Requires: %{name}-kernel%{?_isa} = %{version}-%{release} Requires: %{name}-stdlib%{?_isa} = %{version}-%{release} From 372de3ec49542b4effab6c7b034924541c35aa28 Mon Sep 17 00:00:00 2001 From: Peter Lemenkov Date: Thu, 17 Dec 2020 12:11:53 +0100 Subject: [PATCH 019/135] Erlang ver. 23.2 Signed-off-by: Peter Lemenkov --- erlang.spec | 7 +++++-- otp-0002-Remove-rpath.patch | 4 ++-- otp-0003-Do-not-install-C-sources.patch | 4 ++-- otp-0006-Do-not-install-erlang-sources.patch | 8 ++++---- otp-0009-Load-man-pages-from-system-wide-directory.patch | 2 +- sources | 2 +- 6 files changed, 15 insertions(+), 12 deletions(-) diff --git a/erlang.spec b/erlang.spec index 70e000a..d4d1a2e 100644 --- a/erlang.spec +++ b/erlang.spec @@ -65,7 +65,7 @@ Name: erlang -Version: 23.1.5 +Version: 23.2 Release: 1%{?dist} Summary: General-purpose programming language and runtime environment @@ -111,6 +111,7 @@ Patch9: otp-0009-Load-man-pages-from-system-wide-directory.patch BuildRequires: gcc BuildRequires: gcc-c++ BuildRequires: flex +BuildRequires: make %if %{with doc} %if 0%{?need_bootstrap} < 1 @@ -689,7 +690,6 @@ A set of programming tools including a coverage analyzer etc. %package wx Summary: A library for wxWidgets support in Erlang BuildRequires: wxGTK3-devel -BuildRequires: make Requires: %{name}-erts%{?_isa} = %{version}-%{release} Requires: %{name}-kernel%{?_isa} = %{version}-%{release} Requires: %{name}-stdlib%{?_isa} = %{version}-%{release} @@ -1956,6 +1956,9 @@ useradd -r -g epmd -d /dev/null -s /sbin/nologin \ %changelog +* Thu Dec 17 2020 Peter Lemenkov - 23.2-1 +- Ver. 23.2 + * Fri Dec 11 2020 Peter Lemenkov - 23.1.5-1 - Ver. 23.1.5 diff --git a/otp-0002-Remove-rpath.patch b/otp-0002-Remove-rpath.patch index 06c9b9b..396235c 100644 --- a/otp-0002-Remove-rpath.patch +++ b/otp-0002-Remove-rpath.patch @@ -5,10 +5,10 @@ Subject: [PATCH] Remove rpath Signed-off-by: Peter Lemenkov diff --git a/lib/crypto/c_src/Makefile.in b/lib/crypto/c_src/Makefile.in -index 786fbc1031..530022eb0d 100644 +index ecccc33d8d..149ed127ff 100644 --- a/lib/crypto/c_src/Makefile.in +++ b/lib/crypto/c_src/Makefile.in -@@ -114,7 +114,7 @@ TEST_ENGINE_LIB = $(LIBDIR)/otp_test_engine$(TYPEMARKER).@DED_EXT@ +@@ -120,7 +120,7 @@ TEST_ENGINE_LIB = $(LIBDIR)/otp_test_engine$(TYPEMARKER).@DED_EXT@ DYNAMIC_CRYPTO_LIB=@SSL_DYNAMIC_ONLY@ ifeq ($(DYNAMIC_CRYPTO_LIB),yes) diff --git a/otp-0003-Do-not-install-C-sources.patch b/otp-0003-Do-not-install-C-sources.patch index befada3..a41024a 100644 --- a/otp-0003-Do-not-install-C-sources.patch +++ b/otp-0003-Do-not-install-C-sources.patch @@ -27,10 +27,10 @@ index cb606fd74e..48a7c2f4f1 100644 release_docs_spec: diff --git a/lib/crypto/c_src/Makefile.in b/lib/crypto/c_src/Makefile.in -index 530022eb0d..a37eeb1b12 100644 +index 149ed127ff..4cf27ed6c7 100644 --- a/lib/crypto/c_src/Makefile.in +++ b/lib/crypto/c_src/Makefile.in -@@ -225,16 +225,11 @@ docs: +@@ -231,16 +231,11 @@ docs: include $(ERL_TOP)/make/otp_release_targets.mk release_spec: opt diff --git a/otp-0006-Do-not-install-erlang-sources.patch b/otp-0006-Do-not-install-erlang-sources.patch index a5f7f08..88e6171 100644 --- a/otp-0006-Do-not-install-erlang-sources.patch +++ b/otp-0006-Do-not-install-erlang-sources.patch @@ -34,10 +34,10 @@ index a6ff72898c..35d4530f32 100644 $(INSTALL_DATA) $(EXAMPLES) "$(RELSYSDIR)/examples" diff --git a/lib/common_test/src/Makefile b/lib/common_test/src/Makefile -index a20de14e0e..3ef8516521 100644 +index 7d7b5ed203..9151e4097b 100644 --- a/lib/common_test/src/Makefile +++ b/lib/common_test/src/Makefile -@@ -150,7 +150,7 @@ include $(ERL_TOP)/make/otp_release_targets.mk +@@ -157,7 +157,7 @@ include $(ERL_TOP)/make/otp_release_targets.mk release_spec: opt $(INSTALL_DIR) "$(RELSYSDIR)/src" @@ -678,10 +678,10 @@ index ab6137e518..bdeabca8c3 100644 $(INSTALL_DATA) $(BEHAVIOUR_TARGET_FILES) $(TARGET_FILES) $(APP_TARGET) \ $(APPUP_TARGET) "$(RELSYSDIR)/ebin" diff --git a/lib/ssl/src/Makefile b/lib/ssl/src/Makefile -index b0f4cfd2da..122d4d5c31 100644 +index 8abd7820f7..8a49484592 100644 --- a/lib/ssl/src/Makefile +++ b/lib/ssl/src/Makefile -@@ -201,7 +201,7 @@ include $(ERL_TOP)/make/otp_release_targets.mk +@@ -204,7 +204,7 @@ include $(ERL_TOP)/make/otp_release_targets.mk release_spec: opt $(INSTALL_DIR) "$(RELSYSDIR)/src" diff --git a/otp-0009-Load-man-pages-from-system-wide-directory.patch b/otp-0009-Load-man-pages-from-system-wide-directory.patch index 93f3ccf..d68a78b 100644 --- a/otp-0009-Load-man-pages-from-system-wide-directory.patch +++ b/otp-0009-Load-man-pages-from-system-wide-directory.patch @@ -7,7 +7,7 @@ Patch allows one to use standard man path with erl -man command. as required by Debian policy.) diff --git a/erts/etc/common/erlexec.c b/erts/etc/common/erlexec.c -index 59dcf700d7..dc9cb5828a 100644 +index 9dba684cbb..b4c5a8413f 100644 --- a/erts/etc/common/erlexec.c +++ b/erts/etc/common/erlexec.c @@ -727,8 +727,10 @@ int main(int argc, char **argv) diff --git a/sources b/sources index ce6de21..190fd6e 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (otp-OTP-23.1.5.tar.gz) = dccb863ace1f3c3fd17c848bf21c982338546e2be2a3b81ade35bcefeb4ff75afff28ebe2363ccf7f4680417f83bbeaa51c74274a23621139b5a4be6bb824955 +SHA512 (otp-OTP-23.2.tar.gz) = 3bdb464992387c5a352c11bf9dc49c6a982dac10865d2b668d8db6fb45db15f4d79d38976d04fbbd51568ee9efb8b5295bb06b6fee37b81fde6fa43c51dcc313 From 231c205a17641d7b57bd560b2fb4e988f462e79c Mon Sep 17 00:00:00 2001 From: Peter Lemenkov Date: Thu, 17 Dec 2020 13:18:56 +0100 Subject: [PATCH 020/135] Missing man-page Signed-off-by: Peter Lemenkov --- erlang.spec | 1 + 1 file changed, 1 insertion(+) diff --git a/erlang.spec b/erlang.spec index d4d1a2e..020560b 100644 --- a/erlang.spec +++ b/erlang.spec @@ -1006,6 +1006,7 @@ useradd -r -g epmd -d /dev/null -s /sbin/nologin \ %{_mandir}/man3/ct_slave.* %{_mandir}/man3/ct_snmp.* %{_mandir}/man3/ct_ssh.* +%{_mandir}/man3/ct_suite.* %{_mandir}/man3/ct_telnet.* %{_mandir}/man3/ct_testspec.* %{_mandir}/man3/unix_telnet.* From 70363e6ebb75a729a37f3868bcd751226c7ed276 Mon Sep 17 00:00:00 2001 From: Peter Lemenkov Date: Tue, 22 Dec 2020 14:34:05 +0100 Subject: [PATCH 021/135] Erlang ver. 23.2.1 Signed-off-by: Peter Lemenkov --- erlang.spec | 5 ++++- sources | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/erlang.spec b/erlang.spec index 020560b..17f1a13 100644 --- a/erlang.spec +++ b/erlang.spec @@ -65,7 +65,7 @@ Name: erlang -Version: 23.2 +Version: 23.2.1 Release: 1%{?dist} Summary: General-purpose programming language and runtime environment @@ -1957,6 +1957,9 @@ useradd -r -g epmd -d /dev/null -s /sbin/nologin \ %changelog +* Tue Dec 22 2020 Peter Lemenkov - 23.2.1-1 +- Ver. 23.2.1 + * Thu Dec 17 2020 Peter Lemenkov - 23.2-1 - Ver. 23.2 diff --git a/sources b/sources index 190fd6e..e15a248 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (otp-OTP-23.2.tar.gz) = 3bdb464992387c5a352c11bf9dc49c6a982dac10865d2b668d8db6fb45db15f4d79d38976d04fbbd51568ee9efb8b5295bb06b6fee37b81fde6fa43c51dcc313 +SHA512 (otp-OTP-23.2.1.tar.gz) = 444c19fac295a979321ccde1f516156a25faa79d66437ddf7bc0a197f3fb8d2ddd6c056d565f9b6bc47e8444b8feda790c4844dbe95ec0b300428fb22c4e0531 From fccbcf972353733c250f00a82d85dd89f3390e52 Mon Sep 17 00:00:00 2001 From: Peter Lemenkov Date: Fri, 15 Jan 2021 13:12:34 +0100 Subject: [PATCH 022/135] Erlang ver. 23.2.2 Signed-off-by: Peter Lemenkov --- erlang.spec | 5 ++++- sources | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/erlang.spec b/erlang.spec index 17f1a13..664d7a6 100644 --- a/erlang.spec +++ b/erlang.spec @@ -65,7 +65,7 @@ Name: erlang -Version: 23.2.1 +Version: 23.2.2 Release: 1%{?dist} Summary: General-purpose programming language and runtime environment @@ -1957,6 +1957,9 @@ useradd -r -g epmd -d /dev/null -s /sbin/nologin \ %changelog +* Fri Jan 15 2021 Peter Lemenkov - 23.2.2-1 +- Ver. 23.2.2 + * Tue Dec 22 2020 Peter Lemenkov - 23.2.1-1 - Ver. 23.2.1 diff --git a/sources b/sources index e15a248..b166728 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (otp-OTP-23.2.1.tar.gz) = 444c19fac295a979321ccde1f516156a25faa79d66437ddf7bc0a197f3fb8d2ddd6c056d565f9b6bc47e8444b8feda790c4844dbe95ec0b300428fb22c4e0531 +SHA512 (otp-OTP-23.2.2.tar.gz) = 26743a7a4b2e31e63c0940ed6fdad64427c22e0f08fc063e1b8639bea6fa89c6b24e9c87ca572475d3ce39a18857ef6143676653cdf97b374656ae49f5892633 From 8a31902294703fd9cd83ce96bc3dfe4c102d909e Mon Sep 17 00:00:00 2001 From: Peter Lemenkov Date: Fri, 15 Jan 2021 13:20:17 +0100 Subject: [PATCH 023/135] Disable XEmacs Signed-off-by: Peter Lemenkov --- erlang.spec | 46 +---------------------------------------- otp-make-subpackages.py | 8 +------ 2 files changed, 2 insertions(+), 52 deletions(-) diff --git a/erlang.spec b/erlang.spec index 664d7a6..b8451bf 100644 --- a/erlang.spec +++ b/erlang.spec @@ -25,7 +25,6 @@ ## %global __with_emacs 1 -%global __with_xemacs 0 %global __with_examples 1 %global __with_java 1 # @@ -661,10 +660,6 @@ Summary: A set of programming tools including a coverage analyzer etc BuildRequires: emacs BuildRequires: emacs-el %endif %{__with_emacs} -%if %{__with_xemacs} -BuildRequires: xemacs -BuildRequires: xemacs-packages-extra-el -%endif %{__with_xemacs} Requires: %{name}-compiler%{?_isa} = %{version}-%{release} Requires: %{name}-erts%{?_isa} = %{version}-%{release} Requires: %{name}-inets%{?_isa} = %{version}-%{release} @@ -676,11 +671,6 @@ Requires: emacs-filesystem Obsoletes: emacs-erlang Obsoletes: emacs-erlang-el %endif %{__with_emacs} -%if %{__with_xemacs} -Requires: xemacs-filesystem -Obsoletes: xemacs-erlang -Obsoletes: xemacs-erlang-el -%endif %{__with_xemacs} %description tools @@ -777,21 +767,6 @@ pushd emacs-erlang %{_emacs_bytecompile} *.el popd %endif %{__with_emacs} -%if %{__with_xemacs} -# XEmacs related stuff -cat > xemacs-erlang-init.el << EOF -(setq load-path (cons "%{_xemacs_sitelispdir}/erlang" load-path)) -(setq erlang-root-dir "%{_libdir}/erlang") -(setq exec-path (cons "%{_libdir}/erlang/bin" exec-path)) -(require 'erlang-start) -EOF -mkdir xemacs-erlang -cp lib/tools/emacs/*.el xemacs-erlang/ -rm -f xemacs-erlang/erlang-flymake.el xemacs-erlang/erlang-test.el xemacs-erlang/erldoc.el xemacs-erlang/erlang-edoc.el -pushd xemacs-erlang -%{_xemacs_bytecompile} *.el -popd -%endif %{__with_xemacs} make @@ -822,19 +797,6 @@ for f in lib/tools/emacs/{README,*.el}; do done install -m 0644 emacs-erlang/*.elc "$RPM_BUILD_ROOT%{_emacs_sitelispdir}/erlang/" %endif %{__with_emacs} -%if %{__with_xemacs} -# XEmacs related stuff -install -m 0755 -d "$RPM_BUILD_ROOT%{_xemacs_sitestartdir}" -install -m 0755 -d "$RPM_BUILD_ROOT%{_xemacs_sitelispdir}/erlang" -install -m 0644 xemacs-erlang-init.el "$RPM_BUILD_ROOT%{_xemacs_sitestartdir}/erlang-init.el" -for f in lib/tools/emacs/{README,*.el}; do - b="$(basename "$f")"; - ln -s "%{_libdir}/erlang/lib/tools-${erlang_tools_vsn}/emacs/$b" \ - "$RPM_BUILD_ROOT%{_xemacs_sitelispdir}/erlang/" -done -rm -f "$RPM_BUILD_ROOT%{_xemacs_sitelispdir}/erlang/erlang-flymake.el" -install -m 0644 xemacs-erlang/*.elc "$RPM_BUILD_ROOT%{_xemacs_sitelispdir}/erlang/" -%endif %{__with_xemacs} make DESTDIR=$RPM_BUILD_ROOT install @@ -1692,13 +1654,6 @@ useradd -r -g epmd -d /dev/null -s /sbin/nologin \ %{_emacs_sitelispdir}/erlang/*.elc %{_emacs_sitestartdir}/erlang-init.el %endif %{__with_emacs} -%if %{__with_xemacs} -%dir %{_xemacs_sitelispdir}/erlang -%doc %{_xemacs_sitelispdir}/erlang/README -%{_xemacs_sitelispdir}/erlang/*.el -%{_xemacs_sitelispdir}/erlang/*.elc -%{_xemacs_sitestartdir}/erlang-init.el -%endif %{__with_xemacs} %if %{__with_wxwidgets} %files wx @@ -1959,6 +1914,7 @@ useradd -r -g epmd -d /dev/null -s /sbin/nologin \ %changelog * Fri Jan 15 2021 Peter Lemenkov - 23.2.2-1 - Ver. 23.2.2 +- Disable XEmacs support (dead upstream, scheduled for removal from Fedora) * Tue Dec 22 2020 Peter Lemenkov - 23.2.1-1 - Ver. 23.2.1 diff --git a/otp-make-subpackages.py b/otp-make-subpackages.py index e004bf3..fd9df5e 100644 --- a/otp-make-subpackages.py +++ b/otp-make-subpackages.py @@ -24,9 +24,7 @@ package_headers = {} package_noarch = [ "emacs-erlang", "emacs-erlang-el", - "erlang-doc", - "xemacs-erlang", - "xemacs-erlang-el"] + "erlang-doc"] # These are additional Requires which cannot be picked up automatically (yet). # TODO these should be added automatically @@ -44,8 +42,6 @@ package_additional_requires = { # Stores files/links in /usr/share/java so has to depend on jpackage-utils "erlang-jinterface": ["%{name}-erts%{?_isa} = %{version}-%{release}", "jpackage-utils"], "erlang-wx": ["mesa-libGL", "mesa-libGLU"], - "xemacs-erlang": ["emacs-common-erlang = %{version}-%{release}", "xemacs(bin) >= %{_xemacs_version}"], - "xemacs-erlang-el": ["xemacs-erlang = %{version}-%{release}"] } package_additional_buildrequires = { @@ -70,8 +66,6 @@ package_additional_buildrequires = { "erlang-jinterface": ["java-devel"], "erlang-odbc": ["unixODBC-devel"], - "erlang-wx": ["wxGTK-devel"], - "xemacs-erlang": ["xemacs", "xemacs-packages-extra-el"], } package_additional_obsoletes = { From 8b84e201ddc84bbbaaed222a08691b16fe98642d Mon Sep 17 00:00:00 2001 From: Peter Lemenkov Date: Wed, 20 Jan 2021 21:25:45 +0100 Subject: [PATCH 024/135] Erlang ver. 23.2.3 Signed-off-by: Peter Lemenkov --- erlang.spec | 5 ++++- sources | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/erlang.spec b/erlang.spec index b8451bf..304a38d 100644 --- a/erlang.spec +++ b/erlang.spec @@ -64,7 +64,7 @@ Name: erlang -Version: 23.2.2 +Version: 23.2.3 Release: 1%{?dist} Summary: General-purpose programming language and runtime environment @@ -1912,6 +1912,9 @@ useradd -r -g epmd -d /dev/null -s /sbin/nologin \ %changelog +* Wed Jan 20 2021 Peter Lemenkov - 23.2.3-1 +- Ver. 23.2.3 + * Fri Jan 15 2021 Peter Lemenkov - 23.2.2-1 - Ver. 23.2.2 - Disable XEmacs support (dead upstream, scheduled for removal from Fedora) diff --git a/sources b/sources index b166728..9d4e3a9 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (otp-OTP-23.2.2.tar.gz) = 26743a7a4b2e31e63c0940ed6fdad64427c22e0f08fc063e1b8639bea6fa89c6b24e9c87ca572475d3ce39a18857ef6143676653cdf97b374656ae49f5892633 +SHA512 (otp-OTP-23.2.3.tar.gz) = c1c176d908ac0a2470926997ec62d0e2d330aac25202e24314af1d57171d460fd5582e9ece9e289d7eb5c2728a6966b130e14ada10ba8ead04d47a849287ded4 From 8ee0d3868ac169b1b795b5d6130a18f79f4bec39 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Tue, 26 Jan 2021 04:42:04 +0000 Subject: [PATCH 025/135] - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- erlang.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/erlang.spec b/erlang.spec index 304a38d..77067d4 100644 --- a/erlang.spec +++ b/erlang.spec @@ -65,7 +65,7 @@ Name: erlang Version: 23.2.3 -Release: 1%{?dist} +Release: 2%{?dist} Summary: General-purpose programming language and runtime environment License: ASL 2.0 @@ -1912,6 +1912,9 @@ useradd -r -g epmd -d /dev/null -s /sbin/nologin \ %changelog +* Tue Jan 26 2021 Fedora Release Engineering - 23.2.3-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + * Wed Jan 20 2021 Peter Lemenkov - 23.2.3-1 - Ver. 23.2.3 From fe61b20ca681a97ce592896aa502b8e3e848de12 Mon Sep 17 00:00:00 2001 From: John Eckersberg Date: Thu, 4 Feb 2021 15:03:12 -0500 Subject: [PATCH 026/135] Erlang ver. 23.2.4 --- erlang.spec | 7 +++++-- sources | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/erlang.spec b/erlang.spec index 77067d4..e914eb9 100644 --- a/erlang.spec +++ b/erlang.spec @@ -64,8 +64,8 @@ Name: erlang -Version: 23.2.3 -Release: 2%{?dist} +Version: 23.2.4 +Release: 1%{?dist} Summary: General-purpose programming language and runtime environment License: ASL 2.0 @@ -1912,6 +1912,9 @@ useradd -r -g epmd -d /dev/null -s /sbin/nologin \ %changelog +* Thu Feb 4 2021 John Eckersberg - 23.2.4-1 +- Ver. 23.2.4 + * Tue Jan 26 2021 Fedora Release Engineering - 23.2.3-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild diff --git a/sources b/sources index 9d4e3a9..ab86455 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (otp-OTP-23.2.3.tar.gz) = c1c176d908ac0a2470926997ec62d0e2d330aac25202e24314af1d57171d460fd5582e9ece9e289d7eb5c2728a6966b130e14ada10ba8ead04d47a849287ded4 +SHA512 (otp-OTP-23.2.4.tar.gz) = 12d10d0f2522a6df0007ee662335055dee3e2dad2be2a877e42c6fb7c3ca6ff613437a92523845a5e41c2b18ee2221de96c3d4a33acf5c3c5e4e3a1d093c2cac From 45d7d01f6fc8da4a5f2204069b63120a78a2255d Mon Sep 17 00:00:00 2001 From: Peter Lemenkov Date: Tue, 16 Feb 2021 12:46:23 +0100 Subject: [PATCH 027/135] Erlang ver. 23.2.5 Signed-off-by: Peter Lemenkov --- erlang.spec | 5 ++++- otp-0006-Do-not-install-erlang-sources.patch | 4 ++-- sources | 2 +- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/erlang.spec b/erlang.spec index e914eb9..f90fefa 100644 --- a/erlang.spec +++ b/erlang.spec @@ -64,7 +64,7 @@ Name: erlang -Version: 23.2.4 +Version: 23.2.5 Release: 1%{?dist} Summary: General-purpose programming language and runtime environment @@ -1912,6 +1912,9 @@ useradd -r -g epmd -d /dev/null -s /sbin/nologin \ %changelog +* Tue Feb 16 2021 Peter Lemenkov - 23.2.5-1 +- Ver. 23.2.5 + * Thu Feb 4 2021 John Eckersberg - 23.2.4-1 - Ver. 23.2.4 diff --git a/otp-0006-Do-not-install-erlang-sources.patch b/otp-0006-Do-not-install-erlang-sources.patch index 88e6171..307d616 100644 --- a/otp-0006-Do-not-install-erlang-sources.patch +++ b/otp-0006-Do-not-install-erlang-sources.patch @@ -678,10 +678,10 @@ index ab6137e518..bdeabca8c3 100644 $(INSTALL_DATA) $(BEHAVIOUR_TARGET_FILES) $(TARGET_FILES) $(APP_TARGET) \ $(APPUP_TARGET) "$(RELSYSDIR)/ebin" diff --git a/lib/ssl/src/Makefile b/lib/ssl/src/Makefile -index 8abd7820f7..8a49484592 100644 +index 1a55ee7b83..39fc380c32 100644 --- a/lib/ssl/src/Makefile +++ b/lib/ssl/src/Makefile -@@ -204,7 +204,7 @@ include $(ERL_TOP)/make/otp_release_targets.mk +@@ -207,7 +207,7 @@ include $(ERL_TOP)/make/otp_release_targets.mk release_spec: opt $(INSTALL_DIR) "$(RELSYSDIR)/src" diff --git a/sources b/sources index ab86455..7c67aee 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (otp-OTP-23.2.4.tar.gz) = 12d10d0f2522a6df0007ee662335055dee3e2dad2be2a877e42c6fb7c3ca6ff613437a92523845a5e41c2b18ee2221de96c3d4a33acf5c3c5e4e3a1d093c2cac +SHA512 (otp-OTP-23.2.5.tar.gz) = 8738adc67901e6a118338057e56f28e7c8a0482e452ec53b643d3af2c3aad04c95a856f9a4f0c2938d2db13fd6891c1be8770e34fa377444cd667da558033df3 From 5a781e9b49425354264258da10be695f8467d4da Mon Sep 17 00:00:00 2001 From: Peter Lemenkov Date: Thu, 25 Feb 2021 19:21:46 +0100 Subject: [PATCH 028/135] Erlang ver. 23.2.6 Signed-off-by: Peter Lemenkov --- erlang.spec | 5 ++++- sources | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/erlang.spec b/erlang.spec index f90fefa..3bb0ef9 100644 --- a/erlang.spec +++ b/erlang.spec @@ -64,7 +64,7 @@ Name: erlang -Version: 23.2.5 +Version: 23.2.6 Release: 1%{?dist} Summary: General-purpose programming language and runtime environment @@ -1912,6 +1912,9 @@ useradd -r -g epmd -d /dev/null -s /sbin/nologin \ %changelog +* Thu Feb 25 2021 Peter Lemenkov - 23.2.6-1 +- Ver. 23.2.6 + * Tue Feb 16 2021 Peter Lemenkov - 23.2.5-1 - Ver. 23.2.5 diff --git a/sources b/sources index 7c67aee..533db7a 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (otp-OTP-23.2.5.tar.gz) = 8738adc67901e6a118338057e56f28e7c8a0482e452ec53b643d3af2c3aad04c95a856f9a4f0c2938d2db13fd6891c1be8770e34fa377444cd667da558033df3 +SHA512 (otp-OTP-23.2.6.tar.gz) = b8fb509e573188f3228192acb44a7df849f7e43a4ac03d566d7dfe530837630a17572857b114e8eadbc7236d169d26658a88f4a5896b28075b31e296ea4e63f1 From a686b04383bf3d61a5dc2734ff281a1acebe25f5 Mon Sep 17 00:00:00 2001 From: Peter Lemenkov Date: Fri, 5 Mar 2021 21:37:35 +0100 Subject: [PATCH 029/135] Erlang ver. 23.2.7 Signed-off-by: Peter Lemenkov --- erlang.spec | 5 ++++- sources | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/erlang.spec b/erlang.spec index 3bb0ef9..5f4f561 100644 --- a/erlang.spec +++ b/erlang.spec @@ -64,7 +64,7 @@ Name: erlang -Version: 23.2.6 +Version: 23.2.7 Release: 1%{?dist} Summary: General-purpose programming language and runtime environment @@ -1912,6 +1912,9 @@ useradd -r -g epmd -d /dev/null -s /sbin/nologin \ %changelog +* Fri Mar 5 2021 Peter Lemenkov - 23.2.7-1 +- Ver. 23.2.7 + * Thu Feb 25 2021 Peter Lemenkov - 23.2.6-1 - Ver. 23.2.6 diff --git a/sources b/sources index 533db7a..5f1e1f0 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (otp-OTP-23.2.6.tar.gz) = b8fb509e573188f3228192acb44a7df849f7e43a4ac03d566d7dfe530837630a17572857b114e8eadbc7236d169d26658a88f4a5896b28075b31e296ea4e63f1 +SHA512 (otp-OTP-23.2.7.tar.gz) = 1e94b641644edb1edc3d15679222dd5d198abf1cae6daa4b91304317f8df21514029971f208767396625c0a0be7107c357c9ef80974c9865113a760aa2655220 From 0fa176ad3b9fe67f5f3c2cbf057209d9a310de03 Mon Sep 17 00:00:00 2001 From: Peter Lemenkov Date: Wed, 24 Mar 2021 12:26:33 +0100 Subject: [PATCH 030/135] Erlang ver. 23.3 Signed-off-by: Peter Lemenkov --- erlang.spec | 5 ++++- otp-0002-Remove-rpath.patch | 4 ++-- otp-0003-Do-not-install-C-sources.patch | 4 ++-- otp-0006-Do-not-install-erlang-sources.patch | 4 ++-- sources | 2 +- 5 files changed, 11 insertions(+), 8 deletions(-) diff --git a/erlang.spec b/erlang.spec index 5f4f561..706552e 100644 --- a/erlang.spec +++ b/erlang.spec @@ -64,7 +64,7 @@ Name: erlang -Version: 23.2.7 +Version: 23.3 Release: 1%{?dist} Summary: General-purpose programming language and runtime environment @@ -1912,6 +1912,9 @@ useradd -r -g epmd -d /dev/null -s /sbin/nologin \ %changelog +* Wed Mar 24 2021 Peter Lemenkov - 23.3-1 +- Ver. 23.3 + * Fri Mar 5 2021 Peter Lemenkov - 23.2.7-1 - Ver. 23.2.7 diff --git a/otp-0002-Remove-rpath.patch b/otp-0002-Remove-rpath.patch index 396235c..f44a974 100644 --- a/otp-0002-Remove-rpath.patch +++ b/otp-0002-Remove-rpath.patch @@ -5,10 +5,10 @@ Subject: [PATCH] Remove rpath Signed-off-by: Peter Lemenkov diff --git a/lib/crypto/c_src/Makefile.in b/lib/crypto/c_src/Makefile.in -index ecccc33d8d..149ed127ff 100644 +index 0821bd8d00..c94f01420e 100644 --- a/lib/crypto/c_src/Makefile.in +++ b/lib/crypto/c_src/Makefile.in -@@ -120,7 +120,7 @@ TEST_ENGINE_LIB = $(LIBDIR)/otp_test_engine$(TYPEMARKER).@DED_EXT@ +@@ -126,7 +126,7 @@ TEST_ENGINE_LIB = $(LIBDIR)/otp_test_engine$(TYPEMARKER).@DED_EXT@ DYNAMIC_CRYPTO_LIB=@SSL_DYNAMIC_ONLY@ ifeq ($(DYNAMIC_CRYPTO_LIB),yes) diff --git a/otp-0003-Do-not-install-C-sources.patch b/otp-0003-Do-not-install-C-sources.patch index a41024a..0745b8a 100644 --- a/otp-0003-Do-not-install-C-sources.patch +++ b/otp-0003-Do-not-install-C-sources.patch @@ -27,10 +27,10 @@ index cb606fd74e..48a7c2f4f1 100644 release_docs_spec: diff --git a/lib/crypto/c_src/Makefile.in b/lib/crypto/c_src/Makefile.in -index 149ed127ff..4cf27ed6c7 100644 +index c94f01420e..e2cae1692f 100644 --- a/lib/crypto/c_src/Makefile.in +++ b/lib/crypto/c_src/Makefile.in -@@ -231,16 +231,11 @@ docs: +@@ -237,16 +237,11 @@ docs: include $(ERL_TOP)/make/otp_release_targets.mk release_spec: opt diff --git a/otp-0006-Do-not-install-erlang-sources.patch b/otp-0006-Do-not-install-erlang-sources.patch index 307d616..1bc3055 100644 --- a/otp-0006-Do-not-install-erlang-sources.patch +++ b/otp-0006-Do-not-install-erlang-sources.patch @@ -78,7 +78,7 @@ index b1531ac985..dbcfe0042c 100644 $(INSTALL_DATA) $(INSTALL_FILES) "$(RELSYSDIR)/ebin" diff --git a/lib/crypto/src/Makefile b/lib/crypto/src/Makefile -index 1753ba4f36..2cd09475e8 100644 +index c3f1c859e5..0d72d6c82d 100644 --- a/lib/crypto/src/Makefile +++ b/lib/crypto/src/Makefile @@ -81,8 +81,6 @@ docs: @@ -678,7 +678,7 @@ index ab6137e518..bdeabca8c3 100644 $(INSTALL_DATA) $(BEHAVIOUR_TARGET_FILES) $(TARGET_FILES) $(APP_TARGET) \ $(APPUP_TARGET) "$(RELSYSDIR)/ebin" diff --git a/lib/ssl/src/Makefile b/lib/ssl/src/Makefile -index 1a55ee7b83..39fc380c32 100644 +index 5edd6cb4b9..39008882ca 100644 --- a/lib/ssl/src/Makefile +++ b/lib/ssl/src/Makefile @@ -207,7 +207,7 @@ include $(ERL_TOP)/make/otp_release_targets.mk diff --git a/sources b/sources index 5f1e1f0..752e602 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (otp-OTP-23.2.7.tar.gz) = 1e94b641644edb1edc3d15679222dd5d198abf1cae6daa4b91304317f8df21514029971f208767396625c0a0be7107c357c9ef80974c9865113a760aa2655220 +SHA512 (otp-OTP-23.3.tar.gz) = 1ee12b7f045bd7fd5e05fd7c418ff176ebb6fe183664ea6a7e615bbb547b99287c9c44c927177a12bb079b84c4ed9e3a53d15a5e42473420b79b0816774fbdd4 From 1755bf23c184b784c212fc1d8817f5dfd28e4791 Mon Sep 17 00:00:00 2001 From: Peter Lemenkov Date: Tue, 30 Mar 2021 16:41:57 +0200 Subject: [PATCH 031/135] Erlang ver. 23.3.1 Signed-off-by: Peter Lemenkov --- erlang.spec | 5 ++++- sources | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/erlang.spec b/erlang.spec index 706552e..1b08d44 100644 --- a/erlang.spec +++ b/erlang.spec @@ -64,7 +64,7 @@ Name: erlang -Version: 23.3 +Version: 23.3.1 Release: 1%{?dist} Summary: General-purpose programming language and runtime environment @@ -1912,6 +1912,9 @@ useradd -r -g epmd -d /dev/null -s /sbin/nologin \ %changelog +* Tue Mar 30 2021 Peter Lemenkov - 23.3.1-1 +- Ver. 23.3.1 + * Wed Mar 24 2021 Peter Lemenkov - 23.3-1 - Ver. 23.3 diff --git a/sources b/sources index 752e602..dd69d34 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (otp-OTP-23.3.tar.gz) = 1ee12b7f045bd7fd5e05fd7c418ff176ebb6fe183664ea6a7e615bbb547b99287c9c44c927177a12bb079b84c4ed9e3a53d15a5e42473420b79b0816774fbdd4 +SHA512 (otp-OTP-23.3.1.tar.gz) = 03d4be9b25a14359e9f8db52d8e7d8edff1e8c53686a189caae15373c7e15d03f05e1138c549b8b41b8e6b7c55ab154cea47356f6fe79f7b72d5fb4ce759c4b0 From d8da3b9c78276cfd7b3a367d065cbbe39c97fd07 Mon Sep 17 00:00:00 2001 From: Peter Lemenkov Date: Sun, 4 Apr 2021 00:08:20 +0200 Subject: [PATCH 032/135] Erlang ver. 24.0-rc2 Signed-off-by: Peter Lemenkov --- erlang.spec | 51 ++--- ...n-pages-and-do-not-install-miscellan.patch | 4 +- otp-0002-Remove-rpath.patch | 17 +- otp-0003-Do-not-install-C-sources.patch | 31 +-- otp-0006-Do-not-install-erlang-sources.patch | 178 ++++-------------- otp-0007-Add-extra-search-directory.patch | 2 +- ...08-Avoid-forking-sed-to-get-basename.patch | 6 +- ...man-pages-from-system-wide-directory.patch | 4 +- sources | 2 +- 9 files changed, 68 insertions(+), 227 deletions(-) diff --git a/erlang.spec b/erlang.spec index 1b08d44..13ae569 100644 --- a/erlang.spec +++ b/erlang.spec @@ -16,10 +16,6 @@ %endif %endif -%ifarch %{arm} %{ix86} x86_64 ppc %{power64} -%global __with_hipe 1 -%endif - ## ## Optional components ## @@ -64,8 +60,8 @@ Name: erlang -Version: 23.3.1 -Release: 1%{?dist} +Version: 24.0 +Release: 0.1.rc2%{?dist} Summary: General-purpose programming language and runtime environment License: ASL 2.0 @@ -73,7 +69,7 @@ URL: https://www.erlang.org %if ! (0%{?rhel} && 0%{?rhel} <= 6) VCS: scm:git:https://github.com/erlang/otp %endif -Source0: https://github.com/erlang/otp/archive/OTP-%{version}/otp-OTP-%{version}.tar.gz +Source0: https://github.com/erlang/otp/archive/OTP-%{version}-rc2/otp-OTP-%{version}-rc2.tar.gz Source5: epmd.service Source6: epmd.socket Source7: epmd@.service @@ -153,7 +149,6 @@ Requires: %{name}-et%{?_isa} = %{version}-%{release} %endif # __with_wxwidgets Requires: %{name}-eunit%{?_isa} = %{version}-%{release} Requires: %{name}-ftp%{?_isa} = %{version}-%{release} -Requires: %{name}-hipe%{?_isa} = %{version}-%{release} Requires: %{name}-inets%{?_isa} = %{version}-%{release} %if %{__with_java} Requires: %{name}-jinterface%{?_isa} = %{version}-%{release} @@ -232,7 +227,6 @@ A portable framework for automatic testing. Summary: A byte code compiler for Erlang which produces highly compact code Requires: %{name}-crypto%{?_isa} = %{version}-%{release} Requires: %{name}-erts%{?_isa} = %{version}-%{release} -Requires: %{name}-hipe%{?_isa} = %{version}-%{release} Requires: %{name}-kernel%{?_isa} = %{version}-%{release} Requires: %{name}-stdlib%{?_isa} = %{version}-%{release} @@ -267,7 +261,6 @@ A debugger for debugging and testing of Erlang programs. Summary: A DIscrepancy AnaLYZer for ERlang programs Requires: %{name}-compiler%{?_isa} = %{version}-%{release} Requires: %{name}-erts%{?_isa} = %{version}-%{release} -Requires: %{name}-hipe%{?_isa} = %{version}-%{release} Requires: %{name}-kernel%{?_isa} = %{version}-%{release} Requires: %{name}-stdlib%{?_isa} = %{version}-%{release} Requires: %{name}-syntax_tools%{?_isa} = %{version}-%{release} @@ -364,6 +357,7 @@ Provides: bundled(pcre) = 8.33 Obsoletes: erlang-appmon Obsoletes: erlang-docbuilder Obsoletes: erlang-gs +Obsoletes: erlang-hipe Obsoletes: erlang-inviso Obsoletes: erlang-ose Obsoletes: erlang-otp_mibs @@ -422,17 +416,6 @@ Requires: %{name}-stdlib%{?_isa} = %{version}-%{release} %description ftp FTP client. -%package hipe -Summary: High Performance Erlang -Requires: %{name}-compiler%{?_isa} = %{version}-%{release} -Requires: %{name}-erts%{?_isa} = %{version}-%{release} -Requires: %{name}-kernel%{?_isa} = %{version}-%{release} -Requires: %{name}-stdlib%{?_isa} = %{version}-%{release} -Requires: %{name}-syntax_tools%{?_isa} = %{version}-%{release} - -%description hipe -High Performance Erlang. - %package inets Summary: A set of services such as a Web server and a HTTP client etc Requires: %{name}-erts%{?_isa} = %{version}-%{release} @@ -702,7 +685,7 @@ Provides support for XML 1.0. ### END OF AUTOGENERATED LIST ### %prep -%autosetup -p1 -n otp-OTP-%{version} +%autosetup -p1 -n otp-OTP-%{version}-rc2 # FIXME we should come up with a better solution # remove shipped zlib sources @@ -727,7 +710,6 @@ ERL_FLAGS="${RPM_OPT_FLAGS} -fno-strict-aliasing" %endif CFLAGS="${ERL_FLAGS}" CXXFLAGS="${ERL_FLAGS}" %configure --enable-shared-zlib --enable-sctp --enable-systemd --disable-silent-rules \ - %{?__with_hipe:--enable-hipe} \ %{?__without_kernel_poll:--disable-kernel-poll} \ %if %{__with_java} \ @@ -1046,10 +1028,13 @@ useradd -r -g epmd -d /dev/null -s /sbin/nologin \ %files edoc %{_libdir}/erlang/lib/edoc-*/ %if %{with doc} +%{_mandir}/man1/edoc.* %{_mandir}/man3/edoc.* %{_mandir}/man3/edoc_doclet.* +%{_mandir}/man3/edoc_doclet_chunks.* %{_mandir}/man3/edoc_extract.* %{_mandir}/man3/edoc_layout.* +%{_mandir}/man3/edoc_layout_chunks.* %{_mandir}/man3/edoc_lib.* %{_mandir}/man3/edoc_run.* %endif @@ -1082,7 +1067,6 @@ useradd -r -g epmd -d /dev/null -s /sbin/nologin \ #%%{_mandir}/man3/erl_global.* #%%{_mandir}/man3/erl_malloc.* #%%{_mandir}/man3/erl_marshal.* -%{_mandir}/man3/registry.* %endif %files erts @@ -1235,9 +1219,6 @@ useradd -r -g epmd -d /dev/null -s /sbin/nologin \ %{_mandir}/man3/ftp.* %endif -%files hipe -%{_libdir}/erlang/lib/hipe-*/ - %files inets %dir %{_libdir}/erlang/lib/inets-*/ %{_libdir}/erlang/lib/inets-*/ebin @@ -1307,7 +1288,6 @@ useradd -r -g epmd -d /dev/null -s /sbin/nologin \ %{_mandir}/man3/net_kernel.* %{_mandir}/man3/os.* %{_mandir}/man3/pg.* -%{_mandir}/man3/pg2.* %{_mandir}/man3/rpc.* %{_mandir}/man3/seq_trace.* %{_mandir}/man3/user.* @@ -1549,6 +1529,7 @@ useradd -r -g epmd -d /dev/null -s /sbin/nologin \ %{_mandir}/man3/digraph_utils.* %{_mandir}/man3/epp.* %{_mandir}/man3/erl_anno.* +%{_mandir}/man3/erl_error.* %{_mandir}/man3/erl_eval.* %{_mandir}/man3/erl_expand_records.* %{_mandir}/man3/erl_id_trans.* @@ -1613,8 +1594,6 @@ useradd -r -g epmd -d /dev/null -s /sbin/nologin \ %{_mandir}/man3/erl_recomment.* %{_mandir}/man3/erl_syntax.* %{_mandir}/man3/erl_syntax_lib.* -%{_mandir}/man3/erl_tidy.* -%{_mandir}/man3/igor.* %{_mandir}/man3/merl.* %{_mandir}/man3/merl_transform.* %{_mandir}/man3/prettypr.* @@ -1681,6 +1660,8 @@ useradd -r -g epmd -d /dev/null -s /sbin/nologin \ %{_mandir}/man3/wxBitmap.* %{_mandir}/man3/wxBitmapButton.* %{_mandir}/man3/wxBitmapDataObject.* +%{_mandir}/man3/wxBookCtrlBase.* +%{_mandir}/man3/wxBookCtrlEvent.* %{_mandir}/man3/wxBoxSizer.* %{_mandir}/man3/wxBrush.* %{_mandir}/man3/wxBufferedDC.* @@ -1740,11 +1721,13 @@ useradd -r -g epmd -d /dev/null -s /sbin/nologin \ %{_mandir}/man3/wxGBSizerItem.* %{_mandir}/man3/wxGCDC.* %{_mandir}/man3/wxGLCanvas.* +%{_mandir}/man3/wxGLContext.* %{_mandir}/man3/wxGauge.* %{_mandir}/man3/wxGenericDirCtrl.* %{_mandir}/man3/wxGraphicsBrush.* %{_mandir}/man3/wxGraphicsContext.* %{_mandir}/man3/wxGraphicsFont.* +%{_mandir}/man3/wxGraphicsGradientStops.* %{_mandir}/man3/wxGraphicsMatrix.* %{_mandir}/man3/wxGraphicsObject.* %{_mandir}/man3/wxGraphicsPath.* @@ -1809,7 +1792,7 @@ useradd -r -g epmd -d /dev/null -s /sbin/nologin \ %{_mandir}/man3/wxMultiChoiceDialog.* %{_mandir}/man3/wxNavigationKeyEvent.* %{_mandir}/man3/wxNotebook.* -%{_mandir}/man3/wxNotebookEvent.* +%{_mandir}/man3/wxNotificationMessage.* %{_mandir}/man3/wxNotifyEvent.* %{_mandir}/man3/wxOverlay.* %{_mandir}/man3/wxPageSetupDialog.* @@ -1888,6 +1871,8 @@ useradd -r -g epmd -d /dev/null -s /sbin/nologin \ %{_mandir}/man3/wxTreeEvent.* %{_mandir}/man3/wxTreebook.* %{_mandir}/man3/wxUpdateUIEvent.* +%{_mandir}/man3/wxWebView.* +%{_mandir}/man3/wxWebViewEvent.* %{_mandir}/man3/wxWindow.* %{_mandir}/man3/wxWindowCreateEvent.* %{_mandir}/man3/wxWindowDC.* @@ -1912,6 +1897,10 @@ useradd -r -g epmd -d /dev/null -s /sbin/nologin \ %changelog +* Sat Apr 3 2021 Peter Lemenkov - 24.0-0.1.rc2 +- Ver. 24.0-rc2 +- Removed hipe + * Tue Mar 30 2021 Peter Lemenkov - 23.3.1-1 - Ver. 23.3.1 diff --git a/otp-0001-Do-not-format-man-pages-and-do-not-install-miscellan.patch b/otp-0001-Do-not-format-man-pages-and-do-not-install-miscellan.patch index 3fd02f3..7034252 100644 --- a/otp-0001-Do-not-format-man-pages-and-do-not-install-miscellan.patch +++ b/otp-0001-Do-not-format-man-pages-and-do-not-install-miscellan.patch @@ -6,10 +6,10 @@ Subject: [PATCH] Do not format man-pages and do not install miscellaneous Signed-off-by: Peter Lemenkov diff --git a/erts/etc/common/Makefile.in b/erts/etc/common/Makefile.in -index 7a2b821c46..f5f3ee69cb 100644 +index ba4d898f79..a22e557007 100644 --- a/erts/etc/common/Makefile.in +++ b/erts/etc/common/Makefile.in -@@ -528,10 +528,6 @@ endif +@@ -525,10 +525,6 @@ endif ifneq ($(INSTALL_TOP_BIN),) $(INSTALL_PROGRAM) $(INSTALL_TOP_BIN) "$(RELEASE_PATH)" endif diff --git a/otp-0002-Remove-rpath.patch b/otp-0002-Remove-rpath.patch index f44a974..be5841a 100644 --- a/otp-0002-Remove-rpath.patch +++ b/otp-0002-Remove-rpath.patch @@ -5,10 +5,10 @@ Subject: [PATCH] Remove rpath Signed-off-by: Peter Lemenkov diff --git a/lib/crypto/c_src/Makefile.in b/lib/crypto/c_src/Makefile.in -index 0821bd8d00..c94f01420e 100644 +index f962b7b9ad..916d23d69c 100644 --- a/lib/crypto/c_src/Makefile.in +++ b/lib/crypto/c_src/Makefile.in -@@ -126,7 +126,7 @@ TEST_ENGINE_LIB = $(LIBDIR)/otp_test_engine$(TYPEMARKER).@DED_EXT@ +@@ -125,7 +125,7 @@ TEST_ENGINE_LIB = $(LIBDIR)/otp_test_engine$(TYPEMARKER).@DED_EXT@ DYNAMIC_CRYPTO_LIB=@SSL_DYNAMIC_ONLY@ ifeq ($(DYNAMIC_CRYPTO_LIB),yes) @@ -17,16 +17,3 @@ index 0821bd8d00..c94f01420e 100644 CRYPTO_LINK_LIB=$(SSL_DED_LD_RUNTIME_LIBRARY_PATH) -L$(SSL_LIBDIR) -l$(SSL_CRYPTO_LIBNAME) EXTRA_FLAGS = -DHAVE_DYNAMIC_CRYPTO_LIB else -diff --git a/lib/crypto/priv/Makefile b/lib/crypto/priv/Makefile -index ff9d3e1dc9..d3aba77808 100644 ---- a/lib/crypto/priv/Makefile -+++ b/lib/crypto/priv/Makefile -@@ -61,7 +61,7 @@ OBJS = $(OBJDIR)/crypto.o - # ---------------------------------------------------- - - $(SO_NIFLIB): $(OBJS) -- $(SO_LD) $(SO_LDFLAGS) -L$(SO_SSL_LIBDIR) -Wl,-R$(SO_SSL_LIBDIR) \ -+ $(SO_LD) $(SO_LDFLAGS) -L$(SO_SSL_LIBDIR) \ - -o $@ $^ -lcrypto - - $(DLL_NIFLIB): $(OBJS) diff --git a/otp-0003-Do-not-install-C-sources.patch b/otp-0003-Do-not-install-C-sources.patch index 0745b8a..12f4eb8 100644 --- a/otp-0003-Do-not-install-C-sources.patch +++ b/otp-0003-Do-not-install-C-sources.patch @@ -26,32 +26,11 @@ index cb606fd74e..48a7c2f4f1 100644 release_docs_spec: -diff --git a/lib/crypto/c_src/Makefile.in b/lib/crypto/c_src/Makefile.in -index c94f01420e..e2cae1692f 100644 ---- a/lib/crypto/c_src/Makefile.in -+++ b/lib/crypto/c_src/Makefile.in -@@ -237,16 +237,11 @@ docs: - include $(ERL_TOP)/make/otp_release_targets.mk - - release_spec: opt -- $(INSTALL_DIR) "$(RELSYSDIR)/priv/obj" - $(INSTALL_DIR) "$(RELSYSDIR)/priv/lib" -- $(INSTALL_DATA) $(NIF_MAKEFILE) "$(RELSYSDIR)/priv/obj" -- $(INSTALL_PROGRAM) $(CRYPTO_OBJS) "$(RELSYSDIR)/priv/obj" - $(INSTALL_PROGRAM) $(NIF_LIB) "$(RELSYSDIR)/priv/lib" - ifeq ($(DYNAMIC_CRYPTO_LIB),yes) -- $(INSTALL_PROGRAM) $(CALLBACK_OBJS) "$(RELSYSDIR)/priv/obj" - $(INSTALL_PROGRAM) $(CALLBACK_LIB) "$(RELSYSDIR)/priv/lib" - endif -- $(INSTALL_PROGRAM) $(TEST_ENGINE_OBJS) "$(RELSYSDIR)/priv/obj" - $(INSTALL_PROGRAM) $(TEST_ENGINE_LIB) "$(RELSYSDIR)/priv/lib" - - release_docs_spec: diff --git a/lib/erl_interface/src/Makefile.in b/lib/erl_interface/src/Makefile.in -index 7ff3f09abb..2b94ce7de0 100644 +index 061fd05a1d..498b7d1370 100644 --- a/lib/erl_interface/src/Makefile.in +++ b/lib/erl_interface/src/Makefile.in -@@ -748,14 +748,13 @@ release: opt +@@ -691,13 +691,12 @@ release: opt $(INSTALL_DATA) $(OBJ_TARGETS) "$(RELEASE_PATH)/usr/lib" $(INSTALL_PROGRAM) $(EXE_TARGETS) "$(RELSYSDIR)/bin" $(INSTALL_DATA) $(EXTRA) "$(RELSYSDIR)/src" @@ -60,7 +39,6 @@ index 7ff3f09abb..2b94ce7de0 100644 - $(INSTALL_DATA) encode/*.[ch] "$(RELSYSDIR)/src/encode" - $(INSTALL_DATA) epmd/*.[ch] "$(RELSYSDIR)/src/epmd" - $(INSTALL_DATA) misc/*.[ch] "$(RELSYSDIR)/src/misc" -- $(INSTALL_DATA) registry/*.[ch] "$(RELSYSDIR)/src/registry" - $(INSTALL_DATA) global/*.[ch] "$(RELSYSDIR)/src/global" - $(INSTALL_DATA) prog/*.[ch] "$(RELSYSDIR)/src/prog" + $(INSTALL_DATA) connect/*.h "$(RELSYSDIR)/src/connect" @@ -68,7 +46,6 @@ index 7ff3f09abb..2b94ce7de0 100644 + $(INSTALL_DATA) encode/*.h "$(RELSYSDIR)/src/encode" + $(INSTALL_DATA) epmd/*.h "$(RELSYSDIR)/src/epmd" + $(INSTALL_DATA) misc/*.h "$(RELSYSDIR)/src/misc" -+ $(INSTALL_DATA) registry/*.h "$(RELSYSDIR)/src/registry" + $(INSTALL_DATA) prog/*.h "$(RELSYSDIR)/src/prog" release_docs: @@ -116,10 +93,10 @@ index 27b156a2c9..f11ff303b6 100644 $(INSTALL_PROGRAM) $(TARGET_FILES) "$(RELSYSDIR)/priv/bin" diff --git a/lib/tools/c_src/Makefile.in b/lib/tools/c_src/Makefile.in -index 8e13571786..ae18ef3cf4 100644 +index 878aa2cde6..0153885e88 100644 --- a/lib/tools/c_src/Makefile.in +++ b/lib/tools/c_src/Makefile.in -@@ -188,8 +188,6 @@ include ../vsn.mk +@@ -170,8 +170,6 @@ include ../vsn.mk RELSYSDIR = $(RELEASE_PATH)/lib/tools-$(TOOLS_VSN) release_spec: all diff --git a/otp-0006-Do-not-install-erlang-sources.patch b/otp-0006-Do-not-install-erlang-sources.patch index 1bc3055..989f09d 100644 --- a/otp-0006-Do-not-install-erlang-sources.patch +++ b/otp-0006-Do-not-install-erlang-sources.patch @@ -21,10 +21,10 @@ index b0c205cec8..7fad1ddc75 100644 $(INSTALL_DATA) $(STATIC_TARGET_FILES) $(APP_TARGET) "$(RELSYSDIR)/ebin" diff --git a/lib/asn1/src/Makefile b/lib/asn1/src/Makefile -index a6ff72898c..35d4530f32 100644 +index 60a2020dbf..406cc08208 100644 --- a/lib/asn1/src/Makefile +++ b/lib/asn1/src/Makefile -@@ -155,7 +155,7 @@ release_spec: opt +@@ -151,7 +151,7 @@ release_spec: opt $(INSTALL_DIR) "$(RELSYSDIR)/ebin" $(INSTALL_DATA) $(TARGET_FILES) $(APP_TARGET) $(APPUP_TARGET) "$(RELSYSDIR)/ebin" $(INSTALL_DIR) "$(RELSYSDIR)/src" @@ -63,10 +63,10 @@ index f015064b39..57f96d2929 100644 $(INSTALL_SCRIPT) $(PROGRAMS) "$(RELEASE_PATH)/test_server" diff --git a/lib/compiler/src/Makefile b/lib/compiler/src/Makefile -index b1531ac985..dbcfe0042c 100644 +index f195e16dc6..68c6695b9e 100644 --- a/lib/compiler/src/Makefile +++ b/lib/compiler/src/Makefile -@@ -184,8 +184,8 @@ include $(ERL_TOP)/make/otp_release_targets.mk +@@ -182,8 +182,8 @@ include $(ERL_TOP)/make/otp_release_targets.mk release_spec: opt $(INSTALL_DIR) "$(RELSYSDIR)/src" @@ -104,10 +104,10 @@ index 118cb6b758..86722d8767 100644 $(INSTALL_DATA) $(TARGET_FILES) $(TARGET_TOOLBOX_FILES) "$(RELSYSDIR)/ebin" diff --git a/lib/dialyzer/src/Makefile b/lib/dialyzer/src/Makefile -index 1f5b308c7d..1f728c56d6 100644 +index 0847da9d5a..24a054ac04 100644 --- a/lib/dialyzer/src/Makefile +++ b/lib/dialyzer/src/Makefile -@@ -161,7 +161,7 @@ include $(ERL_TOP)/make/otp_release_targets.mk +@@ -165,7 +165,7 @@ include $(ERL_TOP)/make/otp_release_targets.mk release_spec: opt $(INSTALL_DIR) "$(RELSYSDIR)/src" @@ -135,7 +135,7 @@ index 36e8fefd4c..d3a10890ce 100644 $(EXAMPLE_DIRS:%/=release_examples_%): release_examples_%: $(INSTALL_DIR) "$(RELSYSDIR)/examples/$*" diff --git a/lib/edoc/src/Makefile b/lib/edoc/src/Makefile -index ea2f45dc4c..84af08eb67 100644 +index 8acef15248..ead1fd3b0f 100644 --- a/lib/edoc/src/Makefile +++ b/lib/edoc/src/Makefile @@ -87,7 +87,7 @@ release_spec: opt @@ -204,118 +204,6 @@ index 32f75202a0..a89fa7f2d2 100644 $(INSTALL_DATA) $(INTERNAL_HRL_FILES) "$(RELSYSDIR)/src" $(INSTALL_DIR) "$(RELSYSDIR)/include" $(INSTALL_DATA) $(INCLUDE_DELIVERABLES) "$(RELSYSDIR)/include" -diff --git a/lib/hipe/cerl/Makefile b/lib/hipe/cerl/Makefile -index affbb10ff6..44598beff2 100644 ---- a/lib/hipe/cerl/Makefile -+++ b/lib/hipe/cerl/Makefile -@@ -105,7 +105,7 @@ include $(ERL_TOP)/make/otp_release_targets.mk - - release_spec: opt - $(INSTALL_DIR) "$(RELSYSDIR)/cerl" -- $(INSTALL_DATA) $(ERL_FILES) $(HRL_FILES) "$(RELSYSDIR)/cerl" -+ $(INSTALL_DATA) $(HRL_FILES) "$(RELSYSDIR)/cerl" - $(INSTALL_DIR) "$(RELSYSDIR)/ebin" - $(INSTALL_DATA) $(TARGET_FILES) "$(RELSYSDIR)/ebin" - -diff --git a/lib/hipe/flow/Makefile b/lib/hipe/flow/Makefile -index d883eecf36..3119bc4638 100644 ---- a/lib/hipe/flow/Makefile -+++ b/lib/hipe/flow/Makefile -@@ -102,7 +102,7 @@ include $(ERL_TOP)/make/otp_release_targets.mk - - release_spec: opt - $(INSTALL_DIR) "$(RELSYSDIR)/flow" -- $(INSTALL_DATA) $(ERL_FILES) $(HRL_FILES) $(INC_FILES) "$(RELSYSDIR)/flow" -+ $(INSTALL_DATA) $(HRL_FILES) $(INC_FILES) "$(RELSYSDIR)/flow" - $(INSTALL_DIR) "$(RELSYSDIR)/ebin" - $(INSTALL_DATA) $(TARGET_FILES) "$(RELSYSDIR)/ebin" - -diff --git a/lib/hipe/icode/Makefile b/lib/hipe/icode/Makefile -index b220bc16a0..d4073277be 100644 ---- a/lib/hipe/icode/Makefile -+++ b/lib/hipe/icode/Makefile -@@ -120,7 +120,7 @@ include $(ERL_TOP)/make/otp_release_targets.mk - - release_spec: opt - $(INSTALL_DIR) "$(RELSYSDIR)/icode" -- $(INSTALL_DATA) $(ERL_FILES) $(HRL_FILES) "$(RELSYSDIR)/icode" -+ $(INSTALL_DATA) $(HRL_FILES) "$(RELSYSDIR)/icode" - $(INSTALL_DIR) "$(RELSYSDIR)/ebin" - $(INSTALL_DATA) $(TARGET_FILES) "$(RELSYSDIR)/ebin" - -diff --git a/lib/hipe/llvm/Makefile b/lib/hipe/llvm/Makefile -index 5e8f2076db..06d3f2684d 100644 ---- a/lib/hipe/llvm/Makefile -+++ b/lib/hipe/llvm/Makefile -@@ -104,7 +104,7 @@ include $(ERL_TOP)/make/otp_release_targets.mk - - release_spec: opt - $(INSTALL_DIR) $(RELSYSDIR)/llvm -- $(INSTALL_DATA) $(ERL_FILES) $(HRL_FILES) $(RELSYSDIR)/llvm -+ $(INSTALL_DATA) $(HRL_FILES) $(RELSYSDIR)/llvm - $(INSTALL_DIR) $(RELSYSDIR)/ebin - $(INSTALL_DATA) $(TARGET_FILES) $(RELSYSDIR)/ebin - -diff --git a/lib/hipe/main/Makefile b/lib/hipe/main/Makefile -index 8ef31dbb46..80d28819f2 100644 ---- a/lib/hipe/main/Makefile -+++ b/lib/hipe/main/Makefile -@@ -118,7 +118,7 @@ include $(ERL_TOP)/make/otp_release_targets.mk - release_spec: opt - $(INSTALL_DATA) ../vsn.mk "$(RELSYSDIR)" - $(INSTALL_DIR) "$(RELSYSDIR)/main" -- $(INSTALL_DATA) $(ERL_FILES) $(HRL_FILES) "$(RELSYSDIR)/main" -+ $(INSTALL_DATA) $(HRL_FILES) "$(RELSYSDIR)/main" - $(INSTALL_DIR) "$(RELSYSDIR)/ebin" - $(INSTALL_DATA) $(TARGET_FILES) "$(RELSYSDIR)/ebin" - -diff --git a/lib/hipe/misc/Makefile b/lib/hipe/misc/Makefile -index e5033e444b..74a444b386 100644 ---- a/lib/hipe/misc/Makefile -+++ b/lib/hipe/misc/Makefile -@@ -102,7 +102,7 @@ include $(ERL_TOP)/make/otp_release_targets.mk - - release_spec: opt - $(INSTALL_DIR) "$(RELSYSDIR)/misc" -- $(INSTALL_DATA) $(ERL_FILES) $(HRL_FILES) "$(RELSYSDIR)/misc" -+ $(INSTALL_DATA) $(HRL_FILES) "$(RELSYSDIR)/misc" - $(INSTALL_DIR) "$(RELSYSDIR)/ebin" - $(INSTALL_DATA) $(TARGET_FILES) "$(RELSYSDIR)/ebin" - -diff --git a/lib/hipe/rtl/Makefile b/lib/hipe/rtl/Makefile -index 67485875a6..f83a2bb9e2 100644 ---- a/lib/hipe/rtl/Makefile -+++ b/lib/hipe/rtl/Makefile -@@ -108,7 +108,7 @@ include $(ERL_TOP)/make/otp_release_targets.mk - - release_spec: opt - $(INSTALL_DIR) "$(RELSYSDIR)/rtl" -- $(INSTALL_DATA) $(ERL_FILES) $(HRL_FILES) "$(RELSYSDIR)/rtl" -+ $(INSTALL_DATA) $(HRL_FILES) "$(RELSYSDIR)/rtl" - $(INSTALL_DIR) "$(RELSYSDIR)/ebin" - $(INSTALL_DATA) $(TARGET_FILES) "$(RELSYSDIR)/ebin" - -diff --git a/lib/hipe/util/Makefile b/lib/hipe/util/Makefile -index 20b1c3bf50..40c642a441 100644 ---- a/lib/hipe/util/Makefile -+++ b/lib/hipe/util/Makefile -@@ -50,7 +50,6 @@ HIPE_MODULES = - endif - MODULES = hipe_timing hipe_dot hipe_digraph hipe_dsets $(HIPE_MODULES) - --HRL_FILES= - ERL_FILES= $(MODULES:%=%.erl) - TARGET_FILES= $(MODULES:%=$(EBIN)/%.$(EMULATOR)) - DOC_FILES= $(MODULES:%=$(DOCS)/%.html) -@@ -104,8 +103,6 @@ $(DOCS)/%.html:%.erl - include $(ERL_TOP)/make/otp_release_targets.mk - - release_spec: opt -- $(INSTALL_DIR) "$(RELSYSDIR)/util" -- $(INSTALL_DATA) $(ERL_FILES) $(HRL_FILES) "$(RELSYSDIR)/util" - $(INSTALL_DIR) "$(RELSYSDIR)/ebin" - $(INSTALL_DATA) $(TARGET_FILES) "$(RELSYSDIR)/ebin" - diff --git a/lib/inets/src/http_client/Makefile b/lib/inets/src/http_client/Makefile index a1c1f36b70..f2eb86f7ac 100644 --- a/lib/inets/src/http_client/Makefile @@ -356,10 +244,10 @@ index da9549406f..eaa14b628f 100644 $(INSTALL_DATA) $(TARGET_FILES) $(BEHAVIOUR_TARGET_FILES) "$(RELSYSDIR)/ebin" diff --git a/lib/inets/src/inets_app/Makefile b/lib/inets/src/inets_app/Makefile -index ec1ae70305..88c084ef58 100644 +index edaec7655b..6969b5b5ab 100644 --- a/lib/inets/src/inets_app/Makefile +++ b/lib/inets/src/inets_app/Makefile -@@ -116,7 +116,7 @@ include $(ERL_TOP)/make/otp_release_targets.mk +@@ -114,7 +114,7 @@ include $(ERL_TOP)/make/otp_release_targets.mk release_spec: opt $(INSTALL_DIR) "$(RELSYSDIR)/src" $(INSTALL_DIR) "$(RELSYSDIR)/src/inets_app" @@ -369,10 +257,10 @@ index ec1ae70305..88c084ef58 100644 $(INSTALL_DATA) $(EXTERNAL_HRL_FILES) "$(RELSYSDIR)/include" $(INSTALL_DIR) "$(RELSYSDIR)/ebin" diff --git a/lib/kernel/src/Makefile b/lib/kernel/src/Makefile -index 6c75bcffee..d15bdb867a 100644 +index 1bf8459602..bc65afca02 100644 --- a/lib/kernel/src/Makefile +++ b/lib/kernel/src/Makefile -@@ -236,7 +236,6 @@ include $(ERL_TOP)/make/otp_release_targets.mk +@@ -228,7 +228,6 @@ include $(ERL_TOP)/make/otp_release_targets.mk release_spec: opt $(INSTALL_DIR) "$(RELSYSDIR)/src" @@ -394,10 +282,10 @@ index ab45548099..5c7a7f0be9 100644 $(INSTALL_DATA) $(EXTERNAL_HRL_FILES) "$(RELSYSDIR)/include" diff --git a/lib/megaco/src/binary/Makefile b/lib/megaco/src/binary/Makefile -index 7fc90fd6d5..6ad086ed01 100644 +index 9e33fe3ae5..1db69567bb 100644 --- a/lib/megaco/src/binary/Makefile +++ b/lib/megaco/src/binary/Makefile -@@ -177,7 +177,7 @@ release_spec: opt +@@ -154,7 +154,7 @@ release_spec: opt $(INSTALL_DATA) $(TARGET_FILES) "$(RELSYSDIR)/ebin" $(INSTALL_DIR) "$(RELSYSDIR)/src" $(INSTALL_DIR) "$(RELSYSDIR)/src/binary" @@ -445,10 +333,10 @@ index d07db3fa4b..7f421d24cc 100644 release_docs_spec: diff --git a/lib/megaco/src/text/Makefile b/lib/megaco/src/text/Makefile -index 3dd24b1df7..836e163499 100644 +index bb5f80403b..a78a4551a8 100644 --- a/lib/megaco/src/text/Makefile +++ b/lib/megaco/src/text/Makefile -@@ -131,7 +131,7 @@ release_spec: opt +@@ -133,7 +133,7 @@ release_spec: opt $(INSTALL_DATA) $(BEAM_TARGET_FILES) "$(RELSYSDIR)/ebin" $(INSTALL_DIR) "$(RELSYSDIR)/src" $(INSTALL_DIR) "$(RELSYSDIR)/src/text" @@ -600,10 +488,10 @@ index 16a42caf11..674364281d 100644 $(INSTALL_DIR) "$(RELSYSDIR)/ebin" $(INSTALL_DATA) $(TARGET_FILES) "$(RELSYSDIR)/ebin" diff --git a/lib/snmp/src/agent/Makefile b/lib/snmp/src/agent/Makefile -index 1bde1ca972..acc42385f3 100644 +index 1b7999da20..661b5a5e3f 100644 --- a/lib/snmp/src/agent/Makefile +++ b/lib/snmp/src/agent/Makefile -@@ -140,7 +140,7 @@ include $(ERL_TOP)/make/otp_release_targets.mk +@@ -151,7 +151,7 @@ include $(ERL_TOP)/make/otp_release_targets.mk release_spec: opt $(INSTALL_DIR) "$(RELSYSDIR)/src" $(INSTALL_DIR) "$(RELSYSDIR)/src/agent" @@ -613,10 +501,10 @@ index 1bde1ca972..acc42385f3 100644 $(INSTALL_DATA) $(BEHAVIOUR_TARGET_FILES) $(TARGET_FILES) $(APP_TARGET) $(APPUP_TARGET) \ "$(RELSYSDIR)/ebin" diff --git a/lib/snmp/src/app/Makefile b/lib/snmp/src/app/Makefile -index 6f2b8a4077..bd062a6473 100644 +index 09ffc7d36a..090df59403 100644 --- a/lib/snmp/src/app/Makefile +++ b/lib/snmp/src/app/Makefile -@@ -132,7 +132,7 @@ include $(ERL_TOP)/make/otp_release_targets.mk +@@ -144,7 +144,7 @@ include $(ERL_TOP)/make/otp_release_targets.mk release_spec: opt $(INSTALL_DIR) "$(RELSYSDIR)/src" $(INSTALL_DIR) "$(RELSYSDIR)/src/app" @@ -626,10 +514,10 @@ index 6f2b8a4077..bd062a6473 100644 $(INSTALL_DATA) $(TARGET_FILES) $(APP_TARGET) $(APPUP_TARGET) \ "$(RELSYSDIR)/ebin" diff --git a/lib/snmp/src/compile/Makefile b/lib/snmp/src/compile/Makefile -index d9678669a5..ff9dff95d9 100644 +index a8da839bfc..c9e9e1892d 100644 --- a/lib/snmp/src/compile/Makefile +++ b/lib/snmp/src/compile/Makefile -@@ -125,7 +125,7 @@ include $(ERL_TOP)/make/otp_release_targets.mk +@@ -137,7 +137,7 @@ include $(ERL_TOP)/make/otp_release_targets.mk release_spec: opt $(INSTALL_DIR) "$(RELSYSDIR)/src" $(INSTALL_DIR) "$(RELSYSDIR)/src/compiler" @@ -639,10 +527,10 @@ index d9678669a5..ff9dff95d9 100644 $(INSTALL_DATA) $(EBIN_FILES) "$(RELSYSDIR)/ebin" $(INSTALL_DIR) "$(RELSYSDIR)/bin" diff --git a/lib/snmp/src/manager/Makefile b/lib/snmp/src/manager/Makefile -index 57ff08c160..d51f627ca5 100644 +index ab8c36ec5e..839dc03917 100644 --- a/lib/snmp/src/manager/Makefile +++ b/lib/snmp/src/manager/Makefile -@@ -123,7 +123,7 @@ include $(ERL_TOP)/make/otp_release_targets.mk +@@ -135,7 +135,7 @@ include $(ERL_TOP)/make/otp_release_targets.mk release_spec: opt $(INSTALL_DIR) "$(RELSYSDIR)/src" $(INSTALL_DIR) "$(RELSYSDIR)/src/manager" @@ -652,10 +540,10 @@ index 57ff08c160..d51f627ca5 100644 $(INSTALL_DATA) $(BEHAVIOUR_TARGET_FILES) $(TARGET_FILES) "$(RELSYSDIR)/ebin" # $(INSTALL_DIR) "$(RELSYSDIR)/include" diff --git a/lib/snmp/src/misc/Makefile b/lib/snmp/src/misc/Makefile -index adc2c4858f..89ce954e99 100644 +index 51318b5c66..d4015d71f4 100644 --- a/lib/snmp/src/misc/Makefile +++ b/lib/snmp/src/misc/Makefile -@@ -112,7 +112,7 @@ include $(ERL_TOP)/make/otp_release_targets.mk +@@ -125,7 +125,7 @@ include $(ERL_TOP)/make/otp_release_targets.mk release_spec: opt $(INSTALL_DIR) "$(RELSYSDIR)/src" $(INSTALL_DIR) "$(RELSYSDIR)/src/misc" @@ -665,10 +553,10 @@ index adc2c4858f..89ce954e99 100644 $(INSTALL_DATA) $(TARGET_FILES) "$(RELSYSDIR)/ebin" # $(INSTALL_DIR) "$(RELSYSDIR)/include" diff --git a/lib/ssh/src/Makefile b/lib/ssh/src/Makefile -index ab6137e518..bdeabca8c3 100644 +index 4f4b55f5c5..ee966e3eed 100644 --- a/lib/ssh/src/Makefile +++ b/lib/ssh/src/Makefile -@@ -154,7 +154,7 @@ include $(ERL_TOP)/make/otp_release_targets.mk +@@ -165,7 +165,7 @@ include $(ERL_TOP)/make/otp_release_targets.mk release_spec: opt $(INSTALL_DIR) "$(RELSYSDIR)/src" @@ -691,10 +579,10 @@ index 5edd6cb4b9..39008882ca 100644 $(INSTALL_DATA) $(BEHAVIOUR_TARGET_FILES) $(TARGET_FILES) $(APP_TARGET) \ $(APPUP_TARGET) "$(RELSYSDIR)/ebin" diff --git a/lib/stdlib/src/Makefile b/lib/stdlib/src/Makefile -index e3e0c9c03d..ff9bad32ab 100644 +index 509648cb2b..0ffc2c6ed1 100644 --- a/lib/stdlib/src/Makefile +++ b/lib/stdlib/src/Makefile -@@ -223,7 +223,6 @@ include $(ERL_TOP)/make/otp_release_targets.mk +@@ -221,7 +221,6 @@ include $(ERL_TOP)/make/otp_release_targets.mk release_spec: opt $(INSTALL_DIR) "$(RELSYSDIR)/src" @@ -703,10 +591,10 @@ index e3e0c9c03d..ff9bad32ab 100644 $(INSTALL_DIR) "$(RELSYSDIR)/include" $(INSTALL_DATA) $(HRL_FILES) "$(RELSYSDIR)/include" diff --git a/lib/syntax_tools/src/Makefile b/lib/syntax_tools/src/Makefile -index c21d2f49c8..03dbc74ef7 100644 +index af6a472f3d..6796810ac2 100644 --- a/lib/syntax_tools/src/Makefile +++ b/lib/syntax_tools/src/Makefile -@@ -100,8 +100,6 @@ include $(ERL_TOP)/make/otp_release_targets.mk +@@ -96,8 +96,6 @@ include $(ERL_TOP)/make/otp_release_targets.mk release_spec: opt $(INSTALL_DIR) "$(RELSYSDIR)/ebin" $(INSTALL_DATA) $(OBJECTS) "$(RELSYSDIR)/ebin" @@ -742,10 +630,10 @@ index cc5bee9a8f..7dfa55cb41 100644 $(INSTALL_DATA) $(TARGET_FILES) $(APP_TARGET) $(APPUP_TARGET) \ "$(RELSYSDIR)/ebin" diff --git a/lib/wx/src/Makefile b/lib/wx/src/Makefile -index 52f4008e0a..dc297f1d55 100644 +index 3780e0eea3..05c8416de7 100644 --- a/lib/wx/src/Makefile +++ b/lib/wx/src/Makefile -@@ -122,9 +122,9 @@ $(EBIN)/%.beam: $(EGEN)/%.erl $(HEADER_FILES) +@@ -121,9 +121,9 @@ $(EBIN)/%.beam: $(EGEN)/%.erl $(HEADER_FILES) include $(ERL_TOP)/make/otp_release_targets.mk release_spec: opt $(INSTALL_DIR) "$(RELSYSDIR)/src" diff --git a/otp-0007-Add-extra-search-directory.patch b/otp-0007-Add-extra-search-directory.patch index ed9e2ac..2b7e1e2 100644 --- a/otp-0007-Add-extra-search-directory.patch +++ b/otp-0007-Add-extra-search-directory.patch @@ -5,7 +5,7 @@ Subject: [PATCH] Add extra search directory Signed-off-by: Peter Lemenkov diff --git a/lib/kernel/src/code_server.erl b/lib/kernel/src/code_server.erl -index 4c4823eb38..de0ab149fb 100644 +index 3ab50cafe0..f510535714 100644 --- a/lib/kernel/src/code_server.erl +++ b/lib/kernel/src/code_server.erl @@ -79,11 +79,17 @@ init(Ref, Parent, [Root,Mode]) -> diff --git a/otp-0008-Avoid-forking-sed-to-get-basename.patch b/otp-0008-Avoid-forking-sed-to-get-basename.patch index f98699a..a0ceb3e 100644 --- a/otp-0008-Avoid-forking-sed-to-get-basename.patch +++ b/otp-0008-Avoid-forking-sed-to-get-basename.patch @@ -4,11 +4,11 @@ Subject: [PATCH] Avoid forking sed to get basename. diff --git a/erts/etc/unix/erl.src.src b/erts/etc/unix/erl.src.src -index 959c099e8f..861b8bcbf1 100644 +index 0983132ac1..6b55e8f0f3 100644 --- a/erts/etc/unix/erl.src.src +++ b/erts/etc/unix/erl.src.src -@@ -21,7 +21,7 @@ - ROOTDIR="%FINAL_ROOTDIR%" +@@ -26,7 +26,7 @@ else + fi BINDIR=$ROOTDIR/erts-%VSN%/bin EMU=%EMULATOR%%EMULATOR_NUMBER% -PROGNAME=`echo $0 | sed 's/.*\///'` diff --git a/otp-0009-Load-man-pages-from-system-wide-directory.patch b/otp-0009-Load-man-pages-from-system-wide-directory.patch index d68a78b..5ee1c9b 100644 --- a/otp-0009-Load-man-pages-from-system-wide-directory.patch +++ b/otp-0009-Load-man-pages-from-system-wide-directory.patch @@ -7,10 +7,10 @@ Patch allows one to use standard man path with erl -man command. as required by Debian policy.) diff --git a/erts/etc/common/erlexec.c b/erts/etc/common/erlexec.c -index 9dba684cbb..b4c5a8413f 100644 +index 0efacd67a1..777079301c 100644 --- a/erts/etc/common/erlexec.c +++ b/erts/etc/common/erlexec.c -@@ -727,8 +727,10 @@ int main(int argc, char **argv) +@@ -720,8 +720,10 @@ int main(int argc, char **argv) error("-man not supported on Windows"); #else argv[i] = "man"; diff --git a/sources b/sources index dd69d34..90abd98 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (otp-OTP-23.3.1.tar.gz) = 03d4be9b25a14359e9f8db52d8e7d8edff1e8c53686a189caae15373c7e15d03f05e1138c549b8b41b8e6b7c55ab154cea47356f6fe79f7b72d5fb4ce759c4b0 +SHA512 (otp-OTP-24.0-rc2.tar.gz) = 10a658388f6cf2abd70cadbc4e6e0d6547afaa4ba9afdb85431fd7d2e50ded19000472533f54f690e7b0adc747382cfa5af7533fbb9e1ee58c992c03b37d1144 From d813106634590b5860e115630bec2faf2d7c0db6 Mon Sep 17 00:00:00 2001 From: Peter Lemenkov Date: Wed, 21 Apr 2021 15:01:46 +0200 Subject: [PATCH 033/135] Erlang ver. 24.0-rc3 Signed-off-by: Peter Lemenkov --- erlang.spec | 7 +++++-- otp-0003-Do-not-install-C-sources.patch | 4 ++-- otp-0006-Do-not-install-erlang-sources.patch | 4 ++-- otp-0009-Load-man-pages-from-system-wide-directory.patch | 4 ++-- sources | 2 +- 5 files changed, 12 insertions(+), 9 deletions(-) diff --git a/erlang.spec b/erlang.spec index 13ae569..b4c2e01 100644 --- a/erlang.spec +++ b/erlang.spec @@ -61,7 +61,7 @@ Name: erlang Version: 24.0 -Release: 0.1.rc2%{?dist} +Release: 0.2.rc3%{?dist} Summary: General-purpose programming language and runtime environment License: ASL 2.0 @@ -69,7 +69,7 @@ URL: https://www.erlang.org %if ! (0%{?rhel} && 0%{?rhel} <= 6) VCS: scm:git:https://github.com/erlang/otp %endif -Source0: https://github.com/erlang/otp/archive/OTP-%{version}-rc2/otp-OTP-%{version}-rc2.tar.gz +Source0: https://github.com/erlang/otp/archive/OTP-%{version}-rc3/otp-OTP-%{version}-rc3.tar.gz Source5: epmd.service Source6: epmd.socket Source7: epmd@.service @@ -1897,6 +1897,9 @@ useradd -r -g epmd -d /dev/null -s /sbin/nologin \ %changelog +* Wed Apr 21 2021 Peter Lemenkov - 24.0-0.2.rc3 +- Ver. 24.0-rc3 + * Sat Apr 3 2021 Peter Lemenkov - 24.0-0.1.rc2 - Ver. 24.0-rc2 - Removed hipe diff --git a/otp-0003-Do-not-install-C-sources.patch b/otp-0003-Do-not-install-C-sources.patch index 12f4eb8..8fa4923 100644 --- a/otp-0003-Do-not-install-C-sources.patch +++ b/otp-0003-Do-not-install-C-sources.patch @@ -27,10 +27,10 @@ index cb606fd74e..48a7c2f4f1 100644 release_docs_spec: diff --git a/lib/erl_interface/src/Makefile.in b/lib/erl_interface/src/Makefile.in -index 061fd05a1d..498b7d1370 100644 +index 56fdaa608e..ff2490ed85 100644 --- a/lib/erl_interface/src/Makefile.in +++ b/lib/erl_interface/src/Makefile.in -@@ -691,13 +691,12 @@ release: opt +@@ -690,13 +690,12 @@ release: opt $(INSTALL_DATA) $(OBJ_TARGETS) "$(RELEASE_PATH)/usr/lib" $(INSTALL_PROGRAM) $(EXE_TARGETS) "$(RELSYSDIR)/bin" $(INSTALL_DATA) $(EXTRA) "$(RELSYSDIR)/src" diff --git a/otp-0006-Do-not-install-erlang-sources.patch b/otp-0006-Do-not-install-erlang-sources.patch index 989f09d..504fd2b 100644 --- a/otp-0006-Do-not-install-erlang-sources.patch +++ b/otp-0006-Do-not-install-erlang-sources.patch @@ -553,10 +553,10 @@ index 51318b5c66..d4015d71f4 100644 $(INSTALL_DATA) $(TARGET_FILES) "$(RELSYSDIR)/ebin" # $(INSTALL_DIR) "$(RELSYSDIR)/include" diff --git a/lib/ssh/src/Makefile b/lib/ssh/src/Makefile -index 4f4b55f5c5..ee966e3eed 100644 +index 517a6611c4..b348d1cfb8 100644 --- a/lib/ssh/src/Makefile +++ b/lib/ssh/src/Makefile -@@ -165,7 +165,7 @@ include $(ERL_TOP)/make/otp_release_targets.mk +@@ -182,7 +182,7 @@ include $(ERL_TOP)/make/otp_release_targets.mk release_spec: opt $(INSTALL_DIR) "$(RELSYSDIR)/src" diff --git a/otp-0009-Load-man-pages-from-system-wide-directory.patch b/otp-0009-Load-man-pages-from-system-wide-directory.patch index 5ee1c9b..35c29f3 100644 --- a/otp-0009-Load-man-pages-from-system-wide-directory.patch +++ b/otp-0009-Load-man-pages-from-system-wide-directory.patch @@ -7,10 +7,10 @@ Patch allows one to use standard man path with erl -man command. as required by Debian policy.) diff --git a/erts/etc/common/erlexec.c b/erts/etc/common/erlexec.c -index 0efacd67a1..777079301c 100644 +index 06182c25ce..b41ae3a90a 100644 --- a/erts/etc/common/erlexec.c +++ b/erts/etc/common/erlexec.c -@@ -720,8 +720,10 @@ int main(int argc, char **argv) +@@ -722,8 +722,10 @@ int main(int argc, char **argv) error("-man not supported on Windows"); #else argv[i] = "man"; diff --git a/sources b/sources index 90abd98..a6d3277 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (otp-OTP-24.0-rc2.tar.gz) = 10a658388f6cf2abd70cadbc4e6e0d6547afaa4ba9afdb85431fd7d2e50ded19000472533f54f690e7b0adc747382cfa5af7533fbb9e1ee58c992c03b37d1144 +SHA512 (otp-OTP-24.0-rc3.tar.gz) = bcc4946fafd6fcc0a29d75f8a0168d9db523bec279aaaf4ec3c4b2eb058c6ff6e38459847acf13b7b9327ebbb2c1ea9b28c164e728a004459d89a3e43bf1ea0c From 4fbd6b2c8449df2b0b020041cd826ee2bd8ebf34 Mon Sep 17 00:00:00 2001 From: Peter Lemenkov Date: Wed, 21 Apr 2021 15:06:52 +0200 Subject: [PATCH 034/135] typo Signed-off-by: Peter Lemenkov --- erlang.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erlang.spec b/erlang.spec index b4c2e01..305f759 100644 --- a/erlang.spec +++ b/erlang.spec @@ -685,7 +685,7 @@ Provides support for XML 1.0. ### END OF AUTOGENERATED LIST ### %prep -%autosetup -p1 -n otp-OTP-%{version}-rc2 +%autosetup -p1 -n otp-OTP-%{version}-rc3 # FIXME we should come up with a better solution # remove shipped zlib sources From e401b7fca57bc99cecc949fc05747a1ce60ebe12 Mon Sep 17 00:00:00 2001 From: Peter Lemenkov Date: Wed, 21 Apr 2021 16:03:05 +0200 Subject: [PATCH 035/135] leftover Signed-off-by: Peter Lemenkov --- otp-0003-Do-not-install-C-sources.patch | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/otp-0003-Do-not-install-C-sources.patch b/otp-0003-Do-not-install-C-sources.patch index 8fa4923..8f3b803 100644 --- a/otp-0003-Do-not-install-C-sources.patch +++ b/otp-0003-Do-not-install-C-sources.patch @@ -27,10 +27,10 @@ index cb606fd74e..48a7c2f4f1 100644 release_docs_spec: diff --git a/lib/erl_interface/src/Makefile.in b/lib/erl_interface/src/Makefile.in -index 56fdaa608e..ff2490ed85 100644 +index 56fdaa608e..25764ce50d 100644 --- a/lib/erl_interface/src/Makefile.in +++ b/lib/erl_interface/src/Makefile.in -@@ -690,13 +690,12 @@ release: opt +@@ -690,13 +690,11 @@ release: opt $(INSTALL_DATA) $(OBJ_TARGETS) "$(RELEASE_PATH)/usr/lib" $(INSTALL_PROGRAM) $(EXE_TARGETS) "$(RELSYSDIR)/bin" $(INSTALL_DATA) $(EXTRA) "$(RELSYSDIR)/src" @@ -46,7 +46,6 @@ index 56fdaa608e..ff2490ed85 100644 + $(INSTALL_DATA) encode/*.h "$(RELSYSDIR)/src/encode" + $(INSTALL_DATA) epmd/*.h "$(RELSYSDIR)/src/epmd" + $(INSTALL_DATA) misc/*.h "$(RELSYSDIR)/src/misc" -+ $(INSTALL_DATA) prog/*.h "$(RELSYSDIR)/src/prog" release_docs: From 43ba8d5925ba67d5c0f7d849c6745f3d54a92a38 Mon Sep 17 00:00:00 2001 From: Peter Lemenkov Date: Wed, 12 May 2021 19:12:19 +0300 Subject: [PATCH 036/135] Erlang ver. 24.0 Signed-off-by: Peter Lemenkov --- erlang.spec | 9 ++++++--- otp-0002-Remove-rpath.patch | 8 ++++---- otp-0006-Do-not-install-erlang-sources.patch | 4 ++-- sources | 2 +- 4 files changed, 13 insertions(+), 10 deletions(-) diff --git a/erlang.spec b/erlang.spec index 305f759..8058043 100644 --- a/erlang.spec +++ b/erlang.spec @@ -61,7 +61,7 @@ Name: erlang Version: 24.0 -Release: 0.2.rc3%{?dist} +Release: 1%{?dist} Summary: General-purpose programming language and runtime environment License: ASL 2.0 @@ -69,7 +69,7 @@ URL: https://www.erlang.org %if ! (0%{?rhel} && 0%{?rhel} <= 6) VCS: scm:git:https://github.com/erlang/otp %endif -Source0: https://github.com/erlang/otp/archive/OTP-%{version}-rc3/otp-OTP-%{version}-rc3.tar.gz +Source0: https://github.com/erlang/otp/archive/OTP-%{version}/otp-OTP-%{version}.tar.gz Source5: epmd.service Source6: epmd.socket Source7: epmd@.service @@ -685,7 +685,7 @@ Provides support for XML 1.0. ### END OF AUTOGENERATED LIST ### %prep -%autosetup -p1 -n otp-OTP-%{version}-rc3 +%autosetup -p1 -n otp-OTP-%{version} # FIXME we should come up with a better solution # remove shipped zlib sources @@ -1897,6 +1897,9 @@ useradd -r -g epmd -d /dev/null -s /sbin/nologin \ %changelog +* Wed May 12 2021 Peter Lemenkov - 24.0-1 +- Ver. 24.0 + * Wed Apr 21 2021 Peter Lemenkov - 24.0-0.2.rc3 - Ver. 24.0-rc3 diff --git a/otp-0002-Remove-rpath.patch b/otp-0002-Remove-rpath.patch index be5841a..e55a83c 100644 --- a/otp-0002-Remove-rpath.patch +++ b/otp-0002-Remove-rpath.patch @@ -5,13 +5,13 @@ Subject: [PATCH] Remove rpath Signed-off-by: Peter Lemenkov diff --git a/lib/crypto/c_src/Makefile.in b/lib/crypto/c_src/Makefile.in -index f962b7b9ad..916d23d69c 100644 +index 2eee53bd31..5da20a43a6 100644 --- a/lib/crypto/c_src/Makefile.in +++ b/lib/crypto/c_src/Makefile.in -@@ -125,7 +125,7 @@ TEST_ENGINE_LIB = $(LIBDIR)/otp_test_engine$(TYPEMARKER).@DED_EXT@ - DYNAMIC_CRYPTO_LIB=@SSL_DYNAMIC_ONLY@ +@@ -136,7 +136,7 @@ endif + endif - ifeq ($(DYNAMIC_CRYPTO_LIB),yes) + ifeq ($(DYNAMIC_OR_WIN_CRYPTO_LIB),yes) -SSL_DED_LD_RUNTIME_LIBRARY_PATH = @SSL_DED_LD_RUNTIME_LIBRARY_PATH@ +SSL_DED_LD_RUNTIME_LIBRARY_PATH = CRYPTO_LINK_LIB=$(SSL_DED_LD_RUNTIME_LIBRARY_PATH) -L$(SSL_LIBDIR) -l$(SSL_CRYPTO_LIBNAME) diff --git a/otp-0006-Do-not-install-erlang-sources.patch b/otp-0006-Do-not-install-erlang-sources.patch index 504fd2b..18ef6d6 100644 --- a/otp-0006-Do-not-install-erlang-sources.patch +++ b/otp-0006-Do-not-install-erlang-sources.patch @@ -117,10 +117,10 @@ index 0847da9d5a..24a054ac04 100644 $(INSTALL_DIR) "$(RELSYSDIR)/ebin" $(INSTALL_DATA) $(INSTALL_FILES) "$(RELSYSDIR)/ebin" diff --git a/lib/diameter/src/Makefile b/lib/diameter/src/Makefile -index 36e8fefd4c..d3a10890ce 100644 +index 348cc350e1..9d87858def 100644 --- a/lib/diameter/src/Makefile +++ b/lib/diameter/src/Makefile -@@ -263,11 +263,8 @@ release_spec: opt +@@ -260,11 +260,8 @@ release_spec: opt $(MAKE) $(EXAMPLE_DIRS:%/=release_examples_%) $(TARGET_DIRS:%/=release_src_%): release_src_%: diff --git a/sources b/sources index a6d3277..4aad9fe 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (otp-OTP-24.0-rc3.tar.gz) = bcc4946fafd6fcc0a29d75f8a0168d9db523bec279aaaf4ec3c4b2eb058c6ff6e38459847acf13b7b9327ebbb2c1ea9b28c164e728a004459d89a3e43bf1ea0c +SHA512 (otp-OTP-24.0.tar.gz) = bd3e4dbe640e80dc2173bc9c92178acbd6aee7a486a1eebb7fe8ec70963b8c94bb456af7ac592f434700cd8b1d98ef8351bfc7a76113bbbd0c9a0e20fd68629b From 4eb19b8c14981e4c2e2ef3bb65a777a2e476b33f Mon Sep 17 00:00:00 2001 From: John Eckersberg Date: Fri, 21 May 2021 08:33:48 -0400 Subject: [PATCH 037/135] Erlang ver. 24.0.1 Signed-off-by: John Eckersberg --- erlang.spec | 5 ++++- sources | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/erlang.spec b/erlang.spec index 8058043..ce00b38 100644 --- a/erlang.spec +++ b/erlang.spec @@ -60,7 +60,7 @@ Name: erlang -Version: 24.0 +Version: 24.0.1 Release: 1%{?dist} Summary: General-purpose programming language and runtime environment @@ -1897,6 +1897,9 @@ useradd -r -g epmd -d /dev/null -s /sbin/nologin \ %changelog +* Fri May 21 2021 John Eckersberg - 24.0.1-1 +- Ver. 24.0.1 + * Wed May 12 2021 Peter Lemenkov - 24.0-1 - Ver. 24.0 diff --git a/sources b/sources index 4aad9fe..5b34bff 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (otp-OTP-24.0.tar.gz) = bd3e4dbe640e80dc2173bc9c92178acbd6aee7a486a1eebb7fe8ec70963b8c94bb456af7ac592f434700cd8b1d98ef8351bfc7a76113bbbd0c9a0e20fd68629b +SHA512 (otp-OTP-24.0.1.tar.gz) = 8e6588e69e58395c92a6cd9e63ff4da688e8fe8b1cc6dea3e3bb5b102940854a73a1a6363e8f94c697117a7be0f8b07712cb584af1d9ef9947eb87b09c8559e6 From 0ce468211a51a03ecbbd2e09b4d40668559c7de1 Mon Sep 17 00:00:00 2001 From: Peter Lemenkov Date: Tue, 1 Jun 2021 17:04:05 +0300 Subject: [PATCH 038/135] Erlang ver. 24.0.2 Signed-off-by: Peter Lemenkov --- erlang.spec | 5 ++++- sources | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/erlang.spec b/erlang.spec index ce00b38..383cad3 100644 --- a/erlang.spec +++ b/erlang.spec @@ -60,7 +60,7 @@ Name: erlang -Version: 24.0.1 +Version: 24.0.2 Release: 1%{?dist} Summary: General-purpose programming language and runtime environment @@ -1897,6 +1897,9 @@ useradd -r -g epmd -d /dev/null -s /sbin/nologin \ %changelog +* Tue Jun 01 2021 Peter Lemenkov - 24.0.2-1 +- Ver. 24.0.2 + * Fri May 21 2021 John Eckersberg - 24.0.1-1 - Ver. 24.0.1 diff --git a/sources b/sources index 5b34bff..40085e1 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (otp-OTP-24.0.1.tar.gz) = 8e6588e69e58395c92a6cd9e63ff4da688e8fe8b1cc6dea3e3bb5b102940854a73a1a6363e8f94c697117a7be0f8b07712cb584af1d9ef9947eb87b09c8559e6 +SHA512 (otp-OTP-24.0.2.tar.gz) = d85e3e6a4177ac8c696dd666183f624065a89d35aa7f031cd6a7b105e0d1f9007de8d413880df47daf8f695485d952a81a14a01313b52f66534c1e5bd050093b From 3eb9dec405170b64680d55b2fbeb1420d5dcf400 Mon Sep 17 00:00:00 2001 From: Peter Lemenkov Date: Tue, 29 Jun 2021 14:07:12 +0200 Subject: [PATCH 039/135] Erlang ver. 24.0.3 Signed-off-by: Peter Lemenkov --- erlang.spec | 5 ++++- sources | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/erlang.spec b/erlang.spec index 383cad3..417a70d 100644 --- a/erlang.spec +++ b/erlang.spec @@ -60,7 +60,7 @@ Name: erlang -Version: 24.0.2 +Version: 24.0.3 Release: 1%{?dist} Summary: General-purpose programming language and runtime environment @@ -1897,6 +1897,9 @@ useradd -r -g epmd -d /dev/null -s /sbin/nologin \ %changelog +* Tue Jun 29 2021 Peter Lemenkov - 24.0.3-1 +- Ver. 24.0.3 + * Tue Jun 01 2021 Peter Lemenkov - 24.0.2-1 - Ver. 24.0.2 diff --git a/sources b/sources index 40085e1..e0ea8d9 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (otp-OTP-24.0.2.tar.gz) = d85e3e6a4177ac8c696dd666183f624065a89d35aa7f031cd6a7b105e0d1f9007de8d413880df47daf8f695485d952a81a14a01313b52f66534c1e5bd050093b +SHA512 (otp-OTP-24.0.3.tar.gz) = 94b16d475b3f2e56ba546668b7fa2491b62c2cf38c6419a6f1fc16b2a1f842250d7bb2d01c8ba152bf13b9c13f52baa3b47e158f66e7bdcd9bb8e21dc5846a80 From 235ce3ea99a411cfe04c344ca39af0d29ca9013c Mon Sep 17 00:00:00 2001 From: John Eckersberg Date: Tue, 6 Jul 2021 12:32:15 -0400 Subject: [PATCH 040/135] Compile with FIPS support by default --- erlang.spec | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/erlang.spec b/erlang.spec index 417a70d..9991139 100644 --- a/erlang.spec +++ b/erlang.spec @@ -16,6 +16,9 @@ %endif %endif +# Compile with FIPS support by default +%bcond_without fips + ## ## Optional components ## @@ -711,6 +714,7 @@ ERL_FLAGS="${RPM_OPT_FLAGS} -fno-strict-aliasing" CFLAGS="${ERL_FLAGS}" CXXFLAGS="${ERL_FLAGS}" %configure --enable-shared-zlib --enable-sctp --enable-systemd --disable-silent-rules \ %{?__without_kernel_poll:--disable-kernel-poll} \ + %{?with_fips:--enable-fips} \ %if %{__with_java} \ %else From b1b791bedf32c1f8b5f1555e537aef35c755ea58 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Wed, 21 Jul 2021 22:05:41 +0000 Subject: [PATCH 041/135] - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- erlang.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/erlang.spec b/erlang.spec index 9991139..95fc090 100644 --- a/erlang.spec +++ b/erlang.spec @@ -64,7 +64,7 @@ Name: erlang Version: 24.0.3 -Release: 1%{?dist} +Release: 2%{?dist} Summary: General-purpose programming language and runtime environment License: ASL 2.0 @@ -1901,6 +1901,9 @@ useradd -r -g epmd -d /dev/null -s /sbin/nologin \ %changelog +* Wed Jul 21 2021 Fedora Release Engineering - 24.0.3-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + * Tue Jun 29 2021 Peter Lemenkov - 24.0.3-1 - Ver. 24.0.3 From 9b5968fb4d09942b2777376d2e373cd0039753c3 Mon Sep 17 00:00:00 2001 From: Peter Lemenkov Date: Thu, 22 Jul 2021 13:04:55 +0200 Subject: [PATCH 042/135] Erlang ver. 24.0.4 Signed-off-by: Peter Lemenkov --- erlang.spec | 7 +++++-- sources | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/erlang.spec b/erlang.spec index 95fc090..ff8f5ca 100644 --- a/erlang.spec +++ b/erlang.spec @@ -63,8 +63,8 @@ Name: erlang -Version: 24.0.3 -Release: 2%{?dist} +Version: 24.0.4 +Release: 1%{?dist} Summary: General-purpose programming language and runtime environment License: ASL 2.0 @@ -1901,6 +1901,9 @@ useradd -r -g epmd -d /dev/null -s /sbin/nologin \ %changelog +* Thu Jul 22 2021 Peter Lemenkov - 24.0.4-1 +- Ver. 24.0.4 + * Wed Jul 21 2021 Fedora Release Engineering - 24.0.3-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild diff --git a/sources b/sources index e0ea8d9..e8dda4e 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (otp-OTP-24.0.3.tar.gz) = 94b16d475b3f2e56ba546668b7fa2491b62c2cf38c6419a6f1fc16b2a1f842250d7bb2d01c8ba152bf13b9c13f52baa3b47e158f66e7bdcd9bb8e21dc5846a80 +SHA512 (otp-OTP-24.0.4.tar.gz) = a0d4ce8077862a3fa41e092cd9afe3a2c1542d6fae538c170687c463c6002dbc61e760533c213268b41d2cb0e54a8a0f197e6a73beed2b320f973240b8ac99c7 From 37f86696ff29fa7c3d3d7d79f8980ed87b159a87 Mon Sep 17 00:00:00 2001 From: Peter Lemenkov Date: Tue, 3 Aug 2021 18:37:33 +0200 Subject: [PATCH 043/135] Erlang ver. 24.0.5 Signed-off-by: Peter Lemenkov --- erlang.spec | 7 +++++-- sources | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/erlang.spec b/erlang.spec index ff8f5ca..c06ea2c 100644 --- a/erlang.spec +++ b/erlang.spec @@ -3,7 +3,7 @@ %{!?need_bootstrap: %global need_bootstrap %{need_bootstrap_set}} %ifarch %{arm} %{mips} riscv64 -# MIPS does not have all dependencies for fop yet +# MIPS and RISC-V does not have all dependencies for fop yet. # For some reason, fop hangs on arm, so for now don't generate docs by # default %bcond_with doc @@ -63,7 +63,7 @@ Name: erlang -Version: 24.0.4 +Version: 24.0.5 Release: 1%{?dist} Summary: General-purpose programming language and runtime environment @@ -1901,6 +1901,9 @@ useradd -r -g epmd -d /dev/null -s /sbin/nologin \ %changelog +* Tue Aug 3 2021 Peter Lemenkov - 24.0.5-1 +- Ver. 24.0.5 + * Thu Jul 22 2021 Peter Lemenkov - 24.0.4-1 - Ver. 24.0.4 diff --git a/sources b/sources index e8dda4e..869aa18 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (otp-OTP-24.0.4.tar.gz) = a0d4ce8077862a3fa41e092cd9afe3a2c1542d6fae538c170687c463c6002dbc61e760533c213268b41d2cb0e54a8a0f197e6a73beed2b320f973240b8ac99c7 +SHA512 (otp-OTP-24.0.5.tar.gz) = 41c846bee690921fabecc8b227678eedfccdfe1e150b368c221949e851fbfd5808d6f0643e36aa122622662c999a9c703e8b9a0378a1466dda0c0db7caad04b7 From b6aff823efe59b93a6e7ad59876d67a3f8c5fdf8 Mon Sep 17 00:00:00 2001 From: Peter Lemenkov Date: Fri, 3 Sep 2021 18:10:58 +0200 Subject: [PATCH 044/135] Erlang ver. 24.0.6 Signed-off-by: Peter Lemenkov --- erlang.spec | 5 ++++- sources | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/erlang.spec b/erlang.spec index c06ea2c..e6dbbe4 100644 --- a/erlang.spec +++ b/erlang.spec @@ -63,7 +63,7 @@ Name: erlang -Version: 24.0.5 +Version: 24.0.6 Release: 1%{?dist} Summary: General-purpose programming language and runtime environment @@ -1901,6 +1901,9 @@ useradd -r -g epmd -d /dev/null -s /sbin/nologin \ %changelog +* Fri Sep 3 2021 Peter Lemenkov - 24.0.6-1 +- Ver. 24.0.6 + * Tue Aug 3 2021 Peter Lemenkov - 24.0.5-1 - Ver. 24.0.5 diff --git a/sources b/sources index 869aa18..5ff15d0 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (otp-OTP-24.0.5.tar.gz) = 41c846bee690921fabecc8b227678eedfccdfe1e150b368c221949e851fbfd5808d6f0643e36aa122622662c999a9c703e8b9a0378a1466dda0c0db7caad04b7 +SHA512 (otp-OTP-24.0.6.tar.gz) = d9d152a411cbb47eb3282075d90e995766df6129a723f570b65cabe75630b18078070c1510a5f481c5d714b8b0195f632c75d8d4b90893ac9e8902fe6f6bebd4 From 95b5db575d1395890c5575ec640e2d5bfccf760e Mon Sep 17 00:00:00 2001 From: Sahana Prasad Date: Tue, 14 Sep 2021 19:01:17 +0200 Subject: [PATCH 045/135] Rebuilt with OpenSSL 3.0.0 --- erlang.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/erlang.spec b/erlang.spec index e6dbbe4..f105b83 100644 --- a/erlang.spec +++ b/erlang.spec @@ -64,7 +64,7 @@ Name: erlang Version: 24.0.6 -Release: 1%{?dist} +Release: 2%{?dist} Summary: General-purpose programming language and runtime environment License: ASL 2.0 @@ -1901,6 +1901,9 @@ useradd -r -g epmd -d /dev/null -s /sbin/nologin \ %changelog +* Tue Sep 14 2021 Sahana Prasad - 24.0.6-2 +- Rebuilt with OpenSSL 3.0.0 + * Fri Sep 3 2021 Peter Lemenkov - 24.0.6-1 - Ver. 24.0.6 From a0c224a8fabda07e37b6d314b01243859ce0cada Mon Sep 17 00:00:00 2001 From: Peter Lemenkov Date: Thu, 23 Sep 2021 17:20:52 +0200 Subject: [PATCH 046/135] Erlang ver. 24.1 Signed-off-by: Peter Lemenkov --- erlang.spec | 8 ++++++-- otp-0002-Remove-rpath.patch | 2 +- otp-0006-Do-not-install-erlang-sources.patch | 12 ++++++------ sources | 2 +- 4 files changed, 14 insertions(+), 10 deletions(-) diff --git a/erlang.spec b/erlang.spec index f105b83..3523b20 100644 --- a/erlang.spec +++ b/erlang.spec @@ -63,8 +63,8 @@ Name: erlang -Version: 24.0.6 -Release: 2%{?dist} +Version: 24.1 +Release: 1%{?dist} Summary: General-purpose programming language and runtime environment License: ASL 2.0 @@ -355,6 +355,7 @@ Requires: lksctp-tools Provides: erlang(erl_drv_version) = 3.3 # See erts/emulator/beam/erl_nif.h or call erlang:system_info(nif_version). #Provides: erlang(erl_nif_version) = %%(%%{buildroot}/bin/erl -noshell -eval 'io:format(erlang:system_info(nif_version)).' -s erlang halt) +# FIXME has to be 2.16 Provides: erlang(erl_nif_version) = 2.15 Provides: bundled(pcre) = 8.33 Obsoletes: erlang-appmon @@ -1901,6 +1902,9 @@ useradd -r -g epmd -d /dev/null -s /sbin/nologin \ %changelog +* Thu Sep 23 2021 Peter Lemenkov - 24.1-1 +- Ver. 24.1 + * Tue Sep 14 2021 Sahana Prasad - 24.0.6-2 - Rebuilt with OpenSSL 3.0.0 diff --git a/otp-0002-Remove-rpath.patch b/otp-0002-Remove-rpath.patch index e55a83c..1e04c1f 100644 --- a/otp-0002-Remove-rpath.patch +++ b/otp-0002-Remove-rpath.patch @@ -5,7 +5,7 @@ Subject: [PATCH] Remove rpath Signed-off-by: Peter Lemenkov diff --git a/lib/crypto/c_src/Makefile.in b/lib/crypto/c_src/Makefile.in -index 2eee53bd31..5da20a43a6 100644 +index d360d9b6cb..614e748896 100644 --- a/lib/crypto/c_src/Makefile.in +++ b/lib/crypto/c_src/Makefile.in @@ -136,7 +136,7 @@ endif diff --git a/otp-0006-Do-not-install-erlang-sources.patch b/otp-0006-Do-not-install-erlang-sources.patch index 18ef6d6..1fc230b 100644 --- a/otp-0006-Do-not-install-erlang-sources.patch +++ b/otp-0006-Do-not-install-erlang-sources.patch @@ -257,10 +257,10 @@ index edaec7655b..6969b5b5ab 100644 $(INSTALL_DATA) $(EXTERNAL_HRL_FILES) "$(RELSYSDIR)/include" $(INSTALL_DIR) "$(RELSYSDIR)/ebin" diff --git a/lib/kernel/src/Makefile b/lib/kernel/src/Makefile -index 1bf8459602..bc65afca02 100644 +index b2299188eb..bee47366f1 100644 --- a/lib/kernel/src/Makefile +++ b/lib/kernel/src/Makefile -@@ -228,7 +228,6 @@ include $(ERL_TOP)/make/otp_release_targets.mk +@@ -229,7 +229,6 @@ include $(ERL_TOP)/make/otp_release_targets.mk release_spec: opt $(INSTALL_DIR) "$(RELSYSDIR)/src" @@ -372,10 +372,10 @@ index 90e8780754..1a13d764b3 100644 $(INSTALL_DATA) $(TARGET_FILES) "$(RELSYSDIR)/ebin" diff --git a/lib/observer/src/Makefile b/lib/observer/src/Makefile -index f9f239db37..dd061f29f4 100644 +index 4280557d45..eb43ecec23 100644 --- a/lib/observer/src/Makefile +++ b/lib/observer/src/Makefile -@@ -150,7 +150,6 @@ include $(ERL_TOP)/make/otp_release_targets.mk +@@ -151,7 +151,6 @@ include $(ERL_TOP)/make/otp_release_targets.mk release_spec: opt $(INSTALL_DIR) "$(RELSYSDIR)/src" @@ -566,10 +566,10 @@ index 517a6611c4..b348d1cfb8 100644 $(INSTALL_DATA) $(BEHAVIOUR_TARGET_FILES) $(TARGET_FILES) $(APP_TARGET) \ $(APPUP_TARGET) "$(RELSYSDIR)/ebin" diff --git a/lib/ssl/src/Makefile b/lib/ssl/src/Makefile -index 5edd6cb4b9..39008882ca 100644 +index 9cbee91946..a0f494874a 100644 --- a/lib/ssl/src/Makefile +++ b/lib/ssl/src/Makefile -@@ -207,7 +207,7 @@ include $(ERL_TOP)/make/otp_release_targets.mk +@@ -210,7 +210,7 @@ include $(ERL_TOP)/make/otp_release_targets.mk release_spec: opt $(INSTALL_DIR) "$(RELSYSDIR)/src" diff --git a/sources b/sources index 5ff15d0..7f05354 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (otp-OTP-24.0.6.tar.gz) = d9d152a411cbb47eb3282075d90e995766df6129a723f570b65cabe75630b18078070c1510a5f481c5d714b8b0195f632c75d8d4b90893ac9e8902fe6f6bebd4 +SHA512 (otp-OTP-24.1.tar.gz) = 7352090155f49add80567fd527e6f8cb55baa66a014d604cd9cff3a711535486b1a15132bb300657125893584c0339efde7761191a63899b35e4d46d22fc5d45 From 0420c0e4509682cd070e9cfb0e913677afe3bd10 Mon Sep 17 00:00:00 2001 From: Peter Lemenkov Date: Mon, 4 Oct 2021 22:39:08 +0200 Subject: [PATCH 047/135] Erlang ver. 24.1.1 Signed-off-by: Peter Lemenkov --- erlang.spec | 5 ++++- sources | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/erlang.spec b/erlang.spec index 3523b20..366def8 100644 --- a/erlang.spec +++ b/erlang.spec @@ -63,7 +63,7 @@ Name: erlang -Version: 24.1 +Version: 24.1.1 Release: 1%{?dist} Summary: General-purpose programming language and runtime environment @@ -1902,6 +1902,9 @@ useradd -r -g epmd -d /dev/null -s /sbin/nologin \ %changelog +* Mon Oct 4 2021 Peter Lemenkov - 24.1.1-1 +- Ver. 24.1.1 + * Thu Sep 23 2021 Peter Lemenkov - 24.1-1 - Ver. 24.1 diff --git a/sources b/sources index 7f05354..8ad8e6b 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (otp-OTP-24.1.tar.gz) = 7352090155f49add80567fd527e6f8cb55baa66a014d604cd9cff3a711535486b1a15132bb300657125893584c0339efde7761191a63899b35e4d46d22fc5d45 +SHA512 (otp-OTP-24.1.1.tar.gz) = 303ccf632473520bbc044cc3e6ce8b3c8f8a2e070d959133d7057a715eba99b148a96d5553ec12d30cc3c3fc1d4aa9cd82b0daf87de41d89c5653226b983b375 From 9aefdf0ecfebfc3173a49aa8d18818fd46500a18 Mon Sep 17 00:00:00 2001 From: Peter Lemenkov Date: Tue, 5 Oct 2021 17:23:05 +0200 Subject: [PATCH 048/135] Erlang ver. 24.1.2 Signed-off-by: Peter Lemenkov --- erlang.spec | 5 ++++- sources | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/erlang.spec b/erlang.spec index 366def8..c00a925 100644 --- a/erlang.spec +++ b/erlang.spec @@ -63,7 +63,7 @@ Name: erlang -Version: 24.1.1 +Version: 24.1.2 Release: 1%{?dist} Summary: General-purpose programming language and runtime environment @@ -1902,6 +1902,9 @@ useradd -r -g epmd -d /dev/null -s /sbin/nologin \ %changelog +* Tue Oct 5 2021 Peter Lemenkov - 24.1.2-1 +- Ver. 24.1.2 + * Mon Oct 4 2021 Peter Lemenkov - 24.1.1-1 - Ver. 24.1.1 diff --git a/sources b/sources index 8ad8e6b..f3cace6 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (otp-OTP-24.1.1.tar.gz) = 303ccf632473520bbc044cc3e6ce8b3c8f8a2e070d959133d7057a715eba99b148a96d5553ec12d30cc3c3fc1d4aa9cd82b0daf87de41d89c5653226b983b375 +SHA512 (otp-OTP-24.1.2.tar.gz) = 33f1bfc630a4d7b4d17807190f9f461eedd80e59fb183973a86ddb5fdedfaad414b8ca343292dc1e2a3c82954317bc6a6127d02540b75fca54f4e7c727953a3c From 061f3845e182b30093da1e5efbb16056c0313001 Mon Sep 17 00:00:00 2001 From: Peter Lemenkov Date: Tue, 12 Oct 2021 16:12:20 +0200 Subject: [PATCH 049/135] Fix FTBFS with OpenSSL 3.0 Signed-off-by: Peter Lemenkov --- erlang.spec | 6 +- ...Allow-openssl-3.0.0-FIPS-compilation.patch | 75 +++++++++++++++++++ 2 files changed, 80 insertions(+), 1 deletion(-) create mode 100644 otp-0010-Allow-openssl-3.0.0-FIPS-compilation.patch diff --git a/erlang.spec b/erlang.spec index c00a925..e90db9b 100644 --- a/erlang.spec +++ b/erlang.spec @@ -64,7 +64,7 @@ Name: erlang Version: 24.1.2 -Release: 1%{?dist} +Release: 2%{?dist} Summary: General-purpose programming language and runtime environment License: ASL 2.0 @@ -104,6 +104,7 @@ Patch6: otp-0006-Do-not-install-erlang-sources.patch Patch7: otp-0007-Add-extra-search-directory.patch Patch8: otp-0008-Avoid-forking-sed-to-get-basename.patch Patch9: otp-0009-Load-man-pages-from-system-wide-directory.patch +Patch10: otp-0010-Allow-openssl-3.0.0-FIPS-compilation.patch # end of autogenerated patch tag list BuildRequires: gcc @@ -1902,6 +1903,9 @@ useradd -r -g epmd -d /dev/null -s /sbin/nologin \ %changelog +* Tue Oct 12 2021 Peter Lemenkov - 24.1.2-2 +- Fix FTBFS with OpenSSL 3.0 + * Tue Oct 5 2021 Peter Lemenkov - 24.1.2-1 - Ver. 24.1.2 diff --git a/otp-0010-Allow-openssl-3.0.0-FIPS-compilation.patch b/otp-0010-Allow-openssl-3.0.0-FIPS-compilation.patch new file mode 100644 index 0000000..13c41f7 --- /dev/null +++ b/otp-0010-Allow-openssl-3.0.0-FIPS-compilation.patch @@ -0,0 +1,75 @@ +From: Michele Baldessari +Date: Tue, 28 Sep 2021 17:26:16 +0200 +Subject: [PATCH] Allow openssl-3.0.0 FIPS compilation + +Openssl 3.0.0 dropped support for the old way of adding fips +and in particular it dropped support for FIPS_mode() and +FIPS_mode_set(). + +In RHEL9, openssl-3.0.0 ships a compat macro for FIPS_mode(), so +this change focuses on replacing FIPS_mode_set() + +Compiled erlang-erts-24.1-1.el9.x86_64 with this patch and then tested as follows: +A. Booted the system with fips enabled: +[root@rhel9 ~]# fips-mode-setup --check +FIPS mode is enabled. + +B. Set up a fips config file: +cat > fips.config< crypto:info_fips(). +not_enabled +2> crypto:enable_fips_mode(true). +true +3> crypto:info_fips(). +enabled + +D. Verified that the ciphers when using fips are a subset of the usual +ciphers: + +4> crypto:supports(). +[{hashs,[sha,sha224,sha256,sha384,sha512,sha3_224,sha3_256, + sha3_384,sha3_512,blake2b,blake2s]}, + {ciphers,[aes_cbc,aes_ccm,aes_cfb128,aes_cfb8,aes_ctr, + aes_ecb,aes_gcm,des_ede3_cfb,aes_128_cbc,aes_192_cbc, + aes_256_cbc,aes_128_cfb128,aes_192_cfb128,aes_256_cfb128, + aes_128_cfb8,aes_192_cfb8,aes_256_cfb8,aes_128_ecb, + aes_192_ecb,aes_256_ecb,aes_256_gcm,aes_256_ccm,aes_192_gcm, + aes_192_ccm,aes_128_gcm|...]}, + {public_keys,[rsa,dss,dh,ecdsa,ecdh]}, + {macs,[cmac,hmac,poly1305]}, + {curves,[]}, + {rsa_opts,[rsa_pkcs1_pss_padding,rsa_pss_saltlen, + rsa_mgf1_md,rsa_pkcs1_oaep_padding,rsa_oaep_label, + rsa_oaep_md,signature_md,rsa_pkcs1_padding,rsa_x931_padding, + rsa_no_padding]}] + +Note that we could probably just have patched out the FIPS_mode_set() +calls as FIPS gets enforced on the system. The automatism is going to +come with a version of openssl that is later than > openssl-3.0.0-2. + +Co-Authored-By: John Eckersberg +Co-Authored-By: Damien Ciabrini + +[1] https://wiki.openssl.org/index.php/OpenSSL_3.0#Upgrading_from_the_OpenSSL_2.0_FIPS_Object_Module + +diff --git a/lib/crypto/c_src/openssl_config.h b/lib/crypto/c_src/openssl_config.h +index 9ef04fca3c..59f6e94b23 100644 +--- a/lib/crypto/c_src/openssl_config.h ++++ b/lib/crypto/c_src/openssl_config.h +@@ -427,6 +427,10 @@ do { \ + # undef FIPS_SUPPORT + #endif + ++#if defined(FIPS_SUPPORT) \ ++ && OPENSSL_VERSION_NUMBER >= (PACKED_OPENSSL_VERSION_PLAIN(3,0,0) & ~0xff) ++#define FIPS_mode_set(fips_mode) EVP_default_properties_enable_fips(NULL, fips_mode) ++#endif + + #ifdef FIPS_SUPPORT + /* In FIPS mode non-FIPS algorithms are disabled and return badarg. */ From bcfc34c28afc3d7b99fc83a3729f55c424f68e08 Mon Sep 17 00:00:00 2001 From: Peter Lemenkov Date: Thu, 28 Oct 2021 13:15:53 +0200 Subject: [PATCH 050/135] Erlang ver. 24.1.3 Signed-off-by: Peter Lemenkov --- erlang.spec | 5 ++++- sources | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/erlang.spec b/erlang.spec index e90db9b..45360f7 100644 --- a/erlang.spec +++ b/erlang.spec @@ -63,7 +63,7 @@ Name: erlang -Version: 24.1.2 +Version: 24.1.3 Release: 2%{?dist} Summary: General-purpose programming language and runtime environment @@ -1903,6 +1903,9 @@ useradd -r -g epmd -d /dev/null -s /sbin/nologin \ %changelog +* Thu Oct 28 2021 Peter Lemenkov - 24.1.3-1 +- Ver. 24.1.3 + * Tue Oct 12 2021 Peter Lemenkov - 24.1.2-2 - Fix FTBFS with OpenSSL 3.0 diff --git a/sources b/sources index f3cace6..e699671 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (otp-OTP-24.1.2.tar.gz) = 33f1bfc630a4d7b4d17807190f9f461eedd80e59fb183973a86ddb5fdedfaad414b8ca343292dc1e2a3c82954317bc6a6127d02540b75fca54f4e7c727953a3c +SHA512 (otp-OTP-24.1.3.tar.gz) = ee504cabe013322c3b1a80c1b0e5419302fdd140b8aecb0f8e2aca4e8b444d38ee0fafbb953c2bca8965b00bd2cf1a5bdf2259e1b83567ab2ebbfa07b10001b8 From 385e31c9f7a9736b325f9f6036852c27acba4671 Mon Sep 17 00:00:00 2001 From: Peter Lemenkov Date: Tue, 2 Nov 2021 11:10:47 +0100 Subject: [PATCH 051/135] Erlang ver. 24.1.4 Signed-off-by: Peter Lemenkov --- erlang.spec | 7 +++++-- sources | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/erlang.spec b/erlang.spec index 45360f7..c462471 100644 --- a/erlang.spec +++ b/erlang.spec @@ -63,8 +63,8 @@ Name: erlang -Version: 24.1.3 -Release: 2%{?dist} +Version: 24.1.4 +Release: 1%{?dist} Summary: General-purpose programming language and runtime environment License: ASL 2.0 @@ -1903,6 +1903,9 @@ useradd -r -g epmd -d /dev/null -s /sbin/nologin \ %changelog +* Tue Nov 2 2021 Peter Lemenkov - 24.1.4-1 +- Ver. 24.1.4 + * Thu Oct 28 2021 Peter Lemenkov - 24.1.3-1 - Ver. 24.1.3 diff --git a/sources b/sources index e699671..2d6d297 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (otp-OTP-24.1.3.tar.gz) = ee504cabe013322c3b1a80c1b0e5419302fdd140b8aecb0f8e2aca4e8b444d38ee0fafbb953c2bca8965b00bd2cf1a5bdf2259e1b83567ab2ebbfa07b10001b8 +SHA512 (otp-OTP-24.1.4.tar.gz) = b5cf4fbce07b26b97ec8af62d1b86315227ff369f27c996a6df08b322b76721539a55664dcd4ffec49ff77efadc8e4f0c967c064bb4e1f5cdfa2db2eaa02620f From 36536632c358e293b36997afb24423bc94374293 Mon Sep 17 00:00:00 2001 From: Peter Lemenkov Date: Sat, 13 Nov 2021 14:49:34 +0100 Subject: [PATCH 052/135] Erlang ver. 24.1.5 Signed-off-by: Peter Lemenkov --- erlang.spec | 5 ++++- sources | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/erlang.spec b/erlang.spec index c462471..b8ded1b 100644 --- a/erlang.spec +++ b/erlang.spec @@ -63,7 +63,7 @@ Name: erlang -Version: 24.1.4 +Version: 24.1.5 Release: 1%{?dist} Summary: General-purpose programming language and runtime environment @@ -1903,6 +1903,9 @@ useradd -r -g epmd -d /dev/null -s /sbin/nologin \ %changelog +* Sat Nov 13 2021 Peter Lemenkov - 24.1.5-1 +- Ver. 24.1.5 + * Tue Nov 2 2021 Peter Lemenkov - 24.1.4-1 - Ver. 24.1.4 diff --git a/sources b/sources index 2d6d297..5adf467 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (otp-OTP-24.1.4.tar.gz) = b5cf4fbce07b26b97ec8af62d1b86315227ff369f27c996a6df08b322b76721539a55664dcd4ffec49ff77efadc8e4f0c967c064bb4e1f5cdfa2db2eaa02620f +SHA512 (otp-OTP-24.1.5.tar.gz) = 9ac8bdf262676d93e0ed3958e0776712913e860c465a3573d2001545337a86df6642c4c2bfd77cf74862bba52dcb76c39cf4c9de549cea9264ade21f66ca248b From a413f33e79ea44e4f33c44d6930f537d93cbcda6 Mon Sep 17 00:00:00 2001 From: Peter Lemenkov Date: Thu, 18 Nov 2021 17:02:45 +0100 Subject: [PATCH 053/135] Erlang ver. 24.1.6 Signed-off-by: Peter Lemenkov --- erlang.spec | 5 ++++- sources | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/erlang.spec b/erlang.spec index b8ded1b..edc3ae8 100644 --- a/erlang.spec +++ b/erlang.spec @@ -63,7 +63,7 @@ Name: erlang -Version: 24.1.5 +Version: 24.1.6 Release: 1%{?dist} Summary: General-purpose programming language and runtime environment @@ -1903,6 +1903,9 @@ useradd -r -g epmd -d /dev/null -s /sbin/nologin \ %changelog +* Thu Nov 18 2021 Peter Lemenkov - 24.1.6-1 +- Ver. 24.1.6 + * Sat Nov 13 2021 Peter Lemenkov - 24.1.5-1 - Ver. 24.1.5 diff --git a/sources b/sources index 5adf467..0c7756f 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (otp-OTP-24.1.5.tar.gz) = 9ac8bdf262676d93e0ed3958e0776712913e860c465a3573d2001545337a86df6642c4c2bfd77cf74862bba52dcb76c39cf4c9de549cea9264ade21f66ca248b +SHA512 (otp-OTP-24.1.6.tar.gz) = ad23e4c7c1feb3132e96ef29905e5841d2a7e9561ef6e58ff565cce21fc10379763de8e5febc7539b91fe1a7956f59d59e5d3557fe400254002c65b085b67c45 From 3bd3a0c7ef647b5a6afeb79a0d37844bca79c614 Mon Sep 17 00:00:00 2001 From: Peter Lemenkov Date: Mon, 22 Nov 2021 18:22:20 +0100 Subject: [PATCH 054/135] Erlang ver. 24.1.7 Signed-off-by: Peter Lemenkov --- erlang.spec | 5 ++++- sources | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/erlang.spec b/erlang.spec index edc3ae8..e6db459 100644 --- a/erlang.spec +++ b/erlang.spec @@ -63,7 +63,7 @@ Name: erlang -Version: 24.1.6 +Version: 24.1.7 Release: 1%{?dist} Summary: General-purpose programming language and runtime environment @@ -1903,6 +1903,9 @@ useradd -r -g epmd -d /dev/null -s /sbin/nologin \ %changelog +* Mon Nov 22 2021 Peter Lemenkov - 24.1.7-1 +- Ver. 24.1.7 + * Thu Nov 18 2021 Peter Lemenkov - 24.1.6-1 - Ver. 24.1.6 diff --git a/sources b/sources index 0c7756f..5a274ab 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (otp-OTP-24.1.6.tar.gz) = ad23e4c7c1feb3132e96ef29905e5841d2a7e9561ef6e58ff565cce21fc10379763de8e5febc7539b91fe1a7956f59d59e5d3557fe400254002c65b085b67c45 +SHA512 (otp-OTP-24.1.7.tar.gz) = 052758df429af0971c9d78a4f56e2f333379510db3efbb103e6b869584e54af438b2d43e5172412e0fc624ea68b1df6be84debdae51777a7f4aa327b39b2248f From b606ec2fbd3b9508aeb458165210ff1d60de4a72 Mon Sep 17 00:00:00 2001 From: Peter Lemenkov Date: Wed, 15 Dec 2021 17:36:57 +0100 Subject: [PATCH 055/135] Erlang ver. 24.2 Signed-off-by: Peter Lemenkov --- erlang.spec | 5 ++- ...n-pages-and-do-not-install-miscellan.patch | 6 ++-- otp-0002-Remove-rpath.patch | 4 +-- otp-0006-Do-not-install-erlang-sources.patch | 34 +++++++++---------- ...man-pages-from-system-wide-directory.patch | 4 +-- ...Allow-openssl-3.0.0-FIPS-compilation.patch | 8 ++--- sources | 2 +- 7 files changed, 33 insertions(+), 30 deletions(-) diff --git a/erlang.spec b/erlang.spec index e6db459..d262f2b 100644 --- a/erlang.spec +++ b/erlang.spec @@ -63,7 +63,7 @@ Name: erlang -Version: 24.1.7 +Version: 24.2 Release: 1%{?dist} Summary: General-purpose programming language and runtime environment @@ -1903,6 +1903,9 @@ useradd -r -g epmd -d /dev/null -s /sbin/nologin \ %changelog +* Wed Dec 15 2021 Peter Lemenkov - 24.2-1 +- Ver. 24.2 + * Mon Nov 22 2021 Peter Lemenkov - 24.1.7-1 - Ver. 24.1.7 diff --git a/otp-0001-Do-not-format-man-pages-and-do-not-install-miscellan.patch b/otp-0001-Do-not-format-man-pages-and-do-not-install-miscellan.patch index 7034252..23652f1 100644 --- a/otp-0001-Do-not-format-man-pages-and-do-not-install-miscellan.patch +++ b/otp-0001-Do-not-format-man-pages-and-do-not-install-miscellan.patch @@ -6,10 +6,10 @@ Subject: [PATCH] Do not format man-pages and do not install miscellaneous Signed-off-by: Peter Lemenkov diff --git a/erts/etc/common/Makefile.in b/erts/etc/common/Makefile.in -index ba4d898f79..a22e557007 100644 +index e5ff959078..7ceef28103 100644 --- a/erts/etc/common/Makefile.in +++ b/erts/etc/common/Makefile.in -@@ -525,10 +525,6 @@ endif +@@ -550,10 +550,6 @@ endif ifneq ($(INSTALL_TOP_BIN),) $(INSTALL_PROGRAM) $(INSTALL_TOP_BIN) "$(RELEASE_PATH)" endif @@ -21,7 +21,7 @@ index ba4d898f79..a22e557007 100644 $(INSTALL_DIR) "$(RELEASE_PATH)/erts-$(VSN)/src" $(INSTALL_DATA) $(INSTALL_SRC) "$(RELEASE_PATH)/erts-$(VSN)/src" diff --git a/erts/etc/unix/Install.src b/erts/etc/unix/Install.src -index 2dbf628972..5151f5130a 100644 +index 7437e073e0..009ffea706 100644 --- a/erts/etc/unix/Install.src +++ b/erts/etc/unix/Install.src @@ -142,14 +142,5 @@ cp -p ../releases/%I_SYSTEM_VSN%/start_*.boot . diff --git a/otp-0002-Remove-rpath.patch b/otp-0002-Remove-rpath.patch index 1e04c1f..1f9e1c6 100644 --- a/otp-0002-Remove-rpath.patch +++ b/otp-0002-Remove-rpath.patch @@ -5,10 +5,10 @@ Subject: [PATCH] Remove rpath Signed-off-by: Peter Lemenkov diff --git a/lib/crypto/c_src/Makefile.in b/lib/crypto/c_src/Makefile.in -index d360d9b6cb..614e748896 100644 +index 8ad5c7889e..041bcf7e06 100644 --- a/lib/crypto/c_src/Makefile.in +++ b/lib/crypto/c_src/Makefile.in -@@ -136,7 +136,7 @@ endif +@@ -139,7 +139,7 @@ endif endif ifeq ($(DYNAMIC_OR_WIN_CRYPTO_LIB),yes) diff --git a/otp-0006-Do-not-install-erlang-sources.patch b/otp-0006-Do-not-install-erlang-sources.patch index 1fc230b..7e008c1 100644 --- a/otp-0006-Do-not-install-erlang-sources.patch +++ b/otp-0006-Do-not-install-erlang-sources.patch @@ -8,7 +8,7 @@ Signed-off-by: Peter Lemenkov Signed-off-by: Hans Ulrich Niedermann diff --git a/erts/preloaded/src/Makefile b/erts/preloaded/src/Makefile -index b0c205cec8..7fad1ddc75 100644 +index 521e5b6f67..2d818d8f75 100644 --- a/erts/preloaded/src/Makefile +++ b/erts/preloaded/src/Makefile @@ -121,8 +121,6 @@ $(APP_TARGET): $(APP_SRC) $(ERL_TOP)/erts/vsn.mk @@ -63,7 +63,7 @@ index f015064b39..57f96d2929 100644 $(INSTALL_SCRIPT) $(PROGRAMS) "$(RELEASE_PATH)/test_server" diff --git a/lib/compiler/src/Makefile b/lib/compiler/src/Makefile -index f195e16dc6..68c6695b9e 100644 +index f050e134f8..653695aa12 100644 --- a/lib/compiler/src/Makefile +++ b/lib/compiler/src/Makefile @@ -182,8 +182,8 @@ include $(ERL_TOP)/make/otp_release_targets.mk @@ -78,7 +78,7 @@ index f195e16dc6..68c6695b9e 100644 $(INSTALL_DATA) $(INSTALL_FILES) "$(RELSYSDIR)/ebin" diff --git a/lib/crypto/src/Makefile b/lib/crypto/src/Makefile -index c3f1c859e5..0d72d6c82d 100644 +index fea32dc4e3..183c982ff6 100644 --- a/lib/crypto/src/Makefile +++ b/lib/crypto/src/Makefile @@ -81,8 +81,6 @@ docs: @@ -104,7 +104,7 @@ index 118cb6b758..86722d8767 100644 $(INSTALL_DATA) $(TARGET_FILES) $(TARGET_TOOLBOX_FILES) "$(RELSYSDIR)/ebin" diff --git a/lib/dialyzer/src/Makefile b/lib/dialyzer/src/Makefile -index 0847da9d5a..24a054ac04 100644 +index 5f2c24c3c0..99eddc96e3 100644 --- a/lib/dialyzer/src/Makefile +++ b/lib/dialyzer/src/Makefile @@ -165,7 +165,7 @@ include $(ERL_TOP)/make/otp_release_targets.mk @@ -168,7 +168,7 @@ index b79a537424..d0b231e5fc 100644 release_docs_spec: diff --git a/lib/erl_docgen/src/Makefile b/lib/erl_docgen/src/Makefile -index 4c6f542ebb..d0cd6d8f68 100644 +index e4339dcb1f..f563d6fd5b 100644 --- a/lib/erl_docgen/src/Makefile +++ b/lib/erl_docgen/src/Makefile @@ -91,8 +91,6 @@ $(APPUP_TARGET): $(APPUP_SRC) ../vsn.mk @@ -231,7 +231,7 @@ index 8248e37c44..1f1b23184b 100644 $(INSTALL_DATA) $(TARGET_FILES) "$(RELSYSDIR)/ebin" diff --git a/lib/inets/src/http_server/Makefile b/lib/inets/src/http_server/Makefile -index da9549406f..eaa14b628f 100644 +index f66a446d40..2858ae7267 100644 --- a/lib/inets/src/http_server/Makefile +++ b/lib/inets/src/http_server/Makefile @@ -134,7 +134,7 @@ include $(ERL_TOP)/make/otp_release_targets.mk @@ -244,7 +244,7 @@ index da9549406f..eaa14b628f 100644 $(INSTALL_DATA) $(TARGET_FILES) $(BEHAVIOUR_TARGET_FILES) "$(RELSYSDIR)/ebin" diff --git a/lib/inets/src/inets_app/Makefile b/lib/inets/src/inets_app/Makefile -index edaec7655b..6969b5b5ab 100644 +index d85df269ce..0193796bc1 100644 --- a/lib/inets/src/inets_app/Makefile +++ b/lib/inets/src/inets_app/Makefile @@ -114,7 +114,7 @@ include $(ERL_TOP)/make/otp_release_targets.mk @@ -359,7 +359,7 @@ index 028a63e98e..9e11e9bfb2 100644 release_docs_spec: diff --git a/lib/mnesia/src/Makefile b/lib/mnesia/src/Makefile -index 90e8780754..1a13d764b3 100644 +index dce7a359d3..7051c965b9 100644 --- a/lib/mnesia/src/Makefile +++ b/lib/mnesia/src/Makefile @@ -135,7 +135,7 @@ include $(ERL_TOP)/make/otp_release_targets.mk @@ -488,7 +488,7 @@ index 16a42caf11..674364281d 100644 $(INSTALL_DIR) "$(RELSYSDIR)/ebin" $(INSTALL_DATA) $(TARGET_FILES) "$(RELSYSDIR)/ebin" diff --git a/lib/snmp/src/agent/Makefile b/lib/snmp/src/agent/Makefile -index 1b7999da20..661b5a5e3f 100644 +index 1da0f33c9d..9d54271816 100644 --- a/lib/snmp/src/agent/Makefile +++ b/lib/snmp/src/agent/Makefile @@ -151,7 +151,7 @@ include $(ERL_TOP)/make/otp_release_targets.mk @@ -501,7 +501,7 @@ index 1b7999da20..661b5a5e3f 100644 $(INSTALL_DATA) $(BEHAVIOUR_TARGET_FILES) $(TARGET_FILES) $(APP_TARGET) $(APPUP_TARGET) \ "$(RELSYSDIR)/ebin" diff --git a/lib/snmp/src/app/Makefile b/lib/snmp/src/app/Makefile -index 09ffc7d36a..090df59403 100644 +index 02800462a4..133f7c3b59 100644 --- a/lib/snmp/src/app/Makefile +++ b/lib/snmp/src/app/Makefile @@ -144,7 +144,7 @@ include $(ERL_TOP)/make/otp_release_targets.mk @@ -514,7 +514,7 @@ index 09ffc7d36a..090df59403 100644 $(INSTALL_DATA) $(TARGET_FILES) $(APP_TARGET) $(APPUP_TARGET) \ "$(RELSYSDIR)/ebin" diff --git a/lib/snmp/src/compile/Makefile b/lib/snmp/src/compile/Makefile -index a8da839bfc..c9e9e1892d 100644 +index bbd7f99378..19d1f83dda 100644 --- a/lib/snmp/src/compile/Makefile +++ b/lib/snmp/src/compile/Makefile @@ -137,7 +137,7 @@ include $(ERL_TOP)/make/otp_release_targets.mk @@ -527,7 +527,7 @@ index a8da839bfc..c9e9e1892d 100644 $(INSTALL_DATA) $(EBIN_FILES) "$(RELSYSDIR)/ebin" $(INSTALL_DIR) "$(RELSYSDIR)/bin" diff --git a/lib/snmp/src/manager/Makefile b/lib/snmp/src/manager/Makefile -index ab8c36ec5e..839dc03917 100644 +index 6f5f5d01f9..d6bc5e3e06 100644 --- a/lib/snmp/src/manager/Makefile +++ b/lib/snmp/src/manager/Makefile @@ -135,7 +135,7 @@ include $(ERL_TOP)/make/otp_release_targets.mk @@ -540,7 +540,7 @@ index ab8c36ec5e..839dc03917 100644 $(INSTALL_DATA) $(BEHAVIOUR_TARGET_FILES) $(TARGET_FILES) "$(RELSYSDIR)/ebin" # $(INSTALL_DIR) "$(RELSYSDIR)/include" diff --git a/lib/snmp/src/misc/Makefile b/lib/snmp/src/misc/Makefile -index 51318b5c66..d4015d71f4 100644 +index eca2d949d2..4c234caf88 100644 --- a/lib/snmp/src/misc/Makefile +++ b/lib/snmp/src/misc/Makefile @@ -125,7 +125,7 @@ include $(ERL_TOP)/make/otp_release_targets.mk @@ -553,7 +553,7 @@ index 51318b5c66..d4015d71f4 100644 $(INSTALL_DATA) $(TARGET_FILES) "$(RELSYSDIR)/ebin" # $(INSTALL_DIR) "$(RELSYSDIR)/include" diff --git a/lib/ssh/src/Makefile b/lib/ssh/src/Makefile -index 517a6611c4..b348d1cfb8 100644 +index 88126f6289..831cd1d938 100644 --- a/lib/ssh/src/Makefile +++ b/lib/ssh/src/Makefile @@ -182,7 +182,7 @@ include $(ERL_TOP)/make/otp_release_targets.mk @@ -566,10 +566,10 @@ index 517a6611c4..b348d1cfb8 100644 $(INSTALL_DATA) $(BEHAVIOUR_TARGET_FILES) $(TARGET_FILES) $(APP_TARGET) \ $(APPUP_TARGET) "$(RELSYSDIR)/ebin" diff --git a/lib/ssl/src/Makefile b/lib/ssl/src/Makefile -index 9cbee91946..a0f494874a 100644 +index c8d0d6f12f..92471ac30e 100644 --- a/lib/ssl/src/Makefile +++ b/lib/ssl/src/Makefile -@@ -210,7 +210,7 @@ include $(ERL_TOP)/make/otp_release_targets.mk +@@ -211,7 +211,7 @@ include $(ERL_TOP)/make/otp_release_targets.mk release_spec: opt $(INSTALL_DIR) "$(RELSYSDIR)/src" @@ -630,7 +630,7 @@ index cc5bee9a8f..7dfa55cb41 100644 $(INSTALL_DATA) $(TARGET_FILES) $(APP_TARGET) $(APPUP_TARGET) \ "$(RELSYSDIR)/ebin" diff --git a/lib/wx/src/Makefile b/lib/wx/src/Makefile -index 3780e0eea3..05c8416de7 100644 +index 7e2eb38f2f..939d03670d 100644 --- a/lib/wx/src/Makefile +++ b/lib/wx/src/Makefile @@ -121,9 +121,9 @@ $(EBIN)/%.beam: $(EGEN)/%.erl $(HEADER_FILES) diff --git a/otp-0009-Load-man-pages-from-system-wide-directory.patch b/otp-0009-Load-man-pages-from-system-wide-directory.patch index 35c29f3..f9b074b 100644 --- a/otp-0009-Load-man-pages-from-system-wide-directory.patch +++ b/otp-0009-Load-man-pages-from-system-wide-directory.patch @@ -7,10 +7,10 @@ Patch allows one to use standard man path with erl -man command. as required by Debian policy.) diff --git a/erts/etc/common/erlexec.c b/erts/etc/common/erlexec.c -index 06182c25ce..b41ae3a90a 100644 +index bda9a94a95..e14fdc49b6 100644 --- a/erts/etc/common/erlexec.c +++ b/erts/etc/common/erlexec.c -@@ -722,8 +722,10 @@ int main(int argc, char **argv) +@@ -724,8 +724,10 @@ int main(int argc, char **argv) error("-man not supported on Windows"); #else argv[i] = "man"; diff --git a/otp-0010-Allow-openssl-3.0.0-FIPS-compilation.patch b/otp-0010-Allow-openssl-3.0.0-FIPS-compilation.patch index 13c41f7..9e272ec 100644 --- a/otp-0010-Allow-openssl-3.0.0-FIPS-compilation.patch +++ b/otp-0010-Allow-openssl-3.0.0-FIPS-compilation.patch @@ -59,10 +59,10 @@ Co-Authored-By: Damien Ciabrini [1] https://wiki.openssl.org/index.php/OpenSSL_3.0#Upgrading_from_the_OpenSSL_2.0_FIPS_Object_Module diff --git a/lib/crypto/c_src/openssl_config.h b/lib/crypto/c_src/openssl_config.h -index 9ef04fca3c..59f6e94b23 100644 +index 49627f17e7..1d12174e3e 100644 --- a/lib/crypto/c_src/openssl_config.h +++ b/lib/crypto/c_src/openssl_config.h -@@ -427,6 +427,10 @@ do { \ +@@ -438,6 +438,10 @@ do { \ # undef FIPS_SUPPORT #endif @@ -71,5 +71,5 @@ index 9ef04fca3c..59f6e94b23 100644 +#define FIPS_mode_set(fips_mode) EVP_default_properties_enable_fips(NULL, fips_mode) +#endif - #ifdef FIPS_SUPPORT - /* In FIPS mode non-FIPS algorithms are disabled and return badarg. */ + /* This is not the final FIPS adaptation for 3.0, just making it compilable */ + #if OPENSSL_VERSION_NUMBER >= PACKED_OPENSSL_VERSION_PLAIN(3,0,0) diff --git a/sources b/sources index 5a274ab..2b30fb5 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (otp-OTP-24.1.7.tar.gz) = 052758df429af0971c9d78a4f56e2f333379510db3efbb103e6b869584e54af438b2d43e5172412e0fc624ea68b1df6be84debdae51777a7f4aa327b39b2248f +SHA512 (otp-OTP-24.2.tar.gz) = 88450f935579677eb0d43fd25e5f45b1e78ff8e9c6455d87198decbbb675f90c2e87757b3ee33b43fafb87fced20e984220be9b6b70f8cb8f6d84e4743764495 From f39be19b7a1582ae3e1a8209281e0cdf194df538 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Thu, 20 Jan 2022 02:06:22 +0000 Subject: [PATCH 056/135] - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- erlang.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/erlang.spec b/erlang.spec index d262f2b..ab0fd73 100644 --- a/erlang.spec +++ b/erlang.spec @@ -64,7 +64,7 @@ Name: erlang Version: 24.2 -Release: 1%{?dist} +Release: 2%{?dist} Summary: General-purpose programming language and runtime environment License: ASL 2.0 @@ -1903,6 +1903,9 @@ useradd -r -g epmd -d /dev/null -s /sbin/nologin \ %changelog +* Thu Jan 20 2022 Fedora Release Engineering - 24.2-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + * Wed Dec 15 2021 Peter Lemenkov - 24.2-1 - Ver. 24.2 From 7e15f2f0c75acf8163488674a83768f63ac14d2d Mon Sep 17 00:00:00 2001 From: Peter Lemenkov Date: Wed, 26 Jan 2022 11:07:50 +0100 Subject: [PATCH 057/135] Erlang ver. 24.2.1 Signed-off-by: Peter Lemenkov --- erlang.spec | 7 +++++-- sources | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/erlang.spec b/erlang.spec index ab0fd73..5fbbd03 100644 --- a/erlang.spec +++ b/erlang.spec @@ -63,8 +63,8 @@ Name: erlang -Version: 24.2 -Release: 2%{?dist} +Version: 24.2.1 +Release: 1%{?dist} Summary: General-purpose programming language and runtime environment License: ASL 2.0 @@ -1903,6 +1903,9 @@ useradd -r -g epmd -d /dev/null -s /sbin/nologin \ %changelog +* Wed Jan 26 2022 Peter Lemenkov - 24.2.1-1 +- Ver. 24.2.1 + * Thu Jan 20 2022 Fedora Release Engineering - 24.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild diff --git a/sources b/sources index 2b30fb5..ec4fdd5 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (otp-OTP-24.2.tar.gz) = 88450f935579677eb0d43fd25e5f45b1e78ff8e9c6455d87198decbbb675f90c2e87757b3ee33b43fafb87fced20e984220be9b6b70f8cb8f6d84e4743764495 +SHA512 (otp-OTP-24.2.1.tar.gz) = b4dd5c9506840fcb078b8c5820a70a07794d8e646f66941095cd9536cfcc60ed6c070d1f85952379384f774beec965521cfc567e7a4a94088ec9ce0fefafe984 From 41171a05c2435f17dd265ef8b534f91e8782cd65 Mon Sep 17 00:00:00 2001 From: Jiri Date: Sat, 5 Feb 2022 20:32:40 +0100 Subject: [PATCH 058/135] Rebuilt for java-17-openjdk as system jdk https://fedoraproject.org/wiki/Changes/Java17 --- erlang.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/erlang.spec b/erlang.spec index 5fbbd03..0793408 100644 --- a/erlang.spec +++ b/erlang.spec @@ -64,7 +64,7 @@ Name: erlang Version: 24.2.1 -Release: 1%{?dist} +Release: 2%{?dist} Summary: General-purpose programming language and runtime environment License: ASL 2.0 @@ -1903,6 +1903,9 @@ useradd -r -g epmd -d /dev/null -s /sbin/nologin \ %changelog +* Sat Feb 05 2022 Jiri Vanek - 24.2.1-2 +- Rebuilt for java-17-openjdk as system jdk + * Wed Jan 26 2022 Peter Lemenkov - 24.2.1-1 - Ver. 24.2.1 From 9c05865340e6093ee2e9eec263d04ad74172e968 Mon Sep 17 00:00:00 2001 From: Peter Lemenkov Date: Tue, 1 Mar 2022 16:34:52 +0100 Subject: [PATCH 059/135] Erlang ver. 24.2.2 Signed-off-by: Peter Lemenkov --- erlang.spec | 7 +++++-- sources | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/erlang.spec b/erlang.spec index 0793408..c40394a 100644 --- a/erlang.spec +++ b/erlang.spec @@ -63,8 +63,8 @@ Name: erlang -Version: 24.2.1 -Release: 2%{?dist} +Version: 24.2.2 +Release: 1%{?dist} Summary: General-purpose programming language and runtime environment License: ASL 2.0 @@ -1903,6 +1903,9 @@ useradd -r -g epmd -d /dev/null -s /sbin/nologin \ %changelog +* Tue Mar 1 2022 Peter Lemenkov - 24.2.2-1 +- Ver. 24.2.2 + * Sat Feb 05 2022 Jiri Vanek - 24.2.1-2 - Rebuilt for java-17-openjdk as system jdk diff --git a/sources b/sources index ec4fdd5..218dc64 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (otp-OTP-24.2.1.tar.gz) = b4dd5c9506840fcb078b8c5820a70a07794d8e646f66941095cd9536cfcc60ed6c070d1f85952379384f774beec965521cfc567e7a4a94088ec9ce0fefafe984 +SHA512 (otp-OTP-24.2.2.tar.gz) = 791bd9cc299168d4a209bcdc797a9671a39d03924dc18c9e0520393adf4eb54922c48eecde44601bde55b4fa80b91e0eddbfc486c5f45a611da60b47c63208c7 From abc6dfa7594dea664542cdb851fc9387c974920b Mon Sep 17 00:00:00 2001 From: John Eckersberg Date: Mon, 28 Mar 2022 12:19:01 -0400 Subject: [PATCH 060/135] Keep documentation chunks in the code path (rhbz#2068758) --- erlang.spec | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/erlang.spec b/erlang.spec index c40394a..a4d41aa 100644 --- a/erlang.spec +++ b/erlang.spec @@ -64,7 +64,7 @@ Name: erlang Version: 24.2.2 -Release: 1%{?dist} +Release: 2%{?dist} Summary: General-purpose programming language and runtime environment License: ASL 2.0 @@ -814,7 +814,12 @@ cd $RPM_BUILD_ROOT%{_libdir}/erlang mv -v doc $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version} for i in erts-* ; do mv -v $i/doc $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}/$i ; done cd $RPM_BUILD_ROOT%{_libdir}/erlang/lib -for i in * ; do mv -v $i/doc $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}/lib/$i || true ; done +for i in * ; do + mv -v $i/doc $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}/lib/$i || true + # symlink 'chunks' in the code path for EEP-48 compliance (rhbz#2068758) + mkdir $i/doc + ln -s %{_docdir}/%{name}-%{version}/lib/$i/chunks $i/doc/ +done popd cp -av AUTHORS LICENSE.txt README.md $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version} mv -v $RPM_BUILD_ROOT%{_libdir}/erlang/PR.template $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version} @@ -1026,6 +1031,7 @@ useradd -r -g epmd -d /dev/null -s /sbin/nologin \ %if %{with doc} %files doc +%{_libdir}/erlang/lib/*/doc %doc %{_docdir}/%{name}-%{version}/doc %doc %{_docdir}/%{name}-%{version}/erts-*/ %doc %{_docdir}/%{name}-%{version}/lib/ @@ -1903,6 +1909,9 @@ useradd -r -g epmd -d /dev/null -s /sbin/nologin \ %changelog +* Mon Mar 28 2022 John Eckersberg - 24.2.2-2 +- Keep documentation chunks in the code path (rhbz#2068758) + * Tue Mar 1 2022 Peter Lemenkov - 24.2.2-1 - Ver. 24.2.2 From f92c4b5b4caf8751a446604d48a5bd59fb02f557 Mon Sep 17 00:00:00 2001 From: Peter Lemenkov Date: Tue, 29 Mar 2022 19:46:16 +0200 Subject: [PATCH 061/135] Erlang ver. 24.3.3 Signed-off-by: Peter Lemenkov --- erlang.spec | 11 ++- otp-0002-Remove-rpath.patch | 4 +- otp-0003-Do-not-install-C-sources.patch | 10 +-- otp-0004-Do-not-install-Java-sources.patch | 2 +- ...teventlog-and-related-doc-files-on-n.patch | 4 +- otp-0006-Do-not-install-erlang-sources.patch | 10 +-- ...Allow-openssl-3.0.0-FIPS-compilation.patch | 75 ------------------- ...mporarily-disable-FIPS-for-cryptolib.patch | 23 ++++++ sources | 2 +- 9 files changed, 46 insertions(+), 95 deletions(-) delete mode 100644 otp-0010-Allow-openssl-3.0.0-FIPS-compilation.patch create mode 100644 otp-0010-Revert-crypto-Temporarily-disable-FIPS-for-cryptolib.patch diff --git a/erlang.spec b/erlang.spec index a4d41aa..3b83304 100644 --- a/erlang.spec +++ b/erlang.spec @@ -63,8 +63,8 @@ Name: erlang -Version: 24.2.2 -Release: 2%{?dist} +Version: 24.3.3 +Release: 1%{?dist} Summary: General-purpose programming language and runtime environment License: ASL 2.0 @@ -104,7 +104,7 @@ Patch6: otp-0006-Do-not-install-erlang-sources.patch Patch7: otp-0007-Add-extra-search-directory.patch Patch8: otp-0008-Avoid-forking-sed-to-get-basename.patch Patch9: otp-0009-Load-man-pages-from-system-wide-directory.patch -Patch10: otp-0010-Allow-openssl-3.0.0-FIPS-compilation.patch +Patch10: otp-0010-Revert-crypto-Temporarily-disable-FIPS-for-cryptolib.patch # end of autogenerated patch tag list BuildRequires: gcc @@ -294,7 +294,6 @@ Diameter (RFC 3588) library Summary: Erlang documentation BuildRequires: fop BuildRequires: libxslt -BuildArch: noarch %description doc Documentation for Erlang. @@ -1909,6 +1908,10 @@ useradd -r -g epmd -d /dev/null -s /sbin/nologin \ %changelog +* Tue Mar 29 2022 Peter Lemenkov - 24.3.3-1 +- Ver. 24.3.3 +- Doc sub-package no longermarked as noarch (contains links to _libdir) + * Mon Mar 28 2022 John Eckersberg - 24.2.2-2 - Keep documentation chunks in the code path (rhbz#2068758) diff --git a/otp-0002-Remove-rpath.patch b/otp-0002-Remove-rpath.patch index 1f9e1c6..1b34b19 100644 --- a/otp-0002-Remove-rpath.patch +++ b/otp-0002-Remove-rpath.patch @@ -5,10 +5,10 @@ Subject: [PATCH] Remove rpath Signed-off-by: Peter Lemenkov diff --git a/lib/crypto/c_src/Makefile.in b/lib/crypto/c_src/Makefile.in -index 8ad5c7889e..041bcf7e06 100644 +index 4478ed7d9c..3224c705e6 100644 --- a/lib/crypto/c_src/Makefile.in +++ b/lib/crypto/c_src/Makefile.in -@@ -139,7 +139,7 @@ endif +@@ -145,7 +145,7 @@ endif endif ifeq ($(DYNAMIC_OR_WIN_CRYPTO_LIB),yes) diff --git a/otp-0003-Do-not-install-C-sources.patch b/otp-0003-Do-not-install-C-sources.patch index 8f3b803..fc8f327 100644 --- a/otp-0003-Do-not-install-C-sources.patch +++ b/otp-0003-Do-not-install-C-sources.patch @@ -14,7 +14,7 @@ https://bugzilla.redhat.com/818419 Signed-off-by: Peter Lemenkov diff --git a/lib/asn1/c_src/Makefile b/lib/asn1/c_src/Makefile -index cb606fd74e..48a7c2f4f1 100644 +index 8fb3360f83..5fb080f206 100644 --- a/lib/asn1/c_src/Makefile +++ b/lib/asn1/c_src/Makefile @@ -136,8 +136,6 @@ include $(ERL_TOP)/make/otp_release_targets.mk @@ -27,11 +27,11 @@ index cb606fd74e..48a7c2f4f1 100644 release_docs_spec: diff --git a/lib/erl_interface/src/Makefile.in b/lib/erl_interface/src/Makefile.in -index 56fdaa608e..25764ce50d 100644 +index 92459f6223..d2c7b7f765 100644 --- a/lib/erl_interface/src/Makefile.in +++ b/lib/erl_interface/src/Makefile.in -@@ -690,13 +690,11 @@ release: opt - $(INSTALL_DATA) $(OBJ_TARGETS) "$(RELEASE_PATH)/usr/lib" +@@ -709,13 +709,11 @@ ifeq (@DYNAMIC_LIB@, yes) + endif $(INSTALL_PROGRAM) $(EXE_TARGETS) "$(RELSYSDIR)/bin" $(INSTALL_DATA) $(EXTRA) "$(RELSYSDIR)/src" - $(INSTALL_DATA) connect/*.[ch] "$(RELSYSDIR)/src/connect" @@ -63,7 +63,7 @@ index cd409fa54f..c65e817385 100644 endif diff --git a/lib/odbc/c_src/Makefile.in b/lib/odbc/c_src/Makefile.in -index 3c16e7e294..82fe1492ef 100644 +index d1b26743a6..cf8faae1f5 100644 --- a/lib/odbc/c_src/Makefile.in +++ b/lib/odbc/c_src/Makefile.in @@ -129,11 +129,8 @@ include $(ERL_TOP)/make/otp_release_targets.mk diff --git a/otp-0004-Do-not-install-Java-sources.patch b/otp-0004-Do-not-install-Java-sources.patch index 29f1fde..f4a08f4 100644 --- a/otp-0004-Do-not-install-Java-sources.patch +++ b/otp-0004-Do-not-install-Java-sources.patch @@ -5,7 +5,7 @@ Subject: [PATCH] Do not install Java sources Signed-off-by: Peter Lemenkov diff --git a/lib/jinterface/java_src/com/ericsson/otp/erlang/Makefile b/lib/jinterface/java_src/com/ericsson/otp/erlang/Makefile -index bcbb206db6..1451378b35 100644 +index e42fd9468d..35deacbcf3 100644 --- a/lib/jinterface/java_src/com/ericsson/otp/erlang/Makefile +++ b/lib/jinterface/java_src/com/ericsson/otp/erlang/Makefile @@ -123,8 +123,6 @@ release release_docs release_tests release_html: diff --git a/otp-0005-Do-not-install-nteventlog-and-related-doc-files-on-n.patch b/otp-0005-Do-not-install-nteventlog-and-related-doc-files-on-n.patch index a36294b..c8dbb3c 100644 --- a/otp-0005-Do-not-install-nteventlog-and-related-doc-files-on-n.patch +++ b/otp-0005-Do-not-install-nteventlog-and-related-doc-files-on-n.patch @@ -6,7 +6,7 @@ Subject: [PATCH] Do not install nteventlog and related doc-files on non-win32 Signed-off-by: Peter Lemenkov diff --git a/lib/os_mon/doc/src/Makefile b/lib/os_mon/doc/src/Makefile -index d16f2b4831..c5b721f995 100644 +index 8e3882bfdc..ea999cf9c7 100644 --- a/lib/os_mon/doc/src/Makefile +++ b/lib/os_mon/doc/src/Makefile @@ -31,11 +31,16 @@ APPLICATION=os_mon @@ -28,7 +28,7 @@ index d16f2b4831..c5b721f995 100644 XML_REF6_FILES = os_mon_app.xml diff --git a/lib/os_mon/src/Makefile b/lib/os_mon/src/Makefile -index 98c5ced068..e2f4d5a090 100644 +index 48a896265b..afb67c1793 100644 --- a/lib/os_mon/src/Makefile +++ b/lib/os_mon/src/Makefile @@ -34,7 +34,13 @@ RELSYSDIR = $(RELEASE_PATH)/lib/os_mon-$(VSN) diff --git a/otp-0006-Do-not-install-erlang-sources.patch b/otp-0006-Do-not-install-erlang-sources.patch index 7e008c1..67a3dee 100644 --- a/otp-0006-Do-not-install-erlang-sources.patch +++ b/otp-0006-Do-not-install-erlang-sources.patch @@ -397,7 +397,7 @@ index 7ca59495ed..a52ade2fe3 100644 $(INSTALL_DATA) $(EXT_HRL_FILES) "$(RELSYSDIR)/include" $(INSTALL_DIR) "$(RELSYSDIR)/ebin" diff --git a/lib/os_mon/src/Makefile b/lib/os_mon/src/Makefile -index e2f4d5a090..57f21a145b 100644 +index afb67c1793..ec6acf1fce 100644 --- a/lib/os_mon/src/Makefile +++ b/lib/os_mon/src/Makefile @@ -105,7 +105,6 @@ include $(ERL_TOP)/make/otp_release_targets.mk @@ -437,7 +437,7 @@ index 1fef168463..e5411b903b 100644 $(INSTALL_DATA) $(TARGET_FILES) "$(RELSYSDIR)/ebin" diff --git a/lib/public_key/src/Makefile b/lib/public_key/src/Makefile -index 76bdffe089..fc5e4dfa8e 100644 +index e27f02eea9..dec54a8414 100644 --- a/lib/public_key/src/Makefile +++ b/lib/public_key/src/Makefile @@ -110,8 +110,6 @@ $(APPUP_TARGET): $(APPUP_SRC) ../vsn.mk @@ -553,7 +553,7 @@ index eca2d949d2..4c234caf88 100644 $(INSTALL_DATA) $(TARGET_FILES) "$(RELSYSDIR)/ebin" # $(INSTALL_DIR) "$(RELSYSDIR)/include" diff --git a/lib/ssh/src/Makefile b/lib/ssh/src/Makefile -index 88126f6289..831cd1d938 100644 +index cc3cfe9e96..9f3cd694f5 100644 --- a/lib/ssh/src/Makefile +++ b/lib/ssh/src/Makefile @@ -182,7 +182,7 @@ include $(ERL_TOP)/make/otp_release_targets.mk @@ -566,7 +566,7 @@ index 88126f6289..831cd1d938 100644 $(INSTALL_DATA) $(BEHAVIOUR_TARGET_FILES) $(TARGET_FILES) $(APP_TARGET) \ $(APPUP_TARGET) "$(RELSYSDIR)/ebin" diff --git a/lib/ssl/src/Makefile b/lib/ssl/src/Makefile -index c8d0d6f12f..92471ac30e 100644 +index 1e55bb497d..1cf3cbf5ee 100644 --- a/lib/ssl/src/Makefile +++ b/lib/ssl/src/Makefile @@ -211,7 +211,7 @@ include $(ERL_TOP)/make/otp_release_targets.mk @@ -604,7 +604,7 @@ index af6a472f3d..6796810ac2 100644 $(INSTALL_DATA) $(INCLUDE_DELIVERABLES) "$(RELSYSDIR)/include" diff --git a/lib/tftp/src/Makefile b/lib/tftp/src/Makefile -index 029bd731bd..85c633b4f0 100644 +index 4ece9ffe28..da95babcea 100644 --- a/lib/tftp/src/Makefile +++ b/lib/tftp/src/Makefile @@ -101,7 +101,7 @@ include $(ERL_TOP)/make/otp_release_targets.mk diff --git a/otp-0010-Allow-openssl-3.0.0-FIPS-compilation.patch b/otp-0010-Allow-openssl-3.0.0-FIPS-compilation.patch deleted file mode 100644 index 9e272ec..0000000 --- a/otp-0010-Allow-openssl-3.0.0-FIPS-compilation.patch +++ /dev/null @@ -1,75 +0,0 @@ -From: Michele Baldessari -Date: Tue, 28 Sep 2021 17:26:16 +0200 -Subject: [PATCH] Allow openssl-3.0.0 FIPS compilation - -Openssl 3.0.0 dropped support for the old way of adding fips -and in particular it dropped support for FIPS_mode() and -FIPS_mode_set(). - -In RHEL9, openssl-3.0.0 ships a compat macro for FIPS_mode(), so -this change focuses on replacing FIPS_mode_set() - -Compiled erlang-erts-24.1-1.el9.x86_64 with this patch and then tested as follows: -A. Booted the system with fips enabled: -[root@rhel9 ~]# fips-mode-setup --check -FIPS mode is enabled. - -B. Set up a fips config file: -cat > fips.config< crypto:info_fips(). -not_enabled -2> crypto:enable_fips_mode(true). -true -3> crypto:info_fips(). -enabled - -D. Verified that the ciphers when using fips are a subset of the usual -ciphers: - -4> crypto:supports(). -[{hashs,[sha,sha224,sha256,sha384,sha512,sha3_224,sha3_256, - sha3_384,sha3_512,blake2b,blake2s]}, - {ciphers,[aes_cbc,aes_ccm,aes_cfb128,aes_cfb8,aes_ctr, - aes_ecb,aes_gcm,des_ede3_cfb,aes_128_cbc,aes_192_cbc, - aes_256_cbc,aes_128_cfb128,aes_192_cfb128,aes_256_cfb128, - aes_128_cfb8,aes_192_cfb8,aes_256_cfb8,aes_128_ecb, - aes_192_ecb,aes_256_ecb,aes_256_gcm,aes_256_ccm,aes_192_gcm, - aes_192_ccm,aes_128_gcm|...]}, - {public_keys,[rsa,dss,dh,ecdsa,ecdh]}, - {macs,[cmac,hmac,poly1305]}, - {curves,[]}, - {rsa_opts,[rsa_pkcs1_pss_padding,rsa_pss_saltlen, - rsa_mgf1_md,rsa_pkcs1_oaep_padding,rsa_oaep_label, - rsa_oaep_md,signature_md,rsa_pkcs1_padding,rsa_x931_padding, - rsa_no_padding]}] - -Note that we could probably just have patched out the FIPS_mode_set() -calls as FIPS gets enforced on the system. The automatism is going to -come with a version of openssl that is later than > openssl-3.0.0-2. - -Co-Authored-By: John Eckersberg -Co-Authored-By: Damien Ciabrini - -[1] https://wiki.openssl.org/index.php/OpenSSL_3.0#Upgrading_from_the_OpenSSL_2.0_FIPS_Object_Module - -diff --git a/lib/crypto/c_src/openssl_config.h b/lib/crypto/c_src/openssl_config.h -index 49627f17e7..1d12174e3e 100644 ---- a/lib/crypto/c_src/openssl_config.h -+++ b/lib/crypto/c_src/openssl_config.h -@@ -438,6 +438,10 @@ do { \ - # undef FIPS_SUPPORT - #endif - -+#if defined(FIPS_SUPPORT) \ -+ && OPENSSL_VERSION_NUMBER >= (PACKED_OPENSSL_VERSION_PLAIN(3,0,0) & ~0xff) -+#define FIPS_mode_set(fips_mode) EVP_default_properties_enable_fips(NULL, fips_mode) -+#endif - - /* This is not the final FIPS adaptation for 3.0, just making it compilable */ - #if OPENSSL_VERSION_NUMBER >= PACKED_OPENSSL_VERSION_PLAIN(3,0,0) diff --git a/otp-0010-Revert-crypto-Temporarily-disable-FIPS-for-cryptolib.patch b/otp-0010-Revert-crypto-Temporarily-disable-FIPS-for-cryptolib.patch new file mode 100644 index 0000000..b0419db --- /dev/null +++ b/otp-0010-Revert-crypto-Temporarily-disable-FIPS-for-cryptolib.patch @@ -0,0 +1,23 @@ +From: Peter Lemenkov +Date: Tue, 29 Mar 2022 19:38:13 +0200 +Subject: [PATCH] Revert "crypto: Temporarily disable FIPS for cryptolib ver + 3.0 and above" + +This reverts commit 6bb9c51e900fe8fb5a88bd2498f6e5a92f94ed8d. + +diff --git a/lib/crypto/c_src/openssl_config.h b/lib/crypto/c_src/openssl_config.h +index 647ab25ad4..ab681183a3 100644 +--- a/lib/crypto/c_src/openssl_config.h ++++ b/lib/crypto/c_src/openssl_config.h +@@ -452,11 +452,6 @@ do { \ + # undef FIPS_SUPPORT + #endif + +-/* Disable FIPS for 3.0 temporaryly until the support is added */ +-#if defined(FIPS_SUPPORT) && \ +- defined(HAS_3_0_API) +-# undef FIPS_SUPPORT +-#endif + + #if defined(FIPS_SUPPORT) && \ + defined(HAS_3_0_API) diff --git a/sources b/sources index 218dc64..8f059a2 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (otp-OTP-24.2.2.tar.gz) = 791bd9cc299168d4a209bcdc797a9671a39d03924dc18c9e0520393adf4eb54922c48eecde44601bde55b4fa80b91e0eddbfc486c5f45a611da60b47c63208c7 +SHA512 (otp-OTP-24.3.3.tar.gz) = 5e8ce0ebd50c1c67ca29ce9405fc18f5461793b20a1732418bc8fac404078044deb72526682aab92ee3e737bc9dc9e94e6be162a088e2cb7cc68c14b1d76454e From 5143feaabdb0db8d1734d8f60e0bf74fad8f53fc Mon Sep 17 00:00:00 2001 From: Peter Lemenkov Date: Fri, 8 Apr 2022 14:11:57 +0200 Subject: [PATCH 062/135] Temporarily disable FIPS (doesn't work reliably with OpenSSL 3.0 yet) Signed-off-by: Peter Lemenkov --- erlang.spec | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/erlang.spec b/erlang.spec index 3b83304..59aba56 100644 --- a/erlang.spec +++ b/erlang.spec @@ -64,7 +64,7 @@ Name: erlang Version: 24.3.3 -Release: 1%{?dist} +Release: 2%{?dist} Summary: General-purpose programming language and runtime environment License: ASL 2.0 @@ -104,7 +104,7 @@ Patch6: otp-0006-Do-not-install-erlang-sources.patch Patch7: otp-0007-Add-extra-search-directory.patch Patch8: otp-0008-Avoid-forking-sed-to-get-basename.patch Patch9: otp-0009-Load-man-pages-from-system-wide-directory.patch -Patch10: otp-0010-Revert-crypto-Temporarily-disable-FIPS-for-cryptolib.patch +#Patch10: otp-0010-Revert-crypto-Temporarily-disable-FIPS-for-cryptolib.patch # end of autogenerated patch tag list BuildRequires: gcc @@ -1908,6 +1908,9 @@ useradd -r -g epmd -d /dev/null -s /sbin/nologin \ %changelog +* Fri Apr 8 2022 Peter Lemenkov - 24.3.3-2 +- Temporarily disable FIPS (doesn't work reliably with OpenSSL 3.0 yet) + * Tue Mar 29 2022 Peter Lemenkov - 24.3.3-1 - Ver. 24.3.3 - Doc sub-package no longermarked as noarch (contains links to _libdir) From 397d5fecb3f0a1ccfb7bccc5efbc5916323058bf Mon Sep 17 00:00:00 2001 From: Peter Lemenkov Date: Wed, 4 May 2022 11:32:58 +0200 Subject: [PATCH 063/135] Erlang ver. 24.3.4 Signed-off-by: Peter Lemenkov --- erlang.spec | 7 +++++-- sources | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/erlang.spec b/erlang.spec index 59aba56..832bbd2 100644 --- a/erlang.spec +++ b/erlang.spec @@ -63,8 +63,8 @@ Name: erlang -Version: 24.3.3 -Release: 2%{?dist} +Version: 24.3.4 +Release: 1%{?dist} Summary: General-purpose programming language and runtime environment License: ASL 2.0 @@ -1908,6 +1908,9 @@ useradd -r -g epmd -d /dev/null -s /sbin/nologin \ %changelog +* Wed May 4 2022 Peter Lemenkov - 24.3.4-1 +- Ver. 24.3.4 + * Fri Apr 8 2022 Peter Lemenkov - 24.3.3-2 - Temporarily disable FIPS (doesn't work reliably with OpenSSL 3.0 yet) diff --git a/sources b/sources index 8f059a2..eb0cdda 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (otp-OTP-24.3.3.tar.gz) = 5e8ce0ebd50c1c67ca29ce9405fc18f5461793b20a1732418bc8fac404078044deb72526682aab92ee3e737bc9dc9e94e6be162a088e2cb7cc68c14b1d76454e +SHA512 (otp-OTP-24.3.4.tar.gz) = bd3fb31d69ef64a87fc436f610409308bdb44493422974ae563bdf001dabd0a5aadfcdb0334b430ebb385f7e91f629e793fdf03801ab48df5f265472e3af540a From 27dd2644bc9c06c74e709a019a14e60412320dee Mon Sep 17 00:00:00 2001 From: Peter Lemenkov Date: Tue, 24 May 2022 19:55:43 +0200 Subject: [PATCH 064/135] Revert back to OpenSSL 1.1 Signed-off-by: Peter Lemenkov --- erlang.spec | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/erlang.spec b/erlang.spec index 832bbd2..af6e23a 100644 --- a/erlang.spec +++ b/erlang.spec @@ -64,7 +64,7 @@ Name: erlang Version: 24.3.4 -Release: 1%{?dist} +Release: 2%{?dist} Summary: General-purpose programming language and runtime environment License: ASL 2.0 @@ -239,7 +239,10 @@ A byte code compiler for Erlang which produces highly compact code. %package crypto Summary: Cryptographical support -BuildRequires: pkgconfig(openssl) +#BuildRequires: pkgconfig(openssl) +# FIXME there is something wrong with OpenSSL 3.0 support in Erlang right now. +# We have to fallback to OpenSSL1 explicitly. +BuildRequires: openssl1.1-devel Requires: %{name}-erts%{?_isa} = %{version}-%{release} Requires: %{name}-kernel%{?_isa} = %{version}-%{release} Requires: %{name}-stdlib%{?_isa} = %{version}-%{release} @@ -1908,6 +1911,9 @@ useradd -r -g epmd -d /dev/null -s /sbin/nologin \ %changelog +* Tue May 24 2022 Peter Lemenkov - 24.3.4-2 +- Downgrade to OpenSSL 1.x + * Wed May 4 2022 Peter Lemenkov - 24.3.4-1 - Ver. 24.3.4 From b3d8806d004923621e1834b2f0c272b205cf0101 Mon Sep 17 00:00:00 2001 From: Peter Lemenkov Date: Wed, 8 Jun 2022 18:01:00 +0200 Subject: [PATCH 065/135] Erlang ver. 24.3.4.1 Signed-off-by: Peter Lemenkov --- erlang.spec | 8 ++++--- ...mporarily-disable-FIPS-for-cryptolib.patch | 23 ------------------- sources | 2 +- 3 files changed, 6 insertions(+), 27 deletions(-) delete mode 100644 otp-0010-Revert-crypto-Temporarily-disable-FIPS-for-cryptolib.patch diff --git a/erlang.spec b/erlang.spec index af6e23a..c9e5e34 100644 --- a/erlang.spec +++ b/erlang.spec @@ -63,8 +63,8 @@ Name: erlang -Version: 24.3.4 -Release: 2%{?dist} +Version: 24.3.4.1 +Release: 1%{?dist} Summary: General-purpose programming language and runtime environment License: ASL 2.0 @@ -104,7 +104,6 @@ Patch6: otp-0006-Do-not-install-erlang-sources.patch Patch7: otp-0007-Add-extra-search-directory.patch Patch8: otp-0008-Avoid-forking-sed-to-get-basename.patch Patch9: otp-0009-Load-man-pages-from-system-wide-directory.patch -#Patch10: otp-0010-Revert-crypto-Temporarily-disable-FIPS-for-cryptolib.patch # end of autogenerated patch tag list BuildRequires: gcc @@ -1911,6 +1910,9 @@ useradd -r -g epmd -d /dev/null -s /sbin/nologin \ %changelog +* Wed Jun 8 2022 Peter Lemenkov - 24.3.4.1-1 +- Ver. 24.3.4.1 + * Tue May 24 2022 Peter Lemenkov - 24.3.4-2 - Downgrade to OpenSSL 1.x diff --git a/otp-0010-Revert-crypto-Temporarily-disable-FIPS-for-cryptolib.patch b/otp-0010-Revert-crypto-Temporarily-disable-FIPS-for-cryptolib.patch deleted file mode 100644 index b0419db..0000000 --- a/otp-0010-Revert-crypto-Temporarily-disable-FIPS-for-cryptolib.patch +++ /dev/null @@ -1,23 +0,0 @@ -From: Peter Lemenkov -Date: Tue, 29 Mar 2022 19:38:13 +0200 -Subject: [PATCH] Revert "crypto: Temporarily disable FIPS for cryptolib ver - 3.0 and above" - -This reverts commit 6bb9c51e900fe8fb5a88bd2498f6e5a92f94ed8d. - -diff --git a/lib/crypto/c_src/openssl_config.h b/lib/crypto/c_src/openssl_config.h -index 647ab25ad4..ab681183a3 100644 ---- a/lib/crypto/c_src/openssl_config.h -+++ b/lib/crypto/c_src/openssl_config.h -@@ -452,11 +452,6 @@ do { \ - # undef FIPS_SUPPORT - #endif - --/* Disable FIPS for 3.0 temporaryly until the support is added */ --#if defined(FIPS_SUPPORT) && \ -- defined(HAS_3_0_API) --# undef FIPS_SUPPORT --#endif - - #if defined(FIPS_SUPPORT) && \ - defined(HAS_3_0_API) diff --git a/sources b/sources index eb0cdda..776b31f 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (otp-OTP-24.3.4.tar.gz) = bd3fb31d69ef64a87fc436f610409308bdb44493422974ae563bdf001dabd0a5aadfcdb0334b430ebb385f7e91f629e793fdf03801ab48df5f265472e3af540a +SHA512 (otp-OTP-24.3.4.1.tar.gz) = 8a793b08cc3b84ff3a14f4a14b27aaaab7193dce33b5506b11817d2aabbfae14c09759595f17ed09e000ebc5de2efaf88746b18b14122bb558f14cf9d2175d6f From 9bffc2796da0b1443273249c17c53bc26c2afe10 Mon Sep 17 00:00:00 2001 From: Peter Lemenkov Date: Thu, 23 Jun 2022 15:30:12 +0200 Subject: [PATCH 066/135] Erlang ver. 24.3.4.2 Signed-off-by: Peter Lemenkov --- erlang.spec | 5 ++++- sources | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/erlang.spec b/erlang.spec index c9e5e34..c7920c3 100644 --- a/erlang.spec +++ b/erlang.spec @@ -63,7 +63,7 @@ Name: erlang -Version: 24.3.4.1 +Version: 24.3.4.2 Release: 1%{?dist} Summary: General-purpose programming language and runtime environment @@ -1910,6 +1910,9 @@ useradd -r -g epmd -d /dev/null -s /sbin/nologin \ %changelog +* Thu Jun 23 2022 Peter Lemenkov - 24.3.4.2-1 +- Ver. 24.3.4.2 + * Wed Jun 8 2022 Peter Lemenkov - 24.3.4.1-1 - Ver. 24.3.4.1 diff --git a/sources b/sources index 776b31f..527c3cc 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (otp-OTP-24.3.4.1.tar.gz) = 8a793b08cc3b84ff3a14f4a14b27aaaab7193dce33b5506b11817d2aabbfae14c09759595f17ed09e000ebc5de2efaf88746b18b14122bb558f14cf9d2175d6f +SHA512 (otp-OTP-24.3.4.2.tar.gz) = 78bc2dc67fe60d3ea6049c361a017c054e12b0adeeae890b0a1ee5301744505593bd19f3731acebff8312b323a3bd21a1359507d122fc34f0eb85eefb3aac88c From 0eed2476695e33ef299c0809034628cb09ba0615 Mon Sep 17 00:00:00 2001 From: Peter Lemenkov Date: Wed, 13 Jul 2022 20:52:50 +0200 Subject: [PATCH 067/135] Erlang ver. 25.0.2 Signed-off-by: Peter Lemenkov --- erlang.spec | 17 ++- ...n-pages-and-do-not-install-miscellan.patch | 8 +- otp-0002-Remove-rpath.patch | 4 +- otp-0003-Do-not-install-C-sources.patch | 23 +--- otp-0004-Do-not-install-Java-sources.patch | 2 +- ...teventlog-and-related-doc-files-on-n.patch | 2 +- otp-0006-Do-not-install-erlang-sources.patch | 122 +++++++++--------- otp-0007-Add-extra-search-directory.patch | 2 +- ...08-Avoid-forking-sed-to-get-basename.patch | 8 +- ...man-pages-from-system-wide-directory.patch | 4 +- ...pecify-encoding-during-javadoc-stage.patch | 19 +++ sources | 2 +- 12 files changed, 111 insertions(+), 102 deletions(-) create mode 100644 otp-0010-Specify-encoding-during-javadoc-stage.patch diff --git a/erlang.spec b/erlang.spec index c7920c3..159498d 100644 --- a/erlang.spec +++ b/erlang.spec @@ -63,7 +63,7 @@ Name: erlang -Version: 24.3.4.2 +Version: 25.0.2 Release: 1%{?dist} Summary: General-purpose programming language and runtime environment @@ -104,6 +104,7 @@ Patch6: otp-0006-Do-not-install-erlang-sources.patch Patch7: otp-0007-Add-extra-search-directory.patch Patch8: otp-0008-Avoid-forking-sed-to-get-basename.patch Patch9: otp-0009-Load-man-pages-from-system-wide-directory.patch +Patch10: otp-0010-Specify-encoding-during-javadoc-stage.patch # end of autogenerated patch tag list BuildRequires: gcc @@ -358,8 +359,8 @@ Provides: erlang(erl_drv_version) = 3.3 # See erts/emulator/beam/erl_nif.h or call erlang:system_info(nif_version). #Provides: erlang(erl_nif_version) = %%(%%{buildroot}/bin/erl -noshell -eval 'io:format(erlang:system_info(nif_version)).' -s erlang halt) # FIXME has to be 2.16 -Provides: erlang(erl_nif_version) = 2.15 -Provides: bundled(pcre) = 8.33 +Provides: erlang(erl_nif_version) = 2.16 +Provides: bundled(pcre) = 8.44 Obsoletes: erlang-appmon Obsoletes: erlang-docbuilder Obsoletes: erlang-gs @@ -668,7 +669,7 @@ A set of programming tools including a coverage analyzer etc. %if %{__with_wxwidgets} %package wx Summary: A library for wxWidgets support in Erlang -BuildRequires: wxGTK3-devel +BuildRequires: wxGTK-devel Requires: %{name}-erts%{?_isa} = %{version}-%{release} Requires: %{name}-kernel%{?_isa} = %{version}-%{release} Requires: %{name}-stdlib%{?_isa} = %{version}-%{release} @@ -724,7 +725,7 @@ CFLAGS="${ERL_FLAGS}" CXXFLAGS="${ERL_FLAGS}" %configure --enable-shared-zlib -- --without-jinterface \ %endif # __with_java %if %{__with_wxwidgets} - --with-wx-config=/usr/bin/wx-config-3.0 + --with-wx-config=/usr/bin/wx-config %else --without-common_test \ --without-debugger \ @@ -1545,6 +1546,7 @@ useradd -r -g epmd -d /dev/null -s /sbin/nologin \ %{_mandir}/man3/erl_error.* %{_mandir}/man3/erl_eval.* %{_mandir}/man3/erl_expand_records.* +%{_mandir}/man3/erl_features.* %{_mandir}/man3/erl_id_trans.* %{_mandir}/man3/erl_internal.* %{_mandir}/man3/erl_lint.* @@ -1571,6 +1573,7 @@ useradd -r -g epmd -d /dev/null -s /sbin/nologin \ %{_mandir}/man3/ms_transform.* %{_mandir}/man3/orddict.* %{_mandir}/man3/ordsets.* +%{_mandir}/man3/peer.* %{_mandir}/man3/pool.* %{_mandir}/man3/proc_lib.* %{_mandir}/man3/proplists.* @@ -1622,7 +1625,6 @@ useradd -r -g epmd -d /dev/null -s /sbin/nologin \ %files tools %dir %{_libdir}/erlang/lib/tools-*/ -%{_libdir}/erlang/lib/tools-*/bin %{_libdir}/erlang/lib/tools-*/ebin %{_libdir}/erlang/lib/tools-*/emacs %{_libdir}/erlang/lib/tools-*/src @@ -1910,6 +1912,9 @@ useradd -r -g epmd -d /dev/null -s /sbin/nologin \ %changelog +* Tue Jul 12 2022 Peter Lemenkov - 25.0..2-1 +- Ver. 25.0.2 + * Thu Jun 23 2022 Peter Lemenkov - 24.3.4.2-1 - Ver. 24.3.4.2 diff --git a/otp-0001-Do-not-format-man-pages-and-do-not-install-miscellan.patch b/otp-0001-Do-not-format-man-pages-and-do-not-install-miscellan.patch index 23652f1..da44106 100644 --- a/otp-0001-Do-not-format-man-pages-and-do-not-install-miscellan.patch +++ b/otp-0001-Do-not-format-man-pages-and-do-not-install-miscellan.patch @@ -6,10 +6,10 @@ Subject: [PATCH] Do not format man-pages and do not install miscellaneous Signed-off-by: Peter Lemenkov diff --git a/erts/etc/common/Makefile.in b/erts/etc/common/Makefile.in -index e5ff959078..7ceef28103 100644 +index 42d4395eb2..307ef11828 100644 --- a/erts/etc/common/Makefile.in +++ b/erts/etc/common/Makefile.in -@@ -550,10 +550,6 @@ endif +@@ -552,10 +552,6 @@ endif ifneq ($(INSTALL_TOP_BIN),) $(INSTALL_PROGRAM) $(INSTALL_TOP_BIN) "$(RELEASE_PATH)" endif @@ -21,10 +21,10 @@ index e5ff959078..7ceef28103 100644 $(INSTALL_DIR) "$(RELEASE_PATH)/erts-$(VSN)/src" $(INSTALL_DATA) $(INSTALL_SRC) "$(RELEASE_PATH)/erts-$(VSN)/src" diff --git a/erts/etc/unix/Install.src b/erts/etc/unix/Install.src -index 7437e073e0..009ffea706 100644 +index b00dd09f1a..2147774f50 100644 --- a/erts/etc/unix/Install.src +++ b/erts/etc/unix/Install.src -@@ -142,14 +142,5 @@ cp -p ../releases/%I_SYSTEM_VSN%/start_*.boot . +@@ -143,14 +143,5 @@ cp -p ../releases/%I_SYSTEM_VSN%/start_*.boot . cp -p ../releases/%I_SYSTEM_VSN%/no_dot_erlang.boot . cp -p $Name.boot start.boot cp -p ../releases/%I_SYSTEM_VSN%/$Name.script start.script diff --git a/otp-0002-Remove-rpath.patch b/otp-0002-Remove-rpath.patch index 1b34b19..de2d7a1 100644 --- a/otp-0002-Remove-rpath.patch +++ b/otp-0002-Remove-rpath.patch @@ -5,10 +5,10 @@ Subject: [PATCH] Remove rpath Signed-off-by: Peter Lemenkov diff --git a/lib/crypto/c_src/Makefile.in b/lib/crypto/c_src/Makefile.in -index 4478ed7d9c..3224c705e6 100644 +index ec5cb32973..429347a07e 100644 --- a/lib/crypto/c_src/Makefile.in +++ b/lib/crypto/c_src/Makefile.in -@@ -145,7 +145,7 @@ endif +@@ -146,7 +146,7 @@ endif endif ifeq ($(DYNAMIC_OR_WIN_CRYPTO_LIB),yes) diff --git a/otp-0003-Do-not-install-C-sources.patch b/otp-0003-Do-not-install-C-sources.patch index fc8f327..bb55157 100644 --- a/otp-0003-Do-not-install-C-sources.patch +++ b/otp-0003-Do-not-install-C-sources.patch @@ -14,10 +14,10 @@ https://bugzilla.redhat.com/818419 Signed-off-by: Peter Lemenkov diff --git a/lib/asn1/c_src/Makefile b/lib/asn1/c_src/Makefile -index 8fb3360f83..5fb080f206 100644 +index 82a6b6e87a..5f2fe8ba7d 100644 --- a/lib/asn1/c_src/Makefile +++ b/lib/asn1/c_src/Makefile -@@ -136,8 +136,6 @@ include $(ERL_TOP)/make/otp_release_targets.mk +@@ -137,8 +137,6 @@ include $(ERL_TOP)/make/otp_release_targets.mk release_spec: opt $(INSTALL_DIR) "$(RELSYSDIR)/priv/lib" $(INSTALL_PROGRAM) $(NIF_SHARED_OBJ_FILE) "$(RELSYSDIR)/priv/lib" @@ -27,10 +27,10 @@ index 8fb3360f83..5fb080f206 100644 release_docs_spec: diff --git a/lib/erl_interface/src/Makefile.in b/lib/erl_interface/src/Makefile.in -index 92459f6223..d2c7b7f765 100644 +index 0a5ae800be..2cc354c43e 100644 --- a/lib/erl_interface/src/Makefile.in +++ b/lib/erl_interface/src/Makefile.in -@@ -709,13 +709,11 @@ ifeq (@DYNAMIC_LIB@, yes) +@@ -712,13 +712,11 @@ ifeq (@DYNAMIC_LIB@, yes) endif $(INSTALL_PROGRAM) $(EXE_TARGETS) "$(RELSYSDIR)/bin" $(INSTALL_DATA) $(EXTRA) "$(RELSYSDIR)/src" @@ -50,7 +50,7 @@ index 92459f6223..d2c7b7f765 100644 release_docs: diff --git a/lib/megaco/src/flex/Makefile.in b/lib/megaco/src/flex/Makefile.in -index cd409fa54f..c65e817385 100644 +index 3649e2c392..d8c5c68b99 100644 --- a/lib/megaco/src/flex/Makefile.in +++ b/lib/megaco/src/flex/Makefile.in @@ -251,7 +251,7 @@ release_spec: opt @@ -91,16 +91,3 @@ index 27b156a2c9..f11ff303b6 100644 $(INSTALL_DIR) "$(RELSYSDIR)/priv/bin" $(INSTALL_PROGRAM) $(TARGET_FILES) "$(RELSYSDIR)/priv/bin" -diff --git a/lib/tools/c_src/Makefile.in b/lib/tools/c_src/Makefile.in -index 878aa2cde6..0153885e88 100644 ---- a/lib/tools/c_src/Makefile.in -+++ b/lib/tools/c_src/Makefile.in -@@ -170,8 +170,6 @@ include ../vsn.mk - RELSYSDIR = $(RELEASE_PATH)/lib/tools-$(TOOLS_VSN) - - release_spec: all -- $(INSTALL_DIR) "$(RELSYSDIR)/c_src" -- $(INSTALL_DATA) $(EMEM_SRCS) $(EMEM_HEADERS) "$(RELSYSDIR)/c_src" - ifneq ($(PROGS),) - $(INSTALL_DIR) "$(RELSYSDIR)/bin" - $(INSTALL_PROGRAM) $(PROGS) "$(RELSYSDIR)/bin" diff --git a/otp-0004-Do-not-install-Java-sources.patch b/otp-0004-Do-not-install-Java-sources.patch index f4a08f4..a8037ea 100644 --- a/otp-0004-Do-not-install-Java-sources.patch +++ b/otp-0004-Do-not-install-Java-sources.patch @@ -5,7 +5,7 @@ Subject: [PATCH] Do not install Java sources Signed-off-by: Peter Lemenkov diff --git a/lib/jinterface/java_src/com/ericsson/otp/erlang/Makefile b/lib/jinterface/java_src/com/ericsson/otp/erlang/Makefile -index e42fd9468d..35deacbcf3 100644 +index 089cf4ab1a..404654a437 100644 --- a/lib/jinterface/java_src/com/ericsson/otp/erlang/Makefile +++ b/lib/jinterface/java_src/com/ericsson/otp/erlang/Makefile @@ -123,8 +123,6 @@ release release_docs release_tests release_html: diff --git a/otp-0005-Do-not-install-nteventlog-and-related-doc-files-on-n.patch b/otp-0005-Do-not-install-nteventlog-and-related-doc-files-on-n.patch index c8dbb3c..1965881 100644 --- a/otp-0005-Do-not-install-nteventlog-and-related-doc-files-on-n.patch +++ b/otp-0005-Do-not-install-nteventlog-and-related-doc-files-on-n.patch @@ -28,7 +28,7 @@ index 8e3882bfdc..ea999cf9c7 100644 XML_REF6_FILES = os_mon_app.xml diff --git a/lib/os_mon/src/Makefile b/lib/os_mon/src/Makefile -index 48a896265b..afb67c1793 100644 +index e28fb12548..ee32f3946f 100644 --- a/lib/os_mon/src/Makefile +++ b/lib/os_mon/src/Makefile @@ -34,7 +34,13 @@ RELSYSDIR = $(RELEASE_PATH)/lib/os_mon-$(VSN) diff --git a/otp-0006-Do-not-install-erlang-sources.patch b/otp-0006-Do-not-install-erlang-sources.patch index 67a3dee..e96c821 100644 --- a/otp-0006-Do-not-install-erlang-sources.patch +++ b/otp-0006-Do-not-install-erlang-sources.patch @@ -8,10 +8,10 @@ Signed-off-by: Peter Lemenkov Signed-off-by: Hans Ulrich Niedermann diff --git a/erts/preloaded/src/Makefile b/erts/preloaded/src/Makefile -index 521e5b6f67..2d818d8f75 100644 +index 191341a9f5..35c884e933 100644 --- a/erts/preloaded/src/Makefile +++ b/erts/preloaded/src/Makefile -@@ -121,8 +121,6 @@ $(APP_TARGET): $(APP_SRC) $(ERL_TOP)/erts/vsn.mk +@@ -113,8 +113,6 @@ $(APP_TARGET): $(APP_SRC) $(ERL_TOP)/erts/vsn.mk include $(ERL_TOP)/make/otp_release_targets.mk release_spec: $(APP_TARGET) @@ -21,7 +21,7 @@ index 521e5b6f67..2d818d8f75 100644 $(INSTALL_DATA) $(STATIC_TARGET_FILES) $(APP_TARGET) "$(RELSYSDIR)/ebin" diff --git a/lib/asn1/src/Makefile b/lib/asn1/src/Makefile -index 60a2020dbf..406cc08208 100644 +index 6d02075576..15f7054fed 100644 --- a/lib/asn1/src/Makefile +++ b/lib/asn1/src/Makefile @@ -151,7 +151,7 @@ release_spec: opt @@ -34,7 +34,7 @@ index 60a2020dbf..406cc08208 100644 $(INSTALL_DATA) $(EXAMPLES) "$(RELSYSDIR)/examples" diff --git a/lib/common_test/src/Makefile b/lib/common_test/src/Makefile -index 7d7b5ed203..9151e4097b 100644 +index 00f13589f3..5bf4e50f14 100644 --- a/lib/common_test/src/Makefile +++ b/lib/common_test/src/Makefile @@ -157,7 +157,7 @@ include $(ERL_TOP)/make/otp_release_targets.mk @@ -47,10 +47,10 @@ index 7d7b5ed203..9151e4097b 100644 $(INSTALL_DATA) $(TARGET_FILES) "$(RELSYSDIR)/ebin" $(INSTALL_DIR) "$(RELSYSDIR)/include" diff --git a/lib/common_test/test_server/Makefile b/lib/common_test/test_server/Makefile -index f015064b39..57f96d2929 100644 +index 4ff5e678ee..4e3fa5c60f 100644 --- a/lib/common_test/test_server/Makefile +++ b/lib/common_test/test_server/Makefile -@@ -86,9 +86,9 @@ include $(ERL_TOP)/make/otp_release_targets.mk +@@ -83,9 +83,9 @@ include $(ERL_TOP)/make/otp_release_targets.mk release_tests_spec: opt $(INSTALL_DIR) "$(RELEASE_PATH)/test_server" @@ -63,7 +63,7 @@ index f015064b39..57f96d2929 100644 $(INSTALL_SCRIPT) $(PROGRAMS) "$(RELEASE_PATH)/test_server" diff --git a/lib/compiler/src/Makefile b/lib/compiler/src/Makefile -index f050e134f8..653695aa12 100644 +index a9027b3ad8..3aaadb8500 100644 --- a/lib/compiler/src/Makefile +++ b/lib/compiler/src/Makefile @@ -182,8 +182,8 @@ include $(ERL_TOP)/make/otp_release_targets.mk @@ -78,7 +78,7 @@ index f050e134f8..653695aa12 100644 $(INSTALL_DATA) $(INSTALL_FILES) "$(RELSYSDIR)/ebin" diff --git a/lib/crypto/src/Makefile b/lib/crypto/src/Makefile -index fea32dc4e3..183c982ff6 100644 +index 893f679390..6f8a329421 100644 --- a/lib/crypto/src/Makefile +++ b/lib/crypto/src/Makefile @@ -81,8 +81,6 @@ docs: @@ -91,7 +91,7 @@ index fea32dc4e3..183c982ff6 100644 $(INSTALL_DATA) $(TARGET_FILES) $(APP_TARGET) \ $(APPUP_TARGET) "$(RELSYSDIR)/ebin" diff --git a/lib/debugger/src/Makefile b/lib/debugger/src/Makefile -index 118cb6b758..86722d8767 100644 +index 2fb955b2e3..6ddce27ec1 100644 --- a/lib/debugger/src/Makefile +++ b/lib/debugger/src/Makefile @@ -117,7 +117,7 @@ include $(ERL_TOP)/make/otp_release_targets.mk @@ -104,10 +104,10 @@ index 118cb6b758..86722d8767 100644 $(INSTALL_DATA) $(TARGET_FILES) $(TARGET_TOOLBOX_FILES) "$(RELSYSDIR)/ebin" diff --git a/lib/dialyzer/src/Makefile b/lib/dialyzer/src/Makefile -index 5f2c24c3c0..99eddc96e3 100644 +index c934ecdc2b..cc266f48e2 100644 --- a/lib/dialyzer/src/Makefile +++ b/lib/dialyzer/src/Makefile -@@ -165,7 +165,7 @@ include $(ERL_TOP)/make/otp_release_targets.mk +@@ -162,7 +162,7 @@ include $(ERL_TOP)/make/otp_release_targets.mk release_spec: opt $(INSTALL_DIR) "$(RELSYSDIR)/src" @@ -117,7 +117,7 @@ index 5f2c24c3c0..99eddc96e3 100644 $(INSTALL_DIR) "$(RELSYSDIR)/ebin" $(INSTALL_DATA) $(INSTALL_FILES) "$(RELSYSDIR)/ebin" diff --git a/lib/diameter/src/Makefile b/lib/diameter/src/Makefile -index 348cc350e1..9d87858def 100644 +index 6dd3667a46..4e37212caa 100644 --- a/lib/diameter/src/Makefile +++ b/lib/diameter/src/Makefile @@ -260,11 +260,8 @@ release_spec: opt @@ -135,7 +135,7 @@ index 348cc350e1..9d87858def 100644 $(EXAMPLE_DIRS:%/=release_examples_%): release_examples_%: $(INSTALL_DIR) "$(RELSYSDIR)/examples/$*" diff --git a/lib/edoc/src/Makefile b/lib/edoc/src/Makefile -index 8acef15248..ead1fd3b0f 100644 +index a455662049..e5b2f886ed 100644 --- a/lib/edoc/src/Makefile +++ b/lib/edoc/src/Makefile @@ -87,7 +87,7 @@ release_spec: opt @@ -148,7 +148,7 @@ index 8acef15248..ead1fd3b0f 100644 release_docs_spec: diff --git a/lib/eldap/src/Makefile b/lib/eldap/src/Makefile -index b79a537424..d0b231e5fc 100644 +index 04a84a4766..78fc4a9687 100644 --- a/lib/eldap/src/Makefile +++ b/lib/eldap/src/Makefile @@ -98,13 +98,9 @@ include $(ERL_TOP)/make/otp_release_targets.mk @@ -168,7 +168,7 @@ index b79a537424..d0b231e5fc 100644 release_docs_spec: diff --git a/lib/erl_docgen/src/Makefile b/lib/erl_docgen/src/Makefile -index e4339dcb1f..f563d6fd5b 100644 +index 458094e35f..cc3368ad02 100644 --- a/lib/erl_docgen/src/Makefile +++ b/lib/erl_docgen/src/Makefile @@ -91,8 +91,6 @@ $(APPUP_TARGET): $(APPUP_SRC) ../vsn.mk @@ -181,7 +181,7 @@ index e4339dcb1f..f563d6fd5b 100644 $(INSTALL_DATA) $(TARGET_FILES) "$(RELSYSDIR)/ebin" diff --git a/lib/et/src/Makefile b/lib/et/src/Makefile -index b6347d8b6d..a695d2cc2d 100644 +index fc66cc1eaf..a567965ed4 100644 --- a/lib/et/src/Makefile +++ b/lib/et/src/Makefile @@ -109,7 +109,6 @@ release_spec: opt @@ -193,19 +193,19 @@ index b6347d8b6d..a695d2cc2d 100644 $(INSTALL_DIR) "$(RELSYSDIR)/include" $(INSTALL_DATA) $(HRL_FILES) "$(RELSYSDIR)/include" diff --git a/lib/eunit/src/Makefile b/lib/eunit/src/Makefile -index 32f75202a0..a89fa7f2d2 100644 +index f4eaf6807a..2a49a2ca7a 100644 --- a/lib/eunit/src/Makefile +++ b/lib/eunit/src/Makefile @@ -121,7 +121,6 @@ release_spec: opt $(INSTALL_DIR) "$(RELSYSDIR)/ebin" $(INSTALL_DATA) $(PARSE_TRANSFORM_BIN) $(OBJECTS) "$(RELSYSDIR)/ebin" $(INSTALL_DIR) "$(RELSYSDIR)/src" -- $(INSTALL_DATA) $(PARSE_TRANSFORM) $(SOURCES) "$(RELSYSDIR)/src" +- $(INSTALL_DATA) $(PARSE_TRANSFORM) $(SOURCES) $(BEHAVIOUR_SOURCES) "$(RELSYSDIR)/src" $(INSTALL_DATA) $(INTERNAL_HRL_FILES) "$(RELSYSDIR)/src" $(INSTALL_DIR) "$(RELSYSDIR)/include" $(INSTALL_DATA) $(INCLUDE_DELIVERABLES) "$(RELSYSDIR)/include" diff --git a/lib/inets/src/http_client/Makefile b/lib/inets/src/http_client/Makefile -index a1c1f36b70..f2eb86f7ac 100644 +index 62f62792f0..ca4b539017 100644 --- a/lib/inets/src/http_client/Makefile +++ b/lib/inets/src/http_client/Makefile @@ -92,7 +92,7 @@ include $(ERL_TOP)/make/otp_release_targets.mk @@ -218,7 +218,7 @@ index a1c1f36b70..f2eb86f7ac 100644 $(INSTALL_DATA) $(TARGET_FILES) "$(RELSYSDIR)/ebin" diff --git a/lib/inets/src/http_lib/Makefile b/lib/inets/src/http_lib/Makefile -index 8248e37c44..1f1b23184b 100644 +index 481c4f66eb..896a806695 100644 --- a/lib/inets/src/http_lib/Makefile +++ b/lib/inets/src/http_lib/Makefile @@ -90,7 +90,7 @@ include $(ERL_TOP)/make/otp_release_targets.mk @@ -231,7 +231,7 @@ index 8248e37c44..1f1b23184b 100644 $(INSTALL_DATA) $(TARGET_FILES) "$(RELSYSDIR)/ebin" diff --git a/lib/inets/src/http_server/Makefile b/lib/inets/src/http_server/Makefile -index f66a446d40..2858ae7267 100644 +index abf8413f33..42925ba58f 100644 --- a/lib/inets/src/http_server/Makefile +++ b/lib/inets/src/http_server/Makefile @@ -134,7 +134,7 @@ include $(ERL_TOP)/make/otp_release_targets.mk @@ -244,7 +244,7 @@ index f66a446d40..2858ae7267 100644 $(INSTALL_DATA) $(TARGET_FILES) $(BEHAVIOUR_TARGET_FILES) "$(RELSYSDIR)/ebin" diff --git a/lib/inets/src/inets_app/Makefile b/lib/inets/src/inets_app/Makefile -index d85df269ce..0193796bc1 100644 +index 405e86105a..a8b932772a 100644 --- a/lib/inets/src/inets_app/Makefile +++ b/lib/inets/src/inets_app/Makefile @@ -114,7 +114,7 @@ include $(ERL_TOP)/make/otp_release_targets.mk @@ -257,7 +257,7 @@ index d85df269ce..0193796bc1 100644 $(INSTALL_DATA) $(EXTERNAL_HRL_FILES) "$(RELSYSDIR)/include" $(INSTALL_DIR) "$(RELSYSDIR)/ebin" diff --git a/lib/kernel/src/Makefile b/lib/kernel/src/Makefile -index b2299188eb..bee47366f1 100644 +index 2149e89776..891d3e6f6a 100644 --- a/lib/kernel/src/Makefile +++ b/lib/kernel/src/Makefile @@ -229,7 +229,6 @@ include $(ERL_TOP)/make/otp_release_targets.mk @@ -269,7 +269,7 @@ index b2299188eb..bee47366f1 100644 $(INSTALL_DIR) "$(RELSYSDIR)/include" $(INSTALL_DATA) $(HRL_FILES) "$(RELSYSDIR)/include" diff --git a/lib/megaco/src/app/Makefile b/lib/megaco/src/app/Makefile -index ab45548099..5c7a7f0be9 100644 +index c681b88428..8cb286181a 100644 --- a/lib/megaco/src/app/Makefile +++ b/lib/megaco/src/app/Makefile @@ -114,7 +114,7 @@ release_spec: opt @@ -282,7 +282,7 @@ index ab45548099..5c7a7f0be9 100644 $(INSTALL_DATA) $(EXTERNAL_HRL_FILES) "$(RELSYSDIR)/include" diff --git a/lib/megaco/src/binary/Makefile b/lib/megaco/src/binary/Makefile -index 9e33fe3ae5..1db69567bb 100644 +index 9ecb649f0c..3ca5654eb3 100644 --- a/lib/megaco/src/binary/Makefile +++ b/lib/megaco/src/binary/Makefile @@ -154,7 +154,7 @@ release_spec: opt @@ -295,7 +295,7 @@ index 9e33fe3ae5..1db69567bb 100644 release_docs_spec: diff --git a/lib/megaco/src/engine/Makefile b/lib/megaco/src/engine/Makefile -index 869b516b05..fa7d774d84 100644 +index cc4974e09d..b7a7c703b3 100644 --- a/lib/megaco/src/engine/Makefile +++ b/lib/megaco/src/engine/Makefile @@ -102,7 +102,7 @@ release_spec: opt @@ -308,7 +308,7 @@ index 869b516b05..fa7d774d84 100644 diff --git a/lib/megaco/src/flex/Makefile.in b/lib/megaco/src/flex/Makefile.in -index c65e817385..3bc4dea207 100644 +index d8c5c68b99..2053d3297b 100644 --- a/lib/megaco/src/flex/Makefile.in +++ b/lib/megaco/src/flex/Makefile.in @@ -248,7 +248,6 @@ release_spec: opt @@ -320,7 +320,7 @@ index c65e817385..3bc4dea207 100644 ifeq ($(ENABLE_MEGACO_FLEX_SCANNER),true) $(INSTALL_DATA) $(FLEX_FILES) "$(RELSYSDIR)/src/flex" diff --git a/lib/megaco/src/tcp/Makefile b/lib/megaco/src/tcp/Makefile -index d07db3fa4b..7f421d24cc 100644 +index ef4232244a..85cfb4b4ee 100644 --- a/lib/megaco/src/tcp/Makefile +++ b/lib/megaco/src/tcp/Makefile @@ -94,7 +94,7 @@ release_spec: opt @@ -333,7 +333,7 @@ index d07db3fa4b..7f421d24cc 100644 release_docs_spec: diff --git a/lib/megaco/src/text/Makefile b/lib/megaco/src/text/Makefile -index bb5f80403b..a78a4551a8 100644 +index 6872b0ec04..a097be4d48 100644 --- a/lib/megaco/src/text/Makefile +++ b/lib/megaco/src/text/Makefile @@ -133,7 +133,7 @@ release_spec: opt @@ -346,7 +346,7 @@ index bb5f80403b..a78a4551a8 100644 release_docs_spec: diff --git a/lib/megaco/src/udp/Makefile b/lib/megaco/src/udp/Makefile -index 028a63e98e..9e11e9bfb2 100644 +index 5699c3e952..f8dcb5c681 100644 --- a/lib/megaco/src/udp/Makefile +++ b/lib/megaco/src/udp/Makefile @@ -94,7 +94,7 @@ release_spec: opt @@ -359,7 +359,7 @@ index 028a63e98e..9e11e9bfb2 100644 release_docs_spec: diff --git a/lib/mnesia/src/Makefile b/lib/mnesia/src/Makefile -index dce7a359d3..7051c965b9 100644 +index 72aa054fb3..08c6c5ffc1 100644 --- a/lib/mnesia/src/Makefile +++ b/lib/mnesia/src/Makefile @@ -135,7 +135,7 @@ include $(ERL_TOP)/make/otp_release_targets.mk @@ -372,7 +372,7 @@ index dce7a359d3..7051c965b9 100644 $(INSTALL_DATA) $(TARGET_FILES) "$(RELSYSDIR)/ebin" diff --git a/lib/observer/src/Makefile b/lib/observer/src/Makefile -index 4280557d45..eb43ecec23 100644 +index 2edb2ceb3e..884e69c7b7 100644 --- a/lib/observer/src/Makefile +++ b/lib/observer/src/Makefile @@ -151,7 +151,6 @@ include $(ERL_TOP)/make/otp_release_targets.mk @@ -384,7 +384,7 @@ index 4280557d45..eb43ecec23 100644 $(INSTALL_DIR) "$(RELSYSDIR)/examples" $(INSTALL_DATA) $(EXAMPLE_FILES) "$(RELSYSDIR)/examples" diff --git a/lib/odbc/src/Makefile b/lib/odbc/src/Makefile -index 7ca59495ed..a52ade2fe3 100644 +index e18628e94d..fa01850f38 100644 --- a/lib/odbc/src/Makefile +++ b/lib/odbc/src/Makefile @@ -110,7 +110,7 @@ include $(ERL_TOP)/make/otp_release_targets.mk @@ -397,7 +397,7 @@ index 7ca59495ed..a52ade2fe3 100644 $(INSTALL_DATA) $(EXT_HRL_FILES) "$(RELSYSDIR)/include" $(INSTALL_DIR) "$(RELSYSDIR)/ebin" diff --git a/lib/os_mon/src/Makefile b/lib/os_mon/src/Makefile -index afb67c1793..ec6acf1fce 100644 +index ee32f3946f..2413fb68bf 100644 --- a/lib/os_mon/src/Makefile +++ b/lib/os_mon/src/Makefile @@ -105,7 +105,6 @@ include $(ERL_TOP)/make/otp_release_targets.mk @@ -409,7 +409,7 @@ index afb67c1793..ec6acf1fce 100644 $(INSTALL_DIR) "$(RELSYSDIR)/ebin" $(INSTALL_DATA) $(TARGET_FILES) "$(RELSYSDIR)/ebin" diff --git a/lib/parsetools/src/Makefile b/lib/parsetools/src/Makefile -index ba206904ec..281cc8657c 100644 +index c7971750a7..f6024f1184 100644 --- a/lib/parsetools/src/Makefile +++ b/lib/parsetools/src/Makefile @@ -91,8 +91,6 @@ $(APPUP_TARGET): $(APPUP_SRC) ../vsn.mk @@ -422,25 +422,23 @@ index ba206904ec..281cc8657c 100644 $(INSTALL_DATA) $(TARGET_FILES) "$(RELSYSDIR)/ebin" $(INSTALL_DIR) "$(RELSYSDIR)/include" diff --git a/lib/public_key/asn1/Makefile b/lib/public_key/asn1/Makefile -index 1fef168463..e5411b903b 100644 +index d33e13fb14..dfa35c6ef2 100644 --- a/lib/public_key/asn1/Makefile +++ b/lib/public_key/asn1/Makefile -@@ -96,8 +96,8 @@ release_spec: opt - $(INSTALL_DIR) "$(RELSYSDIR)/include" - $(INSTALL_DATA) $(HRL_FILES) "$(RELSYSDIR)/include" +@@ -99,8 +99,6 @@ release_spec: opt $(INSTALL_DIR) "$(RELSYSDIR)/asn1" -- $(INSTALL_DATA) $(ASN_ASNS) $(ASN_ERLS) $(ASN_HRLS) $(ASN_CONFIGS) \ -- $(GEN_ERLS) "$(RELSYSDIR)/asn1" -+ $(INSTALL_DATA) $(ASN_ASNS) $(ASN_HRLS) $(ASN_CONFIGS) \ -+ "$(RELSYSDIR)/asn1" + $(INSTALL_DATA) $(ASN_ASNS) $(ASN_CONFIGS) \ + "$(RELSYSDIR)/asn1" +- $(INSTALL_DIR) "$(RELSYSDIR)/src" +- $(INSTALL_DATA) $(ASN_ERLS) "$(RELSYSDIR)/src" $(INSTALL_DIR) "$(RELSYSDIR)/ebin" $(INSTALL_DATA) $(TARGET_FILES) "$(RELSYSDIR)/ebin" diff --git a/lib/public_key/src/Makefile b/lib/public_key/src/Makefile -index e27f02eea9..dec54a8414 100644 +index 9b2b442794..a5dcba4ec3 100644 --- a/lib/public_key/src/Makefile +++ b/lib/public_key/src/Makefile -@@ -110,8 +110,6 @@ $(APPUP_TARGET): $(APPUP_SRC) ../vsn.mk +@@ -111,8 +111,6 @@ $(APPUP_TARGET): $(APPUP_SRC) ../vsn.mk include $(ERL_TOP)/make/otp_release_targets.mk release_spec: opt @@ -450,7 +448,7 @@ index e27f02eea9..dec54a8414 100644 $(INSTALL_DATA) $(HRL_FILES) "$(RELSYSDIR)/include" $(INSTALL_DIR) "$(RELSYSDIR)/ebin" diff --git a/lib/reltool/src/Makefile b/lib/reltool/src/Makefile -index 4bddee4664..c714255548 100644 +index 173a557d58..6864febbc3 100644 --- a/lib/reltool/src/Makefile +++ b/lib/reltool/src/Makefile @@ -100,7 +100,7 @@ include $(ERL_TOP)/make/otp_release_targets.mk @@ -463,7 +461,7 @@ index 4bddee4664..c714255548 100644 $(INSTALL_DATA) $(TARGET_FILES) "$(RELSYSDIR)/ebin" $(INSTALL_DATA) $(APP_TARGET) $(APPUP_TARGET) "$(RELSYSDIR)/ebin" diff --git a/lib/runtime_tools/src/Makefile b/lib/runtime_tools/src/Makefile -index 76286c5499..d921f9f294 100644 +index 8e8c4074f5..6e380e1b11 100644 --- a/lib/runtime_tools/src/Makefile +++ b/lib/runtime_tools/src/Makefile @@ -99,8 +99,6 @@ docs: @@ -476,7 +474,7 @@ index 76286c5499..d921f9f294 100644 $(INSTALL_DATA) $(HRL_FILES) "$(RELSYSDIR)/include" $(INSTALL_DIR) "$(RELSYSDIR)/examples" diff --git a/lib/sasl/src/Makefile b/lib/sasl/src/Makefile -index 16a42caf11..674364281d 100644 +index 490e03595d..739830ae3f 100644 --- a/lib/sasl/src/Makefile +++ b/lib/sasl/src/Makefile @@ -94,7 +94,6 @@ include $(ERL_TOP)/make/otp_release_targets.mk @@ -488,7 +486,7 @@ index 16a42caf11..674364281d 100644 $(INSTALL_DIR) "$(RELSYSDIR)/ebin" $(INSTALL_DATA) $(TARGET_FILES) "$(RELSYSDIR)/ebin" diff --git a/lib/snmp/src/agent/Makefile b/lib/snmp/src/agent/Makefile -index 1da0f33c9d..9d54271816 100644 +index 815b9f16cc..1eb49e9b93 100644 --- a/lib/snmp/src/agent/Makefile +++ b/lib/snmp/src/agent/Makefile @@ -151,7 +151,7 @@ include $(ERL_TOP)/make/otp_release_targets.mk @@ -501,7 +499,7 @@ index 1da0f33c9d..9d54271816 100644 $(INSTALL_DATA) $(BEHAVIOUR_TARGET_FILES) $(TARGET_FILES) $(APP_TARGET) $(APPUP_TARGET) \ "$(RELSYSDIR)/ebin" diff --git a/lib/snmp/src/app/Makefile b/lib/snmp/src/app/Makefile -index 02800462a4..133f7c3b59 100644 +index f5a74aa78e..0340088eb3 100644 --- a/lib/snmp/src/app/Makefile +++ b/lib/snmp/src/app/Makefile @@ -144,7 +144,7 @@ include $(ERL_TOP)/make/otp_release_targets.mk @@ -514,7 +512,7 @@ index 02800462a4..133f7c3b59 100644 $(INSTALL_DATA) $(TARGET_FILES) $(APP_TARGET) $(APPUP_TARGET) \ "$(RELSYSDIR)/ebin" diff --git a/lib/snmp/src/compile/Makefile b/lib/snmp/src/compile/Makefile -index bbd7f99378..19d1f83dda 100644 +index d37eaf9636..5d10c1250e 100644 --- a/lib/snmp/src/compile/Makefile +++ b/lib/snmp/src/compile/Makefile @@ -137,7 +137,7 @@ include $(ERL_TOP)/make/otp_release_targets.mk @@ -527,7 +525,7 @@ index bbd7f99378..19d1f83dda 100644 $(INSTALL_DATA) $(EBIN_FILES) "$(RELSYSDIR)/ebin" $(INSTALL_DIR) "$(RELSYSDIR)/bin" diff --git a/lib/snmp/src/manager/Makefile b/lib/snmp/src/manager/Makefile -index 6f5f5d01f9..d6bc5e3e06 100644 +index 693ef75469..61b8dc4692 100644 --- a/lib/snmp/src/manager/Makefile +++ b/lib/snmp/src/manager/Makefile @@ -135,7 +135,7 @@ include $(ERL_TOP)/make/otp_release_targets.mk @@ -540,7 +538,7 @@ index 6f5f5d01f9..d6bc5e3e06 100644 $(INSTALL_DATA) $(BEHAVIOUR_TARGET_FILES) $(TARGET_FILES) "$(RELSYSDIR)/ebin" # $(INSTALL_DIR) "$(RELSYSDIR)/include" diff --git a/lib/snmp/src/misc/Makefile b/lib/snmp/src/misc/Makefile -index eca2d949d2..4c234caf88 100644 +index e92506e855..8dc421d2a1 100644 --- a/lib/snmp/src/misc/Makefile +++ b/lib/snmp/src/misc/Makefile @@ -125,7 +125,7 @@ include $(ERL_TOP)/make/otp_release_targets.mk @@ -553,7 +551,7 @@ index eca2d949d2..4c234caf88 100644 $(INSTALL_DATA) $(TARGET_FILES) "$(RELSYSDIR)/ebin" # $(INSTALL_DIR) "$(RELSYSDIR)/include" diff --git a/lib/ssh/src/Makefile b/lib/ssh/src/Makefile -index cc3cfe9e96..9f3cd694f5 100644 +index 2fcb164301..2c7acf384d 100644 --- a/lib/ssh/src/Makefile +++ b/lib/ssh/src/Makefile @@ -182,7 +182,7 @@ include $(ERL_TOP)/make/otp_release_targets.mk @@ -566,7 +564,7 @@ index cc3cfe9e96..9f3cd694f5 100644 $(INSTALL_DATA) $(BEHAVIOUR_TARGET_FILES) $(TARGET_FILES) $(APP_TARGET) \ $(APPUP_TARGET) "$(RELSYSDIR)/ebin" diff --git a/lib/ssl/src/Makefile b/lib/ssl/src/Makefile -index 1e55bb497d..1cf3cbf5ee 100644 +index 789bed5c3f..9cd7f7226c 100644 --- a/lib/ssl/src/Makefile +++ b/lib/ssl/src/Makefile @@ -211,7 +211,7 @@ include $(ERL_TOP)/make/otp_release_targets.mk @@ -579,10 +577,10 @@ index 1e55bb497d..1cf3cbf5ee 100644 $(INSTALL_DATA) $(BEHAVIOUR_TARGET_FILES) $(TARGET_FILES) $(APP_TARGET) \ $(APPUP_TARGET) "$(RELSYSDIR)/ebin" diff --git a/lib/stdlib/src/Makefile b/lib/stdlib/src/Makefile -index 509648cb2b..0ffc2c6ed1 100644 +index 369a448fe5..f23e53fd6f 100644 --- a/lib/stdlib/src/Makefile +++ b/lib/stdlib/src/Makefile -@@ -221,7 +221,6 @@ include $(ERL_TOP)/make/otp_release_targets.mk +@@ -223,7 +223,6 @@ include $(ERL_TOP)/make/otp_release_targets.mk release_spec: opt $(INSTALL_DIR) "$(RELSYSDIR)/src" @@ -591,7 +589,7 @@ index 509648cb2b..0ffc2c6ed1 100644 $(INSTALL_DIR) "$(RELSYSDIR)/include" $(INSTALL_DATA) $(HRL_FILES) "$(RELSYSDIR)/include" diff --git a/lib/syntax_tools/src/Makefile b/lib/syntax_tools/src/Makefile -index af6a472f3d..6796810ac2 100644 +index dc0ac61734..5bb265e2c2 100644 --- a/lib/syntax_tools/src/Makefile +++ b/lib/syntax_tools/src/Makefile @@ -96,8 +96,6 @@ include $(ERL_TOP)/make/otp_release_targets.mk @@ -604,7 +602,7 @@ index af6a472f3d..6796810ac2 100644 $(INSTALL_DATA) $(INCLUDE_DELIVERABLES) "$(RELSYSDIR)/include" diff --git a/lib/tftp/src/Makefile b/lib/tftp/src/Makefile -index 4ece9ffe28..da95babcea 100644 +index cfcb1ea134..fba9cc5873 100644 --- a/lib/tftp/src/Makefile +++ b/lib/tftp/src/Makefile @@ -101,7 +101,7 @@ include $(ERL_TOP)/make/otp_release_targets.mk @@ -617,7 +615,7 @@ index 4ece9ffe28..da95babcea 100644 $(INSTALL_DATA) $(BEHAVIOUR_TARGET_FILES) $(TARGET_FILES) $(APP_TARGET) \ $(APPUP_TARGET) "$(RELSYSDIR)/ebin" diff --git a/lib/tools/src/Makefile b/lib/tools/src/Makefile -index cc5bee9a8f..7dfa55cb41 100644 +index b05ce883ec..f8d143922d 100644 --- a/lib/tools/src/Makefile +++ b/lib/tools/src/Makefile @@ -109,7 +109,7 @@ include $(ERL_TOP)/make/otp_release_targets.mk @@ -630,7 +628,7 @@ index cc5bee9a8f..7dfa55cb41 100644 $(INSTALL_DATA) $(TARGET_FILES) $(APP_TARGET) $(APPUP_TARGET) \ "$(RELSYSDIR)/ebin" diff --git a/lib/wx/src/Makefile b/lib/wx/src/Makefile -index 7e2eb38f2f..939d03670d 100644 +index ce14c0b6df..f052399c0f 100644 --- a/lib/wx/src/Makefile +++ b/lib/wx/src/Makefile @@ -121,9 +121,9 @@ $(EBIN)/%.beam: $(EGEN)/%.erl $(HEADER_FILES) @@ -646,7 +644,7 @@ index 7e2eb38f2f..939d03670d 100644 $(INSTALL_DATA) $(EXT_HRL) "$(RELSYSDIR)/include" $(INSTALL_DIR) "$(RELSYSDIR)/ebin" diff --git a/lib/xmerl/src/Makefile b/lib/xmerl/src/Makefile -index 51d9190797..1ab65bd2ed 100644 +index 0a9f8391c7..2ff364c678 100644 --- a/lib/xmerl/src/Makefile +++ b/lib/xmerl/src/Makefile @@ -218,9 +218,7 @@ release_spec: opt diff --git a/otp-0007-Add-extra-search-directory.patch b/otp-0007-Add-extra-search-directory.patch index 2b7e1e2..cb84b30 100644 --- a/otp-0007-Add-extra-search-directory.patch +++ b/otp-0007-Add-extra-search-directory.patch @@ -5,7 +5,7 @@ Subject: [PATCH] Add extra search directory Signed-off-by: Peter Lemenkov diff --git a/lib/kernel/src/code_server.erl b/lib/kernel/src/code_server.erl -index 3ab50cafe0..f510535714 100644 +index af8531271f..66050d6cdb 100644 --- a/lib/kernel/src/code_server.erl +++ b/lib/kernel/src/code_server.erl @@ -79,11 +79,17 @@ init(Ref, Parent, [Root,Mode]) -> diff --git a/otp-0008-Avoid-forking-sed-to-get-basename.patch b/otp-0008-Avoid-forking-sed-to-get-basename.patch index a0ceb3e..d146ab2 100644 --- a/otp-0008-Avoid-forking-sed-to-get-basename.patch +++ b/otp-0008-Avoid-forking-sed-to-get-basename.patch @@ -4,14 +4,14 @@ Subject: [PATCH] Avoid forking sed to get basename. diff --git a/erts/etc/unix/erl.src.src b/erts/etc/unix/erl.src.src -index 0983132ac1..6b55e8f0f3 100644 +index 536fa139d9..4dcffbc4c8 100644 --- a/erts/etc/unix/erl.src.src +++ b/erts/etc/unix/erl.src.src -@@ -26,7 +26,7 @@ else +@@ -49,7 +49,7 @@ else fi - BINDIR=$ROOTDIR/erts-%VSN%/bin + BINDIR="$ROOTDIR/erts-%VSN%/bin" EMU=%EMULATOR%%EMULATOR_NUMBER% --PROGNAME=`echo $0 | sed 's/.*\///'` +-PROGNAME=`basename "$0"` +PROGNAME=${0##*/} export EMU export ROOTDIR diff --git a/otp-0009-Load-man-pages-from-system-wide-directory.patch b/otp-0009-Load-man-pages-from-system-wide-directory.patch index f9b074b..c4b4ef4 100644 --- a/otp-0009-Load-man-pages-from-system-wide-directory.patch +++ b/otp-0009-Load-man-pages-from-system-wide-directory.patch @@ -7,10 +7,10 @@ Patch allows one to use standard man path with erl -man command. as required by Debian policy.) diff --git a/erts/etc/common/erlexec.c b/erts/etc/common/erlexec.c -index bda9a94a95..e14fdc49b6 100644 +index 9c3dc690ba..7867d32fd0 100644 --- a/erts/etc/common/erlexec.c +++ b/erts/etc/common/erlexec.c -@@ -724,8 +724,10 @@ int main(int argc, char **argv) +@@ -708,8 +708,10 @@ int main(int argc, char **argv) error("-man not supported on Windows"); #else argv[i] = "man"; diff --git a/otp-0010-Specify-encoding-during-javadoc-stage.patch b/otp-0010-Specify-encoding-during-javadoc-stage.patch new file mode 100644 index 0000000..756bea4 --- /dev/null +++ b/otp-0010-Specify-encoding-during-javadoc-stage.patch @@ -0,0 +1,19 @@ +From: Peter Lemenkov +Date: Wed, 13 Jul 2022 20:51:47 +0200 +Subject: [PATCH] Specify encoding during javadoc stage + +Signed-off-by: Peter Lemenkov + +diff --git a/lib/jinterface/doc/src/Makefile b/lib/jinterface/doc/src/Makefile +index 47e269a273..3e329a3a3f 100644 +--- a/lib/jinterface/doc/src/Makefile ++++ b/lib/jinterface/doc/src/Makefile +@@ -74,7 +74,7 @@ JAVA_SRC_FILES = $(JAVA_FILES:%=$(JAVA_SRC_PATH)/%.java) + + + ../html/java/index.html: $(JAVA_SRC_FILES) +- (cd ../../java_src;$(JAVADOC) -sourcepath . -d $(JAVADOC_DEST) \ ++ (cd ../../java_src;$(JAVADOC) -encoding UTF-8 -sourcepath . -d $(JAVADOC_DEST) \ + -windowtitle $(JAVADOC_TITLE) $(JAVADOC_PKGS)) + + html: ../html/java/index.html diff --git a/sources b/sources index 527c3cc..5f85ab7 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (otp-OTP-24.3.4.2.tar.gz) = 78bc2dc67fe60d3ea6049c361a017c054e12b0adeeae890b0a1ee5301744505593bd19f3731acebff8312b323a3bd21a1359507d122fc34f0eb85eefb3aac88c +SHA512 (otp-OTP-25.0.2.tar.gz) = 717406816b4428fb8bd808a9d25575b7e33a05e6aed5428295682ba8576d53f1433bd1b1593236943e592e673ed2168047873127cfd293b5522636c514328f43 From 000f6a79c5630e28d3c1844be5e70b06737aac33 Mon Sep 17 00:00:00 2001 From: Peter Lemenkov Date: Fri, 15 Jul 2022 09:38:11 +0200 Subject: [PATCH 068/135] typo Signed-off-by: Peter Lemenkov --- erlang.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erlang.spec b/erlang.spec index 159498d..f746e1c 100644 --- a/erlang.spec +++ b/erlang.spec @@ -1912,7 +1912,7 @@ useradd -r -g epmd -d /dev/null -s /sbin/nologin \ %changelog -* Tue Jul 12 2022 Peter Lemenkov - 25.0..2-1 +* Tue Jul 12 2022 Peter Lemenkov - 25.0.2-1 - Ver. 25.0.2 * Thu Jun 23 2022 Peter Lemenkov - 24.3.4.2-1 From 7cb92068305589d5e6930076ce38bd7ccdcfb8e9 Mon Sep 17 00:00:00 2001 From: Peter Lemenkov Date: Sat, 16 Jul 2022 11:53:22 +0200 Subject: [PATCH 069/135] Erlang ver. 25.0.3 Signed-off-by: Peter Lemenkov --- erlang.spec | 5 ++++- sources | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/erlang.spec b/erlang.spec index f746e1c..6d7d162 100644 --- a/erlang.spec +++ b/erlang.spec @@ -63,7 +63,7 @@ Name: erlang -Version: 25.0.2 +Version: 25.0.3 Release: 1%{?dist} Summary: General-purpose programming language and runtime environment @@ -1912,6 +1912,9 @@ useradd -r -g epmd -d /dev/null -s /sbin/nologin \ %changelog +* Sat Jul 16 2022 Peter Lemenkov - 25.0.3-1 +- Ver. 25.0.3 + * Tue Jul 12 2022 Peter Lemenkov - 25.0.2-1 - Ver. 25.0.2 diff --git a/sources b/sources index 5f85ab7..d78f2ee 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (otp-OTP-25.0.2.tar.gz) = 717406816b4428fb8bd808a9d25575b7e33a05e6aed5428295682ba8576d53f1433bd1b1593236943e592e673ed2168047873127cfd293b5522636c514328f43 +SHA512 (otp-OTP-25.0.3.tar.gz) = d6c83722bd86e20568b879cb770e95e37b6227b932e4e74e50bbb9dc426b1f7f5286600a182011baa2b83ff7f006717ee62812959f133868765d819ddf57399f From 46be8d8adf2be9806e9915ba529262c2f0a00f05 Mon Sep 17 00:00:00 2001 From: Peter Lemenkov Date: Mon, 18 Jul 2022 10:39:50 +0200 Subject: [PATCH 070/135] No more Java for ix86 Signed-off-by: Peter Lemenkov --- erlang.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erlang.spec b/erlang.spec index 6d7d162..c4be3d1 100644 --- a/erlang.spec +++ b/erlang.spec @@ -2,7 +2,7 @@ %{!?need_bootstrap: %global need_bootstrap %{need_bootstrap_set}} -%ifarch %{arm} %{mips} riscv64 +%ifarch %{arm} %{mips} riscv64 %{ix86} # MIPS and RISC-V does not have all dependencies for fop yet. # For some reason, fop hangs on arm, so for now don't generate docs by # default From d9f78fa41534df0546d99f6457c5d1ea06de5406 Mon Sep 17 00:00:00 2001 From: Peter Lemenkov Date: Mon, 18 Jul 2022 12:04:51 +0200 Subject: [PATCH 071/135] No more Java for ix86 (2) Signed-off-by: Peter Lemenkov --- erlang.spec | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/erlang.spec b/erlang.spec index c4be3d1..ec299ab 100644 --- a/erlang.spec +++ b/erlang.spec @@ -25,7 +25,11 @@ %global __with_emacs 1 %global __with_examples 1 +%ifarch %{ix86} %global __with_java 1 +%else +%global __with_java 0 +%endif # # wxWidgets plugin blocks the following ones: # From 40e6735f03fad19fcdd4bf172b6779927b4d91cf Mon Sep 17 00:00:00 2001 From: Peter Lemenkov Date: Mon, 18 Jul 2022 12:39:13 +0200 Subject: [PATCH 072/135] No more Java for ix86 (3) Signed-off-by: Peter Lemenkov --- erlang.spec | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/erlang.spec b/erlang.spec index ec299ab..fc5d677 100644 --- a/erlang.spec +++ b/erlang.spec @@ -26,9 +26,9 @@ %global __with_emacs 1 %global __with_examples 1 %ifarch %{ix86} -%global __with_java 1 -%else %global __with_java 0 +%else +%global __with_java 1 %endif # # wxWidgets plugin blocks the following ones: From 066ab5f6cfc51b4b8843607014e5527b4bd6eb77 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Thu, 21 Jul 2022 02:10:33 +0000 Subject: [PATCH 073/135] Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- erlang.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/erlang.spec b/erlang.spec index fc5d677..de049db 100644 --- a/erlang.spec +++ b/erlang.spec @@ -68,7 +68,7 @@ Name: erlang Version: 25.0.3 -Release: 1%{?dist} +Release: 2%{?dist} Summary: General-purpose programming language and runtime environment License: ASL 2.0 @@ -1916,6 +1916,9 @@ useradd -r -g epmd -d /dev/null -s /sbin/nologin \ %changelog +* Thu Jul 21 2022 Fedora Release Engineering - 25.0.3-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + * Sat Jul 16 2022 Peter Lemenkov - 25.0.3-1 - Ver. 25.0.3 From c1aef905ce343155dabdfe297f24cffbe663a188 Mon Sep 17 00:00:00 2001 From: Peter Lemenkov Date: Thu, 28 Jul 2022 16:59:45 +0200 Subject: [PATCH 074/135] Rebuild with new wxWidgets Signed-off-by: Peter Lemenkov --- erlang.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/erlang.spec b/erlang.spec index de049db..feab00b 100644 --- a/erlang.spec +++ b/erlang.spec @@ -68,7 +68,7 @@ Name: erlang Version: 25.0.3 -Release: 2%{?dist} +Release: 3%{?dist} Summary: General-purpose programming language and runtime environment License: ASL 2.0 @@ -1916,6 +1916,9 @@ useradd -r -g epmd -d /dev/null -s /sbin/nologin \ %changelog +* Thu Jul 28 2022 Peter Lemenkov - 25.0.3-3 +- Rebuild with new wxWidgets + * Thu Jul 21 2022 Fedora Release Engineering - 25.0.3-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild From 13e953841be608ac9e260a32b18db6e56171f731 Mon Sep 17 00:00:00 2001 From: Peter Lemenkov Date: Thu, 18 Aug 2022 19:18:32 +0200 Subject: [PATCH 075/135] Erlang ver. 25.0.4 Signed-off-by: Peter Lemenkov --- erlang.spec | 13 ++++++++----- sources | 2 +- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/erlang.spec b/erlang.spec index feab00b..224358d 100644 --- a/erlang.spec +++ b/erlang.spec @@ -25,10 +25,10 @@ %global __with_emacs 1 %global __with_examples 1 -%ifarch %{ix86} -%global __with_java 0 -%else +%ifarch %{java_arches} %global __with_java 1 +%else +%global __with_java 0 %endif # # wxWidgets plugin blocks the following ones: @@ -67,8 +67,8 @@ Name: erlang -Version: 25.0.3 -Release: 3%{?dist} +Version: 25.0.4 +Release: 1%{?dist} Summary: General-purpose programming language and runtime environment License: ASL 2.0 @@ -1916,6 +1916,9 @@ useradd -r -g epmd -d /dev/null -s /sbin/nologin \ %changelog +* Thu Aug 18 2022 Peter Lemenkov - 25.0.4-1 +- Ver. 25.0.4 + * Thu Jul 28 2022 Peter Lemenkov - 25.0.3-3 - Rebuild with new wxWidgets diff --git a/sources b/sources index d78f2ee..5502eef 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (otp-OTP-25.0.3.tar.gz) = d6c83722bd86e20568b879cb770e95e37b6227b932e4e74e50bbb9dc426b1f7f5286600a182011baa2b83ff7f006717ee62812959f133868765d819ddf57399f +SHA512 (otp-OTP-25.0.4.tar.gz) = 8d9d12496d55181c0d866bbd97576551d1d78232fe34b845e8efbfbd4e95ce8426e73221d8126d12453959cd8adc5e07f121aaa93f3a5696074b43c69291d363 From 3afa7cbab8e293f42eb79de468eb58ad8853b9de Mon Sep 17 00:00:00 2001 From: Peter Lemenkov Date: Wed, 21 Sep 2022 16:57:28 +0200 Subject: [PATCH 076/135] Erlang ver. 25.1 Signed-off-by: Peter Lemenkov --- erlang.spec | 6 ++- otp-0002-Remove-rpath.patch | 4 +- otp-0006-Do-not-install-erlang-sources.patch | 44 +++++++++---------- ...pecify-encoding-during-javadoc-stage.patch | 19 -------- sources | 2 +- 5 files changed, 29 insertions(+), 46 deletions(-) delete mode 100644 otp-0010-Specify-encoding-during-javadoc-stage.patch diff --git a/erlang.spec b/erlang.spec index 224358d..ba482ed 100644 --- a/erlang.spec +++ b/erlang.spec @@ -67,7 +67,7 @@ Name: erlang -Version: 25.0.4 +Version: 25.1 Release: 1%{?dist} Summary: General-purpose programming language and runtime environment @@ -108,7 +108,6 @@ Patch6: otp-0006-Do-not-install-erlang-sources.patch Patch7: otp-0007-Add-extra-search-directory.patch Patch8: otp-0008-Avoid-forking-sed-to-get-basename.patch Patch9: otp-0009-Load-man-pages-from-system-wide-directory.patch -Patch10: otp-0010-Specify-encoding-during-javadoc-stage.patch # end of autogenerated patch tag list BuildRequires: gcc @@ -1916,6 +1915,9 @@ useradd -r -g epmd -d /dev/null -s /sbin/nologin \ %changelog +* Wed Sep 21 2022 Peter Lemenkov - 25.1-1 +- Ver. 25.1 + * Thu Aug 18 2022 Peter Lemenkov - 25.0.4-1 - Ver. 25.0.4 diff --git a/otp-0002-Remove-rpath.patch b/otp-0002-Remove-rpath.patch index de2d7a1..b906050 100644 --- a/otp-0002-Remove-rpath.patch +++ b/otp-0002-Remove-rpath.patch @@ -5,10 +5,10 @@ Subject: [PATCH] Remove rpath Signed-off-by: Peter Lemenkov diff --git a/lib/crypto/c_src/Makefile.in b/lib/crypto/c_src/Makefile.in -index ec5cb32973..429347a07e 100644 +index 25167a8a3a..2345970fa9 100644 --- a/lib/crypto/c_src/Makefile.in +++ b/lib/crypto/c_src/Makefile.in -@@ -146,7 +146,7 @@ endif +@@ -147,7 +147,7 @@ endif endif ifeq ($(DYNAMIC_OR_WIN_CRYPTO_LIB),yes) diff --git a/otp-0006-Do-not-install-erlang-sources.patch b/otp-0006-Do-not-install-erlang-sources.patch index e96c821..e40945b 100644 --- a/otp-0006-Do-not-install-erlang-sources.patch +++ b/otp-0006-Do-not-install-erlang-sources.patch @@ -8,10 +8,10 @@ Signed-off-by: Peter Lemenkov Signed-off-by: Hans Ulrich Niedermann diff --git a/erts/preloaded/src/Makefile b/erts/preloaded/src/Makefile -index 191341a9f5..35c884e933 100644 +index 1994aa1302..007b7d44bd 100644 --- a/erts/preloaded/src/Makefile +++ b/erts/preloaded/src/Makefile -@@ -113,8 +113,6 @@ $(APP_TARGET): $(APP_SRC) $(ERL_TOP)/erts/vsn.mk +@@ -117,8 +117,6 @@ $(APP_TARGET): $(APP_SRC) $(ERL_TOP)/erts/vsn.mk include $(ERL_TOP)/make/otp_release_targets.mk release_spec: $(APP_TARGET) @@ -21,10 +21,10 @@ index 191341a9f5..35c884e933 100644 $(INSTALL_DATA) $(STATIC_TARGET_FILES) $(APP_TARGET) "$(RELSYSDIR)/ebin" diff --git a/lib/asn1/src/Makefile b/lib/asn1/src/Makefile -index 6d02075576..15f7054fed 100644 +index 9e13d02c8a..77ba98c2f8 100644 --- a/lib/asn1/src/Makefile +++ b/lib/asn1/src/Makefile -@@ -151,7 +151,7 @@ release_spec: opt +@@ -157,7 +157,7 @@ release_spec: opt $(INSTALL_DIR) "$(RELSYSDIR)/ebin" $(INSTALL_DATA) $(TARGET_FILES) $(APP_TARGET) $(APPUP_TARGET) "$(RELSYSDIR)/ebin" $(INSTALL_DIR) "$(RELSYSDIR)/src" @@ -63,10 +63,10 @@ index 4ff5e678ee..4e3fa5c60f 100644 $(INSTALL_SCRIPT) $(PROGRAMS) "$(RELEASE_PATH)/test_server" diff --git a/lib/compiler/src/Makefile b/lib/compiler/src/Makefile -index a9027b3ad8..3aaadb8500 100644 +index d801d6baa0..4eed19b516 100644 --- a/lib/compiler/src/Makefile +++ b/lib/compiler/src/Makefile -@@ -182,8 +182,8 @@ include $(ERL_TOP)/make/otp_release_targets.mk +@@ -188,8 +188,8 @@ include $(ERL_TOP)/make/otp_release_targets.mk release_spec: opt $(INSTALL_DIR) "$(RELSYSDIR)/src" @@ -117,11 +117,11 @@ index c934ecdc2b..cc266f48e2 100644 $(INSTALL_DIR) "$(RELSYSDIR)/ebin" $(INSTALL_DATA) $(INSTALL_FILES) "$(RELSYSDIR)/ebin" diff --git a/lib/diameter/src/Makefile b/lib/diameter/src/Makefile -index 6dd3667a46..4e37212caa 100644 +index 75e23d4191..7097541548 100644 --- a/lib/diameter/src/Makefile +++ b/lib/diameter/src/Makefile -@@ -260,11 +260,8 @@ release_spec: opt - $(MAKE) $(EXAMPLE_DIRS:%/=release_examples_%) +@@ -266,11 +266,8 @@ release_spec: opt + $(MAKE) ERL_DETERMINISTIC=$(ERL_DETERMINISTIC) $(EXAMPLE_DIRS:%/=release_examples_%) $(TARGET_DIRS:%/=release_src_%): release_src_%: - $(INSTALL_DIR) "$(RELSYSDIR)/src/$*" @@ -422,10 +422,10 @@ index c7971750a7..f6024f1184 100644 $(INSTALL_DATA) $(TARGET_FILES) "$(RELSYSDIR)/ebin" $(INSTALL_DIR) "$(RELSYSDIR)/include" diff --git a/lib/public_key/asn1/Makefile b/lib/public_key/asn1/Makefile -index d33e13fb14..dfa35c6ef2 100644 +index c1adf58ed4..bba7cae5d6 100644 --- a/lib/public_key/asn1/Makefile +++ b/lib/public_key/asn1/Makefile -@@ -99,8 +99,6 @@ release_spec: opt +@@ -103,8 +103,6 @@ release_spec: opt $(INSTALL_DIR) "$(RELSYSDIR)/asn1" $(INSTALL_DATA) $(ASN_ASNS) $(ASN_CONFIGS) \ "$(RELSYSDIR)/asn1" @@ -485,11 +485,11 @@ index 490e03595d..739830ae3f 100644 $(INSTALL_DATA) $(INTERNAL_HRL_FILES) "$(RELSYSDIR)/src" $(INSTALL_DIR) "$(RELSYSDIR)/ebin" $(INSTALL_DATA) $(TARGET_FILES) "$(RELSYSDIR)/ebin" -diff --git a/lib/snmp/src/agent/Makefile b/lib/snmp/src/agent/Makefile -index 815b9f16cc..1eb49e9b93 100644 ---- a/lib/snmp/src/agent/Makefile -+++ b/lib/snmp/src/agent/Makefile -@@ -151,7 +151,7 @@ include $(ERL_TOP)/make/otp_release_targets.mk +diff --git a/lib/snmp/src/agent/Makefile.in b/lib/snmp/src/agent/Makefile.in +index 6ab9ed437a..14ae0bbc79 100644 +--- a/lib/snmp/src/agent/Makefile.in ++++ b/lib/snmp/src/agent/Makefile.in +@@ -161,7 +161,7 @@ include $(ERL_TOP)/make/otp_release_targets.mk release_spec: opt $(INSTALL_DIR) "$(RELSYSDIR)/src" $(INSTALL_DIR) "$(RELSYSDIR)/src/agent" @@ -512,10 +512,10 @@ index f5a74aa78e..0340088eb3 100644 $(INSTALL_DATA) $(TARGET_FILES) $(APP_TARGET) $(APPUP_TARGET) \ "$(RELSYSDIR)/ebin" diff --git a/lib/snmp/src/compile/Makefile b/lib/snmp/src/compile/Makefile -index d37eaf9636..5d10c1250e 100644 +index f255237a04..04232658c7 100644 --- a/lib/snmp/src/compile/Makefile +++ b/lib/snmp/src/compile/Makefile -@@ -137,7 +137,7 @@ include $(ERL_TOP)/make/otp_release_targets.mk +@@ -141,7 +141,7 @@ include $(ERL_TOP)/make/otp_release_targets.mk release_spec: opt $(INSTALL_DIR) "$(RELSYSDIR)/src" $(INSTALL_DIR) "$(RELSYSDIR)/src/compiler" @@ -577,10 +577,10 @@ index 789bed5c3f..9cd7f7226c 100644 $(INSTALL_DATA) $(BEHAVIOUR_TARGET_FILES) $(TARGET_FILES) $(APP_TARGET) \ $(APPUP_TARGET) "$(RELSYSDIR)/ebin" diff --git a/lib/stdlib/src/Makefile b/lib/stdlib/src/Makefile -index 369a448fe5..f23e53fd6f 100644 +index 761d6c4c28..43e7a650a5 100644 --- a/lib/stdlib/src/Makefile +++ b/lib/stdlib/src/Makefile -@@ -223,7 +223,6 @@ include $(ERL_TOP)/make/otp_release_targets.mk +@@ -230,7 +230,6 @@ include $(ERL_TOP)/make/otp_release_targets.mk release_spec: opt $(INSTALL_DIR) "$(RELSYSDIR)/src" @@ -644,10 +644,10 @@ index ce14c0b6df..f052399c0f 100644 $(INSTALL_DATA) $(EXT_HRL) "$(RELSYSDIR)/include" $(INSTALL_DIR) "$(RELSYSDIR)/ebin" diff --git a/lib/xmerl/src/Makefile b/lib/xmerl/src/Makefile -index 0a9f8391c7..2ff364c678 100644 +index e7e7c8e978..37b7843605 100644 --- a/lib/xmerl/src/Makefile +++ b/lib/xmerl/src/Makefile -@@ -218,9 +218,7 @@ release_spec: opt +@@ -223,9 +223,7 @@ release_spec: opt $(INSTALL_DIR) "$(RELSYSDIR)/ebin" $(INSTALL_DATA) $(TARGET_FILES) "$(RELSYSDIR)/ebin" $(INSTALL_DIR) "$(RELSYSDIR)/src" diff --git a/otp-0010-Specify-encoding-during-javadoc-stage.patch b/otp-0010-Specify-encoding-during-javadoc-stage.patch deleted file mode 100644 index 756bea4..0000000 --- a/otp-0010-Specify-encoding-during-javadoc-stage.patch +++ /dev/null @@ -1,19 +0,0 @@ -From: Peter Lemenkov -Date: Wed, 13 Jul 2022 20:51:47 +0200 -Subject: [PATCH] Specify encoding during javadoc stage - -Signed-off-by: Peter Lemenkov - -diff --git a/lib/jinterface/doc/src/Makefile b/lib/jinterface/doc/src/Makefile -index 47e269a273..3e329a3a3f 100644 ---- a/lib/jinterface/doc/src/Makefile -+++ b/lib/jinterface/doc/src/Makefile -@@ -74,7 +74,7 @@ JAVA_SRC_FILES = $(JAVA_FILES:%=$(JAVA_SRC_PATH)/%.java) - - - ../html/java/index.html: $(JAVA_SRC_FILES) -- (cd ../../java_src;$(JAVADOC) -sourcepath . -d $(JAVADOC_DEST) \ -+ (cd ../../java_src;$(JAVADOC) -encoding UTF-8 -sourcepath . -d $(JAVADOC_DEST) \ - -windowtitle $(JAVADOC_TITLE) $(JAVADOC_PKGS)) - - html: ../html/java/index.html diff --git a/sources b/sources index 5502eef..a592ad1 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (otp-OTP-25.0.4.tar.gz) = 8d9d12496d55181c0d866bbd97576551d1d78232fe34b845e8efbfbd4e95ce8426e73221d8126d12453959cd8adc5e07f121aaa93f3a5696074b43c69291d363 +SHA512 (otp-OTP-25.1.tar.gz) = d9ad3f41a01121ce1e299ce3532a4bb498bb804a28ea01715cdda3308a89d84ebe14ad3da421a400e403ccb218fb8b3b708344ff10fcfd9e3b28286cac85d81a From f2cfc269fe63bc501f2984a2394d4c0d4428af43 Mon Sep 17 00:00:00 2001 From: Peter Lemenkov Date: Mon, 3 Oct 2022 19:45:09 +0200 Subject: [PATCH 077/135] Erlang ver. 25.1.1 Signed-off-by: Peter Lemenkov --- erlang.spec | 5 ++++- sources | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/erlang.spec b/erlang.spec index ba482ed..f0ec2a0 100644 --- a/erlang.spec +++ b/erlang.spec @@ -67,7 +67,7 @@ Name: erlang -Version: 25.1 +Version: 25.1.1 Release: 1%{?dist} Summary: General-purpose programming language and runtime environment @@ -1915,6 +1915,9 @@ useradd -r -g epmd -d /dev/null -s /sbin/nologin \ %changelog +* Mon Oct 3 2022 Peter Lemenkov - 25.1.1-1 +- Ver. 25.1.1 + * Wed Sep 21 2022 Peter Lemenkov - 25.1-1 - Ver. 25.1 diff --git a/sources b/sources index a592ad1..2d5cb3c 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (otp-OTP-25.1.tar.gz) = d9ad3f41a01121ce1e299ce3532a4bb498bb804a28ea01715cdda3308a89d84ebe14ad3da421a400e403ccb218fb8b3b708344ff10fcfd9e3b28286cac85d81a +SHA512 (otp-OTP-25.1.1.tar.gz) = 7e34eca772d29132dc907181ee9829ea58a47e622a9a65c0d4f66e79cb2e8f22a9f9e2edefad67ee6c151ee09027ed3927be65228780cdbe606a0abe59209243 From 449541a182dd37d3615b7aa7919ab6484045d40c Mon Sep 17 00:00:00 2001 From: Peter Lemenkov Date: Tue, 25 Oct 2022 15:08:59 +0200 Subject: [PATCH 078/135] Erlang ver. 25.1.2 Signed-off-by: Peter Lemenkov --- erlang.spec | 5 ++++- otp-0009-Load-man-pages-from-system-wide-directory.patch | 4 ++-- sources | 2 +- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/erlang.spec b/erlang.spec index f0ec2a0..4200c0d 100644 --- a/erlang.spec +++ b/erlang.spec @@ -67,7 +67,7 @@ Name: erlang -Version: 25.1.1 +Version: 25.1.2 Release: 1%{?dist} Summary: General-purpose programming language and runtime environment @@ -1915,6 +1915,9 @@ useradd -r -g epmd -d /dev/null -s /sbin/nologin \ %changelog +* Tue Oct 25 2022 Peter Lemenkov - 25.1.2-1 +- Ver. 25.1.2 + * Mon Oct 3 2022 Peter Lemenkov - 25.1.1-1 - Ver. 25.1.1 diff --git a/otp-0009-Load-man-pages-from-system-wide-directory.patch b/otp-0009-Load-man-pages-from-system-wide-directory.patch index c4b4ef4..a7e0945 100644 --- a/otp-0009-Load-man-pages-from-system-wide-directory.patch +++ b/otp-0009-Load-man-pages-from-system-wide-directory.patch @@ -7,10 +7,10 @@ Patch allows one to use standard man path with erl -man command. as required by Debian policy.) diff --git a/erts/etc/common/erlexec.c b/erts/etc/common/erlexec.c -index 9c3dc690ba..7867d32fd0 100644 +index 3e44ad2b77..d92bf75be0 100644 --- a/erts/etc/common/erlexec.c +++ b/erts/etc/common/erlexec.c -@@ -708,8 +708,10 @@ int main(int argc, char **argv) +@@ -709,8 +709,10 @@ int main(int argc, char **argv) error("-man not supported on Windows"); #else argv[i] = "man"; diff --git a/sources b/sources index 2d5cb3c..4e933aa 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (otp-OTP-25.1.1.tar.gz) = 7e34eca772d29132dc907181ee9829ea58a47e622a9a65c0d4f66e79cb2e8f22a9f9e2edefad67ee6c151ee09027ed3927be65228780cdbe606a0abe59209243 +SHA512 (otp-OTP-25.1.2.tar.gz) = a478799cb7df70a552043da55757b811e8b97182be15ab928e05b58537bb7bc4899aee406648767f538d8bd5c09e0a9d7e3655c99a8df0e6a0b77db83a720fb8 From 793ca1acf2d01d48460596a77ae1fb2c0be0e912 Mon Sep 17 00:00:00 2001 From: Florian Weimer Date: Thu, 24 Nov 2022 14:42:16 +0100 Subject: [PATCH 079/135] Fix C99 compatibility issues in configure checks Related to: --- erlang-configure-c99.patch | 89 ++++++++++++++++++++++++++++++++++++++ erlang.spec | 5 ++- 2 files changed, 93 insertions(+), 1 deletion(-) create mode 100644 erlang-configure-c99.patch diff --git a/erlang-configure-c99.patch b/erlang-configure-c99.patch new file mode 100644 index 0000000..e7abc79 --- /dev/null +++ b/erlang-configure-c99.patch @@ -0,0 +1,89 @@ +Configure changes to adjust to stricter C99 compilers: Avoid +implicit function declarations, and define main as returning int. + +Submitted upstream: + +diff --git a/erts/configure b/erts/configure +index 815428caaf61c914..7d057e69ae5e3a93 100755 +--- a/erts/configure ++++ b/erts/configure +@@ -20529,6 +20529,9 @@ else $as_nop + #ifdef HAVE_MALLOC_H + # include + #endif ++#ifdef HAVE_UNISTD_H ++# include ++#endif + #if defined(HAVE_END_SYMBOL) + extern char end; + #elif defined(HAVE__END_SYMBOL) +@@ -24437,10 +24440,13 @@ else $as_nop + /* end confdefs.h. */ + + #include +-main() ++#ifdef HAVE_FCNTL_H ++#include ++#endif ++int main() + { + #ifdef _POLL_EMUL_H_ +- exit(1); /* Implemented using select() -- fail */ ++ return 1; /* Implemented using select() -- fail */ + #else + struct pollfd fds[1]; + int fd; +@@ -24449,9 +24455,9 @@ main() + fds[0].events = POLLIN; + fds[0].revents = 0; + if (poll(fds, 1, 0) < 0 || (fds[0].revents & POLLNVAL) != 0) { +- exit(1); /* Does not work for devices -- fail */ ++ return 1; /* Does not work for devices -- fail */ + } +- exit(0); ++ return 0; + #endif + } + +diff --git a/erts/configure.ac b/erts/configure.ac +index ab2ee78acdca211e..f658b66e3c0e508a 100644 +--- a/erts/configure.ac ++++ b/erts/configure.ac +@@ -2436,6 +2436,9 @@ AC_CACHE_CHECK([if __after_morecore_hook can track malloc()s core memory use], + #ifdef HAVE_MALLOC_H + # include + #endif ++#ifdef HAVE_UNISTD_H ++# include ++#endif + #if defined(HAVE_END_SYMBOL) + extern char end; + #elif defined(HAVE__END_SYMBOL) +@@ -3033,10 +3036,13 @@ poll_works=no + + AC_RUN_IFELSE([AC_LANG_SOURCE([[ + #include +-main() ++#ifdef HAVE_FCNTL_H ++#include ++#endif ++int main() + { + #ifdef _POLL_EMUL_H_ +- exit(1); /* Implemented using select() -- fail */ ++ return 1; /* Implemented using select() -- fail */ + #else + struct pollfd fds[1]; + int fd; +@@ -3045,9 +3051,9 @@ main() + fds[0].events = POLLIN; + fds[0].revents = 0; + if (poll(fds, 1, 0) < 0 || (fds[0].revents & POLLNVAL) != 0) { +- exit(1); /* Does not work for devices -- fail */ ++ return 1; /* Does not work for devices -- fail */ + } +- exit(0); ++ return 0; + #endif + } + ]])],[poll_works=yes],[poll_works=no],[ diff --git a/erlang.spec b/erlang.spec index 4200c0d..2e4d13d 100644 --- a/erlang.spec +++ b/erlang.spec @@ -68,7 +68,7 @@ Name: erlang Version: 25.1.2 -Release: 1%{?dist} +Release: 2%{?dist} Summary: General-purpose programming language and runtime environment License: ASL 2.0 @@ -1915,6 +1915,9 @@ useradd -r -g epmd -d /dev/null -s /sbin/nologin \ %changelog +* Thu Nov 24 2022 Florian Weimer - 25.1.2-2 +- Fix C99 compatibility issues in configure checks + * Tue Oct 25 2022 Peter Lemenkov - 25.1.2-1 - Ver. 25.1.2 From 86ebbb5d6e7ef53c8a16b9a2feb3dee1105aeabb Mon Sep 17 00:00:00 2001 From: Mamoru TASAKA Date: Sun, 27 Nov 2022 11:14:50 +0900 Subject: [PATCH 080/135] Rebuild due to wxGLCanvas ABI change --- erlang.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/erlang.spec b/erlang.spec index 2e4d13d..9376166 100644 --- a/erlang.spec +++ b/erlang.spec @@ -68,7 +68,7 @@ Name: erlang Version: 25.1.2 -Release: 2%{?dist} +Release: 3%{?dist} Summary: General-purpose programming language and runtime environment License: ASL 2.0 @@ -1915,6 +1915,9 @@ useradd -r -g epmd -d /dev/null -s /sbin/nologin \ %changelog +* Sun Nov 27 2022 Mamoru TASAKA - 25.1.2-3 +- Rebuild due to wxGLCanvas ABI change + * Thu Nov 24 2022 Florian Weimer - 25.1.2-2 - Fix C99 compatibility issues in configure checks From c397a8243a0b9418711f126f98f9a3f66ea15412 Mon Sep 17 00:00:00 2001 From: Peter Lemenkov Date: Wed, 14 Dec 2022 10:07:19 +0100 Subject: [PATCH 081/135] Erlang ver. 25.2 Signed-off-by: Peter Lemenkov --- erlang.spec | 9 ++- ...-fix-for-ERTS___AFTER_MORECORE_HOOK_.patch | 35 +++++++++ ...re.ac-C99-fixes-for-poll_works-check.patch | 72 +++++++++++++++++++ sources | 2 +- 4 files changed, 115 insertions(+), 3 deletions(-) create mode 100644 otp-0010-configure.ac-C99-fix-for-ERTS___AFTER_MORECORE_HOOK_.patch create mode 100644 otp-0011-configure.ac-C99-fixes-for-poll_works-check.patch diff --git a/erlang.spec b/erlang.spec index 9376166..be0a508 100644 --- a/erlang.spec +++ b/erlang.spec @@ -67,8 +67,8 @@ Name: erlang -Version: 25.1.2 -Release: 3%{?dist} +Version: 25.2 +Release: 1%{?dist} Summary: General-purpose programming language and runtime environment License: ASL 2.0 @@ -108,6 +108,8 @@ Patch6: otp-0006-Do-not-install-erlang-sources.patch Patch7: otp-0007-Add-extra-search-directory.patch Patch8: otp-0008-Avoid-forking-sed-to-get-basename.patch Patch9: otp-0009-Load-man-pages-from-system-wide-directory.patch +Patch10: otp-0010-configure.ac-C99-fix-for-ERTS___AFTER_MORECORE_HOOK_.patch +Patch11: otp-0011-configure.ac-C99-fixes-for-poll_works-check.patch # end of autogenerated patch tag list BuildRequires: gcc @@ -1915,6 +1917,9 @@ useradd -r -g epmd -d /dev/null -s /sbin/nologin \ %changelog +* Wed Dec 14 2022 Peter Lemenkov - 25.2-1 +- Ver. 25.2 + * Sun Nov 27 2022 Mamoru TASAKA - 25.1.2-3 - Rebuild due to wxGLCanvas ABI change diff --git a/otp-0010-configure.ac-C99-fix-for-ERTS___AFTER_MORECORE_HOOK_.patch b/otp-0010-configure.ac-C99-fix-for-ERTS___AFTER_MORECORE_HOOK_.patch new file mode 100644 index 0000000..cc45495 --- /dev/null +++ b/otp-0010-configure.ac-C99-fix-for-ERTS___AFTER_MORECORE_HOOK_.patch @@ -0,0 +1,35 @@ +From: Florian Weimer +Date: Thu, 24 Nov 2022 11:57:49 +0100 +Subject: [PATCH] configure.ac: C99 fix for + ERTS___AFTER_MORECORE_HOOK_CAN_TRACK_MALLOC + +#include for the sbrk function if the header is available. + +diff --git a/erts/configure b/erts/configure +index 815428caaf..47a1eab97a 100755 +--- a/erts/configure ++++ b/erts/configure +@@ -20529,6 +20529,9 @@ else $as_nop + #ifdef HAVE_MALLOC_H + # include + #endif ++#ifdef HAVE_UNISTD_H ++# include ++#endif + #if defined(HAVE_END_SYMBOL) + extern char end; + #elif defined(HAVE__END_SYMBOL) +diff --git a/erts/configure.ac b/erts/configure.ac +index ab2ee78acd..71423a4c4d 100644 +--- a/erts/configure.ac ++++ b/erts/configure.ac +@@ -2436,6 +2436,9 @@ AC_CACHE_CHECK([if __after_morecore_hook can track malloc()s core memory use], + #ifdef HAVE_MALLOC_H + # include + #endif ++#ifdef HAVE_UNISTD_H ++# include ++#endif + #if defined(HAVE_END_SYMBOL) + extern char end; + #elif defined(HAVE__END_SYMBOL) diff --git a/otp-0011-configure.ac-C99-fixes-for-poll_works-check.patch b/otp-0011-configure.ac-C99-fixes-for-poll_works-check.patch new file mode 100644 index 0000000..581f1fd --- /dev/null +++ b/otp-0011-configure.ac-C99-fixes-for-poll_works-check.patch @@ -0,0 +1,72 @@ +From: Florian Weimer +Date: Thu, 24 Nov 2022 11:59:22 +0100 +Subject: [PATCH] configure.ac: C99 fixes for poll_works check + +Include if it is available for the open prototype. +Return from main instead of calling exit, so that no function +declaration is needed. + +diff --git a/erts/configure b/erts/configure +index 47a1eab97a..7d057e69ae 100755 +--- a/erts/configure ++++ b/erts/configure +@@ -24440,10 +24440,13 @@ else $as_nop + /* end confdefs.h. */ + + #include +-main() ++#ifdef HAVE_FCNTL_H ++#include ++#endif ++int main() + { + #ifdef _POLL_EMUL_H_ +- exit(1); /* Implemented using select() -- fail */ ++ return 1; /* Implemented using select() -- fail */ + #else + struct pollfd fds[1]; + int fd; +@@ -24452,9 +24455,9 @@ main() + fds[0].events = POLLIN; + fds[0].revents = 0; + if (poll(fds, 1, 0) < 0 || (fds[0].revents & POLLNVAL) != 0) { +- exit(1); /* Does not work for devices -- fail */ ++ return 1; /* Does not work for devices -- fail */ + } +- exit(0); ++ return 0; + #endif + } + +diff --git a/erts/configure.ac b/erts/configure.ac +index 71423a4c4d..f658b66e3c 100644 +--- a/erts/configure.ac ++++ b/erts/configure.ac +@@ -3036,10 +3036,13 @@ poll_works=no + + AC_RUN_IFELSE([AC_LANG_SOURCE([[ + #include +-main() ++#ifdef HAVE_FCNTL_H ++#include ++#endif ++int main() + { + #ifdef _POLL_EMUL_H_ +- exit(1); /* Implemented using select() -- fail */ ++ return 1; /* Implemented using select() -- fail */ + #else + struct pollfd fds[1]; + int fd; +@@ -3048,9 +3051,9 @@ main() + fds[0].events = POLLIN; + fds[0].revents = 0; + if (poll(fds, 1, 0) < 0 || (fds[0].revents & POLLNVAL) != 0) { +- exit(1); /* Does not work for devices -- fail */ ++ return 1; /* Does not work for devices -- fail */ + } +- exit(0); ++ return 0; + #endif + } + ]])],[poll_works=yes],[poll_works=no],[ diff --git a/sources b/sources index 4e933aa..1ca63ff 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (otp-OTP-25.1.2.tar.gz) = a478799cb7df70a552043da55757b811e8b97182be15ab928e05b58537bb7bc4899aee406648767f538d8bd5c09e0a9d7e3655c99a8df0e6a0b77db83a720fb8 +SHA512 (otp-OTP-25.2.tar.gz) = bad37d287bd79f42ea19183c959e2865a0ecc19409dfffe96483e29d8cd199ea0b85e3263c9a2297137f640fb9a53ff2cd79ddad1b8d83bb2a95a987a9fdfa28 From 4e833ec92087b4062ec0d58efe5d9de90a357684 Mon Sep 17 00:00:00 2001 From: Peter Lemenkov Date: Wed, 4 Jan 2023 20:51:47 +0100 Subject: [PATCH 082/135] Restore source code installation LSP applications require source code to be available (rhbz #2157170). Let's restore it in a separate package. Signed-off-by: Peter Lemenkov --- erlang.spec | 60 +- ...Revert-Do-not-install-erlang-sources.patch | 657 ++++++++++++++++++ 2 files changed, 716 insertions(+), 1 deletion(-) create mode 100644 otp-0012-Revert-Do-not-install-erlang-sources.patch diff --git a/erlang.spec b/erlang.spec index be0a508..35e07ef 100644 --- a/erlang.spec +++ b/erlang.spec @@ -30,6 +30,7 @@ %else %global __with_java 0 %endif +%global __with_sources 1 # # wxWidgets plugin blocks the following ones: # @@ -68,7 +69,7 @@ Name: erlang Version: 25.2 -Release: 1%{?dist} +Release: 2%{?dist} Summary: General-purpose programming language and runtime environment License: ASL 2.0 @@ -110,6 +111,7 @@ Patch8: otp-0008-Avoid-forking-sed-to-get-basename.patch Patch9: otp-0009-Load-man-pages-from-system-wide-directory.patch Patch10: otp-0010-configure.ac-C99-fix-for-ERTS___AFTER_MORECORE_HOOK_.patch Patch11: otp-0011-configure.ac-C99-fixes-for-poll_works-check.patch +Patch12: otp-0012-Revert-Do-not-install-erlang-sources.patch # end of autogenerated patch tag list BuildRequires: gcc @@ -180,6 +182,7 @@ Requires: %{name}-reltool%{?_isa} = %{version}-%{release} Requires: %{name}-runtime_tools%{?_isa} = %{version}-%{release} Requires: %{name}-sasl%{?_isa} = %{version}-%{release} Requires: %{name}-snmp%{?_isa} = %{version}-%{release} +Requires: %{name}-src%{?_isa} = %{version}-%{release} Requires: %{name}-ssh%{?_isa} = %{version}-%{release} Requires: %{name}-ssl%{?_isa} = %{version}-%{release} Requires: %{name}-stdlib%{?_isa} = %{version}-%{release} @@ -596,6 +599,50 @@ Requires: %{name}-stdlib%{?_isa} = %{version}-%{release} Simple Network Management Protocol (SNMP) support including a MIB compiler and tools for creating SNMP agents. +%if %{__with_sources} +%package src +Summary: Erlang sources +Requires: %{name}-asn%{?_isa} = %{version}-%{release} +Requires: %{name}-common%{?_isa} = %{version}-%{release} +Requires: %{name}-compiler%{?_isa} = %{version}-%{release} +Requires: %{name}-crypto%{?_isa} = %{version}-%{release} +Requires: %{name}-debugger%{?_isa} = %{version}-%{release} +Requires: %{name}-dialyzer%{?_isa} = %{version}-%{release} +Requires: %{name}-diameter%{?_isa} = %{version}-%{release} +Requires: %{name}-edoc%{?_isa} = %{version}-%{release} +Requires: %{name}-eldap%{?_isa} = %{version}-%{release} +Requires: %{name}-erl%{?_isa} = %{version}-%{release} +Requires: %{name}-erts%{?_isa} = %{version}-%{release} +Requires: %{name}-et%{?_isa} = %{version}-%{release} +Requires: %{name}-eunit%{?_isa} = %{version}-%{release} +Requires: %{name}-ftp%{?_isa} = %{version}-%{release} +Requires: %{name}-inets%{?_isa} = %{version}-%{release} +Requires: %{name}-kernel%{?_isa} = %{version}-%{release} +Requires: %{name}-megaco%{?_isa} = %{version}-%{release} +Requires: %{name}-mnesia%{?_isa} = %{version}-%{release} +Requires: %{name}-observer%{?_isa} = %{version}-%{release} +Requires: %{name}-odbc%{?_isa} = %{version}-%{release} +Requires: %{name}-os%{?_isa} = %{version}-%{release} +Requires: %{name}-parsetools%{?_isa} = %{version}-%{release} +Requires: %{name}-public%{?_isa} = %{version}-%{release} +Requires: %{name}-reltool%{?_isa} = %{version}-%{release} +Requires: %{name}-runtime%{?_isa} = %{version}-%{release} +Requires: %{name}-sasl%{?_isa} = %{version}-%{release} +Requires: %{name}-snmp%{?_isa} = %{version}-%{release} +Requires: %{name}-ssh%{?_isa} = %{version}-%{release} +Requires: %{name}-ssl%{?_isa} = %{version}-%{release} +Requires: %{name}-stdlib%{?_isa} = %{version}-%{release} +Requires: %{name}-syntax%{?_isa} = %{version}-%{release} +Requires: %{name}-tftp%{?_isa} = %{version}-%{release} +Requires: %{name}-tools%{?_isa} = %{version}-%{release} +Requires: %{name}-wx%{?_isa} = %{version}-%{release} +Requires: %{name}-xmerl%{?_isa} = %{version}-%{release} + +%description src +Erlang sources. It may be useful as a reference for code completion tools in +various editors, for documentation or automatical-code generation purposes. +%endif # __with_sources + %package ssh Summary: Secure Shell application with sftp and ssh support Requires: %{name}-crypto%{?_isa} = %{version}-%{release} @@ -1499,6 +1546,13 @@ useradd -r -g epmd -d /dev/null -s /sbin/nologin \ %{_mandir}/man7/TRANSPORT-ADDRESS-MIB.* %endif +%if %{__with_sources} +%files src +%dir %{_libdir}/erlang/lib/*/src/ +%{_libdir}/erlang/lib/*/src/*.erl +%{_libdir}/erlang/lib/*/src/*.yrl +%endif + %files ssh %dir %{_libdir}/erlang/lib/ssh-*/ %{_libdir}/erlang/lib/ssh-*/ebin @@ -1917,6 +1971,10 @@ useradd -r -g epmd -d /dev/null -s /sbin/nologin \ %changelog +* Wed Jan 4 2023 Peter Lemenkov - 25.2-2 +- LSP applications require source code to be available (rhbz #2157170). Let's + restore it in a separate package + * Wed Dec 14 2022 Peter Lemenkov - 25.2-1 - Ver. 25.2 diff --git a/otp-0012-Revert-Do-not-install-erlang-sources.patch b/otp-0012-Revert-Do-not-install-erlang-sources.patch new file mode 100644 index 0000000..1a0bb85 --- /dev/null +++ b/otp-0012-Revert-Do-not-install-erlang-sources.patch @@ -0,0 +1,657 @@ +From: Peter Lemenkov +Date: Wed, 4 Jan 2023 20:49:01 +0100 +Subject: [PATCH] Revert "Do not install erlang sources" + +This reverts commit 02d89974af96987a7cbcfe9d18533d509ad33690. + +diff --git a/erts/preloaded/src/Makefile b/erts/preloaded/src/Makefile +index 007b7d44bd..1994aa1302 100644 +--- a/erts/preloaded/src/Makefile ++++ b/erts/preloaded/src/Makefile +@@ -117,6 +117,8 @@ $(APP_TARGET): $(APP_SRC) $(ERL_TOP)/erts/vsn.mk + include $(ERL_TOP)/make/otp_release_targets.mk + + release_spec: $(APP_TARGET) ++ $(INSTALL_DIR) "$(RELSYSDIR)/src" ++ $(INSTALL_DATA) $(ERL_FILES) $(BEAM_FILES) $(STUBS_FILES) "$(RELSYSDIR)/src" + $(INSTALL_DIR) "$(RELSYSDIR)/ebin" + $(INSTALL_DATA) $(STATIC_TARGET_FILES) $(APP_TARGET) "$(RELSYSDIR)/ebin" + +diff --git a/lib/asn1/src/Makefile b/lib/asn1/src/Makefile +index 77ba98c2f8..9e13d02c8a 100644 +--- a/lib/asn1/src/Makefile ++++ b/lib/asn1/src/Makefile +@@ -157,7 +157,7 @@ release_spec: opt + $(INSTALL_DIR) "$(RELSYSDIR)/ebin" + $(INSTALL_DATA) $(TARGET_FILES) $(APP_TARGET) $(APPUP_TARGET) "$(RELSYSDIR)/ebin" + $(INSTALL_DIR) "$(RELSYSDIR)/src" +- $(INSTALL_DATA) $(HRL_FILES) "$(RELSYSDIR)/src" ++ $(INSTALL_DATA) $(ERL_FILES) $(HRL_FILES) $(APP_SRC) $(APPUP_SRC) "$(RELSYSDIR)/src" + $(INSTALL_DIR) "$(RELSYSDIR)/examples" + $(INSTALL_DATA) $(EXAMPLES) "$(RELSYSDIR)/examples" + +diff --git a/lib/common_test/src/Makefile b/lib/common_test/src/Makefile +index 5bf4e50f14..00f13589f3 100644 +--- a/lib/common_test/src/Makefile ++++ b/lib/common_test/src/Makefile +@@ -157,7 +157,7 @@ include $(ERL_TOP)/make/otp_release_targets.mk + + release_spec: opt + $(INSTALL_DIR) "$(RELSYSDIR)/src" +- $(INSTALL_DATA) $(HRL_FILES) "$(RELSYSDIR)/src" ++ $(INSTALL_DATA) $(ERL_FILES) $(HRL_FILES) "$(RELSYSDIR)/src" + $(INSTALL_DIR) "$(RELSYSDIR)/ebin" + $(INSTALL_DATA) $(TARGET_FILES) "$(RELSYSDIR)/ebin" + $(INSTALL_DIR) "$(RELSYSDIR)/include" +diff --git a/lib/common_test/test_server/Makefile b/lib/common_test/test_server/Makefile +index 4e3fa5c60f..4ff5e678ee 100644 +--- a/lib/common_test/test_server/Makefile ++++ b/lib/common_test/test_server/Makefile +@@ -83,9 +83,9 @@ include $(ERL_TOP)/make/otp_release_targets.mk + + release_tests_spec: opt + $(INSTALL_DIR) "$(RELEASE_PATH)/test_server" +- $(INSTALL_DATA) $(TS_HRL_FILES) \ ++ $(INSTALL_DATA) $(TS_ERL_FILES) $(TS_HRL_FILES) \ + $(TS_TARGET_FILES) \ +- $(CONFIG) \ ++ $(AUTOCONF_FILES) $(CONFIG) \ + "$(RELEASE_PATH)/test_server" + $(INSTALL_SCRIPT) $(PROGRAMS) "$(RELEASE_PATH)/test_server" + +diff --git a/lib/compiler/src/Makefile b/lib/compiler/src/Makefile +index 4eed19b516..d801d6baa0 100644 +--- a/lib/compiler/src/Makefile ++++ b/lib/compiler/src/Makefile +@@ -188,8 +188,8 @@ include $(ERL_TOP)/make/otp_release_targets.mk + + release_spec: opt + $(INSTALL_DIR) "$(RELSYSDIR)/src" +- $(INSTALL_DATA) $(HRL_FILES) $(EXTRA_FILES) \ +- "$(RELSYSDIR)/src" ++ $(INSTALL_DATA) $(ERL_FILES) $(HRL_FILES) $(EXTRA_FILES) \ ++ $(YRL_FILE) "$(RELSYSDIR)/src" + $(INSTALL_DIR) "$(RELSYSDIR)/ebin" + $(INSTALL_DATA) $(INSTALL_FILES) "$(RELSYSDIR)/ebin" + +diff --git a/lib/crypto/src/Makefile b/lib/crypto/src/Makefile +index 6f8a329421..893f679390 100644 +--- a/lib/crypto/src/Makefile ++++ b/lib/crypto/src/Makefile +@@ -81,6 +81,8 @@ docs: + include $(ERL_TOP)/make/otp_release_targets.mk + + release_spec: opt ++ $(INSTALL_DIR) "$(RELSYSDIR)/src" ++ $(INSTALL_DATA) $(ERL_FILES) "$(RELSYSDIR)/src" + $(INSTALL_DIR) "$(RELSYSDIR)/ebin" + $(INSTALL_DATA) $(TARGET_FILES) $(APP_TARGET) \ + $(APPUP_TARGET) "$(RELSYSDIR)/ebin" +diff --git a/lib/debugger/src/Makefile b/lib/debugger/src/Makefile +index 6ddce27ec1..2fb955b2e3 100644 +--- a/lib/debugger/src/Makefile ++++ b/lib/debugger/src/Makefile +@@ -117,7 +117,7 @@ include $(ERL_TOP)/make/otp_release_targets.mk + + release_spec: opt + $(INSTALL_DIR) "$(RELSYSDIR)/src" +- $(INSTALL_DATA) $(INTERNAL_HRL_FILES) $(TOOLBOX_FILES) "$(RELSYSDIR)/src" ++ $(INSTALL_DATA) $(ERL_FILES) $(INTERNAL_HRL_FILES) $(TOOLBOX_FILES) "$(RELSYSDIR)/src" + $(INSTALL_DIR) "$(RELSYSDIR)/ebin" + $(INSTALL_DATA) $(TARGET_FILES) $(TARGET_TOOLBOX_FILES) "$(RELSYSDIR)/ebin" + +diff --git a/lib/dialyzer/src/Makefile b/lib/dialyzer/src/Makefile +index cc266f48e2..c934ecdc2b 100644 +--- a/lib/dialyzer/src/Makefile ++++ b/lib/dialyzer/src/Makefile +@@ -162,7 +162,7 @@ include $(ERL_TOP)/make/otp_release_targets.mk + + release_spec: opt + $(INSTALL_DIR) "$(RELSYSDIR)/src" +- $(INSTALL_DATA) $(HRL_FILES) $(EXTRA_FILES) \ ++ $(INSTALL_DATA) $(ERL_FILES) $(HRL_FILES) $(EXTRA_FILES) \ + "$(RELSYSDIR)/src" + $(INSTALL_DIR) "$(RELSYSDIR)/ebin" + $(INSTALL_DATA) $(INSTALL_FILES) "$(RELSYSDIR)/ebin" +diff --git a/lib/diameter/src/Makefile b/lib/diameter/src/Makefile +index 7097541548..75e23d4191 100644 +--- a/lib/diameter/src/Makefile ++++ b/lib/diameter/src/Makefile +@@ -266,8 +266,11 @@ release_spec: opt + $(MAKE) ERL_DETERMINISTIC=$(ERL_DETERMINISTIC) $(EXAMPLE_DIRS:%/=release_examples_%) + + $(TARGET_DIRS:%/=release_src_%): release_src_%: +- $(INSTALL_DATA) $(filter $*/%, $(INTERNAL_HRLS)) \ +- "$(RELSYSDIR)/src/$*" || true ++ $(INSTALL_DIR) "$(RELSYSDIR)/src/$*" ++ $(INSTALL_DATA) $(filter $*/%, $(TARGET_MODULES:%=%.erl) \ ++ $(INTERNAL_HRLS)) \ ++ $(filter $*/%, compiler/$(DICT_YRL).yrl) \ ++ "$(RELSYSDIR)/src/$*" + + $(EXAMPLE_DIRS:%/=release_examples_%): release_examples_%: + $(INSTALL_DIR) "$(RELSYSDIR)/examples/$*" +diff --git a/lib/edoc/src/Makefile b/lib/edoc/src/Makefile +index e5b2f886ed..a455662049 100644 +--- a/lib/edoc/src/Makefile ++++ b/lib/edoc/src/Makefile +@@ -87,7 +87,7 @@ release_spec: opt + $(INSTALL_DIR) "$(RELSYSDIR)/ebin" + $(INSTALL_DATA) $(OBJECTS) "$(RELSYSDIR)/ebin" + $(INSTALL_DIR) "$(RELSYSDIR)/src" +- $(INSTALL_DATA) $(HRL_FILES) "$(RELSYSDIR)/src" ++ $(INSTALL_DATA) $(SOURCES) $(HRL_FILES) $(YRL_FILE) "$(RELSYSDIR)/src" + + release_docs_spec: + +diff --git a/lib/eldap/src/Makefile b/lib/eldap/src/Makefile +index 78fc4a9687..04a84a4766 100644 +--- a/lib/eldap/src/Makefile ++++ b/lib/eldap/src/Makefile +@@ -98,9 +98,13 @@ include $(ERL_TOP)/make/otp_release_targets.mk + + release_spec: opt + $(INSTALL_DIR) "$(RELSYSDIR)/ebin" +- $(INSTALL_DATA) $(TARGET_FILES) $(APP_TARGET) $(APPUP_TARGET) "$(RELSYSDIR)/ebin" ++ $(INSTALL_DATA) $(ASN1_HRL) $(TARGET_FILES) $(APP_TARGET) $(APPUP_TARGET) "$(RELSYSDIR)/ebin" ++ $(INSTALL_DIR) "$(RELSYSDIR)/src" ++ $(INSTALL_DATA) $(ERL_FILES) "$(RELSYSDIR)/src" ++ $(INSTALL_DIR) "$(RELSYSDIR)/asn1" ++ $(INSTALL_DATA) ../asn1/$(ASN1_FILES) "$(RELSYSDIR)/asn1" + $(INSTALL_DIR) "$(RELSYSDIR)/include" +- $(INSTALL_DATA) $(HRL_FILES) "$(RELSYSDIR)/include" ++ $(INSTALL_DATA) $(EXTERNAL_HRL_FILES) "$(RELSYSDIR)/include" + + release_docs_spec: + +diff --git a/lib/erl_docgen/src/Makefile b/lib/erl_docgen/src/Makefile +index cc3368ad02..458094e35f 100644 +--- a/lib/erl_docgen/src/Makefile ++++ b/lib/erl_docgen/src/Makefile +@@ -91,6 +91,8 @@ $(APPUP_TARGET): $(APPUP_SRC) ../vsn.mk + include $(ERL_TOP)/make/otp_release_targets.mk + + release_spec: opt ++ $(INSTALL_DIR) "$(RELSYSDIR)/src" ++ $(INSTALL_DATA) $(ERL_FILES) "$(RELSYSDIR)/src" + $(INSTALL_DIR) "$(RELSYSDIR)/ebin" + $(INSTALL_DATA) $(TARGET_FILES) "$(RELSYSDIR)/ebin" + +diff --git a/lib/et/src/Makefile b/lib/et/src/Makefile +index a567965ed4..fc66cc1eaf 100644 +--- a/lib/et/src/Makefile ++++ b/lib/et/src/Makefile +@@ -109,6 +109,7 @@ release_spec: opt + $(INSTALL_DATA) $(TARGET_FILES) "$(RELSYSDIR)/ebin" + $(INSTALL_DATA) $(APP_TARGET) $(APPUP_TARGET) "$(RELSYSDIR)/ebin" + $(INSTALL_DIR) "$(RELSYSDIR)/src" ++ $(INSTALL_DATA) $(ERL_FILES) "$(RELSYSDIR)/src" + $(INSTALL_DATA) $(INTERNAL_HRL_FILES) "$(RELSYSDIR)/src" + $(INSTALL_DIR) "$(RELSYSDIR)/include" + $(INSTALL_DATA) $(HRL_FILES) "$(RELSYSDIR)/include" +diff --git a/lib/eunit/src/Makefile b/lib/eunit/src/Makefile +index 2a49a2ca7a..f4eaf6807a 100644 +--- a/lib/eunit/src/Makefile ++++ b/lib/eunit/src/Makefile +@@ -121,6 +121,7 @@ release_spec: opt + $(INSTALL_DIR) "$(RELSYSDIR)/ebin" + $(INSTALL_DATA) $(PARSE_TRANSFORM_BIN) $(OBJECTS) "$(RELSYSDIR)/ebin" + $(INSTALL_DIR) "$(RELSYSDIR)/src" ++ $(INSTALL_DATA) $(PARSE_TRANSFORM) $(SOURCES) $(BEHAVIOUR_SOURCES) "$(RELSYSDIR)/src" + $(INSTALL_DATA) $(INTERNAL_HRL_FILES) "$(RELSYSDIR)/src" + $(INSTALL_DIR) "$(RELSYSDIR)/include" + $(INSTALL_DATA) $(INCLUDE_DELIVERABLES) "$(RELSYSDIR)/include" +diff --git a/lib/inets/src/http_client/Makefile b/lib/inets/src/http_client/Makefile +index ca4b539017..62f62792f0 100644 +--- a/lib/inets/src/http_client/Makefile ++++ b/lib/inets/src/http_client/Makefile +@@ -92,7 +92,7 @@ include $(ERL_TOP)/make/otp_release_targets.mk + release_spec: opt + $(INSTALL_DIR) "$(RELSYSDIR)/src" + $(INSTALL_DIR) "$(RELSYSDIR)/src/http_client" +- $(INSTALL_DATA) $(HRL_FILES) "$(RELSYSDIR)/src/http_client" ++ $(INSTALL_DATA) $(HRL_FILES) $(ERL_FILES) "$(RELSYSDIR)/src/http_client" + $(INSTALL_DIR) "$(RELSYSDIR)/ebin" + $(INSTALL_DATA) $(TARGET_FILES) "$(RELSYSDIR)/ebin" + +diff --git a/lib/inets/src/http_lib/Makefile b/lib/inets/src/http_lib/Makefile +index 896a806695..481c4f66eb 100644 +--- a/lib/inets/src/http_lib/Makefile ++++ b/lib/inets/src/http_lib/Makefile +@@ -90,7 +90,7 @@ include $(ERL_TOP)/make/otp_release_targets.mk + release_spec: opt + $(INSTALL_DIR) "$(RELSYSDIR)/src" + $(INSTALL_DIR) "$(RELSYSDIR)/src/http_lib" +- $(INSTALL_DATA) $(HRL_FILES) "$(RELSYSDIR)/src/http_lib" ++ $(INSTALL_DATA) $(HRL_FILES) $(ERL_FILES) "$(RELSYSDIR)/src/http_lib" + $(INSTALL_DIR) "$(RELSYSDIR)/ebin" + $(INSTALL_DATA) $(TARGET_FILES) "$(RELSYSDIR)/ebin" + +diff --git a/lib/inets/src/http_server/Makefile b/lib/inets/src/http_server/Makefile +index 42925ba58f..abf8413f33 100644 +--- a/lib/inets/src/http_server/Makefile ++++ b/lib/inets/src/http_server/Makefile +@@ -134,7 +134,7 @@ include $(ERL_TOP)/make/otp_release_targets.mk + release_spec: opt + $(INSTALL_DIR) "$(RELSYSDIR)/src" + $(INSTALL_DIR) "$(RELSYSDIR)/src/http_server" +- $(INSTALL_DATA) $(HRL_FILES) "$(RELSYSDIR)/src/http_server" ++ $(INSTALL_DATA) $(HRL_FILES) $(ERL_FILES) "$(RELSYSDIR)/src/http_server" + $(INSTALL_DIR) "$(RELSYSDIR)/ebin" + $(INSTALL_DATA) $(TARGET_FILES) $(BEHAVIOUR_TARGET_FILES) "$(RELSYSDIR)/ebin" + +diff --git a/lib/inets/src/inets_app/Makefile b/lib/inets/src/inets_app/Makefile +index a8b932772a..405e86105a 100644 +--- a/lib/inets/src/inets_app/Makefile ++++ b/lib/inets/src/inets_app/Makefile +@@ -114,7 +114,7 @@ include $(ERL_TOP)/make/otp_release_targets.mk + release_spec: opt + $(INSTALL_DIR) "$(RELSYSDIR)/src" + $(INSTALL_DIR) "$(RELSYSDIR)/src/inets_app" +- $(INSTALL_DATA) $(INTERNAL_HRL_FILES) "$(RELSYSDIR)/src/inets_app" ++ $(INSTALL_DATA) $(INTERNAL_HRL_FILES) $(ERL_FILES) "$(RELSYSDIR)/src/inets_app" + $(INSTALL_DIR) "$(RELSYSDIR)/include" + $(INSTALL_DATA) $(EXTERNAL_HRL_FILES) "$(RELSYSDIR)/include" + $(INSTALL_DIR) "$(RELSYSDIR)/ebin" +diff --git a/lib/kernel/src/Makefile b/lib/kernel/src/Makefile +index 891d3e6f6a..2149e89776 100644 +--- a/lib/kernel/src/Makefile ++++ b/lib/kernel/src/Makefile +@@ -229,6 +229,7 @@ include $(ERL_TOP)/make/otp_release_targets.mk + + release_spec: opt + $(INSTALL_DIR) "$(RELSYSDIR)/src" ++ $(INSTALL_DATA) $(ERL_FILES) "$(RELSYSDIR)/src" + $(INSTALL_DATA) $(INTERNAL_HRL_FILES) "$(RELSYSDIR)/src" + $(INSTALL_DIR) "$(RELSYSDIR)/include" + $(INSTALL_DATA) $(HRL_FILES) "$(RELSYSDIR)/include" +diff --git a/lib/megaco/src/app/Makefile b/lib/megaco/src/app/Makefile +index 8cb286181a..c681b88428 100644 +--- a/lib/megaco/src/app/Makefile ++++ b/lib/megaco/src/app/Makefile +@@ -114,7 +114,7 @@ release_spec: opt + $(INSTALL_DATA) $(APP_TARGET) $(APPUP_TARGET) "$(RELSYSDIR)/ebin" + $(INSTALL_DIR) "$(RELSYSDIR)/src" + $(INSTALL_DIR) "$(RELSYSDIR)/src/app" +- $(INSTALL_DATA) $(INTERNAL_HRL_FILES) "$(RELSYSDIR)/src/app" ++ $(INSTALL_DATA) $(ERL_FILES) $(INTERNAL_HRL_FILES) "$(RELSYSDIR)/src/app" + $(INSTALL_DIR) "$(RELSYSDIR)/include" + $(INSTALL_DATA) $(EXTERNAL_HRL_FILES) "$(RELSYSDIR)/include" + +diff --git a/lib/megaco/src/binary/Makefile b/lib/megaco/src/binary/Makefile +index 3ca5654eb3..9ecb649f0c 100644 +--- a/lib/megaco/src/binary/Makefile ++++ b/lib/megaco/src/binary/Makefile +@@ -154,7 +154,7 @@ release_spec: opt + $(INSTALL_DATA) $(TARGET_FILES) "$(RELSYSDIR)/ebin" + $(INSTALL_DIR) "$(RELSYSDIR)/src" + $(INSTALL_DIR) "$(RELSYSDIR)/src/binary" +- $(INSTALL_DATA) $(HRL_FILES) "$(RELSYSDIR)/src/binary" ++ $(INSTALL_DATA) $(ERL_FILES) $(HRL_FILES) $(ASN1_FILES) "$(RELSYSDIR)/src/binary" + + + release_docs_spec: +diff --git a/lib/megaco/src/engine/Makefile b/lib/megaco/src/engine/Makefile +index b7a7c703b3..cc4974e09d 100644 +--- a/lib/megaco/src/engine/Makefile ++++ b/lib/megaco/src/engine/Makefile +@@ -102,7 +102,7 @@ release_spec: opt + $(INSTALL_DATA) $(BEHAVIOUR_TARGET_FILES) $(TARGET_FILES) "$(RELSYSDIR)/ebin" + $(INSTALL_DIR) "$(RELSYSDIR)/src" + $(INSTALL_DIR) "$(RELSYSDIR)/src/engine" +- $(INSTALL_DATA) $(INTERNAL_HRL_FILES) "$(RELSYSDIR)/src/engine" ++ $(INSTALL_DATA) $(ERL_FILES) $(INTERNAL_HRL_FILES) "$(RELSYSDIR)/src/engine" + $(INSTALL_DIR) "$(RELSYSDIR)/include" + + +diff --git a/lib/megaco/src/flex/Makefile.in b/lib/megaco/src/flex/Makefile.in +index 2053d3297b..d8c5c68b99 100644 +--- a/lib/megaco/src/flex/Makefile.in ++++ b/lib/megaco/src/flex/Makefile.in +@@ -248,6 +248,7 @@ release_spec: opt + $(INSTALL_DIR) "$(RELSYSDIR)/src/flex" + $(INSTALL_DIR) "$(RELSYSDIR)/priv/lib" + $(INSTALL_DIR) "$(RELSYSDIR)/include" ++ $(INSTALL_DATA) $(ERL_FILES) $(INTERNAL_HRL_FILES) "$(RELSYSDIR)/src/flex" + $(INSTALL_DATA) $(TARGET_FILES) "$(RELSYSDIR)/ebin" + ifeq ($(ENABLE_MEGACO_FLEX_SCANNER),true) + $(INSTALL_DATA) $(FLEX_FILES) "$(RELSYSDIR)/src/flex" +diff --git a/lib/megaco/src/tcp/Makefile b/lib/megaco/src/tcp/Makefile +index 85cfb4b4ee..ef4232244a 100644 +--- a/lib/megaco/src/tcp/Makefile ++++ b/lib/megaco/src/tcp/Makefile +@@ -94,7 +94,7 @@ release_spec: opt + $(INSTALL_DATA) $(TARGET_FILES) "$(RELSYSDIR)/ebin" + $(INSTALL_DIR) "$(RELSYSDIR)/src" + $(INSTALL_DIR) "$(RELSYSDIR)/src/tcp" +- $(INSTALL_DATA) $(INTERNAL_HRL_FILES) "$(RELSYSDIR)/src/tcp" ++ $(INSTALL_DATA) $(ERL_FILES) $(INTERNAL_HRL_FILES) "$(RELSYSDIR)/src/tcp" + + + release_docs_spec: +diff --git a/lib/megaco/src/text/Makefile b/lib/megaco/src/text/Makefile +index a097be4d48..6872b0ec04 100644 +--- a/lib/megaco/src/text/Makefile ++++ b/lib/megaco/src/text/Makefile +@@ -133,7 +133,7 @@ release_spec: opt + $(INSTALL_DATA) $(BEAM_TARGET_FILES) "$(RELSYSDIR)/ebin" + $(INSTALL_DIR) "$(RELSYSDIR)/src" + $(INSTALL_DIR) "$(RELSYSDIR)/src/text" +- $(INSTALL_DATA) $(INTERNAL_HRL_FILES) "$(RELSYSDIR)/src/text" ++ $(INSTALL_DATA) $(ERL_FILES) $(INTERNAL_YRL_FILES) $(INTERNAL_HRL_FILES) "$(RELSYSDIR)/src/text" + + + release_docs_spec: +diff --git a/lib/megaco/src/udp/Makefile b/lib/megaco/src/udp/Makefile +index f8dcb5c681..5699c3e952 100644 +--- a/lib/megaco/src/udp/Makefile ++++ b/lib/megaco/src/udp/Makefile +@@ -94,7 +94,7 @@ release_spec: opt + $(INSTALL_DATA) $(TARGET_FILES) "$(RELSYSDIR)/ebin" + $(INSTALL_DIR) "$(RELSYSDIR)/src" + $(INSTALL_DIR) "$(RELSYSDIR)/src/udp" +- $(INSTALL_DATA) $(INTERNAL_HRL_FILES) "$(RELSYSDIR)/src/udp" ++ $(INSTALL_DATA) $(ERL_FILES) $(INTERNAL_HRL_FILES) "$(RELSYSDIR)/src/udp" + + + release_docs_spec: +diff --git a/lib/mnesia/src/Makefile b/lib/mnesia/src/Makefile +index 08c6c5ffc1..72aa054fb3 100644 +--- a/lib/mnesia/src/Makefile ++++ b/lib/mnesia/src/Makefile +@@ -135,7 +135,7 @@ include $(ERL_TOP)/make/otp_release_targets.mk + + release_spec: opt + $(INSTALL_DIR) "$(RELSYSDIR)/src" +- $(INSTALL_DATA) $(HRL_FILES) "$(RELSYSDIR)/src" ++ $(INSTALL_DATA) $(HRL_FILES) $(ERL_FILES) "$(RELSYSDIR)/src" + $(INSTALL_DIR) "$(RELSYSDIR)/ebin" + $(INSTALL_DATA) $(TARGET_FILES) "$(RELSYSDIR)/ebin" + +diff --git a/lib/observer/src/Makefile b/lib/observer/src/Makefile +index 884e69c7b7..2edb2ceb3e 100644 +--- a/lib/observer/src/Makefile ++++ b/lib/observer/src/Makefile +@@ -151,6 +151,7 @@ include $(ERL_TOP)/make/otp_release_targets.mk + + release_spec: opt + $(INSTALL_DIR) "$(RELSYSDIR)/src" ++ $(INSTALL_DATA) $(ERL_FILES) "$(RELSYSDIR)/src" + $(INSTALL_DATA) $(INTERNAL_HRL_FILES) "$(RELSYSDIR)/src" + $(INSTALL_DIR) "$(RELSYSDIR)/examples" + $(INSTALL_DATA) $(EXAMPLE_FILES) "$(RELSYSDIR)/examples" +diff --git a/lib/odbc/src/Makefile b/lib/odbc/src/Makefile +index fa01850f38..e18628e94d 100644 +--- a/lib/odbc/src/Makefile ++++ b/lib/odbc/src/Makefile +@@ -110,7 +110,7 @@ include $(ERL_TOP)/make/otp_release_targets.mk + + release_spec: opt + $(INSTALL_DIR) "$(RELSYSDIR)/src" +- $(INSTALL_DATA) $(HRL_FILES) "$(RELSYSDIR)/src" ++ $(INSTALL_DATA) $(ERL_FILES) $(HRL_FILES) "$(RELSYSDIR)/src" + $(INSTALL_DIR) "$(RELSYSDIR)/include" + $(INSTALL_DATA) $(EXT_HRL_FILES) "$(RELSYSDIR)/include" + $(INSTALL_DIR) "$(RELSYSDIR)/ebin" +diff --git a/lib/os_mon/src/Makefile b/lib/os_mon/src/Makefile +index 2413fb68bf..ee32f3946f 100644 +--- a/lib/os_mon/src/Makefile ++++ b/lib/os_mon/src/Makefile +@@ -105,6 +105,7 @@ include $(ERL_TOP)/make/otp_release_targets.mk + + release_spec: opt + $(INSTALL_DIR) "$(RELSYSDIR)/src" ++ $(INSTALL_DATA) $(ERL_FILES) "$(RELSYSDIR)/src" + $(INSTALL_DATA) $(HRL_FILES) "$(RELSYSDIR)/src" + $(INSTALL_DIR) "$(RELSYSDIR)/ebin" + $(INSTALL_DATA) $(TARGET_FILES) "$(RELSYSDIR)/ebin" +diff --git a/lib/parsetools/src/Makefile b/lib/parsetools/src/Makefile +index f6024f1184..c7971750a7 100644 +--- a/lib/parsetools/src/Makefile ++++ b/lib/parsetools/src/Makefile +@@ -91,6 +91,8 @@ $(APPUP_TARGET): $(APPUP_SRC) ../vsn.mk + include $(ERL_TOP)/make/otp_release_targets.mk + + release_spec: opt ++ $(INSTALL_DIR) "$(RELSYSDIR)/src" ++ $(INSTALL_DATA) $(ERL_FILES) "$(RELSYSDIR)/src" + $(INSTALL_DIR) "$(RELSYSDIR)/ebin" + $(INSTALL_DATA) $(TARGET_FILES) "$(RELSYSDIR)/ebin" + $(INSTALL_DIR) "$(RELSYSDIR)/include" +diff --git a/lib/public_key/asn1/Makefile b/lib/public_key/asn1/Makefile +index bba7cae5d6..c1adf58ed4 100644 +--- a/lib/public_key/asn1/Makefile ++++ b/lib/public_key/asn1/Makefile +@@ -103,6 +103,8 @@ release_spec: opt + $(INSTALL_DIR) "$(RELSYSDIR)/asn1" + $(INSTALL_DATA) $(ASN_ASNS) $(ASN_CONFIGS) \ + "$(RELSYSDIR)/asn1" ++ $(INSTALL_DIR) "$(RELSYSDIR)/src" ++ $(INSTALL_DATA) $(ASN_ERLS) "$(RELSYSDIR)/src" + $(INSTALL_DIR) "$(RELSYSDIR)/ebin" + $(INSTALL_DATA) $(TARGET_FILES) "$(RELSYSDIR)/ebin" + +diff --git a/lib/public_key/src/Makefile b/lib/public_key/src/Makefile +index a5dcba4ec3..9b2b442794 100644 +--- a/lib/public_key/src/Makefile ++++ b/lib/public_key/src/Makefile +@@ -111,6 +111,8 @@ $(APPUP_TARGET): $(APPUP_SRC) ../vsn.mk + include $(ERL_TOP)/make/otp_release_targets.mk + + release_spec: opt ++ $(INSTALL_DIR) "$(RELSYSDIR)/src" ++ $(INSTALL_DATA) $(INTERNAL_HRL_FILES) $(ERL_FILES) "$(RELSYSDIR)/src" + $(INSTALL_DIR) "$(RELSYSDIR)/include" + $(INSTALL_DATA) $(HRL_FILES) "$(RELSYSDIR)/include" + $(INSTALL_DIR) "$(RELSYSDIR)/ebin" +diff --git a/lib/reltool/src/Makefile b/lib/reltool/src/Makefile +index 6864febbc3..173a557d58 100644 +--- a/lib/reltool/src/Makefile ++++ b/lib/reltool/src/Makefile +@@ -100,7 +100,7 @@ include $(ERL_TOP)/make/otp_release_targets.mk + + release_spec: opt + $(INSTALL_DIR) "$(RELSYSDIR)/src" +- $(INSTALL_DATA) $(INTERNAL_HRL_FILES) "$(RELSYSDIR)/src" ++ $(INSTALL_DATA) $(INTERNAL_HRL_FILES) $(ERL_FILES) "$(RELSYSDIR)/src" + $(INSTALL_DIR) "$(RELSYSDIR)/ebin" + $(INSTALL_DATA) $(TARGET_FILES) "$(RELSYSDIR)/ebin" + $(INSTALL_DATA) $(APP_TARGET) $(APPUP_TARGET) "$(RELSYSDIR)/ebin" +diff --git a/lib/runtime_tools/src/Makefile b/lib/runtime_tools/src/Makefile +index 6e380e1b11..8e8c4074f5 100644 +--- a/lib/runtime_tools/src/Makefile ++++ b/lib/runtime_tools/src/Makefile +@@ -99,6 +99,8 @@ docs: + include $(ERL_TOP)/make/otp_release_targets.mk + + release_spec: opt ++ $(INSTALL_DIR) "$(RELSYSDIR)/src" ++ $(INSTALL_DATA) $(ERL_FILES) "$(RELSYSDIR)/src" + $(INSTALL_DIR) "$(RELSYSDIR)/include" + $(INSTALL_DATA) $(HRL_FILES) "$(RELSYSDIR)/include" + $(INSTALL_DIR) "$(RELSYSDIR)/examples" +diff --git a/lib/sasl/src/Makefile b/lib/sasl/src/Makefile +index 739830ae3f..490e03595d 100644 +--- a/lib/sasl/src/Makefile ++++ b/lib/sasl/src/Makefile +@@ -94,6 +94,7 @@ include $(ERL_TOP)/make/otp_release_targets.mk + + release_spec: opt + $(INSTALL_DIR) "$(RELSYSDIR)/src" ++ $(INSTALL_DATA) $(ERL_FILES) "$(RELSYSDIR)/src" + $(INSTALL_DATA) $(INTERNAL_HRL_FILES) "$(RELSYSDIR)/src" + $(INSTALL_DIR) "$(RELSYSDIR)/ebin" + $(INSTALL_DATA) $(TARGET_FILES) "$(RELSYSDIR)/ebin" +diff --git a/lib/snmp/src/agent/Makefile.in b/lib/snmp/src/agent/Makefile.in +index 14ae0bbc79..6ab9ed437a 100644 +--- a/lib/snmp/src/agent/Makefile.in ++++ b/lib/snmp/src/agent/Makefile.in +@@ -161,7 +161,7 @@ include $(ERL_TOP)/make/otp_release_targets.mk + release_spec: opt + $(INSTALL_DIR) "$(RELSYSDIR)/src" + $(INSTALL_DIR) "$(RELSYSDIR)/src/agent" +- $(INSTALL_DATA) $(HRL_FILES) "$(RELSYSDIR)/src/agent" ++ $(INSTALL_DATA) $(ERL_FILES) $(HRL_FILES) "$(RELSYSDIR)/src/agent" + $(INSTALL_DIR) "$(RELSYSDIR)/ebin" + $(INSTALL_DATA) $(BEHAVIOUR_TARGET_FILES) $(TARGET_FILES) $(APP_TARGET) $(APPUP_TARGET) \ + "$(RELSYSDIR)/ebin" +diff --git a/lib/snmp/src/app/Makefile b/lib/snmp/src/app/Makefile +index 0340088eb3..f5a74aa78e 100644 +--- a/lib/snmp/src/app/Makefile ++++ b/lib/snmp/src/app/Makefile +@@ -144,7 +144,7 @@ include $(ERL_TOP)/make/otp_release_targets.mk + release_spec: opt + $(INSTALL_DIR) "$(RELSYSDIR)/src" + $(INSTALL_DIR) "$(RELSYSDIR)/src/app" +- $(INSTALL_DATA) $(HRL_FILES) "$(RELSYSDIR)/src/app" ++ $(INSTALL_DATA) $(ERL_FILES) $(HRL_FILES) "$(RELSYSDIR)/src/app" + $(INSTALL_DIR) "$(RELSYSDIR)/ebin" + $(INSTALL_DATA) $(TARGET_FILES) $(APP_TARGET) $(APPUP_TARGET) \ + "$(RELSYSDIR)/ebin" +diff --git a/lib/snmp/src/compile/Makefile b/lib/snmp/src/compile/Makefile +index 04232658c7..f255237a04 100644 +--- a/lib/snmp/src/compile/Makefile ++++ b/lib/snmp/src/compile/Makefile +@@ -141,7 +141,7 @@ include $(ERL_TOP)/make/otp_release_targets.mk + release_spec: opt + $(INSTALL_DIR) "$(RELSYSDIR)/src" + $(INSTALL_DIR) "$(RELSYSDIR)/src/compiler" +- $(INSTALL_DATA) $(INTERNAL_HRL_FILES) "$(RELSYSDIR)/src/compiler" ++ $(INSTALL_DATA) $(ESCRIPT_SRC) $(PARSER_SRC) $(ERL_FILES) $(INTERNAL_HRL_FILES) "$(RELSYSDIR)/src/compiler" + $(INSTALL_DIR) "$(RELSYSDIR)/ebin" + $(INSTALL_DATA) $(EBIN_FILES) "$(RELSYSDIR)/ebin" + $(INSTALL_DIR) "$(RELSYSDIR)/bin" +diff --git a/lib/snmp/src/manager/Makefile b/lib/snmp/src/manager/Makefile +index 61b8dc4692..693ef75469 100644 +--- a/lib/snmp/src/manager/Makefile ++++ b/lib/snmp/src/manager/Makefile +@@ -135,7 +135,7 @@ include $(ERL_TOP)/make/otp_release_targets.mk + release_spec: opt + $(INSTALL_DIR) "$(RELSYSDIR)/src" + $(INSTALL_DIR) "$(RELSYSDIR)/src/manager" +- $(INSTALL_DATA) $(HRL_FILES) "$(RELSYSDIR)/src/manager" ++ $(INSTALL_DATA) $(ERL_FILES) $(HRL_FILES) "$(RELSYSDIR)/src/manager" + $(INSTALL_DIR) "$(RELSYSDIR)/ebin" + $(INSTALL_DATA) $(BEHAVIOUR_TARGET_FILES) $(TARGET_FILES) "$(RELSYSDIR)/ebin" + # $(INSTALL_DIR) "$(RELSYSDIR)/include" +diff --git a/lib/snmp/src/misc/Makefile b/lib/snmp/src/misc/Makefile +index 8dc421d2a1..e92506e855 100644 +--- a/lib/snmp/src/misc/Makefile ++++ b/lib/snmp/src/misc/Makefile +@@ -125,7 +125,7 @@ include $(ERL_TOP)/make/otp_release_targets.mk + release_spec: opt + $(INSTALL_DIR) "$(RELSYSDIR)/src" + $(INSTALL_DIR) "$(RELSYSDIR)/src/misc" +- $(INSTALL_DATA) $(HRL_FILES) "$(RELSYSDIR)/src/misc" ++ $(INSTALL_DATA) $(ERL_FILES) $(HRL_FILES) "$(RELSYSDIR)/src/misc" + $(INSTALL_DIR) "$(RELSYSDIR)/ebin" + $(INSTALL_DATA) $(TARGET_FILES) "$(RELSYSDIR)/ebin" + # $(INSTALL_DIR) "$(RELSYSDIR)/include" +diff --git a/lib/ssh/src/Makefile b/lib/ssh/src/Makefile +index 2c7acf384d..2fcb164301 100644 +--- a/lib/ssh/src/Makefile ++++ b/lib/ssh/src/Makefile +@@ -182,7 +182,7 @@ include $(ERL_TOP)/make/otp_release_targets.mk + + release_spec: opt + $(INSTALL_DIR) "$(RELSYSDIR)/src" +- $(INSTALL_DATA) $(INTERNAL_HRL_FILES) "$(RELSYSDIR)/src" ++ $(INSTALL_DATA) $(INTERNAL_HRL_FILES) $(ERL_FILES) "$(RELSYSDIR)/src" + $(INSTALL_DIR) "$(RELSYSDIR)/ebin" + $(INSTALL_DATA) $(BEHAVIOUR_TARGET_FILES) $(TARGET_FILES) $(APP_TARGET) \ + $(APPUP_TARGET) "$(RELSYSDIR)/ebin" +diff --git a/lib/ssl/src/Makefile b/lib/ssl/src/Makefile +index 9cd7f7226c..789bed5c3f 100644 +--- a/lib/ssl/src/Makefile ++++ b/lib/ssl/src/Makefile +@@ -211,7 +211,7 @@ include $(ERL_TOP)/make/otp_release_targets.mk + + release_spec: opt + $(INSTALL_DIR) "$(RELSYSDIR)/src" +- $(INSTALL_DATA) $(INTERNAL_HRL_FILES) "$(RELSYSDIR)/src" ++ $(INSTALL_DATA) $(ERL_FILES) $(INTERNAL_HRL_FILES) "$(RELSYSDIR)/src" + $(INSTALL_DIR) "$(RELSYSDIR)/ebin" + $(INSTALL_DATA) $(BEHAVIOUR_TARGET_FILES) $(TARGET_FILES) $(APP_TARGET) \ + $(APPUP_TARGET) "$(RELSYSDIR)/ebin" +diff --git a/lib/stdlib/src/Makefile b/lib/stdlib/src/Makefile +index 43e7a650a5..761d6c4c28 100644 +--- a/lib/stdlib/src/Makefile ++++ b/lib/stdlib/src/Makefile +@@ -230,6 +230,7 @@ include $(ERL_TOP)/make/otp_release_targets.mk + + release_spec: opt + $(INSTALL_DIR) "$(RELSYSDIR)/src" ++ $(INSTALL_DATA) $(ERL_FILES) erl_parse.yrl "$(RELSYSDIR)/src" + $(INSTALL_DATA) $(INTERNAL_HRL_FILES) "$(RELSYSDIR)/src" + $(INSTALL_DIR) "$(RELSYSDIR)/include" + $(INSTALL_DATA) $(HRL_FILES) "$(RELSYSDIR)/include" +diff --git a/lib/syntax_tools/src/Makefile b/lib/syntax_tools/src/Makefile +index 5bb265e2c2..dc0ac61734 100644 +--- a/lib/syntax_tools/src/Makefile ++++ b/lib/syntax_tools/src/Makefile +@@ -96,6 +96,8 @@ include $(ERL_TOP)/make/otp_release_targets.mk + release_spec: opt + $(INSTALL_DIR) "$(RELSYSDIR)/ebin" + $(INSTALL_DATA) $(OBJECTS) "$(RELSYSDIR)/ebin" ++ $(INSTALL_DIR) "$(RELSYSDIR)/src" ++ $(INSTALL_DATA) $(SOURCES) "$(RELSYSDIR)/src" + $(INSTALL_DIR) "$(RELSYSDIR)/include" + $(INSTALL_DATA) $(INCLUDE_DELIVERABLES) "$(RELSYSDIR)/include" + +diff --git a/lib/tftp/src/Makefile b/lib/tftp/src/Makefile +index fba9cc5873..cfcb1ea134 100644 +--- a/lib/tftp/src/Makefile ++++ b/lib/tftp/src/Makefile +@@ -101,7 +101,7 @@ include $(ERL_TOP)/make/otp_release_targets.mk + + release_spec: opt + $(INSTALL_DIR) "$(RELSYSDIR)/src" +- $(INSTALL_DATA) $(HRL_FILES) "$(RELSYSDIR)/src" ++ $(INSTALL_DATA) $(ERL_FILES) $(HRL_FILES) "$(RELSYSDIR)/src" + $(INSTALL_DIR) "$(RELSYSDIR)/ebin" + $(INSTALL_DATA) $(BEHAVIOUR_TARGET_FILES) $(TARGET_FILES) $(APP_TARGET) \ + $(APPUP_TARGET) "$(RELSYSDIR)/ebin" +diff --git a/lib/tools/src/Makefile b/lib/tools/src/Makefile +index f8d143922d..b05ce883ec 100644 +--- a/lib/tools/src/Makefile ++++ b/lib/tools/src/Makefile +@@ -109,7 +109,7 @@ include $(ERL_TOP)/make/otp_release_targets.mk + + release_spec: opt + $(INSTALL_DIR) "$(RELSYSDIR)/src" +- $(INSTALL_DATA) $(HRL_FILES) "$(RELSYSDIR)/src" ++ $(INSTALL_DATA) $(ERL_FILES) $(YRL_FILE) $(HRL_FILES) "$(RELSYSDIR)/src" + $(INSTALL_DIR) "$(RELSYSDIR)/ebin" + $(INSTALL_DATA) $(TARGET_FILES) $(APP_TARGET) $(APPUP_TARGET) \ + "$(RELSYSDIR)/ebin" +diff --git a/lib/wx/src/Makefile b/lib/wx/src/Makefile +index f052399c0f..ce14c0b6df 100644 +--- a/lib/wx/src/Makefile ++++ b/lib/wx/src/Makefile +@@ -121,9 +121,9 @@ $(EBIN)/%.beam: $(EGEN)/%.erl $(HEADER_FILES) + include $(ERL_TOP)/make/otp_release_targets.mk + release_spec: opt + $(INSTALL_DIR) "$(RELSYSDIR)/src" +- $(INSTALL_DATA) $(HRL_FILES) "$(RELSYSDIR)/src" ++ $(INSTALL_DATA) $(HRL_FILES) $(ERL_FILES) "$(RELSYSDIR)/src" + $(INSTALL_DIR) "$(RELSYSDIR)/src/gen" +- $(INSTALL_DATA) $(GEN_HRL) "$(RELSYSDIR)/src/gen" ++ $(INSTALL_DATA) $(GEN_HRL) $(GEN_FILES) "$(RELSYSDIR)/src/gen" + $(INSTALL_DIR) "$(RELSYSDIR)/include" + $(INSTALL_DATA) $(EXT_HRL) "$(RELSYSDIR)/include" + $(INSTALL_DIR) "$(RELSYSDIR)/ebin" +diff --git a/lib/xmerl/src/Makefile b/lib/xmerl/src/Makefile +index 37b7843605..e7e7c8e978 100644 +--- a/lib/xmerl/src/Makefile ++++ b/lib/xmerl/src/Makefile +@@ -223,7 +223,9 @@ release_spec: opt + $(INSTALL_DIR) "$(RELSYSDIR)/ebin" + $(INSTALL_DATA) $(TARGET_FILES) "$(RELSYSDIR)/ebin" + $(INSTALL_DIR) "$(RELSYSDIR)/src" +- $(INSTALL_DATA) $(INTERNAL_HRL_FILES) "$(RELSYSDIR)/src" ++ $(INSTALL_DATA) $(ERL_FILES) $(INTERNAL_HRL_FILES) $(APP_SRC) $(APPUP_SRC) "$(RELSYSDIR)/src" ++ $(INSTALL_DATA) xmerl_xpath_parse.yrl "$(RELSYSDIR)/src" ++ $(INSTALL_DATA) xmerl_b64Bin.yrl "$(RELSYSDIR)/src" + $(INSTALL_DIR) "$(RELSYSDIR)/include" + $(INSTALL_DATA) $(HRL_FILES) "$(RELSYSDIR)/include" + From c143d243796193dd1825bece6d5ae1aab7dd48d2 Mon Sep 17 00:00:00 2001 From: Peter Lemenkov Date: Fri, 6 Jan 2023 00:13:12 +0100 Subject: [PATCH 083/135] Fix deps Signed-off-by: Peter Lemenkov --- erlang.spec | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/erlang.spec b/erlang.spec index 35e07ef..fd3c80c 100644 --- a/erlang.spec +++ b/erlang.spec @@ -69,7 +69,7 @@ Name: erlang Version: 25.2 -Release: 2%{?dist} +Release: 3%{?dist} Summary: General-purpose programming language and runtime environment License: ASL 2.0 @@ -602,8 +602,8 @@ MIB compiler and tools for creating SNMP agents. %if %{__with_sources} %package src Summary: Erlang sources -Requires: %{name}-asn%{?_isa} = %{version}-%{release} -Requires: %{name}-common%{?_isa} = %{version}-%{release} +Requires: %{name}-asn1%{?_isa} = %{version}-%{release} +Requires: %{name}-common_test%{?_isa} = %{version}-%{release} Requires: %{name}-compiler%{?_isa} = %{version}-%{release} Requires: %{name}-crypto%{?_isa} = %{version}-%{release} Requires: %{name}-debugger%{?_isa} = %{version}-%{release} @@ -611,7 +611,7 @@ Requires: %{name}-dialyzer%{?_isa} = %{version}-%{release} Requires: %{name}-diameter%{?_isa} = %{version}-%{release} Requires: %{name}-edoc%{?_isa} = %{version}-%{release} Requires: %{name}-eldap%{?_isa} = %{version}-%{release} -Requires: %{name}-erl%{?_isa} = %{version}-%{release} +Requires: %{name}-erl_docgen%{?_isa} = %{version}-%{release} Requires: %{name}-erts%{?_isa} = %{version}-%{release} Requires: %{name}-et%{?_isa} = %{version}-%{release} Requires: %{name}-eunit%{?_isa} = %{version}-%{release} @@ -622,17 +622,17 @@ Requires: %{name}-megaco%{?_isa} = %{version}-%{release} Requires: %{name}-mnesia%{?_isa} = %{version}-%{release} Requires: %{name}-observer%{?_isa} = %{version}-%{release} Requires: %{name}-odbc%{?_isa} = %{version}-%{release} -Requires: %{name}-os%{?_isa} = %{version}-%{release} +Requires: %{name}-os_mon%{?_isa} = %{version}-%{release} Requires: %{name}-parsetools%{?_isa} = %{version}-%{release} -Requires: %{name}-public%{?_isa} = %{version}-%{release} +Requires: %{name}-public_key%{?_isa} = %{version}-%{release} Requires: %{name}-reltool%{?_isa} = %{version}-%{release} -Requires: %{name}-runtime%{?_isa} = %{version}-%{release} +Requires: %{name}-runtime_tools%{?_isa} = %{version}-%{release} Requires: %{name}-sasl%{?_isa} = %{version}-%{release} Requires: %{name}-snmp%{?_isa} = %{version}-%{release} Requires: %{name}-ssh%{?_isa} = %{version}-%{release} Requires: %{name}-ssl%{?_isa} = %{version}-%{release} Requires: %{name}-stdlib%{?_isa} = %{version}-%{release} -Requires: %{name}-syntax%{?_isa} = %{version}-%{release} +Requires: %{name}-syntax_tools%{?_isa} = %{version}-%{release} Requires: %{name}-tftp%{?_isa} = %{version}-%{release} Requires: %{name}-tools%{?_isa} = %{version}-%{release} Requires: %{name}-wx%{?_isa} = %{version}-%{release} @@ -1971,6 +1971,9 @@ useradd -r -g epmd -d /dev/null -s /sbin/nologin \ %changelog +* Fri Jan 6 2023 Peter Lemenkov - 25.2-3 +- Fix deps + * Wed Jan 4 2023 Peter Lemenkov - 25.2-2 - LSP applications require source code to be available (rhbz #2157170). Let's restore it in a separate package From e5a32454da2c2bd159f87472e647be164b02e63b Mon Sep 17 00:00:00 2001 From: Peter Lemenkov Date: Wed, 18 Jan 2023 18:58:21 +0100 Subject: [PATCH 084/135] Erlang ver. 25.2.1 Signed-off-by: Peter Lemenkov --- erlang.spec | 7 +++++-- sources | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/erlang.spec b/erlang.spec index fd3c80c..3231f51 100644 --- a/erlang.spec +++ b/erlang.spec @@ -68,8 +68,8 @@ Name: erlang -Version: 25.2 -Release: 3%{?dist} +Version: 25.2.1 +Release: 1%{?dist} Summary: General-purpose programming language and runtime environment License: ASL 2.0 @@ -1971,6 +1971,9 @@ useradd -r -g epmd -d /dev/null -s /sbin/nologin \ %changelog +* Wed Jan 18 2023 Peter Lemenkov - 25.2.1-1 +- Ver. 25.2.1 + * Fri Jan 6 2023 Peter Lemenkov - 25.2-3 - Fix deps diff --git a/sources b/sources index 1ca63ff..92c4554 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (otp-OTP-25.2.tar.gz) = bad37d287bd79f42ea19183c959e2865a0ecc19409dfffe96483e29d8cd199ea0b85e3263c9a2297137f640fb9a53ff2cd79ddad1b8d83bb2a95a987a9fdfa28 +SHA512 (otp-OTP-25.2.1.tar.gz) = 517e6b3a2929c26a95a4b723cfeb1fe48bef3ea519a977c2aa9e12954c749f25418afbe570b288a3d6bb1124cbda515d06516db4fb0eac99e780c3b493219f3d From 3e9f7a3e121b5ca60cc9d89d641df1326791dc8b Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Thu, 19 Jan 2023 02:29:25 +0000 Subject: [PATCH 085/135] Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- erlang.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/erlang.spec b/erlang.spec index 3231f51..d7617c0 100644 --- a/erlang.spec +++ b/erlang.spec @@ -69,7 +69,7 @@ Name: erlang Version: 25.2.1 -Release: 1%{?dist} +Release: 2%{?dist} Summary: General-purpose programming language and runtime environment License: ASL 2.0 @@ -1971,6 +1971,9 @@ useradd -r -g epmd -d /dev/null -s /sbin/nologin \ %changelog +* Thu Jan 19 2023 Fedora Release Engineering - 25.2.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + * Wed Jan 18 2023 Peter Lemenkov - 25.2.1-1 - Ver. 25.2.1 From aab72e1ede35fc15c6321eef423540246a67b024 Mon Sep 17 00:00:00 2001 From: Peter Lemenkov Date: Mon, 30 Jan 2023 13:58:08 +0100 Subject: [PATCH 086/135] Erlang ver. 25.2.2 Signed-off-by: Peter Lemenkov --- erlang.spec | 7 +++++-- sources | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/erlang.spec b/erlang.spec index d7617c0..f64c418 100644 --- a/erlang.spec +++ b/erlang.spec @@ -68,8 +68,8 @@ Name: erlang -Version: 25.2.1 -Release: 2%{?dist} +Version: 25.2.2 +Release: 1%{?dist} Summary: General-purpose programming language and runtime environment License: ASL 2.0 @@ -1971,6 +1971,9 @@ useradd -r -g epmd -d /dev/null -s /sbin/nologin \ %changelog +* Mon Jan 30 2023 Peter Lemenkov - 25.2.2-1 +- Ver. 25.2.2 + * Thu Jan 19 2023 Fedora Release Engineering - 25.2.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild diff --git a/sources b/sources index 92c4554..6dd5e0d 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (otp-OTP-25.2.1.tar.gz) = 517e6b3a2929c26a95a4b723cfeb1fe48bef3ea519a977c2aa9e12954c749f25418afbe570b288a3d6bb1124cbda515d06516db4fb0eac99e780c3b493219f3d +SHA512 (otp-OTP-25.2.2.tar.gz) = e93f5b7079f9cf1e00528587a8fc96ed5b4a29b6b329a38e238341f79d98f20f811548875fbaf137fd64b38d5950989e885a2293680475a0b7198307eef1de4a From d713068e22d33067e5b2a9434deefdea7e1df722 Mon Sep 17 00:00:00 2001 From: Peter Lemenkov Date: Fri, 17 Feb 2023 22:16:08 +0100 Subject: [PATCH 087/135] Erlang ver. 25.2.3 Signed-off-by: Peter Lemenkov --- erlang.spec | 5 ++++- sources | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/erlang.spec b/erlang.spec index f64c418..76ca198 100644 --- a/erlang.spec +++ b/erlang.spec @@ -68,7 +68,7 @@ Name: erlang -Version: 25.2.2 +Version: 25.2.3 Release: 1%{?dist} Summary: General-purpose programming language and runtime environment @@ -1971,6 +1971,9 @@ useradd -r -g epmd -d /dev/null -s /sbin/nologin \ %changelog +* Fri Feb 17 2023 Peter Lemenkov - 25.2.3-1 +- Ver. 25.2.3 + * Mon Jan 30 2023 Peter Lemenkov - 25.2.2-1 - Ver. 25.2.2 diff --git a/sources b/sources index 6dd5e0d..20efeca 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (otp-OTP-25.2.2.tar.gz) = e93f5b7079f9cf1e00528587a8fc96ed5b4a29b6b329a38e238341f79d98f20f811548875fbaf137fd64b38d5950989e885a2293680475a0b7198307eef1de4a +SHA512 (otp-OTP-25.2.3.tar.gz) = aa51ebcb9c4977ebd695d416488fc8ac94e7d19b962f6d470c5e6377151781ed6c50319eeb2cbbac75438d9f759302d1e48d2c2118ec86063a33a22ed8651f27 From 9a8f56b741ecbe05f3fdf684c3b7a3d0c30b2e0a Mon Sep 17 00:00:00 2001 From: Igor Raits Date: Fri, 24 Feb 2023 17:55:28 +0000 Subject: [PATCH 088/135] Use parallel make for build On my system it improves build time from 20+ minutes to a few and does not cause any issues in test suite or similar. --- erlang.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erlang.spec b/erlang.spec index 76ca198..02cfb37 100644 --- a/erlang.spec +++ b/erlang.spec @@ -810,7 +810,7 @@ pushd emacs-erlang popd %endif %{__with_emacs} -make +%make_build %if %{with doc} # should use FOP_OPTS after #832323 is resolved From 61b51141c3afb617849087b6ed1a190c7d64bd35 Mon Sep 17 00:00:00 2001 From: Peter Lemenkov Date: Wed, 8 Mar 2023 15:22:58 +0100 Subject: [PATCH 089/135] Erlang ver. 25.3 Signed-off-by: Peter Lemenkov --- erlang.spec | 5 ++++- ...-not-format-man-pages-and-do-not-install-miscellan.patch | 4 ++-- otp-0009-Load-man-pages-from-system-wide-directory.patch | 2 +- ...nfigure.ac-C99-fix-for-ERTS___AFTER_MORECORE_HOOK_.patch | 4 ++-- otp-0011-configure.ac-C99-fixes-for-poll_works-check.patch | 6 +++--- sources | 2 +- 6 files changed, 13 insertions(+), 10 deletions(-) diff --git a/erlang.spec b/erlang.spec index 02cfb37..ba99aeb 100644 --- a/erlang.spec +++ b/erlang.spec @@ -68,7 +68,7 @@ Name: erlang -Version: 25.2.3 +Version: 25.3 Release: 1%{?dist} Summary: General-purpose programming language and runtime environment @@ -1971,6 +1971,9 @@ useradd -r -g epmd -d /dev/null -s /sbin/nologin \ %changelog +* Wed Mar 8 2023 Peter Lemenkov - 25.3-1 +- Ver. 25.3 + * Fri Feb 17 2023 Peter Lemenkov - 25.2.3-1 - Ver. 25.2.3 diff --git a/otp-0001-Do-not-format-man-pages-and-do-not-install-miscellan.patch b/otp-0001-Do-not-format-man-pages-and-do-not-install-miscellan.patch index da44106..96f0494 100644 --- a/otp-0001-Do-not-format-man-pages-and-do-not-install-miscellan.patch +++ b/otp-0001-Do-not-format-man-pages-and-do-not-install-miscellan.patch @@ -6,10 +6,10 @@ Subject: [PATCH] Do not format man-pages and do not install miscellaneous Signed-off-by: Peter Lemenkov diff --git a/erts/etc/common/Makefile.in b/erts/etc/common/Makefile.in -index 42d4395eb2..307ef11828 100644 +index 86f63dcf41..b74c789775 100644 --- a/erts/etc/common/Makefile.in +++ b/erts/etc/common/Makefile.in -@@ -552,10 +552,6 @@ endif +@@ -555,10 +555,6 @@ endif ifneq ($(INSTALL_TOP_BIN),) $(INSTALL_PROGRAM) $(INSTALL_TOP_BIN) "$(RELEASE_PATH)" endif diff --git a/otp-0009-Load-man-pages-from-system-wide-directory.patch b/otp-0009-Load-man-pages-from-system-wide-directory.patch index a7e0945..2075f81 100644 --- a/otp-0009-Load-man-pages-from-system-wide-directory.patch +++ b/otp-0009-Load-man-pages-from-system-wide-directory.patch @@ -7,7 +7,7 @@ Patch allows one to use standard man path with erl -man command. as required by Debian policy.) diff --git a/erts/etc/common/erlexec.c b/erts/etc/common/erlexec.c -index 3e44ad2b77..d92bf75be0 100644 +index fa951ae770..9cce3857db 100644 --- a/erts/etc/common/erlexec.c +++ b/erts/etc/common/erlexec.c @@ -709,8 +709,10 @@ int main(int argc, char **argv) diff --git a/otp-0010-configure.ac-C99-fix-for-ERTS___AFTER_MORECORE_HOOK_.patch b/otp-0010-configure.ac-C99-fix-for-ERTS___AFTER_MORECORE_HOOK_.patch index cc45495..7647ebe 100644 --- a/otp-0010-configure.ac-C99-fix-for-ERTS___AFTER_MORECORE_HOOK_.patch +++ b/otp-0010-configure.ac-C99-fix-for-ERTS___AFTER_MORECORE_HOOK_.patch @@ -6,10 +6,10 @@ Subject: [PATCH] configure.ac: C99 fix for #include for the sbrk function if the header is available. diff --git a/erts/configure b/erts/configure -index 815428caaf..47a1eab97a 100755 +index a84ffe4342..16fd52dad4 100755 --- a/erts/configure +++ b/erts/configure -@@ -20529,6 +20529,9 @@ else $as_nop +@@ -20644,6 +20644,9 @@ else $as_nop #ifdef HAVE_MALLOC_H # include #endif diff --git a/otp-0011-configure.ac-C99-fixes-for-poll_works-check.patch b/otp-0011-configure.ac-C99-fixes-for-poll_works-check.patch index 581f1fd..0c99732 100644 --- a/otp-0011-configure.ac-C99-fixes-for-poll_works-check.patch +++ b/otp-0011-configure.ac-C99-fixes-for-poll_works-check.patch @@ -7,10 +7,10 @@ Return from main instead of calling exit, so that no function declaration is needed. diff --git a/erts/configure b/erts/configure -index 47a1eab97a..7d057e69ae 100755 +index 16fd52dad4..a991217017 100755 --- a/erts/configure +++ b/erts/configure -@@ -24440,10 +24440,13 @@ else $as_nop +@@ -24555,10 +24555,13 @@ else $as_nop /* end confdefs.h. */ #include @@ -26,7 +26,7 @@ index 47a1eab97a..7d057e69ae 100755 #else struct pollfd fds[1]; int fd; -@@ -24452,9 +24455,9 @@ main() +@@ -24567,9 +24570,9 @@ main() fds[0].events = POLLIN; fds[0].revents = 0; if (poll(fds, 1, 0) < 0 || (fds[0].revents & POLLNVAL) != 0) { diff --git a/sources b/sources index 20efeca..c9f923c 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (otp-OTP-25.2.3.tar.gz) = aa51ebcb9c4977ebd695d416488fc8ac94e7d19b962f6d470c5e6377151781ed6c50319eeb2cbbac75438d9f759302d1e48d2c2118ec86063a33a22ed8651f27 +SHA512 (otp-OTP-25.3.tar.gz) = cf104918917e33db250b48aaad3c098899739358035d764ea2ee1fc9ba7937504190752163ce8430bdbfc576ce2c2533d4f50fc8f0994ff155e3df188a8db99e From 492b64b29b48bb3ea5729835d6d5e2f7c7005caa Mon Sep 17 00:00:00 2001 From: Peter Lemenkov Date: Thu, 27 Apr 2023 16:16:54 +0200 Subject: [PATCH 090/135] Erlang ver. 25.3.1 Signed-off-by: Peter Lemenkov --- erlang.spec | 5 ++++- ....ac-C99-fix-for-ERTS___AFTER_MORECORE_HOOK_.patch | 4 ++-- ...configure.ac-C99-fixes-for-poll_works-check.patch | 12 ++++++------ sources | 2 +- 4 files changed, 13 insertions(+), 10 deletions(-) diff --git a/erlang.spec b/erlang.spec index ba99aeb..9989a6d 100644 --- a/erlang.spec +++ b/erlang.spec @@ -68,7 +68,7 @@ Name: erlang -Version: 25.3 +Version: 25.3.1 Release: 1%{?dist} Summary: General-purpose programming language and runtime environment @@ -1971,6 +1971,9 @@ useradd -r -g epmd -d /dev/null -s /sbin/nologin \ %changelog +* Thu Apr 27 2023 Peter Lemenkov - 25.3.1-1 +- Ver. 25.3.1 + * Wed Mar 8 2023 Peter Lemenkov - 25.3-1 - Ver. 25.3 diff --git a/otp-0010-configure.ac-C99-fix-for-ERTS___AFTER_MORECORE_HOOK_.patch b/otp-0010-configure.ac-C99-fix-for-ERTS___AFTER_MORECORE_HOOK_.patch index 7647ebe..dc89898 100644 --- a/otp-0010-configure.ac-C99-fix-for-ERTS___AFTER_MORECORE_HOOK_.patch +++ b/otp-0010-configure.ac-C99-fix-for-ERTS___AFTER_MORECORE_HOOK_.patch @@ -6,7 +6,7 @@ Subject: [PATCH] configure.ac: C99 fix for #include for the sbrk function if the header is available. diff --git a/erts/configure b/erts/configure -index a84ffe4342..16fd52dad4 100755 +index fbdb6baba8..46e882e99a 100755 --- a/erts/configure +++ b/erts/configure @@ -20644,6 +20644,9 @@ else $as_nop @@ -20,7 +20,7 @@ index a84ffe4342..16fd52dad4 100755 extern char end; #elif defined(HAVE__END_SYMBOL) diff --git a/erts/configure.ac b/erts/configure.ac -index ab2ee78acd..71423a4c4d 100644 +index 307be5042d..316345079b 100644 --- a/erts/configure.ac +++ b/erts/configure.ac @@ -2436,6 +2436,9 @@ AC_CACHE_CHECK([if __after_morecore_hook can track malloc()s core memory use], diff --git a/otp-0011-configure.ac-C99-fixes-for-poll_works-check.patch b/otp-0011-configure.ac-C99-fixes-for-poll_works-check.patch index 0c99732..d3d2a71 100644 --- a/otp-0011-configure.ac-C99-fixes-for-poll_works-check.patch +++ b/otp-0011-configure.ac-C99-fixes-for-poll_works-check.patch @@ -7,10 +7,10 @@ Return from main instead of calling exit, so that no function declaration is needed. diff --git a/erts/configure b/erts/configure -index 16fd52dad4..a991217017 100755 +index 46e882e99a..7cc6f802ce 100755 --- a/erts/configure +++ b/erts/configure -@@ -24555,10 +24555,13 @@ else $as_nop +@@ -24575,10 +24575,13 @@ else $as_nop /* end confdefs.h. */ #include @@ -26,7 +26,7 @@ index 16fd52dad4..a991217017 100755 #else struct pollfd fds[1]; int fd; -@@ -24567,9 +24570,9 @@ main() +@@ -24587,9 +24590,9 @@ main() fds[0].events = POLLIN; fds[0].revents = 0; if (poll(fds, 1, 0) < 0 || (fds[0].revents & POLLNVAL) != 0) { @@ -39,10 +39,10 @@ index 16fd52dad4..a991217017 100755 } diff --git a/erts/configure.ac b/erts/configure.ac -index 71423a4c4d..f658b66e3c 100644 +index 316345079b..439ec5d4a1 100644 --- a/erts/configure.ac +++ b/erts/configure.ac -@@ -3036,10 +3036,13 @@ poll_works=no +@@ -3055,10 +3055,13 @@ poll_works=no AC_RUN_IFELSE([AC_LANG_SOURCE([[ #include @@ -58,7 +58,7 @@ index 71423a4c4d..f658b66e3c 100644 #else struct pollfd fds[1]; int fd; -@@ -3048,9 +3051,9 @@ main() +@@ -3067,9 +3070,9 @@ main() fds[0].events = POLLIN; fds[0].revents = 0; if (poll(fds, 1, 0) < 0 || (fds[0].revents & POLLNVAL) != 0) { diff --git a/sources b/sources index c9f923c..282ac43 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (otp-OTP-25.3.tar.gz) = cf104918917e33db250b48aaad3c098899739358035d764ea2ee1fc9ba7937504190752163ce8430bdbfc576ce2c2533d4f50fc8f0994ff155e3df188a8db99e +SHA512 (otp-OTP-25.3.1.tar.gz) = f9f56a2fed2a8110472ed424592d750fc2073232a6ccbacd7928d3cea38340e2c1b2c8e14330e4013b89a507efe6ef003c165eddecffe1461ca4bdaf5083ee87 From 68768b9a58c9823d8e64991da40a5da5bbcba358 Mon Sep 17 00:00:00 2001 From: Peter Lemenkov Date: Sun, 7 May 2023 13:21:50 +0200 Subject: [PATCH 091/135] Erlang ver. 25.3.2 Signed-off-by: Peter Lemenkov --- erlang.spec | 5 ++++- sources | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/erlang.spec b/erlang.spec index 9989a6d..0df3c66 100644 --- a/erlang.spec +++ b/erlang.spec @@ -68,7 +68,7 @@ Name: erlang -Version: 25.3.1 +Version: 25.3.2 Release: 1%{?dist} Summary: General-purpose programming language and runtime environment @@ -1971,6 +1971,9 @@ useradd -r -g epmd -d /dev/null -s /sbin/nologin \ %changelog +* Sat May 6 2023 Peter Lemenkov - 25.3.2-1 +- Ver. 25.3.2 + * Thu Apr 27 2023 Peter Lemenkov - 25.3.1-1 - Ver. 25.3.1 diff --git a/sources b/sources index 282ac43..74779cc 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (otp-OTP-25.3.1.tar.gz) = f9f56a2fed2a8110472ed424592d750fc2073232a6ccbacd7928d3cea38340e2c1b2c8e14330e4013b89a507efe6ef003c165eddecffe1461ca4bdaf5083ee87 +SHA512 (otp-OTP-25.3.2.tar.gz) = d307d59708da8e6f233ec60292925fc9c0f4c1aaf14643790b7ead27ae858ac14bab7356c926055872df63500eac117db31b0b69cc0416a5f535b0443cda457d From 2b17ab754a6ae916c593e27c73bc9948a9a19700 Mon Sep 17 00:00:00 2001 From: Peter Lemenkov Date: Sat, 20 May 2023 17:09:11 +0200 Subject: [PATCH 092/135] Erlang ver. 26.0 Signed-off-by: Peter Lemenkov --- erlang.spec | 24 +- ...n-pages-and-do-not-install-miscellan.patch | 4 +- ... otp-0006-Add-extra-search-directory.patch | 4 +- otp-0006-Do-not-install-erlang-sources.patch | 660 ------------------ ...07-Avoid-forking-sed-to-get-basename.patch | 0 ...man-pages-from-system-wide-directory.patch | 4 +- ...-fix-for-ERTS___AFTER_MORECORE_HOOK_.patch | 8 +- ...re.ac-C99-fixes-for-poll_works-check.patch | 12 +- ...Revert-Do-not-install-erlang-sources.patch | 657 ----------------- sources | 2 +- 10 files changed, 29 insertions(+), 1346 deletions(-) rename otp-0007-Add-extra-search-directory.patch => otp-0006-Add-extra-search-directory.patch (90%) delete mode 100644 otp-0006-Do-not-install-erlang-sources.patch rename otp-0008-Avoid-forking-sed-to-get-basename.patch => otp-0007-Avoid-forking-sed-to-get-basename.patch (100%) rename otp-0009-Load-man-pages-from-system-wide-directory.patch => otp-0008-Load-man-pages-from-system-wide-directory.patch (89%) rename otp-0010-configure.ac-C99-fix-for-ERTS___AFTER_MORECORE_HOOK_.patch => otp-0009-configure.ac-C99-fix-for-ERTS___AFTER_MORECORE_HOOK_.patch (82%) rename otp-0011-configure.ac-C99-fixes-for-poll_works-check.patch => otp-0010-configure.ac-C99-fixes-for-poll_works-check.patch (88%) delete mode 100644 otp-0012-Revert-Do-not-install-erlang-sources.patch diff --git a/erlang.spec b/erlang.spec index 0df3c66..bb2da74 100644 --- a/erlang.spec +++ b/erlang.spec @@ -68,7 +68,7 @@ Name: erlang -Version: 25.3.2 +Version: 26.0 Release: 1%{?dist} Summary: General-purpose programming language and runtime environment @@ -105,13 +105,11 @@ Patch2: otp-0002-Remove-rpath.patch Patch3: otp-0003-Do-not-install-C-sources.patch Patch4: otp-0004-Do-not-install-Java-sources.patch Patch5: otp-0005-Do-not-install-nteventlog-and-related-doc-files-on-n.patch -Patch6: otp-0006-Do-not-install-erlang-sources.patch -Patch7: otp-0007-Add-extra-search-directory.patch -Patch8: otp-0008-Avoid-forking-sed-to-get-basename.patch -Patch9: otp-0009-Load-man-pages-from-system-wide-directory.patch -Patch10: otp-0010-configure.ac-C99-fix-for-ERTS___AFTER_MORECORE_HOOK_.patch -Patch11: otp-0011-configure.ac-C99-fixes-for-poll_works-check.patch -Patch12: otp-0012-Revert-Do-not-install-erlang-sources.patch +Patch6: otp-0006-Add-extra-search-directory.patch +Patch7: otp-0007-Avoid-forking-sed-to-get-basename.patch +Patch8: otp-0008-Load-man-pages-from-system-wide-directory.patch +Patch9: otp-0009-configure.ac-C99-fix-for-ERTS___AFTER_MORECORE_HOOK_.patch +Patch10: otp-0010-configure.ac-C99-fixes-for-poll_works-check.patch # end of autogenerated patch tag list BuildRequires: gcc @@ -366,8 +364,7 @@ Requires: lksctp-tools Provides: erlang(erl_drv_version) = 3.3 # See erts/emulator/beam/erl_nif.h or call erlang:system_info(nif_version). #Provides: erlang(erl_nif_version) = %%(%%{buildroot}/bin/erl -noshell -eval 'io:format(erlang:system_info(nif_version)).' -s erlang halt) -# FIXME has to be 2.16 -Provides: erlang(erl_nif_version) = 2.16 +Provides: erlang(erl_nif_version) = 2.17 Provides: bundled(pcre) = 8.44 Obsoletes: erlang-appmon Obsoletes: erlang-docbuilder @@ -1356,7 +1353,6 @@ useradd -r -g epmd -d /dev/null -s /sbin/nologin \ %{_mandir}/man3/pg.* %{_mandir}/man3/rpc.* %{_mandir}/man3/seq_trace.* -%{_mandir}/man3/user.* %{_mandir}/man3/wrap_log_reader.* %{_mandir}/man3/zlib_stub.* %{_mandir}/man4/app.* @@ -1462,7 +1458,6 @@ useradd -r -g epmd -d /dev/null -s /sbin/nologin \ %if %{with doc} %{_mandir}/man3/dbg.* %{_mandir}/man3/dyntrace.* -%{_mandir}/man3/erts_alloc_config.* %{_mandir}/man3/msacc.* %{_mandir}/man3/system_information.* %{_mandir}/man6/runtime_tools.* @@ -1590,6 +1585,7 @@ useradd -r -g epmd -d /dev/null -s /sbin/nologin \ %{_libdir}/erlang/lib/stdlib-*/include %{_libdir}/erlang/lib/stdlib-*/src %if %{with doc} +%{_mandir}/man3/argparse.* %{_mandir}/man3/array.* %{_mandir}/man3/base64.* %{_mandir}/man3/beam_lib.* @@ -1600,6 +1596,7 @@ useradd -r -g epmd -d /dev/null -s /sbin/nologin \ %{_mandir}/man3/dict.* %{_mandir}/man3/digraph.* %{_mandir}/man3/digraph_utils.* +%{_mandir}/man3/edlin_expand.* %{_mandir}/man3/epp.* %{_mandir}/man3/erl_anno.* %{_mandir}/man3/erl_error.* @@ -1971,6 +1968,9 @@ useradd -r -g epmd -d /dev/null -s /sbin/nologin \ %changelog +* Sat May 20 2023 Peter Lemenkov - 26.0-1 +- Ver. 26.0 + * Sat May 6 2023 Peter Lemenkov - 25.3.2-1 - Ver. 25.3.2 diff --git a/otp-0001-Do-not-format-man-pages-and-do-not-install-miscellan.patch b/otp-0001-Do-not-format-man-pages-and-do-not-install-miscellan.patch index 96f0494..0cc953a 100644 --- a/otp-0001-Do-not-format-man-pages-and-do-not-install-miscellan.patch +++ b/otp-0001-Do-not-format-man-pages-and-do-not-install-miscellan.patch @@ -6,10 +6,10 @@ Subject: [PATCH] Do not format man-pages and do not install miscellaneous Signed-off-by: Peter Lemenkov diff --git a/erts/etc/common/Makefile.in b/erts/etc/common/Makefile.in -index 86f63dcf41..b74c789775 100644 +index 3c5a5cee64..3c3dbda661 100644 --- a/erts/etc/common/Makefile.in +++ b/erts/etc/common/Makefile.in -@@ -555,10 +555,6 @@ endif +@@ -552,10 +552,6 @@ endif ifneq ($(INSTALL_TOP_BIN),) $(INSTALL_PROGRAM) $(INSTALL_TOP_BIN) "$(RELEASE_PATH)" endif diff --git a/otp-0007-Add-extra-search-directory.patch b/otp-0006-Add-extra-search-directory.patch similarity index 90% rename from otp-0007-Add-extra-search-directory.patch rename to otp-0006-Add-extra-search-directory.patch index cb84b30..3c7339a 100644 --- a/otp-0007-Add-extra-search-directory.patch +++ b/otp-0006-Add-extra-search-directory.patch @@ -5,10 +5,10 @@ Subject: [PATCH] Add extra search directory Signed-off-by: Peter Lemenkov diff --git a/lib/kernel/src/code_server.erl b/lib/kernel/src/code_server.erl -index af8531271f..66050d6cdb 100644 +index f420337eb7..7e056ac2f6 100644 --- a/lib/kernel/src/code_server.erl +++ b/lib/kernel/src/code_server.erl -@@ -79,11 +79,17 @@ init(Ref, Parent, [Root,Mode]) -> +@@ -89,11 +89,17 @@ init(Ref, Parent, [Root,Mode]) -> IPath = case Mode of interactive -> diff --git a/otp-0006-Do-not-install-erlang-sources.patch b/otp-0006-Do-not-install-erlang-sources.patch deleted file mode 100644 index e40945b..0000000 --- a/otp-0006-Do-not-install-erlang-sources.patch +++ /dev/null @@ -1,660 +0,0 @@ -From: Hans Ulrich Niedermann -Date: Mon, 21 Mar 2011 15:41:49 +0100 -Subject: [PATCH] Do not install erlang sources - -Don't install *.erl, *.xrl, *.yrl, and *.asn1 files at all. - -Signed-off-by: Peter Lemenkov -Signed-off-by: Hans Ulrich Niedermann - -diff --git a/erts/preloaded/src/Makefile b/erts/preloaded/src/Makefile -index 1994aa1302..007b7d44bd 100644 ---- a/erts/preloaded/src/Makefile -+++ b/erts/preloaded/src/Makefile -@@ -117,8 +117,6 @@ $(APP_TARGET): $(APP_SRC) $(ERL_TOP)/erts/vsn.mk - include $(ERL_TOP)/make/otp_release_targets.mk - - release_spec: $(APP_TARGET) -- $(INSTALL_DIR) "$(RELSYSDIR)/src" -- $(INSTALL_DATA) $(ERL_FILES) $(BEAM_FILES) $(STUBS_FILES) "$(RELSYSDIR)/src" - $(INSTALL_DIR) "$(RELSYSDIR)/ebin" - $(INSTALL_DATA) $(STATIC_TARGET_FILES) $(APP_TARGET) "$(RELSYSDIR)/ebin" - -diff --git a/lib/asn1/src/Makefile b/lib/asn1/src/Makefile -index 9e13d02c8a..77ba98c2f8 100644 ---- a/lib/asn1/src/Makefile -+++ b/lib/asn1/src/Makefile -@@ -157,7 +157,7 @@ release_spec: opt - $(INSTALL_DIR) "$(RELSYSDIR)/ebin" - $(INSTALL_DATA) $(TARGET_FILES) $(APP_TARGET) $(APPUP_TARGET) "$(RELSYSDIR)/ebin" - $(INSTALL_DIR) "$(RELSYSDIR)/src" -- $(INSTALL_DATA) $(ERL_FILES) $(HRL_FILES) $(APP_SRC) $(APPUP_SRC) "$(RELSYSDIR)/src" -+ $(INSTALL_DATA) $(HRL_FILES) "$(RELSYSDIR)/src" - $(INSTALL_DIR) "$(RELSYSDIR)/examples" - $(INSTALL_DATA) $(EXAMPLES) "$(RELSYSDIR)/examples" - -diff --git a/lib/common_test/src/Makefile b/lib/common_test/src/Makefile -index 00f13589f3..5bf4e50f14 100644 ---- a/lib/common_test/src/Makefile -+++ b/lib/common_test/src/Makefile -@@ -157,7 +157,7 @@ include $(ERL_TOP)/make/otp_release_targets.mk - - release_spec: opt - $(INSTALL_DIR) "$(RELSYSDIR)/src" -- $(INSTALL_DATA) $(ERL_FILES) $(HRL_FILES) "$(RELSYSDIR)/src" -+ $(INSTALL_DATA) $(HRL_FILES) "$(RELSYSDIR)/src" - $(INSTALL_DIR) "$(RELSYSDIR)/ebin" - $(INSTALL_DATA) $(TARGET_FILES) "$(RELSYSDIR)/ebin" - $(INSTALL_DIR) "$(RELSYSDIR)/include" -diff --git a/lib/common_test/test_server/Makefile b/lib/common_test/test_server/Makefile -index 4ff5e678ee..4e3fa5c60f 100644 ---- a/lib/common_test/test_server/Makefile -+++ b/lib/common_test/test_server/Makefile -@@ -83,9 +83,9 @@ include $(ERL_TOP)/make/otp_release_targets.mk - - release_tests_spec: opt - $(INSTALL_DIR) "$(RELEASE_PATH)/test_server" -- $(INSTALL_DATA) $(TS_ERL_FILES) $(TS_HRL_FILES) \ -+ $(INSTALL_DATA) $(TS_HRL_FILES) \ - $(TS_TARGET_FILES) \ -- $(AUTOCONF_FILES) $(CONFIG) \ -+ $(CONFIG) \ - "$(RELEASE_PATH)/test_server" - $(INSTALL_SCRIPT) $(PROGRAMS) "$(RELEASE_PATH)/test_server" - -diff --git a/lib/compiler/src/Makefile b/lib/compiler/src/Makefile -index d801d6baa0..4eed19b516 100644 ---- a/lib/compiler/src/Makefile -+++ b/lib/compiler/src/Makefile -@@ -188,8 +188,8 @@ include $(ERL_TOP)/make/otp_release_targets.mk - - release_spec: opt - $(INSTALL_DIR) "$(RELSYSDIR)/src" -- $(INSTALL_DATA) $(ERL_FILES) $(HRL_FILES) $(EXTRA_FILES) \ -- $(YRL_FILE) "$(RELSYSDIR)/src" -+ $(INSTALL_DATA) $(HRL_FILES) $(EXTRA_FILES) \ -+ "$(RELSYSDIR)/src" - $(INSTALL_DIR) "$(RELSYSDIR)/ebin" - $(INSTALL_DATA) $(INSTALL_FILES) "$(RELSYSDIR)/ebin" - -diff --git a/lib/crypto/src/Makefile b/lib/crypto/src/Makefile -index 893f679390..6f8a329421 100644 ---- a/lib/crypto/src/Makefile -+++ b/lib/crypto/src/Makefile -@@ -81,8 +81,6 @@ docs: - include $(ERL_TOP)/make/otp_release_targets.mk - - release_spec: opt -- $(INSTALL_DIR) "$(RELSYSDIR)/src" -- $(INSTALL_DATA) $(ERL_FILES) "$(RELSYSDIR)/src" - $(INSTALL_DIR) "$(RELSYSDIR)/ebin" - $(INSTALL_DATA) $(TARGET_FILES) $(APP_TARGET) \ - $(APPUP_TARGET) "$(RELSYSDIR)/ebin" -diff --git a/lib/debugger/src/Makefile b/lib/debugger/src/Makefile -index 2fb955b2e3..6ddce27ec1 100644 ---- a/lib/debugger/src/Makefile -+++ b/lib/debugger/src/Makefile -@@ -117,7 +117,7 @@ include $(ERL_TOP)/make/otp_release_targets.mk - - release_spec: opt - $(INSTALL_DIR) "$(RELSYSDIR)/src" -- $(INSTALL_DATA) $(ERL_FILES) $(INTERNAL_HRL_FILES) $(TOOLBOX_FILES) "$(RELSYSDIR)/src" -+ $(INSTALL_DATA) $(INTERNAL_HRL_FILES) $(TOOLBOX_FILES) "$(RELSYSDIR)/src" - $(INSTALL_DIR) "$(RELSYSDIR)/ebin" - $(INSTALL_DATA) $(TARGET_FILES) $(TARGET_TOOLBOX_FILES) "$(RELSYSDIR)/ebin" - -diff --git a/lib/dialyzer/src/Makefile b/lib/dialyzer/src/Makefile -index c934ecdc2b..cc266f48e2 100644 ---- a/lib/dialyzer/src/Makefile -+++ b/lib/dialyzer/src/Makefile -@@ -162,7 +162,7 @@ include $(ERL_TOP)/make/otp_release_targets.mk - - release_spec: opt - $(INSTALL_DIR) "$(RELSYSDIR)/src" -- $(INSTALL_DATA) $(ERL_FILES) $(HRL_FILES) $(EXTRA_FILES) \ -+ $(INSTALL_DATA) $(HRL_FILES) $(EXTRA_FILES) \ - "$(RELSYSDIR)/src" - $(INSTALL_DIR) "$(RELSYSDIR)/ebin" - $(INSTALL_DATA) $(INSTALL_FILES) "$(RELSYSDIR)/ebin" -diff --git a/lib/diameter/src/Makefile b/lib/diameter/src/Makefile -index 75e23d4191..7097541548 100644 ---- a/lib/diameter/src/Makefile -+++ b/lib/diameter/src/Makefile -@@ -266,11 +266,8 @@ release_spec: opt - $(MAKE) ERL_DETERMINISTIC=$(ERL_DETERMINISTIC) $(EXAMPLE_DIRS:%/=release_examples_%) - - $(TARGET_DIRS:%/=release_src_%): release_src_%: -- $(INSTALL_DIR) "$(RELSYSDIR)/src/$*" -- $(INSTALL_DATA) $(filter $*/%, $(TARGET_MODULES:%=%.erl) \ -- $(INTERNAL_HRLS)) \ -- $(filter $*/%, compiler/$(DICT_YRL).yrl) \ -- "$(RELSYSDIR)/src/$*" -+ $(INSTALL_DATA) $(filter $*/%, $(INTERNAL_HRLS)) \ -+ "$(RELSYSDIR)/src/$*" || true - - $(EXAMPLE_DIRS:%/=release_examples_%): release_examples_%: - $(INSTALL_DIR) "$(RELSYSDIR)/examples/$*" -diff --git a/lib/edoc/src/Makefile b/lib/edoc/src/Makefile -index a455662049..e5b2f886ed 100644 ---- a/lib/edoc/src/Makefile -+++ b/lib/edoc/src/Makefile -@@ -87,7 +87,7 @@ release_spec: opt - $(INSTALL_DIR) "$(RELSYSDIR)/ebin" - $(INSTALL_DATA) $(OBJECTS) "$(RELSYSDIR)/ebin" - $(INSTALL_DIR) "$(RELSYSDIR)/src" -- $(INSTALL_DATA) $(SOURCES) $(HRL_FILES) $(YRL_FILE) "$(RELSYSDIR)/src" -+ $(INSTALL_DATA) $(HRL_FILES) "$(RELSYSDIR)/src" - - release_docs_spec: - -diff --git a/lib/eldap/src/Makefile b/lib/eldap/src/Makefile -index 04a84a4766..78fc4a9687 100644 ---- a/lib/eldap/src/Makefile -+++ b/lib/eldap/src/Makefile -@@ -98,13 +98,9 @@ include $(ERL_TOP)/make/otp_release_targets.mk - - release_spec: opt - $(INSTALL_DIR) "$(RELSYSDIR)/ebin" -- $(INSTALL_DATA) $(ASN1_HRL) $(TARGET_FILES) $(APP_TARGET) $(APPUP_TARGET) "$(RELSYSDIR)/ebin" -- $(INSTALL_DIR) "$(RELSYSDIR)/src" -- $(INSTALL_DATA) $(ERL_FILES) "$(RELSYSDIR)/src" -- $(INSTALL_DIR) "$(RELSYSDIR)/asn1" -- $(INSTALL_DATA) ../asn1/$(ASN1_FILES) "$(RELSYSDIR)/asn1" -+ $(INSTALL_DATA) $(TARGET_FILES) $(APP_TARGET) $(APPUP_TARGET) "$(RELSYSDIR)/ebin" - $(INSTALL_DIR) "$(RELSYSDIR)/include" -- $(INSTALL_DATA) $(EXTERNAL_HRL_FILES) "$(RELSYSDIR)/include" -+ $(INSTALL_DATA) $(HRL_FILES) "$(RELSYSDIR)/include" - - release_docs_spec: - -diff --git a/lib/erl_docgen/src/Makefile b/lib/erl_docgen/src/Makefile -index 458094e35f..cc3368ad02 100644 ---- a/lib/erl_docgen/src/Makefile -+++ b/lib/erl_docgen/src/Makefile -@@ -91,8 +91,6 @@ $(APPUP_TARGET): $(APPUP_SRC) ../vsn.mk - include $(ERL_TOP)/make/otp_release_targets.mk - - release_spec: opt -- $(INSTALL_DIR) "$(RELSYSDIR)/src" -- $(INSTALL_DATA) $(ERL_FILES) "$(RELSYSDIR)/src" - $(INSTALL_DIR) "$(RELSYSDIR)/ebin" - $(INSTALL_DATA) $(TARGET_FILES) "$(RELSYSDIR)/ebin" - -diff --git a/lib/et/src/Makefile b/lib/et/src/Makefile -index fc66cc1eaf..a567965ed4 100644 ---- a/lib/et/src/Makefile -+++ b/lib/et/src/Makefile -@@ -109,7 +109,6 @@ release_spec: opt - $(INSTALL_DATA) $(TARGET_FILES) "$(RELSYSDIR)/ebin" - $(INSTALL_DATA) $(APP_TARGET) $(APPUP_TARGET) "$(RELSYSDIR)/ebin" - $(INSTALL_DIR) "$(RELSYSDIR)/src" -- $(INSTALL_DATA) $(ERL_FILES) "$(RELSYSDIR)/src" - $(INSTALL_DATA) $(INTERNAL_HRL_FILES) "$(RELSYSDIR)/src" - $(INSTALL_DIR) "$(RELSYSDIR)/include" - $(INSTALL_DATA) $(HRL_FILES) "$(RELSYSDIR)/include" -diff --git a/lib/eunit/src/Makefile b/lib/eunit/src/Makefile -index f4eaf6807a..2a49a2ca7a 100644 ---- a/lib/eunit/src/Makefile -+++ b/lib/eunit/src/Makefile -@@ -121,7 +121,6 @@ release_spec: opt - $(INSTALL_DIR) "$(RELSYSDIR)/ebin" - $(INSTALL_DATA) $(PARSE_TRANSFORM_BIN) $(OBJECTS) "$(RELSYSDIR)/ebin" - $(INSTALL_DIR) "$(RELSYSDIR)/src" -- $(INSTALL_DATA) $(PARSE_TRANSFORM) $(SOURCES) $(BEHAVIOUR_SOURCES) "$(RELSYSDIR)/src" - $(INSTALL_DATA) $(INTERNAL_HRL_FILES) "$(RELSYSDIR)/src" - $(INSTALL_DIR) "$(RELSYSDIR)/include" - $(INSTALL_DATA) $(INCLUDE_DELIVERABLES) "$(RELSYSDIR)/include" -diff --git a/lib/inets/src/http_client/Makefile b/lib/inets/src/http_client/Makefile -index 62f62792f0..ca4b539017 100644 ---- a/lib/inets/src/http_client/Makefile -+++ b/lib/inets/src/http_client/Makefile -@@ -92,7 +92,7 @@ include $(ERL_TOP)/make/otp_release_targets.mk - release_spec: opt - $(INSTALL_DIR) "$(RELSYSDIR)/src" - $(INSTALL_DIR) "$(RELSYSDIR)/src/http_client" -- $(INSTALL_DATA) $(HRL_FILES) $(ERL_FILES) "$(RELSYSDIR)/src/http_client" -+ $(INSTALL_DATA) $(HRL_FILES) "$(RELSYSDIR)/src/http_client" - $(INSTALL_DIR) "$(RELSYSDIR)/ebin" - $(INSTALL_DATA) $(TARGET_FILES) "$(RELSYSDIR)/ebin" - -diff --git a/lib/inets/src/http_lib/Makefile b/lib/inets/src/http_lib/Makefile -index 481c4f66eb..896a806695 100644 ---- a/lib/inets/src/http_lib/Makefile -+++ b/lib/inets/src/http_lib/Makefile -@@ -90,7 +90,7 @@ include $(ERL_TOP)/make/otp_release_targets.mk - release_spec: opt - $(INSTALL_DIR) "$(RELSYSDIR)/src" - $(INSTALL_DIR) "$(RELSYSDIR)/src/http_lib" -- $(INSTALL_DATA) $(HRL_FILES) $(ERL_FILES) "$(RELSYSDIR)/src/http_lib" -+ $(INSTALL_DATA) $(HRL_FILES) "$(RELSYSDIR)/src/http_lib" - $(INSTALL_DIR) "$(RELSYSDIR)/ebin" - $(INSTALL_DATA) $(TARGET_FILES) "$(RELSYSDIR)/ebin" - -diff --git a/lib/inets/src/http_server/Makefile b/lib/inets/src/http_server/Makefile -index abf8413f33..42925ba58f 100644 ---- a/lib/inets/src/http_server/Makefile -+++ b/lib/inets/src/http_server/Makefile -@@ -134,7 +134,7 @@ include $(ERL_TOP)/make/otp_release_targets.mk - release_spec: opt - $(INSTALL_DIR) "$(RELSYSDIR)/src" - $(INSTALL_DIR) "$(RELSYSDIR)/src/http_server" -- $(INSTALL_DATA) $(HRL_FILES) $(ERL_FILES) "$(RELSYSDIR)/src/http_server" -+ $(INSTALL_DATA) $(HRL_FILES) "$(RELSYSDIR)/src/http_server" - $(INSTALL_DIR) "$(RELSYSDIR)/ebin" - $(INSTALL_DATA) $(TARGET_FILES) $(BEHAVIOUR_TARGET_FILES) "$(RELSYSDIR)/ebin" - -diff --git a/lib/inets/src/inets_app/Makefile b/lib/inets/src/inets_app/Makefile -index 405e86105a..a8b932772a 100644 ---- a/lib/inets/src/inets_app/Makefile -+++ b/lib/inets/src/inets_app/Makefile -@@ -114,7 +114,7 @@ include $(ERL_TOP)/make/otp_release_targets.mk - release_spec: opt - $(INSTALL_DIR) "$(RELSYSDIR)/src" - $(INSTALL_DIR) "$(RELSYSDIR)/src/inets_app" -- $(INSTALL_DATA) $(INTERNAL_HRL_FILES) $(ERL_FILES) "$(RELSYSDIR)/src/inets_app" -+ $(INSTALL_DATA) $(INTERNAL_HRL_FILES) "$(RELSYSDIR)/src/inets_app" - $(INSTALL_DIR) "$(RELSYSDIR)/include" - $(INSTALL_DATA) $(EXTERNAL_HRL_FILES) "$(RELSYSDIR)/include" - $(INSTALL_DIR) "$(RELSYSDIR)/ebin" -diff --git a/lib/kernel/src/Makefile b/lib/kernel/src/Makefile -index 2149e89776..891d3e6f6a 100644 ---- a/lib/kernel/src/Makefile -+++ b/lib/kernel/src/Makefile -@@ -229,7 +229,6 @@ include $(ERL_TOP)/make/otp_release_targets.mk - - release_spec: opt - $(INSTALL_DIR) "$(RELSYSDIR)/src" -- $(INSTALL_DATA) $(ERL_FILES) "$(RELSYSDIR)/src" - $(INSTALL_DATA) $(INTERNAL_HRL_FILES) "$(RELSYSDIR)/src" - $(INSTALL_DIR) "$(RELSYSDIR)/include" - $(INSTALL_DATA) $(HRL_FILES) "$(RELSYSDIR)/include" -diff --git a/lib/megaco/src/app/Makefile b/lib/megaco/src/app/Makefile -index c681b88428..8cb286181a 100644 ---- a/lib/megaco/src/app/Makefile -+++ b/lib/megaco/src/app/Makefile -@@ -114,7 +114,7 @@ release_spec: opt - $(INSTALL_DATA) $(APP_TARGET) $(APPUP_TARGET) "$(RELSYSDIR)/ebin" - $(INSTALL_DIR) "$(RELSYSDIR)/src" - $(INSTALL_DIR) "$(RELSYSDIR)/src/app" -- $(INSTALL_DATA) $(ERL_FILES) $(INTERNAL_HRL_FILES) "$(RELSYSDIR)/src/app" -+ $(INSTALL_DATA) $(INTERNAL_HRL_FILES) "$(RELSYSDIR)/src/app" - $(INSTALL_DIR) "$(RELSYSDIR)/include" - $(INSTALL_DATA) $(EXTERNAL_HRL_FILES) "$(RELSYSDIR)/include" - -diff --git a/lib/megaco/src/binary/Makefile b/lib/megaco/src/binary/Makefile -index 9ecb649f0c..3ca5654eb3 100644 ---- a/lib/megaco/src/binary/Makefile -+++ b/lib/megaco/src/binary/Makefile -@@ -154,7 +154,7 @@ release_spec: opt - $(INSTALL_DATA) $(TARGET_FILES) "$(RELSYSDIR)/ebin" - $(INSTALL_DIR) "$(RELSYSDIR)/src" - $(INSTALL_DIR) "$(RELSYSDIR)/src/binary" -- $(INSTALL_DATA) $(ERL_FILES) $(HRL_FILES) $(ASN1_FILES) "$(RELSYSDIR)/src/binary" -+ $(INSTALL_DATA) $(HRL_FILES) "$(RELSYSDIR)/src/binary" - - - release_docs_spec: -diff --git a/lib/megaco/src/engine/Makefile b/lib/megaco/src/engine/Makefile -index cc4974e09d..b7a7c703b3 100644 ---- a/lib/megaco/src/engine/Makefile -+++ b/lib/megaco/src/engine/Makefile -@@ -102,7 +102,7 @@ release_spec: opt - $(INSTALL_DATA) $(BEHAVIOUR_TARGET_FILES) $(TARGET_FILES) "$(RELSYSDIR)/ebin" - $(INSTALL_DIR) "$(RELSYSDIR)/src" - $(INSTALL_DIR) "$(RELSYSDIR)/src/engine" -- $(INSTALL_DATA) $(ERL_FILES) $(INTERNAL_HRL_FILES) "$(RELSYSDIR)/src/engine" -+ $(INSTALL_DATA) $(INTERNAL_HRL_FILES) "$(RELSYSDIR)/src/engine" - $(INSTALL_DIR) "$(RELSYSDIR)/include" - - -diff --git a/lib/megaco/src/flex/Makefile.in b/lib/megaco/src/flex/Makefile.in -index d8c5c68b99..2053d3297b 100644 ---- a/lib/megaco/src/flex/Makefile.in -+++ b/lib/megaco/src/flex/Makefile.in -@@ -248,7 +248,6 @@ release_spec: opt - $(INSTALL_DIR) "$(RELSYSDIR)/src/flex" - $(INSTALL_DIR) "$(RELSYSDIR)/priv/lib" - $(INSTALL_DIR) "$(RELSYSDIR)/include" -- $(INSTALL_DATA) $(ERL_FILES) $(INTERNAL_HRL_FILES) "$(RELSYSDIR)/src/flex" - $(INSTALL_DATA) $(TARGET_FILES) "$(RELSYSDIR)/ebin" - ifeq ($(ENABLE_MEGACO_FLEX_SCANNER),true) - $(INSTALL_DATA) $(FLEX_FILES) "$(RELSYSDIR)/src/flex" -diff --git a/lib/megaco/src/tcp/Makefile b/lib/megaco/src/tcp/Makefile -index ef4232244a..85cfb4b4ee 100644 ---- a/lib/megaco/src/tcp/Makefile -+++ b/lib/megaco/src/tcp/Makefile -@@ -94,7 +94,7 @@ release_spec: opt - $(INSTALL_DATA) $(TARGET_FILES) "$(RELSYSDIR)/ebin" - $(INSTALL_DIR) "$(RELSYSDIR)/src" - $(INSTALL_DIR) "$(RELSYSDIR)/src/tcp" -- $(INSTALL_DATA) $(ERL_FILES) $(INTERNAL_HRL_FILES) "$(RELSYSDIR)/src/tcp" -+ $(INSTALL_DATA) $(INTERNAL_HRL_FILES) "$(RELSYSDIR)/src/tcp" - - - release_docs_spec: -diff --git a/lib/megaco/src/text/Makefile b/lib/megaco/src/text/Makefile -index 6872b0ec04..a097be4d48 100644 ---- a/lib/megaco/src/text/Makefile -+++ b/lib/megaco/src/text/Makefile -@@ -133,7 +133,7 @@ release_spec: opt - $(INSTALL_DATA) $(BEAM_TARGET_FILES) "$(RELSYSDIR)/ebin" - $(INSTALL_DIR) "$(RELSYSDIR)/src" - $(INSTALL_DIR) "$(RELSYSDIR)/src/text" -- $(INSTALL_DATA) $(ERL_FILES) $(INTERNAL_YRL_FILES) $(INTERNAL_HRL_FILES) "$(RELSYSDIR)/src/text" -+ $(INSTALL_DATA) $(INTERNAL_HRL_FILES) "$(RELSYSDIR)/src/text" - - - release_docs_spec: -diff --git a/lib/megaco/src/udp/Makefile b/lib/megaco/src/udp/Makefile -index 5699c3e952..f8dcb5c681 100644 ---- a/lib/megaco/src/udp/Makefile -+++ b/lib/megaco/src/udp/Makefile -@@ -94,7 +94,7 @@ release_spec: opt - $(INSTALL_DATA) $(TARGET_FILES) "$(RELSYSDIR)/ebin" - $(INSTALL_DIR) "$(RELSYSDIR)/src" - $(INSTALL_DIR) "$(RELSYSDIR)/src/udp" -- $(INSTALL_DATA) $(ERL_FILES) $(INTERNAL_HRL_FILES) "$(RELSYSDIR)/src/udp" -+ $(INSTALL_DATA) $(INTERNAL_HRL_FILES) "$(RELSYSDIR)/src/udp" - - - release_docs_spec: -diff --git a/lib/mnesia/src/Makefile b/lib/mnesia/src/Makefile -index 72aa054fb3..08c6c5ffc1 100644 ---- a/lib/mnesia/src/Makefile -+++ b/lib/mnesia/src/Makefile -@@ -135,7 +135,7 @@ include $(ERL_TOP)/make/otp_release_targets.mk - - release_spec: opt - $(INSTALL_DIR) "$(RELSYSDIR)/src" -- $(INSTALL_DATA) $(HRL_FILES) $(ERL_FILES) "$(RELSYSDIR)/src" -+ $(INSTALL_DATA) $(HRL_FILES) "$(RELSYSDIR)/src" - $(INSTALL_DIR) "$(RELSYSDIR)/ebin" - $(INSTALL_DATA) $(TARGET_FILES) "$(RELSYSDIR)/ebin" - -diff --git a/lib/observer/src/Makefile b/lib/observer/src/Makefile -index 2edb2ceb3e..884e69c7b7 100644 ---- a/lib/observer/src/Makefile -+++ b/lib/observer/src/Makefile -@@ -151,7 +151,6 @@ include $(ERL_TOP)/make/otp_release_targets.mk - - release_spec: opt - $(INSTALL_DIR) "$(RELSYSDIR)/src" -- $(INSTALL_DATA) $(ERL_FILES) "$(RELSYSDIR)/src" - $(INSTALL_DATA) $(INTERNAL_HRL_FILES) "$(RELSYSDIR)/src" - $(INSTALL_DIR) "$(RELSYSDIR)/examples" - $(INSTALL_DATA) $(EXAMPLE_FILES) "$(RELSYSDIR)/examples" -diff --git a/lib/odbc/src/Makefile b/lib/odbc/src/Makefile -index e18628e94d..fa01850f38 100644 ---- a/lib/odbc/src/Makefile -+++ b/lib/odbc/src/Makefile -@@ -110,7 +110,7 @@ include $(ERL_TOP)/make/otp_release_targets.mk - - release_spec: opt - $(INSTALL_DIR) "$(RELSYSDIR)/src" -- $(INSTALL_DATA) $(ERL_FILES) $(HRL_FILES) "$(RELSYSDIR)/src" -+ $(INSTALL_DATA) $(HRL_FILES) "$(RELSYSDIR)/src" - $(INSTALL_DIR) "$(RELSYSDIR)/include" - $(INSTALL_DATA) $(EXT_HRL_FILES) "$(RELSYSDIR)/include" - $(INSTALL_DIR) "$(RELSYSDIR)/ebin" -diff --git a/lib/os_mon/src/Makefile b/lib/os_mon/src/Makefile -index ee32f3946f..2413fb68bf 100644 ---- a/lib/os_mon/src/Makefile -+++ b/lib/os_mon/src/Makefile -@@ -105,7 +105,6 @@ include $(ERL_TOP)/make/otp_release_targets.mk - - release_spec: opt - $(INSTALL_DIR) "$(RELSYSDIR)/src" -- $(INSTALL_DATA) $(ERL_FILES) "$(RELSYSDIR)/src" - $(INSTALL_DATA) $(HRL_FILES) "$(RELSYSDIR)/src" - $(INSTALL_DIR) "$(RELSYSDIR)/ebin" - $(INSTALL_DATA) $(TARGET_FILES) "$(RELSYSDIR)/ebin" -diff --git a/lib/parsetools/src/Makefile b/lib/parsetools/src/Makefile -index c7971750a7..f6024f1184 100644 ---- a/lib/parsetools/src/Makefile -+++ b/lib/parsetools/src/Makefile -@@ -91,8 +91,6 @@ $(APPUP_TARGET): $(APPUP_SRC) ../vsn.mk - include $(ERL_TOP)/make/otp_release_targets.mk - - release_spec: opt -- $(INSTALL_DIR) "$(RELSYSDIR)/src" -- $(INSTALL_DATA) $(ERL_FILES) "$(RELSYSDIR)/src" - $(INSTALL_DIR) "$(RELSYSDIR)/ebin" - $(INSTALL_DATA) $(TARGET_FILES) "$(RELSYSDIR)/ebin" - $(INSTALL_DIR) "$(RELSYSDIR)/include" -diff --git a/lib/public_key/asn1/Makefile b/lib/public_key/asn1/Makefile -index c1adf58ed4..bba7cae5d6 100644 ---- a/lib/public_key/asn1/Makefile -+++ b/lib/public_key/asn1/Makefile -@@ -103,8 +103,6 @@ release_spec: opt - $(INSTALL_DIR) "$(RELSYSDIR)/asn1" - $(INSTALL_DATA) $(ASN_ASNS) $(ASN_CONFIGS) \ - "$(RELSYSDIR)/asn1" -- $(INSTALL_DIR) "$(RELSYSDIR)/src" -- $(INSTALL_DATA) $(ASN_ERLS) "$(RELSYSDIR)/src" - $(INSTALL_DIR) "$(RELSYSDIR)/ebin" - $(INSTALL_DATA) $(TARGET_FILES) "$(RELSYSDIR)/ebin" - -diff --git a/lib/public_key/src/Makefile b/lib/public_key/src/Makefile -index 9b2b442794..a5dcba4ec3 100644 ---- a/lib/public_key/src/Makefile -+++ b/lib/public_key/src/Makefile -@@ -111,8 +111,6 @@ $(APPUP_TARGET): $(APPUP_SRC) ../vsn.mk - include $(ERL_TOP)/make/otp_release_targets.mk - - release_spec: opt -- $(INSTALL_DIR) "$(RELSYSDIR)/src" -- $(INSTALL_DATA) $(INTERNAL_HRL_FILES) $(ERL_FILES) "$(RELSYSDIR)/src" - $(INSTALL_DIR) "$(RELSYSDIR)/include" - $(INSTALL_DATA) $(HRL_FILES) "$(RELSYSDIR)/include" - $(INSTALL_DIR) "$(RELSYSDIR)/ebin" -diff --git a/lib/reltool/src/Makefile b/lib/reltool/src/Makefile -index 173a557d58..6864febbc3 100644 ---- a/lib/reltool/src/Makefile -+++ b/lib/reltool/src/Makefile -@@ -100,7 +100,7 @@ include $(ERL_TOP)/make/otp_release_targets.mk - - release_spec: opt - $(INSTALL_DIR) "$(RELSYSDIR)/src" -- $(INSTALL_DATA) $(INTERNAL_HRL_FILES) $(ERL_FILES) "$(RELSYSDIR)/src" -+ $(INSTALL_DATA) $(INTERNAL_HRL_FILES) "$(RELSYSDIR)/src" - $(INSTALL_DIR) "$(RELSYSDIR)/ebin" - $(INSTALL_DATA) $(TARGET_FILES) "$(RELSYSDIR)/ebin" - $(INSTALL_DATA) $(APP_TARGET) $(APPUP_TARGET) "$(RELSYSDIR)/ebin" -diff --git a/lib/runtime_tools/src/Makefile b/lib/runtime_tools/src/Makefile -index 8e8c4074f5..6e380e1b11 100644 ---- a/lib/runtime_tools/src/Makefile -+++ b/lib/runtime_tools/src/Makefile -@@ -99,8 +99,6 @@ docs: - include $(ERL_TOP)/make/otp_release_targets.mk - - release_spec: opt -- $(INSTALL_DIR) "$(RELSYSDIR)/src" -- $(INSTALL_DATA) $(ERL_FILES) "$(RELSYSDIR)/src" - $(INSTALL_DIR) "$(RELSYSDIR)/include" - $(INSTALL_DATA) $(HRL_FILES) "$(RELSYSDIR)/include" - $(INSTALL_DIR) "$(RELSYSDIR)/examples" -diff --git a/lib/sasl/src/Makefile b/lib/sasl/src/Makefile -index 490e03595d..739830ae3f 100644 ---- a/lib/sasl/src/Makefile -+++ b/lib/sasl/src/Makefile -@@ -94,7 +94,6 @@ include $(ERL_TOP)/make/otp_release_targets.mk - - release_spec: opt - $(INSTALL_DIR) "$(RELSYSDIR)/src" -- $(INSTALL_DATA) $(ERL_FILES) "$(RELSYSDIR)/src" - $(INSTALL_DATA) $(INTERNAL_HRL_FILES) "$(RELSYSDIR)/src" - $(INSTALL_DIR) "$(RELSYSDIR)/ebin" - $(INSTALL_DATA) $(TARGET_FILES) "$(RELSYSDIR)/ebin" -diff --git a/lib/snmp/src/agent/Makefile.in b/lib/snmp/src/agent/Makefile.in -index 6ab9ed437a..14ae0bbc79 100644 ---- a/lib/snmp/src/agent/Makefile.in -+++ b/lib/snmp/src/agent/Makefile.in -@@ -161,7 +161,7 @@ include $(ERL_TOP)/make/otp_release_targets.mk - release_spec: opt - $(INSTALL_DIR) "$(RELSYSDIR)/src" - $(INSTALL_DIR) "$(RELSYSDIR)/src/agent" -- $(INSTALL_DATA) $(ERL_FILES) $(HRL_FILES) "$(RELSYSDIR)/src/agent" -+ $(INSTALL_DATA) $(HRL_FILES) "$(RELSYSDIR)/src/agent" - $(INSTALL_DIR) "$(RELSYSDIR)/ebin" - $(INSTALL_DATA) $(BEHAVIOUR_TARGET_FILES) $(TARGET_FILES) $(APP_TARGET) $(APPUP_TARGET) \ - "$(RELSYSDIR)/ebin" -diff --git a/lib/snmp/src/app/Makefile b/lib/snmp/src/app/Makefile -index f5a74aa78e..0340088eb3 100644 ---- a/lib/snmp/src/app/Makefile -+++ b/lib/snmp/src/app/Makefile -@@ -144,7 +144,7 @@ include $(ERL_TOP)/make/otp_release_targets.mk - release_spec: opt - $(INSTALL_DIR) "$(RELSYSDIR)/src" - $(INSTALL_DIR) "$(RELSYSDIR)/src/app" -- $(INSTALL_DATA) $(ERL_FILES) $(HRL_FILES) "$(RELSYSDIR)/src/app" -+ $(INSTALL_DATA) $(HRL_FILES) "$(RELSYSDIR)/src/app" - $(INSTALL_DIR) "$(RELSYSDIR)/ebin" - $(INSTALL_DATA) $(TARGET_FILES) $(APP_TARGET) $(APPUP_TARGET) \ - "$(RELSYSDIR)/ebin" -diff --git a/lib/snmp/src/compile/Makefile b/lib/snmp/src/compile/Makefile -index f255237a04..04232658c7 100644 ---- a/lib/snmp/src/compile/Makefile -+++ b/lib/snmp/src/compile/Makefile -@@ -141,7 +141,7 @@ include $(ERL_TOP)/make/otp_release_targets.mk - release_spec: opt - $(INSTALL_DIR) "$(RELSYSDIR)/src" - $(INSTALL_DIR) "$(RELSYSDIR)/src/compiler" -- $(INSTALL_DATA) $(ESCRIPT_SRC) $(PARSER_SRC) $(ERL_FILES) $(INTERNAL_HRL_FILES) "$(RELSYSDIR)/src/compiler" -+ $(INSTALL_DATA) $(INTERNAL_HRL_FILES) "$(RELSYSDIR)/src/compiler" - $(INSTALL_DIR) "$(RELSYSDIR)/ebin" - $(INSTALL_DATA) $(EBIN_FILES) "$(RELSYSDIR)/ebin" - $(INSTALL_DIR) "$(RELSYSDIR)/bin" -diff --git a/lib/snmp/src/manager/Makefile b/lib/snmp/src/manager/Makefile -index 693ef75469..61b8dc4692 100644 ---- a/lib/snmp/src/manager/Makefile -+++ b/lib/snmp/src/manager/Makefile -@@ -135,7 +135,7 @@ include $(ERL_TOP)/make/otp_release_targets.mk - release_spec: opt - $(INSTALL_DIR) "$(RELSYSDIR)/src" - $(INSTALL_DIR) "$(RELSYSDIR)/src/manager" -- $(INSTALL_DATA) $(ERL_FILES) $(HRL_FILES) "$(RELSYSDIR)/src/manager" -+ $(INSTALL_DATA) $(HRL_FILES) "$(RELSYSDIR)/src/manager" - $(INSTALL_DIR) "$(RELSYSDIR)/ebin" - $(INSTALL_DATA) $(BEHAVIOUR_TARGET_FILES) $(TARGET_FILES) "$(RELSYSDIR)/ebin" - # $(INSTALL_DIR) "$(RELSYSDIR)/include" -diff --git a/lib/snmp/src/misc/Makefile b/lib/snmp/src/misc/Makefile -index e92506e855..8dc421d2a1 100644 ---- a/lib/snmp/src/misc/Makefile -+++ b/lib/snmp/src/misc/Makefile -@@ -125,7 +125,7 @@ include $(ERL_TOP)/make/otp_release_targets.mk - release_spec: opt - $(INSTALL_DIR) "$(RELSYSDIR)/src" - $(INSTALL_DIR) "$(RELSYSDIR)/src/misc" -- $(INSTALL_DATA) $(ERL_FILES) $(HRL_FILES) "$(RELSYSDIR)/src/misc" -+ $(INSTALL_DATA) $(HRL_FILES) "$(RELSYSDIR)/src/misc" - $(INSTALL_DIR) "$(RELSYSDIR)/ebin" - $(INSTALL_DATA) $(TARGET_FILES) "$(RELSYSDIR)/ebin" - # $(INSTALL_DIR) "$(RELSYSDIR)/include" -diff --git a/lib/ssh/src/Makefile b/lib/ssh/src/Makefile -index 2fcb164301..2c7acf384d 100644 ---- a/lib/ssh/src/Makefile -+++ b/lib/ssh/src/Makefile -@@ -182,7 +182,7 @@ include $(ERL_TOP)/make/otp_release_targets.mk - - release_spec: opt - $(INSTALL_DIR) "$(RELSYSDIR)/src" -- $(INSTALL_DATA) $(INTERNAL_HRL_FILES) $(ERL_FILES) "$(RELSYSDIR)/src" -+ $(INSTALL_DATA) $(INTERNAL_HRL_FILES) "$(RELSYSDIR)/src" - $(INSTALL_DIR) "$(RELSYSDIR)/ebin" - $(INSTALL_DATA) $(BEHAVIOUR_TARGET_FILES) $(TARGET_FILES) $(APP_TARGET) \ - $(APPUP_TARGET) "$(RELSYSDIR)/ebin" -diff --git a/lib/ssl/src/Makefile b/lib/ssl/src/Makefile -index 789bed5c3f..9cd7f7226c 100644 ---- a/lib/ssl/src/Makefile -+++ b/lib/ssl/src/Makefile -@@ -211,7 +211,7 @@ include $(ERL_TOP)/make/otp_release_targets.mk - - release_spec: opt - $(INSTALL_DIR) "$(RELSYSDIR)/src" -- $(INSTALL_DATA) $(ERL_FILES) $(INTERNAL_HRL_FILES) "$(RELSYSDIR)/src" -+ $(INSTALL_DATA) $(INTERNAL_HRL_FILES) "$(RELSYSDIR)/src" - $(INSTALL_DIR) "$(RELSYSDIR)/ebin" - $(INSTALL_DATA) $(BEHAVIOUR_TARGET_FILES) $(TARGET_FILES) $(APP_TARGET) \ - $(APPUP_TARGET) "$(RELSYSDIR)/ebin" -diff --git a/lib/stdlib/src/Makefile b/lib/stdlib/src/Makefile -index 761d6c4c28..43e7a650a5 100644 ---- a/lib/stdlib/src/Makefile -+++ b/lib/stdlib/src/Makefile -@@ -230,7 +230,6 @@ include $(ERL_TOP)/make/otp_release_targets.mk - - release_spec: opt - $(INSTALL_DIR) "$(RELSYSDIR)/src" -- $(INSTALL_DATA) $(ERL_FILES) erl_parse.yrl "$(RELSYSDIR)/src" - $(INSTALL_DATA) $(INTERNAL_HRL_FILES) "$(RELSYSDIR)/src" - $(INSTALL_DIR) "$(RELSYSDIR)/include" - $(INSTALL_DATA) $(HRL_FILES) "$(RELSYSDIR)/include" -diff --git a/lib/syntax_tools/src/Makefile b/lib/syntax_tools/src/Makefile -index dc0ac61734..5bb265e2c2 100644 ---- a/lib/syntax_tools/src/Makefile -+++ b/lib/syntax_tools/src/Makefile -@@ -96,8 +96,6 @@ include $(ERL_TOP)/make/otp_release_targets.mk - release_spec: opt - $(INSTALL_DIR) "$(RELSYSDIR)/ebin" - $(INSTALL_DATA) $(OBJECTS) "$(RELSYSDIR)/ebin" -- $(INSTALL_DIR) "$(RELSYSDIR)/src" -- $(INSTALL_DATA) $(SOURCES) "$(RELSYSDIR)/src" - $(INSTALL_DIR) "$(RELSYSDIR)/include" - $(INSTALL_DATA) $(INCLUDE_DELIVERABLES) "$(RELSYSDIR)/include" - -diff --git a/lib/tftp/src/Makefile b/lib/tftp/src/Makefile -index cfcb1ea134..fba9cc5873 100644 ---- a/lib/tftp/src/Makefile -+++ b/lib/tftp/src/Makefile -@@ -101,7 +101,7 @@ include $(ERL_TOP)/make/otp_release_targets.mk - - release_spec: opt - $(INSTALL_DIR) "$(RELSYSDIR)/src" -- $(INSTALL_DATA) $(ERL_FILES) $(HRL_FILES) "$(RELSYSDIR)/src" -+ $(INSTALL_DATA) $(HRL_FILES) "$(RELSYSDIR)/src" - $(INSTALL_DIR) "$(RELSYSDIR)/ebin" - $(INSTALL_DATA) $(BEHAVIOUR_TARGET_FILES) $(TARGET_FILES) $(APP_TARGET) \ - $(APPUP_TARGET) "$(RELSYSDIR)/ebin" -diff --git a/lib/tools/src/Makefile b/lib/tools/src/Makefile -index b05ce883ec..f8d143922d 100644 ---- a/lib/tools/src/Makefile -+++ b/lib/tools/src/Makefile -@@ -109,7 +109,7 @@ include $(ERL_TOP)/make/otp_release_targets.mk - - release_spec: opt - $(INSTALL_DIR) "$(RELSYSDIR)/src" -- $(INSTALL_DATA) $(ERL_FILES) $(YRL_FILE) $(HRL_FILES) "$(RELSYSDIR)/src" -+ $(INSTALL_DATA) $(HRL_FILES) "$(RELSYSDIR)/src" - $(INSTALL_DIR) "$(RELSYSDIR)/ebin" - $(INSTALL_DATA) $(TARGET_FILES) $(APP_TARGET) $(APPUP_TARGET) \ - "$(RELSYSDIR)/ebin" -diff --git a/lib/wx/src/Makefile b/lib/wx/src/Makefile -index ce14c0b6df..f052399c0f 100644 ---- a/lib/wx/src/Makefile -+++ b/lib/wx/src/Makefile -@@ -121,9 +121,9 @@ $(EBIN)/%.beam: $(EGEN)/%.erl $(HEADER_FILES) - include $(ERL_TOP)/make/otp_release_targets.mk - release_spec: opt - $(INSTALL_DIR) "$(RELSYSDIR)/src" -- $(INSTALL_DATA) $(HRL_FILES) $(ERL_FILES) "$(RELSYSDIR)/src" -+ $(INSTALL_DATA) $(HRL_FILES) "$(RELSYSDIR)/src" - $(INSTALL_DIR) "$(RELSYSDIR)/src/gen" -- $(INSTALL_DATA) $(GEN_HRL) $(GEN_FILES) "$(RELSYSDIR)/src/gen" -+ $(INSTALL_DATA) $(GEN_HRL) "$(RELSYSDIR)/src/gen" - $(INSTALL_DIR) "$(RELSYSDIR)/include" - $(INSTALL_DATA) $(EXT_HRL) "$(RELSYSDIR)/include" - $(INSTALL_DIR) "$(RELSYSDIR)/ebin" -diff --git a/lib/xmerl/src/Makefile b/lib/xmerl/src/Makefile -index e7e7c8e978..37b7843605 100644 ---- a/lib/xmerl/src/Makefile -+++ b/lib/xmerl/src/Makefile -@@ -223,9 +223,7 @@ release_spec: opt - $(INSTALL_DIR) "$(RELSYSDIR)/ebin" - $(INSTALL_DATA) $(TARGET_FILES) "$(RELSYSDIR)/ebin" - $(INSTALL_DIR) "$(RELSYSDIR)/src" -- $(INSTALL_DATA) $(ERL_FILES) $(INTERNAL_HRL_FILES) $(APP_SRC) $(APPUP_SRC) "$(RELSYSDIR)/src" -- $(INSTALL_DATA) xmerl_xpath_parse.yrl "$(RELSYSDIR)/src" -- $(INSTALL_DATA) xmerl_b64Bin.yrl "$(RELSYSDIR)/src" -+ $(INSTALL_DATA) $(INTERNAL_HRL_FILES) "$(RELSYSDIR)/src" - $(INSTALL_DIR) "$(RELSYSDIR)/include" - $(INSTALL_DATA) $(HRL_FILES) "$(RELSYSDIR)/include" - diff --git a/otp-0008-Avoid-forking-sed-to-get-basename.patch b/otp-0007-Avoid-forking-sed-to-get-basename.patch similarity index 100% rename from otp-0008-Avoid-forking-sed-to-get-basename.patch rename to otp-0007-Avoid-forking-sed-to-get-basename.patch diff --git a/otp-0009-Load-man-pages-from-system-wide-directory.patch b/otp-0008-Load-man-pages-from-system-wide-directory.patch similarity index 89% rename from otp-0009-Load-man-pages-from-system-wide-directory.patch rename to otp-0008-Load-man-pages-from-system-wide-directory.patch index 2075f81..e014671 100644 --- a/otp-0009-Load-man-pages-from-system-wide-directory.patch +++ b/otp-0008-Load-man-pages-from-system-wide-directory.patch @@ -7,10 +7,10 @@ Patch allows one to use standard man path with erl -man command. as required by Debian policy.) diff --git a/erts/etc/common/erlexec.c b/erts/etc/common/erlexec.c -index fa951ae770..9cce3857db 100644 +index 888df87e35..14272f06c6 100644 --- a/erts/etc/common/erlexec.c +++ b/erts/etc/common/erlexec.c -@@ -709,8 +709,10 @@ int main(int argc, char **argv) +@@ -716,8 +716,10 @@ int main(int argc, char **argv) error("-man not supported on Windows"); #else argv[i] = "man"; diff --git a/otp-0010-configure.ac-C99-fix-for-ERTS___AFTER_MORECORE_HOOK_.patch b/otp-0009-configure.ac-C99-fix-for-ERTS___AFTER_MORECORE_HOOK_.patch similarity index 82% rename from otp-0010-configure.ac-C99-fix-for-ERTS___AFTER_MORECORE_HOOK_.patch rename to otp-0009-configure.ac-C99-fix-for-ERTS___AFTER_MORECORE_HOOK_.patch index dc89898..3790e65 100644 --- a/otp-0010-configure.ac-C99-fix-for-ERTS___AFTER_MORECORE_HOOK_.patch +++ b/otp-0009-configure.ac-C99-fix-for-ERTS___AFTER_MORECORE_HOOK_.patch @@ -6,10 +6,10 @@ Subject: [PATCH] configure.ac: C99 fix for #include for the sbrk function if the header is available. diff --git a/erts/configure b/erts/configure -index fbdb6baba8..46e882e99a 100755 +index a09c84ff09..478ebaa206 100755 --- a/erts/configure +++ b/erts/configure -@@ -20644,6 +20644,9 @@ else $as_nop +@@ -20890,6 +20890,9 @@ else $as_nop #ifdef HAVE_MALLOC_H # include #endif @@ -20,10 +20,10 @@ index fbdb6baba8..46e882e99a 100755 extern char end; #elif defined(HAVE__END_SYMBOL) diff --git a/erts/configure.ac b/erts/configure.ac -index 307be5042d..316345079b 100644 +index 540cc4b3cb..0d4d9377ef 100644 --- a/erts/configure.ac +++ b/erts/configure.ac -@@ -2436,6 +2436,9 @@ AC_CACHE_CHECK([if __after_morecore_hook can track malloc()s core memory use], +@@ -2449,6 +2449,9 @@ AC_CACHE_CHECK([if __after_morecore_hook can track malloc()s core memory use], #ifdef HAVE_MALLOC_H # include #endif diff --git a/otp-0011-configure.ac-C99-fixes-for-poll_works-check.patch b/otp-0010-configure.ac-C99-fixes-for-poll_works-check.patch similarity index 88% rename from otp-0011-configure.ac-C99-fixes-for-poll_works-check.patch rename to otp-0010-configure.ac-C99-fixes-for-poll_works-check.patch index d3d2a71..255158c 100644 --- a/otp-0011-configure.ac-C99-fixes-for-poll_works-check.patch +++ b/otp-0010-configure.ac-C99-fixes-for-poll_works-check.patch @@ -7,10 +7,10 @@ Return from main instead of calling exit, so that no function declaration is needed. diff --git a/erts/configure b/erts/configure -index 46e882e99a..7cc6f802ce 100755 +index 478ebaa206..549b53546c 100755 --- a/erts/configure +++ b/erts/configure -@@ -24575,10 +24575,13 @@ else $as_nop +@@ -24821,10 +24821,13 @@ else $as_nop /* end confdefs.h. */ #include @@ -26,7 +26,7 @@ index 46e882e99a..7cc6f802ce 100755 #else struct pollfd fds[1]; int fd; -@@ -24587,9 +24590,9 @@ main() +@@ -24833,9 +24836,9 @@ main() fds[0].events = POLLIN; fds[0].revents = 0; if (poll(fds, 1, 0) < 0 || (fds[0].revents & POLLNVAL) != 0) { @@ -39,10 +39,10 @@ index 46e882e99a..7cc6f802ce 100755 } diff --git a/erts/configure.ac b/erts/configure.ac -index 316345079b..439ec5d4a1 100644 +index 0d4d9377ef..296a72bacc 100644 --- a/erts/configure.ac +++ b/erts/configure.ac -@@ -3055,10 +3055,13 @@ poll_works=no +@@ -3068,10 +3068,13 @@ poll_works=no AC_RUN_IFELSE([AC_LANG_SOURCE([[ #include @@ -58,7 +58,7 @@ index 316345079b..439ec5d4a1 100644 #else struct pollfd fds[1]; int fd; -@@ -3067,9 +3070,9 @@ main() +@@ -3080,9 +3083,9 @@ main() fds[0].events = POLLIN; fds[0].revents = 0; if (poll(fds, 1, 0) < 0 || (fds[0].revents & POLLNVAL) != 0) { diff --git a/otp-0012-Revert-Do-not-install-erlang-sources.patch b/otp-0012-Revert-Do-not-install-erlang-sources.patch deleted file mode 100644 index 1a0bb85..0000000 --- a/otp-0012-Revert-Do-not-install-erlang-sources.patch +++ /dev/null @@ -1,657 +0,0 @@ -From: Peter Lemenkov -Date: Wed, 4 Jan 2023 20:49:01 +0100 -Subject: [PATCH] Revert "Do not install erlang sources" - -This reverts commit 02d89974af96987a7cbcfe9d18533d509ad33690. - -diff --git a/erts/preloaded/src/Makefile b/erts/preloaded/src/Makefile -index 007b7d44bd..1994aa1302 100644 ---- a/erts/preloaded/src/Makefile -+++ b/erts/preloaded/src/Makefile -@@ -117,6 +117,8 @@ $(APP_TARGET): $(APP_SRC) $(ERL_TOP)/erts/vsn.mk - include $(ERL_TOP)/make/otp_release_targets.mk - - release_spec: $(APP_TARGET) -+ $(INSTALL_DIR) "$(RELSYSDIR)/src" -+ $(INSTALL_DATA) $(ERL_FILES) $(BEAM_FILES) $(STUBS_FILES) "$(RELSYSDIR)/src" - $(INSTALL_DIR) "$(RELSYSDIR)/ebin" - $(INSTALL_DATA) $(STATIC_TARGET_FILES) $(APP_TARGET) "$(RELSYSDIR)/ebin" - -diff --git a/lib/asn1/src/Makefile b/lib/asn1/src/Makefile -index 77ba98c2f8..9e13d02c8a 100644 ---- a/lib/asn1/src/Makefile -+++ b/lib/asn1/src/Makefile -@@ -157,7 +157,7 @@ release_spec: opt - $(INSTALL_DIR) "$(RELSYSDIR)/ebin" - $(INSTALL_DATA) $(TARGET_FILES) $(APP_TARGET) $(APPUP_TARGET) "$(RELSYSDIR)/ebin" - $(INSTALL_DIR) "$(RELSYSDIR)/src" -- $(INSTALL_DATA) $(HRL_FILES) "$(RELSYSDIR)/src" -+ $(INSTALL_DATA) $(ERL_FILES) $(HRL_FILES) $(APP_SRC) $(APPUP_SRC) "$(RELSYSDIR)/src" - $(INSTALL_DIR) "$(RELSYSDIR)/examples" - $(INSTALL_DATA) $(EXAMPLES) "$(RELSYSDIR)/examples" - -diff --git a/lib/common_test/src/Makefile b/lib/common_test/src/Makefile -index 5bf4e50f14..00f13589f3 100644 ---- a/lib/common_test/src/Makefile -+++ b/lib/common_test/src/Makefile -@@ -157,7 +157,7 @@ include $(ERL_TOP)/make/otp_release_targets.mk - - release_spec: opt - $(INSTALL_DIR) "$(RELSYSDIR)/src" -- $(INSTALL_DATA) $(HRL_FILES) "$(RELSYSDIR)/src" -+ $(INSTALL_DATA) $(ERL_FILES) $(HRL_FILES) "$(RELSYSDIR)/src" - $(INSTALL_DIR) "$(RELSYSDIR)/ebin" - $(INSTALL_DATA) $(TARGET_FILES) "$(RELSYSDIR)/ebin" - $(INSTALL_DIR) "$(RELSYSDIR)/include" -diff --git a/lib/common_test/test_server/Makefile b/lib/common_test/test_server/Makefile -index 4e3fa5c60f..4ff5e678ee 100644 ---- a/lib/common_test/test_server/Makefile -+++ b/lib/common_test/test_server/Makefile -@@ -83,9 +83,9 @@ include $(ERL_TOP)/make/otp_release_targets.mk - - release_tests_spec: opt - $(INSTALL_DIR) "$(RELEASE_PATH)/test_server" -- $(INSTALL_DATA) $(TS_HRL_FILES) \ -+ $(INSTALL_DATA) $(TS_ERL_FILES) $(TS_HRL_FILES) \ - $(TS_TARGET_FILES) \ -- $(CONFIG) \ -+ $(AUTOCONF_FILES) $(CONFIG) \ - "$(RELEASE_PATH)/test_server" - $(INSTALL_SCRIPT) $(PROGRAMS) "$(RELEASE_PATH)/test_server" - -diff --git a/lib/compiler/src/Makefile b/lib/compiler/src/Makefile -index 4eed19b516..d801d6baa0 100644 ---- a/lib/compiler/src/Makefile -+++ b/lib/compiler/src/Makefile -@@ -188,8 +188,8 @@ include $(ERL_TOP)/make/otp_release_targets.mk - - release_spec: opt - $(INSTALL_DIR) "$(RELSYSDIR)/src" -- $(INSTALL_DATA) $(HRL_FILES) $(EXTRA_FILES) \ -- "$(RELSYSDIR)/src" -+ $(INSTALL_DATA) $(ERL_FILES) $(HRL_FILES) $(EXTRA_FILES) \ -+ $(YRL_FILE) "$(RELSYSDIR)/src" - $(INSTALL_DIR) "$(RELSYSDIR)/ebin" - $(INSTALL_DATA) $(INSTALL_FILES) "$(RELSYSDIR)/ebin" - -diff --git a/lib/crypto/src/Makefile b/lib/crypto/src/Makefile -index 6f8a329421..893f679390 100644 ---- a/lib/crypto/src/Makefile -+++ b/lib/crypto/src/Makefile -@@ -81,6 +81,8 @@ docs: - include $(ERL_TOP)/make/otp_release_targets.mk - - release_spec: opt -+ $(INSTALL_DIR) "$(RELSYSDIR)/src" -+ $(INSTALL_DATA) $(ERL_FILES) "$(RELSYSDIR)/src" - $(INSTALL_DIR) "$(RELSYSDIR)/ebin" - $(INSTALL_DATA) $(TARGET_FILES) $(APP_TARGET) \ - $(APPUP_TARGET) "$(RELSYSDIR)/ebin" -diff --git a/lib/debugger/src/Makefile b/lib/debugger/src/Makefile -index 6ddce27ec1..2fb955b2e3 100644 ---- a/lib/debugger/src/Makefile -+++ b/lib/debugger/src/Makefile -@@ -117,7 +117,7 @@ include $(ERL_TOP)/make/otp_release_targets.mk - - release_spec: opt - $(INSTALL_DIR) "$(RELSYSDIR)/src" -- $(INSTALL_DATA) $(INTERNAL_HRL_FILES) $(TOOLBOX_FILES) "$(RELSYSDIR)/src" -+ $(INSTALL_DATA) $(ERL_FILES) $(INTERNAL_HRL_FILES) $(TOOLBOX_FILES) "$(RELSYSDIR)/src" - $(INSTALL_DIR) "$(RELSYSDIR)/ebin" - $(INSTALL_DATA) $(TARGET_FILES) $(TARGET_TOOLBOX_FILES) "$(RELSYSDIR)/ebin" - -diff --git a/lib/dialyzer/src/Makefile b/lib/dialyzer/src/Makefile -index cc266f48e2..c934ecdc2b 100644 ---- a/lib/dialyzer/src/Makefile -+++ b/lib/dialyzer/src/Makefile -@@ -162,7 +162,7 @@ include $(ERL_TOP)/make/otp_release_targets.mk - - release_spec: opt - $(INSTALL_DIR) "$(RELSYSDIR)/src" -- $(INSTALL_DATA) $(HRL_FILES) $(EXTRA_FILES) \ -+ $(INSTALL_DATA) $(ERL_FILES) $(HRL_FILES) $(EXTRA_FILES) \ - "$(RELSYSDIR)/src" - $(INSTALL_DIR) "$(RELSYSDIR)/ebin" - $(INSTALL_DATA) $(INSTALL_FILES) "$(RELSYSDIR)/ebin" -diff --git a/lib/diameter/src/Makefile b/lib/diameter/src/Makefile -index 7097541548..75e23d4191 100644 ---- a/lib/diameter/src/Makefile -+++ b/lib/diameter/src/Makefile -@@ -266,8 +266,11 @@ release_spec: opt - $(MAKE) ERL_DETERMINISTIC=$(ERL_DETERMINISTIC) $(EXAMPLE_DIRS:%/=release_examples_%) - - $(TARGET_DIRS:%/=release_src_%): release_src_%: -- $(INSTALL_DATA) $(filter $*/%, $(INTERNAL_HRLS)) \ -- "$(RELSYSDIR)/src/$*" || true -+ $(INSTALL_DIR) "$(RELSYSDIR)/src/$*" -+ $(INSTALL_DATA) $(filter $*/%, $(TARGET_MODULES:%=%.erl) \ -+ $(INTERNAL_HRLS)) \ -+ $(filter $*/%, compiler/$(DICT_YRL).yrl) \ -+ "$(RELSYSDIR)/src/$*" - - $(EXAMPLE_DIRS:%/=release_examples_%): release_examples_%: - $(INSTALL_DIR) "$(RELSYSDIR)/examples/$*" -diff --git a/lib/edoc/src/Makefile b/lib/edoc/src/Makefile -index e5b2f886ed..a455662049 100644 ---- a/lib/edoc/src/Makefile -+++ b/lib/edoc/src/Makefile -@@ -87,7 +87,7 @@ release_spec: opt - $(INSTALL_DIR) "$(RELSYSDIR)/ebin" - $(INSTALL_DATA) $(OBJECTS) "$(RELSYSDIR)/ebin" - $(INSTALL_DIR) "$(RELSYSDIR)/src" -- $(INSTALL_DATA) $(HRL_FILES) "$(RELSYSDIR)/src" -+ $(INSTALL_DATA) $(SOURCES) $(HRL_FILES) $(YRL_FILE) "$(RELSYSDIR)/src" - - release_docs_spec: - -diff --git a/lib/eldap/src/Makefile b/lib/eldap/src/Makefile -index 78fc4a9687..04a84a4766 100644 ---- a/lib/eldap/src/Makefile -+++ b/lib/eldap/src/Makefile -@@ -98,9 +98,13 @@ include $(ERL_TOP)/make/otp_release_targets.mk - - release_spec: opt - $(INSTALL_DIR) "$(RELSYSDIR)/ebin" -- $(INSTALL_DATA) $(TARGET_FILES) $(APP_TARGET) $(APPUP_TARGET) "$(RELSYSDIR)/ebin" -+ $(INSTALL_DATA) $(ASN1_HRL) $(TARGET_FILES) $(APP_TARGET) $(APPUP_TARGET) "$(RELSYSDIR)/ebin" -+ $(INSTALL_DIR) "$(RELSYSDIR)/src" -+ $(INSTALL_DATA) $(ERL_FILES) "$(RELSYSDIR)/src" -+ $(INSTALL_DIR) "$(RELSYSDIR)/asn1" -+ $(INSTALL_DATA) ../asn1/$(ASN1_FILES) "$(RELSYSDIR)/asn1" - $(INSTALL_DIR) "$(RELSYSDIR)/include" -- $(INSTALL_DATA) $(HRL_FILES) "$(RELSYSDIR)/include" -+ $(INSTALL_DATA) $(EXTERNAL_HRL_FILES) "$(RELSYSDIR)/include" - - release_docs_spec: - -diff --git a/lib/erl_docgen/src/Makefile b/lib/erl_docgen/src/Makefile -index cc3368ad02..458094e35f 100644 ---- a/lib/erl_docgen/src/Makefile -+++ b/lib/erl_docgen/src/Makefile -@@ -91,6 +91,8 @@ $(APPUP_TARGET): $(APPUP_SRC) ../vsn.mk - include $(ERL_TOP)/make/otp_release_targets.mk - - release_spec: opt -+ $(INSTALL_DIR) "$(RELSYSDIR)/src" -+ $(INSTALL_DATA) $(ERL_FILES) "$(RELSYSDIR)/src" - $(INSTALL_DIR) "$(RELSYSDIR)/ebin" - $(INSTALL_DATA) $(TARGET_FILES) "$(RELSYSDIR)/ebin" - -diff --git a/lib/et/src/Makefile b/lib/et/src/Makefile -index a567965ed4..fc66cc1eaf 100644 ---- a/lib/et/src/Makefile -+++ b/lib/et/src/Makefile -@@ -109,6 +109,7 @@ release_spec: opt - $(INSTALL_DATA) $(TARGET_FILES) "$(RELSYSDIR)/ebin" - $(INSTALL_DATA) $(APP_TARGET) $(APPUP_TARGET) "$(RELSYSDIR)/ebin" - $(INSTALL_DIR) "$(RELSYSDIR)/src" -+ $(INSTALL_DATA) $(ERL_FILES) "$(RELSYSDIR)/src" - $(INSTALL_DATA) $(INTERNAL_HRL_FILES) "$(RELSYSDIR)/src" - $(INSTALL_DIR) "$(RELSYSDIR)/include" - $(INSTALL_DATA) $(HRL_FILES) "$(RELSYSDIR)/include" -diff --git a/lib/eunit/src/Makefile b/lib/eunit/src/Makefile -index 2a49a2ca7a..f4eaf6807a 100644 ---- a/lib/eunit/src/Makefile -+++ b/lib/eunit/src/Makefile -@@ -121,6 +121,7 @@ release_spec: opt - $(INSTALL_DIR) "$(RELSYSDIR)/ebin" - $(INSTALL_DATA) $(PARSE_TRANSFORM_BIN) $(OBJECTS) "$(RELSYSDIR)/ebin" - $(INSTALL_DIR) "$(RELSYSDIR)/src" -+ $(INSTALL_DATA) $(PARSE_TRANSFORM) $(SOURCES) $(BEHAVIOUR_SOURCES) "$(RELSYSDIR)/src" - $(INSTALL_DATA) $(INTERNAL_HRL_FILES) "$(RELSYSDIR)/src" - $(INSTALL_DIR) "$(RELSYSDIR)/include" - $(INSTALL_DATA) $(INCLUDE_DELIVERABLES) "$(RELSYSDIR)/include" -diff --git a/lib/inets/src/http_client/Makefile b/lib/inets/src/http_client/Makefile -index ca4b539017..62f62792f0 100644 ---- a/lib/inets/src/http_client/Makefile -+++ b/lib/inets/src/http_client/Makefile -@@ -92,7 +92,7 @@ include $(ERL_TOP)/make/otp_release_targets.mk - release_spec: opt - $(INSTALL_DIR) "$(RELSYSDIR)/src" - $(INSTALL_DIR) "$(RELSYSDIR)/src/http_client" -- $(INSTALL_DATA) $(HRL_FILES) "$(RELSYSDIR)/src/http_client" -+ $(INSTALL_DATA) $(HRL_FILES) $(ERL_FILES) "$(RELSYSDIR)/src/http_client" - $(INSTALL_DIR) "$(RELSYSDIR)/ebin" - $(INSTALL_DATA) $(TARGET_FILES) "$(RELSYSDIR)/ebin" - -diff --git a/lib/inets/src/http_lib/Makefile b/lib/inets/src/http_lib/Makefile -index 896a806695..481c4f66eb 100644 ---- a/lib/inets/src/http_lib/Makefile -+++ b/lib/inets/src/http_lib/Makefile -@@ -90,7 +90,7 @@ include $(ERL_TOP)/make/otp_release_targets.mk - release_spec: opt - $(INSTALL_DIR) "$(RELSYSDIR)/src" - $(INSTALL_DIR) "$(RELSYSDIR)/src/http_lib" -- $(INSTALL_DATA) $(HRL_FILES) "$(RELSYSDIR)/src/http_lib" -+ $(INSTALL_DATA) $(HRL_FILES) $(ERL_FILES) "$(RELSYSDIR)/src/http_lib" - $(INSTALL_DIR) "$(RELSYSDIR)/ebin" - $(INSTALL_DATA) $(TARGET_FILES) "$(RELSYSDIR)/ebin" - -diff --git a/lib/inets/src/http_server/Makefile b/lib/inets/src/http_server/Makefile -index 42925ba58f..abf8413f33 100644 ---- a/lib/inets/src/http_server/Makefile -+++ b/lib/inets/src/http_server/Makefile -@@ -134,7 +134,7 @@ include $(ERL_TOP)/make/otp_release_targets.mk - release_spec: opt - $(INSTALL_DIR) "$(RELSYSDIR)/src" - $(INSTALL_DIR) "$(RELSYSDIR)/src/http_server" -- $(INSTALL_DATA) $(HRL_FILES) "$(RELSYSDIR)/src/http_server" -+ $(INSTALL_DATA) $(HRL_FILES) $(ERL_FILES) "$(RELSYSDIR)/src/http_server" - $(INSTALL_DIR) "$(RELSYSDIR)/ebin" - $(INSTALL_DATA) $(TARGET_FILES) $(BEHAVIOUR_TARGET_FILES) "$(RELSYSDIR)/ebin" - -diff --git a/lib/inets/src/inets_app/Makefile b/lib/inets/src/inets_app/Makefile -index a8b932772a..405e86105a 100644 ---- a/lib/inets/src/inets_app/Makefile -+++ b/lib/inets/src/inets_app/Makefile -@@ -114,7 +114,7 @@ include $(ERL_TOP)/make/otp_release_targets.mk - release_spec: opt - $(INSTALL_DIR) "$(RELSYSDIR)/src" - $(INSTALL_DIR) "$(RELSYSDIR)/src/inets_app" -- $(INSTALL_DATA) $(INTERNAL_HRL_FILES) "$(RELSYSDIR)/src/inets_app" -+ $(INSTALL_DATA) $(INTERNAL_HRL_FILES) $(ERL_FILES) "$(RELSYSDIR)/src/inets_app" - $(INSTALL_DIR) "$(RELSYSDIR)/include" - $(INSTALL_DATA) $(EXTERNAL_HRL_FILES) "$(RELSYSDIR)/include" - $(INSTALL_DIR) "$(RELSYSDIR)/ebin" -diff --git a/lib/kernel/src/Makefile b/lib/kernel/src/Makefile -index 891d3e6f6a..2149e89776 100644 ---- a/lib/kernel/src/Makefile -+++ b/lib/kernel/src/Makefile -@@ -229,6 +229,7 @@ include $(ERL_TOP)/make/otp_release_targets.mk - - release_spec: opt - $(INSTALL_DIR) "$(RELSYSDIR)/src" -+ $(INSTALL_DATA) $(ERL_FILES) "$(RELSYSDIR)/src" - $(INSTALL_DATA) $(INTERNAL_HRL_FILES) "$(RELSYSDIR)/src" - $(INSTALL_DIR) "$(RELSYSDIR)/include" - $(INSTALL_DATA) $(HRL_FILES) "$(RELSYSDIR)/include" -diff --git a/lib/megaco/src/app/Makefile b/lib/megaco/src/app/Makefile -index 8cb286181a..c681b88428 100644 ---- a/lib/megaco/src/app/Makefile -+++ b/lib/megaco/src/app/Makefile -@@ -114,7 +114,7 @@ release_spec: opt - $(INSTALL_DATA) $(APP_TARGET) $(APPUP_TARGET) "$(RELSYSDIR)/ebin" - $(INSTALL_DIR) "$(RELSYSDIR)/src" - $(INSTALL_DIR) "$(RELSYSDIR)/src/app" -- $(INSTALL_DATA) $(INTERNAL_HRL_FILES) "$(RELSYSDIR)/src/app" -+ $(INSTALL_DATA) $(ERL_FILES) $(INTERNAL_HRL_FILES) "$(RELSYSDIR)/src/app" - $(INSTALL_DIR) "$(RELSYSDIR)/include" - $(INSTALL_DATA) $(EXTERNAL_HRL_FILES) "$(RELSYSDIR)/include" - -diff --git a/lib/megaco/src/binary/Makefile b/lib/megaco/src/binary/Makefile -index 3ca5654eb3..9ecb649f0c 100644 ---- a/lib/megaco/src/binary/Makefile -+++ b/lib/megaco/src/binary/Makefile -@@ -154,7 +154,7 @@ release_spec: opt - $(INSTALL_DATA) $(TARGET_FILES) "$(RELSYSDIR)/ebin" - $(INSTALL_DIR) "$(RELSYSDIR)/src" - $(INSTALL_DIR) "$(RELSYSDIR)/src/binary" -- $(INSTALL_DATA) $(HRL_FILES) "$(RELSYSDIR)/src/binary" -+ $(INSTALL_DATA) $(ERL_FILES) $(HRL_FILES) $(ASN1_FILES) "$(RELSYSDIR)/src/binary" - - - release_docs_spec: -diff --git a/lib/megaco/src/engine/Makefile b/lib/megaco/src/engine/Makefile -index b7a7c703b3..cc4974e09d 100644 ---- a/lib/megaco/src/engine/Makefile -+++ b/lib/megaco/src/engine/Makefile -@@ -102,7 +102,7 @@ release_spec: opt - $(INSTALL_DATA) $(BEHAVIOUR_TARGET_FILES) $(TARGET_FILES) "$(RELSYSDIR)/ebin" - $(INSTALL_DIR) "$(RELSYSDIR)/src" - $(INSTALL_DIR) "$(RELSYSDIR)/src/engine" -- $(INSTALL_DATA) $(INTERNAL_HRL_FILES) "$(RELSYSDIR)/src/engine" -+ $(INSTALL_DATA) $(ERL_FILES) $(INTERNAL_HRL_FILES) "$(RELSYSDIR)/src/engine" - $(INSTALL_DIR) "$(RELSYSDIR)/include" - - -diff --git a/lib/megaco/src/flex/Makefile.in b/lib/megaco/src/flex/Makefile.in -index 2053d3297b..d8c5c68b99 100644 ---- a/lib/megaco/src/flex/Makefile.in -+++ b/lib/megaco/src/flex/Makefile.in -@@ -248,6 +248,7 @@ release_spec: opt - $(INSTALL_DIR) "$(RELSYSDIR)/src/flex" - $(INSTALL_DIR) "$(RELSYSDIR)/priv/lib" - $(INSTALL_DIR) "$(RELSYSDIR)/include" -+ $(INSTALL_DATA) $(ERL_FILES) $(INTERNAL_HRL_FILES) "$(RELSYSDIR)/src/flex" - $(INSTALL_DATA) $(TARGET_FILES) "$(RELSYSDIR)/ebin" - ifeq ($(ENABLE_MEGACO_FLEX_SCANNER),true) - $(INSTALL_DATA) $(FLEX_FILES) "$(RELSYSDIR)/src/flex" -diff --git a/lib/megaco/src/tcp/Makefile b/lib/megaco/src/tcp/Makefile -index 85cfb4b4ee..ef4232244a 100644 ---- a/lib/megaco/src/tcp/Makefile -+++ b/lib/megaco/src/tcp/Makefile -@@ -94,7 +94,7 @@ release_spec: opt - $(INSTALL_DATA) $(TARGET_FILES) "$(RELSYSDIR)/ebin" - $(INSTALL_DIR) "$(RELSYSDIR)/src" - $(INSTALL_DIR) "$(RELSYSDIR)/src/tcp" -- $(INSTALL_DATA) $(INTERNAL_HRL_FILES) "$(RELSYSDIR)/src/tcp" -+ $(INSTALL_DATA) $(ERL_FILES) $(INTERNAL_HRL_FILES) "$(RELSYSDIR)/src/tcp" - - - release_docs_spec: -diff --git a/lib/megaco/src/text/Makefile b/lib/megaco/src/text/Makefile -index a097be4d48..6872b0ec04 100644 ---- a/lib/megaco/src/text/Makefile -+++ b/lib/megaco/src/text/Makefile -@@ -133,7 +133,7 @@ release_spec: opt - $(INSTALL_DATA) $(BEAM_TARGET_FILES) "$(RELSYSDIR)/ebin" - $(INSTALL_DIR) "$(RELSYSDIR)/src" - $(INSTALL_DIR) "$(RELSYSDIR)/src/text" -- $(INSTALL_DATA) $(INTERNAL_HRL_FILES) "$(RELSYSDIR)/src/text" -+ $(INSTALL_DATA) $(ERL_FILES) $(INTERNAL_YRL_FILES) $(INTERNAL_HRL_FILES) "$(RELSYSDIR)/src/text" - - - release_docs_spec: -diff --git a/lib/megaco/src/udp/Makefile b/lib/megaco/src/udp/Makefile -index f8dcb5c681..5699c3e952 100644 ---- a/lib/megaco/src/udp/Makefile -+++ b/lib/megaco/src/udp/Makefile -@@ -94,7 +94,7 @@ release_spec: opt - $(INSTALL_DATA) $(TARGET_FILES) "$(RELSYSDIR)/ebin" - $(INSTALL_DIR) "$(RELSYSDIR)/src" - $(INSTALL_DIR) "$(RELSYSDIR)/src/udp" -- $(INSTALL_DATA) $(INTERNAL_HRL_FILES) "$(RELSYSDIR)/src/udp" -+ $(INSTALL_DATA) $(ERL_FILES) $(INTERNAL_HRL_FILES) "$(RELSYSDIR)/src/udp" - - - release_docs_spec: -diff --git a/lib/mnesia/src/Makefile b/lib/mnesia/src/Makefile -index 08c6c5ffc1..72aa054fb3 100644 ---- a/lib/mnesia/src/Makefile -+++ b/lib/mnesia/src/Makefile -@@ -135,7 +135,7 @@ include $(ERL_TOP)/make/otp_release_targets.mk - - release_spec: opt - $(INSTALL_DIR) "$(RELSYSDIR)/src" -- $(INSTALL_DATA) $(HRL_FILES) "$(RELSYSDIR)/src" -+ $(INSTALL_DATA) $(HRL_FILES) $(ERL_FILES) "$(RELSYSDIR)/src" - $(INSTALL_DIR) "$(RELSYSDIR)/ebin" - $(INSTALL_DATA) $(TARGET_FILES) "$(RELSYSDIR)/ebin" - -diff --git a/lib/observer/src/Makefile b/lib/observer/src/Makefile -index 884e69c7b7..2edb2ceb3e 100644 ---- a/lib/observer/src/Makefile -+++ b/lib/observer/src/Makefile -@@ -151,6 +151,7 @@ include $(ERL_TOP)/make/otp_release_targets.mk - - release_spec: opt - $(INSTALL_DIR) "$(RELSYSDIR)/src" -+ $(INSTALL_DATA) $(ERL_FILES) "$(RELSYSDIR)/src" - $(INSTALL_DATA) $(INTERNAL_HRL_FILES) "$(RELSYSDIR)/src" - $(INSTALL_DIR) "$(RELSYSDIR)/examples" - $(INSTALL_DATA) $(EXAMPLE_FILES) "$(RELSYSDIR)/examples" -diff --git a/lib/odbc/src/Makefile b/lib/odbc/src/Makefile -index fa01850f38..e18628e94d 100644 ---- a/lib/odbc/src/Makefile -+++ b/lib/odbc/src/Makefile -@@ -110,7 +110,7 @@ include $(ERL_TOP)/make/otp_release_targets.mk - - release_spec: opt - $(INSTALL_DIR) "$(RELSYSDIR)/src" -- $(INSTALL_DATA) $(HRL_FILES) "$(RELSYSDIR)/src" -+ $(INSTALL_DATA) $(ERL_FILES) $(HRL_FILES) "$(RELSYSDIR)/src" - $(INSTALL_DIR) "$(RELSYSDIR)/include" - $(INSTALL_DATA) $(EXT_HRL_FILES) "$(RELSYSDIR)/include" - $(INSTALL_DIR) "$(RELSYSDIR)/ebin" -diff --git a/lib/os_mon/src/Makefile b/lib/os_mon/src/Makefile -index 2413fb68bf..ee32f3946f 100644 ---- a/lib/os_mon/src/Makefile -+++ b/lib/os_mon/src/Makefile -@@ -105,6 +105,7 @@ include $(ERL_TOP)/make/otp_release_targets.mk - - release_spec: opt - $(INSTALL_DIR) "$(RELSYSDIR)/src" -+ $(INSTALL_DATA) $(ERL_FILES) "$(RELSYSDIR)/src" - $(INSTALL_DATA) $(HRL_FILES) "$(RELSYSDIR)/src" - $(INSTALL_DIR) "$(RELSYSDIR)/ebin" - $(INSTALL_DATA) $(TARGET_FILES) "$(RELSYSDIR)/ebin" -diff --git a/lib/parsetools/src/Makefile b/lib/parsetools/src/Makefile -index f6024f1184..c7971750a7 100644 ---- a/lib/parsetools/src/Makefile -+++ b/lib/parsetools/src/Makefile -@@ -91,6 +91,8 @@ $(APPUP_TARGET): $(APPUP_SRC) ../vsn.mk - include $(ERL_TOP)/make/otp_release_targets.mk - - release_spec: opt -+ $(INSTALL_DIR) "$(RELSYSDIR)/src" -+ $(INSTALL_DATA) $(ERL_FILES) "$(RELSYSDIR)/src" - $(INSTALL_DIR) "$(RELSYSDIR)/ebin" - $(INSTALL_DATA) $(TARGET_FILES) "$(RELSYSDIR)/ebin" - $(INSTALL_DIR) "$(RELSYSDIR)/include" -diff --git a/lib/public_key/asn1/Makefile b/lib/public_key/asn1/Makefile -index bba7cae5d6..c1adf58ed4 100644 ---- a/lib/public_key/asn1/Makefile -+++ b/lib/public_key/asn1/Makefile -@@ -103,6 +103,8 @@ release_spec: opt - $(INSTALL_DIR) "$(RELSYSDIR)/asn1" - $(INSTALL_DATA) $(ASN_ASNS) $(ASN_CONFIGS) \ - "$(RELSYSDIR)/asn1" -+ $(INSTALL_DIR) "$(RELSYSDIR)/src" -+ $(INSTALL_DATA) $(ASN_ERLS) "$(RELSYSDIR)/src" - $(INSTALL_DIR) "$(RELSYSDIR)/ebin" - $(INSTALL_DATA) $(TARGET_FILES) "$(RELSYSDIR)/ebin" - -diff --git a/lib/public_key/src/Makefile b/lib/public_key/src/Makefile -index a5dcba4ec3..9b2b442794 100644 ---- a/lib/public_key/src/Makefile -+++ b/lib/public_key/src/Makefile -@@ -111,6 +111,8 @@ $(APPUP_TARGET): $(APPUP_SRC) ../vsn.mk - include $(ERL_TOP)/make/otp_release_targets.mk - - release_spec: opt -+ $(INSTALL_DIR) "$(RELSYSDIR)/src" -+ $(INSTALL_DATA) $(INTERNAL_HRL_FILES) $(ERL_FILES) "$(RELSYSDIR)/src" - $(INSTALL_DIR) "$(RELSYSDIR)/include" - $(INSTALL_DATA) $(HRL_FILES) "$(RELSYSDIR)/include" - $(INSTALL_DIR) "$(RELSYSDIR)/ebin" -diff --git a/lib/reltool/src/Makefile b/lib/reltool/src/Makefile -index 6864febbc3..173a557d58 100644 ---- a/lib/reltool/src/Makefile -+++ b/lib/reltool/src/Makefile -@@ -100,7 +100,7 @@ include $(ERL_TOP)/make/otp_release_targets.mk - - release_spec: opt - $(INSTALL_DIR) "$(RELSYSDIR)/src" -- $(INSTALL_DATA) $(INTERNAL_HRL_FILES) "$(RELSYSDIR)/src" -+ $(INSTALL_DATA) $(INTERNAL_HRL_FILES) $(ERL_FILES) "$(RELSYSDIR)/src" - $(INSTALL_DIR) "$(RELSYSDIR)/ebin" - $(INSTALL_DATA) $(TARGET_FILES) "$(RELSYSDIR)/ebin" - $(INSTALL_DATA) $(APP_TARGET) $(APPUP_TARGET) "$(RELSYSDIR)/ebin" -diff --git a/lib/runtime_tools/src/Makefile b/lib/runtime_tools/src/Makefile -index 6e380e1b11..8e8c4074f5 100644 ---- a/lib/runtime_tools/src/Makefile -+++ b/lib/runtime_tools/src/Makefile -@@ -99,6 +99,8 @@ docs: - include $(ERL_TOP)/make/otp_release_targets.mk - - release_spec: opt -+ $(INSTALL_DIR) "$(RELSYSDIR)/src" -+ $(INSTALL_DATA) $(ERL_FILES) "$(RELSYSDIR)/src" - $(INSTALL_DIR) "$(RELSYSDIR)/include" - $(INSTALL_DATA) $(HRL_FILES) "$(RELSYSDIR)/include" - $(INSTALL_DIR) "$(RELSYSDIR)/examples" -diff --git a/lib/sasl/src/Makefile b/lib/sasl/src/Makefile -index 739830ae3f..490e03595d 100644 ---- a/lib/sasl/src/Makefile -+++ b/lib/sasl/src/Makefile -@@ -94,6 +94,7 @@ include $(ERL_TOP)/make/otp_release_targets.mk - - release_spec: opt - $(INSTALL_DIR) "$(RELSYSDIR)/src" -+ $(INSTALL_DATA) $(ERL_FILES) "$(RELSYSDIR)/src" - $(INSTALL_DATA) $(INTERNAL_HRL_FILES) "$(RELSYSDIR)/src" - $(INSTALL_DIR) "$(RELSYSDIR)/ebin" - $(INSTALL_DATA) $(TARGET_FILES) "$(RELSYSDIR)/ebin" -diff --git a/lib/snmp/src/agent/Makefile.in b/lib/snmp/src/agent/Makefile.in -index 14ae0bbc79..6ab9ed437a 100644 ---- a/lib/snmp/src/agent/Makefile.in -+++ b/lib/snmp/src/agent/Makefile.in -@@ -161,7 +161,7 @@ include $(ERL_TOP)/make/otp_release_targets.mk - release_spec: opt - $(INSTALL_DIR) "$(RELSYSDIR)/src" - $(INSTALL_DIR) "$(RELSYSDIR)/src/agent" -- $(INSTALL_DATA) $(HRL_FILES) "$(RELSYSDIR)/src/agent" -+ $(INSTALL_DATA) $(ERL_FILES) $(HRL_FILES) "$(RELSYSDIR)/src/agent" - $(INSTALL_DIR) "$(RELSYSDIR)/ebin" - $(INSTALL_DATA) $(BEHAVIOUR_TARGET_FILES) $(TARGET_FILES) $(APP_TARGET) $(APPUP_TARGET) \ - "$(RELSYSDIR)/ebin" -diff --git a/lib/snmp/src/app/Makefile b/lib/snmp/src/app/Makefile -index 0340088eb3..f5a74aa78e 100644 ---- a/lib/snmp/src/app/Makefile -+++ b/lib/snmp/src/app/Makefile -@@ -144,7 +144,7 @@ include $(ERL_TOP)/make/otp_release_targets.mk - release_spec: opt - $(INSTALL_DIR) "$(RELSYSDIR)/src" - $(INSTALL_DIR) "$(RELSYSDIR)/src/app" -- $(INSTALL_DATA) $(HRL_FILES) "$(RELSYSDIR)/src/app" -+ $(INSTALL_DATA) $(ERL_FILES) $(HRL_FILES) "$(RELSYSDIR)/src/app" - $(INSTALL_DIR) "$(RELSYSDIR)/ebin" - $(INSTALL_DATA) $(TARGET_FILES) $(APP_TARGET) $(APPUP_TARGET) \ - "$(RELSYSDIR)/ebin" -diff --git a/lib/snmp/src/compile/Makefile b/lib/snmp/src/compile/Makefile -index 04232658c7..f255237a04 100644 ---- a/lib/snmp/src/compile/Makefile -+++ b/lib/snmp/src/compile/Makefile -@@ -141,7 +141,7 @@ include $(ERL_TOP)/make/otp_release_targets.mk - release_spec: opt - $(INSTALL_DIR) "$(RELSYSDIR)/src" - $(INSTALL_DIR) "$(RELSYSDIR)/src/compiler" -- $(INSTALL_DATA) $(INTERNAL_HRL_FILES) "$(RELSYSDIR)/src/compiler" -+ $(INSTALL_DATA) $(ESCRIPT_SRC) $(PARSER_SRC) $(ERL_FILES) $(INTERNAL_HRL_FILES) "$(RELSYSDIR)/src/compiler" - $(INSTALL_DIR) "$(RELSYSDIR)/ebin" - $(INSTALL_DATA) $(EBIN_FILES) "$(RELSYSDIR)/ebin" - $(INSTALL_DIR) "$(RELSYSDIR)/bin" -diff --git a/lib/snmp/src/manager/Makefile b/lib/snmp/src/manager/Makefile -index 61b8dc4692..693ef75469 100644 ---- a/lib/snmp/src/manager/Makefile -+++ b/lib/snmp/src/manager/Makefile -@@ -135,7 +135,7 @@ include $(ERL_TOP)/make/otp_release_targets.mk - release_spec: opt - $(INSTALL_DIR) "$(RELSYSDIR)/src" - $(INSTALL_DIR) "$(RELSYSDIR)/src/manager" -- $(INSTALL_DATA) $(HRL_FILES) "$(RELSYSDIR)/src/manager" -+ $(INSTALL_DATA) $(ERL_FILES) $(HRL_FILES) "$(RELSYSDIR)/src/manager" - $(INSTALL_DIR) "$(RELSYSDIR)/ebin" - $(INSTALL_DATA) $(BEHAVIOUR_TARGET_FILES) $(TARGET_FILES) "$(RELSYSDIR)/ebin" - # $(INSTALL_DIR) "$(RELSYSDIR)/include" -diff --git a/lib/snmp/src/misc/Makefile b/lib/snmp/src/misc/Makefile -index 8dc421d2a1..e92506e855 100644 ---- a/lib/snmp/src/misc/Makefile -+++ b/lib/snmp/src/misc/Makefile -@@ -125,7 +125,7 @@ include $(ERL_TOP)/make/otp_release_targets.mk - release_spec: opt - $(INSTALL_DIR) "$(RELSYSDIR)/src" - $(INSTALL_DIR) "$(RELSYSDIR)/src/misc" -- $(INSTALL_DATA) $(HRL_FILES) "$(RELSYSDIR)/src/misc" -+ $(INSTALL_DATA) $(ERL_FILES) $(HRL_FILES) "$(RELSYSDIR)/src/misc" - $(INSTALL_DIR) "$(RELSYSDIR)/ebin" - $(INSTALL_DATA) $(TARGET_FILES) "$(RELSYSDIR)/ebin" - # $(INSTALL_DIR) "$(RELSYSDIR)/include" -diff --git a/lib/ssh/src/Makefile b/lib/ssh/src/Makefile -index 2c7acf384d..2fcb164301 100644 ---- a/lib/ssh/src/Makefile -+++ b/lib/ssh/src/Makefile -@@ -182,7 +182,7 @@ include $(ERL_TOP)/make/otp_release_targets.mk - - release_spec: opt - $(INSTALL_DIR) "$(RELSYSDIR)/src" -- $(INSTALL_DATA) $(INTERNAL_HRL_FILES) "$(RELSYSDIR)/src" -+ $(INSTALL_DATA) $(INTERNAL_HRL_FILES) $(ERL_FILES) "$(RELSYSDIR)/src" - $(INSTALL_DIR) "$(RELSYSDIR)/ebin" - $(INSTALL_DATA) $(BEHAVIOUR_TARGET_FILES) $(TARGET_FILES) $(APP_TARGET) \ - $(APPUP_TARGET) "$(RELSYSDIR)/ebin" -diff --git a/lib/ssl/src/Makefile b/lib/ssl/src/Makefile -index 9cd7f7226c..789bed5c3f 100644 ---- a/lib/ssl/src/Makefile -+++ b/lib/ssl/src/Makefile -@@ -211,7 +211,7 @@ include $(ERL_TOP)/make/otp_release_targets.mk - - release_spec: opt - $(INSTALL_DIR) "$(RELSYSDIR)/src" -- $(INSTALL_DATA) $(INTERNAL_HRL_FILES) "$(RELSYSDIR)/src" -+ $(INSTALL_DATA) $(ERL_FILES) $(INTERNAL_HRL_FILES) "$(RELSYSDIR)/src" - $(INSTALL_DIR) "$(RELSYSDIR)/ebin" - $(INSTALL_DATA) $(BEHAVIOUR_TARGET_FILES) $(TARGET_FILES) $(APP_TARGET) \ - $(APPUP_TARGET) "$(RELSYSDIR)/ebin" -diff --git a/lib/stdlib/src/Makefile b/lib/stdlib/src/Makefile -index 43e7a650a5..761d6c4c28 100644 ---- a/lib/stdlib/src/Makefile -+++ b/lib/stdlib/src/Makefile -@@ -230,6 +230,7 @@ include $(ERL_TOP)/make/otp_release_targets.mk - - release_spec: opt - $(INSTALL_DIR) "$(RELSYSDIR)/src" -+ $(INSTALL_DATA) $(ERL_FILES) erl_parse.yrl "$(RELSYSDIR)/src" - $(INSTALL_DATA) $(INTERNAL_HRL_FILES) "$(RELSYSDIR)/src" - $(INSTALL_DIR) "$(RELSYSDIR)/include" - $(INSTALL_DATA) $(HRL_FILES) "$(RELSYSDIR)/include" -diff --git a/lib/syntax_tools/src/Makefile b/lib/syntax_tools/src/Makefile -index 5bb265e2c2..dc0ac61734 100644 ---- a/lib/syntax_tools/src/Makefile -+++ b/lib/syntax_tools/src/Makefile -@@ -96,6 +96,8 @@ include $(ERL_TOP)/make/otp_release_targets.mk - release_spec: opt - $(INSTALL_DIR) "$(RELSYSDIR)/ebin" - $(INSTALL_DATA) $(OBJECTS) "$(RELSYSDIR)/ebin" -+ $(INSTALL_DIR) "$(RELSYSDIR)/src" -+ $(INSTALL_DATA) $(SOURCES) "$(RELSYSDIR)/src" - $(INSTALL_DIR) "$(RELSYSDIR)/include" - $(INSTALL_DATA) $(INCLUDE_DELIVERABLES) "$(RELSYSDIR)/include" - -diff --git a/lib/tftp/src/Makefile b/lib/tftp/src/Makefile -index fba9cc5873..cfcb1ea134 100644 ---- a/lib/tftp/src/Makefile -+++ b/lib/tftp/src/Makefile -@@ -101,7 +101,7 @@ include $(ERL_TOP)/make/otp_release_targets.mk - - release_spec: opt - $(INSTALL_DIR) "$(RELSYSDIR)/src" -- $(INSTALL_DATA) $(HRL_FILES) "$(RELSYSDIR)/src" -+ $(INSTALL_DATA) $(ERL_FILES) $(HRL_FILES) "$(RELSYSDIR)/src" - $(INSTALL_DIR) "$(RELSYSDIR)/ebin" - $(INSTALL_DATA) $(BEHAVIOUR_TARGET_FILES) $(TARGET_FILES) $(APP_TARGET) \ - $(APPUP_TARGET) "$(RELSYSDIR)/ebin" -diff --git a/lib/tools/src/Makefile b/lib/tools/src/Makefile -index f8d143922d..b05ce883ec 100644 ---- a/lib/tools/src/Makefile -+++ b/lib/tools/src/Makefile -@@ -109,7 +109,7 @@ include $(ERL_TOP)/make/otp_release_targets.mk - - release_spec: opt - $(INSTALL_DIR) "$(RELSYSDIR)/src" -- $(INSTALL_DATA) $(HRL_FILES) "$(RELSYSDIR)/src" -+ $(INSTALL_DATA) $(ERL_FILES) $(YRL_FILE) $(HRL_FILES) "$(RELSYSDIR)/src" - $(INSTALL_DIR) "$(RELSYSDIR)/ebin" - $(INSTALL_DATA) $(TARGET_FILES) $(APP_TARGET) $(APPUP_TARGET) \ - "$(RELSYSDIR)/ebin" -diff --git a/lib/wx/src/Makefile b/lib/wx/src/Makefile -index f052399c0f..ce14c0b6df 100644 ---- a/lib/wx/src/Makefile -+++ b/lib/wx/src/Makefile -@@ -121,9 +121,9 @@ $(EBIN)/%.beam: $(EGEN)/%.erl $(HEADER_FILES) - include $(ERL_TOP)/make/otp_release_targets.mk - release_spec: opt - $(INSTALL_DIR) "$(RELSYSDIR)/src" -- $(INSTALL_DATA) $(HRL_FILES) "$(RELSYSDIR)/src" -+ $(INSTALL_DATA) $(HRL_FILES) $(ERL_FILES) "$(RELSYSDIR)/src" - $(INSTALL_DIR) "$(RELSYSDIR)/src/gen" -- $(INSTALL_DATA) $(GEN_HRL) "$(RELSYSDIR)/src/gen" -+ $(INSTALL_DATA) $(GEN_HRL) $(GEN_FILES) "$(RELSYSDIR)/src/gen" - $(INSTALL_DIR) "$(RELSYSDIR)/include" - $(INSTALL_DATA) $(EXT_HRL) "$(RELSYSDIR)/include" - $(INSTALL_DIR) "$(RELSYSDIR)/ebin" -diff --git a/lib/xmerl/src/Makefile b/lib/xmerl/src/Makefile -index 37b7843605..e7e7c8e978 100644 ---- a/lib/xmerl/src/Makefile -+++ b/lib/xmerl/src/Makefile -@@ -223,7 +223,9 @@ release_spec: opt - $(INSTALL_DIR) "$(RELSYSDIR)/ebin" - $(INSTALL_DATA) $(TARGET_FILES) "$(RELSYSDIR)/ebin" - $(INSTALL_DIR) "$(RELSYSDIR)/src" -- $(INSTALL_DATA) $(INTERNAL_HRL_FILES) "$(RELSYSDIR)/src" -+ $(INSTALL_DATA) $(ERL_FILES) $(INTERNAL_HRL_FILES) $(APP_SRC) $(APPUP_SRC) "$(RELSYSDIR)/src" -+ $(INSTALL_DATA) xmerl_xpath_parse.yrl "$(RELSYSDIR)/src" -+ $(INSTALL_DATA) xmerl_b64Bin.yrl "$(RELSYSDIR)/src" - $(INSTALL_DIR) "$(RELSYSDIR)/include" - $(INSTALL_DATA) $(HRL_FILES) "$(RELSYSDIR)/include" - diff --git a/sources b/sources index 74779cc..7ba9b4b 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (otp-OTP-25.3.2.tar.gz) = d307d59708da8e6f233ec60292925fc9c0f4c1aaf14643790b7ead27ae858ac14bab7356c926055872df63500eac117db31b0b69cc0416a5f535b0443cda457d +SHA512 (otp-OTP-26.0.tar.gz) = 732e259f2018102b62a5d8076953a6a78d3e1f1714edde2c306fe863e5377b9a7f87052e03e92df93eea270a608b29ab4e22d5841d1314f9a532dac4aeff5436 From 91e2729af1ab566845ee13023e2b49fab63b1d9a Mon Sep 17 00:00:00 2001 From: Peter Lemenkov Date: Fri, 9 Jun 2023 11:05:15 +0200 Subject: [PATCH 093/135] Erlang ver. 26.0.1 Signed-off-by: Peter Lemenkov --- erlang.spec | 5 ++++- sources | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/erlang.spec b/erlang.spec index bb2da74..a0c598e 100644 --- a/erlang.spec +++ b/erlang.spec @@ -68,7 +68,7 @@ Name: erlang -Version: 26.0 +Version: 26.0.1 Release: 1%{?dist} Summary: General-purpose programming language and runtime environment @@ -1968,6 +1968,9 @@ useradd -r -g epmd -d /dev/null -s /sbin/nologin \ %changelog +* Fri Jun 9 2023 Peter Lemenkov - 26.0.1-1 +- Ver. 26.0.1 + * Sat May 20 2023 Peter Lemenkov - 26.0-1 - Ver. 26.0 diff --git a/sources b/sources index 7ba9b4b..fb8d706 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (otp-OTP-26.0.tar.gz) = 732e259f2018102b62a5d8076953a6a78d3e1f1714edde2c306fe863e5377b9a7f87052e03e92df93eea270a608b29ab4e22d5841d1314f9a532dac4aeff5436 +SHA512 (otp-OTP-26.0.1.tar.gz) = d4fcfa6dede0f655fbed12ea795af44863f29b6e5a7a537d06c7a97d49c533eeb280e21fb6c9034c6e08c01a87bf036ea83dfd586f442461e6842ebf530feb2b From 88f5e377f10cd79bdc642fa8815a9bcf1c4a72f1 Mon Sep 17 00:00:00 2001 From: Peter Lemenkov Date: Sat, 1 Jul 2023 18:24:25 +0200 Subject: [PATCH 094/135] Erlang ver. 26.0.2 Signed-off-by: Peter Lemenkov --- erlang.spec | 5 ++++- sources | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/erlang.spec b/erlang.spec index a0c598e..bfb7fa7 100644 --- a/erlang.spec +++ b/erlang.spec @@ -68,7 +68,7 @@ Name: erlang -Version: 26.0.1 +Version: 26.0.2 Release: 1%{?dist} Summary: General-purpose programming language and runtime environment @@ -1968,6 +1968,9 @@ useradd -r -g epmd -d /dev/null -s /sbin/nologin \ %changelog +* Sat Jul 1 2023 Peter Lemenkov - 26.0.2-1 +- Ver. 26.0.2 + * Fri Jun 9 2023 Peter Lemenkov - 26.0.1-1 - Ver. 26.0.1 diff --git a/sources b/sources index fb8d706..e0f0ac9 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (otp-OTP-26.0.1.tar.gz) = d4fcfa6dede0f655fbed12ea795af44863f29b6e5a7a537d06c7a97d49c533eeb280e21fb6c9034c6e08c01a87bf036ea83dfd586f442461e6842ebf530feb2b +SHA512 (otp-OTP-26.0.2.tar.gz) = 9bbf1099e902e10000c218c24dd510e2432659c50fe9b795c67f5bf61b243127aeb44ff60d62a9a3cdfce9d23ec97ae5d154690df99c2d781199f68b124eb44c From ae03c451da60998a96472615a8e233cf0e033aa3 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Wed, 19 Jul 2023 18:38:57 +0000 Subject: [PATCH 095/135] Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- erlang.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/erlang.spec b/erlang.spec index bfb7fa7..9572a2e 100644 --- a/erlang.spec +++ b/erlang.spec @@ -69,7 +69,7 @@ Name: erlang Version: 26.0.2 -Release: 1%{?dist} +Release: 2%{?dist} Summary: General-purpose programming language and runtime environment License: ASL 2.0 @@ -1968,6 +1968,9 @@ useradd -r -g epmd -d /dev/null -s /sbin/nologin \ %changelog +* Wed Jul 19 2023 Fedora Release Engineering - 26.0.2-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + * Sat Jul 1 2023 Peter Lemenkov - 26.0.2-1 - Ver. 26.0.2 From 2489ccddf94b294df87f22a8580b08d29f6d2d07 Mon Sep 17 00:00:00 2001 From: Peter Lemenkov Date: Tue, 8 Aug 2023 17:52:30 +0200 Subject: [PATCH 096/135] Reenable OpenSSL 3 Signed-off-by: Peter Lemenkov --- erlang.spec | 23 +- ...ate_key-3-for-ecdh-to-only-use-OpenS.patch | 215 +++++ ...ssl_BN_param_from_bin_sz-to-not-abus.patch | 102 +++ ...-enable-FIPS_SUPPORT-for-HAS_3_0_API.patch | 22 + ...IPS-bug-in-check_pkey_algorithm_type.patch | 18 + ...nge-to-longer-dss-keys-acceptable-to.patch | 28 + ...Remove-sha-1-as-hash-for-dss-if-FIPS.patch | 33 + ...ove-md5-ripemd160-and-sha-as-hash-fo.patch | 24 + ...-generate-ec-key-by-name-if-possible.patch | 284 ++++++ ...rypto_SUITE-Skip-sha-1-sign-for-FIPS.patch | 59 ++ ...0-crypto-Unalias-some-ec-curve-names.patch | 806 ++++++++++++++++++ ...Skip-ec-curves-with-224-bits-if-FIPS.patch | 78 ++ ...ITE-Fix-safe-primes-for-DH-with-FIPS.patch | 37 + ...o-Skip-entire-engine_SUITE-if-notsup.patch | 53 ++ ...ypto-Fix-doc-for-FIPS-with-OpenSSL-3.patch | 21 + 15 files changed, 1800 insertions(+), 3 deletions(-) create mode 100644 otp-0011-crypto-Fix-generate_key-3-for-ecdh-to-only-use-OpenS.patch create mode 100644 otp-0012-crypto-Fix-get_ossl_BN_param_from_bin_sz-to-not-abus.patch create mode 100644 otp-0013-crypto-Re-enable-FIPS_SUPPORT-for-HAS_3_0_API.patch create mode 100644 otp-0014-crypto-Fix-FIPS-bug-in-check_pkey_algorithm_type.patch create mode 100644 otp-0015-crypto_SUITE-Change-to-longer-dss-keys-acceptable-to.patch create mode 100644 otp-0016-crypto_SUITE-Remove-sha-1-as-hash-for-dss-if-FIPS.patch create mode 100644 otp-0017-crypto_SUITE-Remove-md5-ripemd160-and-sha-as-hash-fo.patch create mode 100644 otp-0018-crypto-Try-generate-ec-key-by-name-if-possible.patch create mode 100644 otp-0019-crypto_SUITE-Skip-sha-1-sign-for-FIPS.patch create mode 100644 otp-0020-crypto-Unalias-some-ec-curve-names.patch create mode 100644 otp-0021-crypto_SUITE-Skip-ec-curves-with-224-bits-if-FIPS.patch create mode 100644 otp-0022-crypto_SUITE-Fix-safe-primes-for-DH-with-FIPS.patch create mode 100644 otp-0023-crypto-Skip-entire-engine_SUITE-if-notsup.patch create mode 100644 otp-0024-crypto-Fix-doc-for-FIPS-with-OpenSSL-3.patch diff --git a/erlang.spec b/erlang.spec index 9572a2e..da51e3b 100644 --- a/erlang.spec +++ b/erlang.spec @@ -69,7 +69,7 @@ Name: erlang Version: 26.0.2 -Release: 2%{?dist} +Release: 3%{?dist} Summary: General-purpose programming language and runtime environment License: ASL 2.0 @@ -110,6 +110,20 @@ Patch7: otp-0007-Avoid-forking-sed-to-get-basename.patch Patch8: otp-0008-Load-man-pages-from-system-wide-directory.patch Patch9: otp-0009-configure.ac-C99-fix-for-ERTS___AFTER_MORECORE_HOOK_.patch Patch10: otp-0010-configure.ac-C99-fixes-for-poll_works-check.patch +Patch11: otp-0011-crypto-Fix-generate_key-3-for-ecdh-to-only-use-OpenS.patch +Patch12: otp-0012-crypto-Fix-get_ossl_BN_param_from_bin_sz-to-not-abus.patch +Patch13: otp-0013-crypto-Re-enable-FIPS_SUPPORT-for-HAS_3_0_API.patch +Patch14: otp-0014-crypto-Fix-FIPS-bug-in-check_pkey_algorithm_type.patch +Patch15: otp-0015-crypto_SUITE-Change-to-longer-dss-keys-acceptable-to.patch +Patch16: otp-0016-crypto_SUITE-Remove-sha-1-as-hash-for-dss-if-FIPS.patch +Patch17: otp-0017-crypto_SUITE-Remove-md5-ripemd160-and-sha-as-hash-fo.patch +Patch18: otp-0018-crypto-Try-generate-ec-key-by-name-if-possible.patch +Patch19: otp-0019-crypto_SUITE-Skip-sha-1-sign-for-FIPS.patch +Patch20: otp-0020-crypto-Unalias-some-ec-curve-names.patch +Patch21: otp-0021-crypto_SUITE-Skip-ec-curves-with-224-bits-if-FIPS.patch +Patch22: otp-0022-crypto_SUITE-Fix-safe-primes-for-DH-with-FIPS.patch +Patch23: otp-0023-crypto-Skip-entire-engine_SUITE-if-notsup.patch +Patch24: otp-0024-crypto-Fix-doc-for-FIPS-with-OpenSSL-3.patch # end of autogenerated patch tag list BuildRequires: gcc @@ -245,10 +259,10 @@ A byte code compiler for Erlang which produces highly compact code. %package crypto Summary: Cryptographical support -#BuildRequires: pkgconfig(openssl) +BuildRequires: pkgconfig(openssl) # FIXME there is something wrong with OpenSSL 3.0 support in Erlang right now. # We have to fallback to OpenSSL1 explicitly. -BuildRequires: openssl1.1-devel +# BuildRequires: openssl1.1-devel Requires: %{name}-erts%{?_isa} = %{version}-%{release} Requires: %{name}-kernel%{?_isa} = %{version}-%{release} Requires: %{name}-stdlib%{?_isa} = %{version}-%{release} @@ -1968,6 +1982,9 @@ useradd -r -g epmd -d /dev/null -s /sbin/nologin \ %changelog +* Tue Aug 8 2023 Peter Lemenkov - 26.0.2-3 +- Reenable OpenSSL 3 + * Wed Jul 19 2023 Fedora Release Engineering - 26.0.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild diff --git a/otp-0011-crypto-Fix-generate_key-3-for-ecdh-to-only-use-OpenS.patch b/otp-0011-crypto-Fix-generate_key-3-for-ecdh-to-only-use-OpenS.patch new file mode 100644 index 0000000..ca059e6 --- /dev/null +++ b/otp-0011-crypto-Fix-generate_key-3-for-ecdh-to-only-use-OpenS.patch @@ -0,0 +1,215 @@ +From: Sverker Eriksson +Date: Wed, 7 Jun 2023 18:52:46 +0200 +Subject: [PATCH] crypto: Fix generate_key/3 for ecdh to only use OpenSSL 3.0 + API + +to prepare for using FIPS on OpenSSL 3.0 + +diff --git a/lib/crypto/c_src/Makefile.in b/lib/crypto/c_src/Makefile.in +index 2345970fa9..28f7b595e8 100644 +--- a/lib/crypto/c_src/Makefile.in ++++ b/lib/crypto/c_src/Makefile.in +@@ -205,9 +205,9 @@ $(LIBDIR)/otp_test_engine$(TYPEMARKER).dll: $(TEST_ENGINE_OBJS) + $(V_LD) $(LDFLAGS) -o $@ $(SSL_DED_LD_RUNTIME_LIBRARY_PATH) -L$(SSL_LIBDIR) $(TEST_ENGINE_OBJS) -l$(SSL_CRYPTO_LIBNAME) -l$(SSL_SSL_LIBNAME) $(SSL_EXTRA_LIBS) + endif + +-$(OBJDIR)/ec$(TYPEMARKER).o: ec.c +- $(V_at)$(INSTALL_DIR) $(OBJDIR) +- $(V_CC) -c -o $@ $(ALL_CFLAGS) $(CRYPTO_NO_DEPRECATE_WARN) $< ++# $(OBJDIR)/ec$(TYPEMARKER).o: ec.c ++# $(V_at)$(INSTALL_DIR) $(OBJDIR) ++# $(V_CC) -c -o $@ $(ALL_CFLAGS) $(CRYPTO_NO_DEPRECATE_WARN) $< + + $(OBJDIR)/%$(TYPEMARKER).o: %.c + $(V_at)$(INSTALL_DIR) $(OBJDIR) +diff --git a/lib/crypto/c_src/ec.c b/lib/crypto/c_src/ec.c +index 124582c4f8..852f3ba79c 100644 +--- a/lib/crypto/c_src/ec.c ++++ b/lib/crypto/c_src/ec.c +@@ -24,6 +24,8 @@ + #ifdef HAVE_EC + # if defined(HAS_3_0_API) + ++# include ++ + int get_curve_definition(ErlNifEnv* env, ERL_NIF_TERM *ret, ERL_NIF_TERM def, + OSSL_PARAM params[], int *i, + size_t *order_size) +@@ -253,13 +255,7 @@ int get_ec_public_key(ErlNifEnv* env, ERL_NIF_TERM key, EVP_PKEY **pkey) + } + + +-int get_ec_private_key_2(ErlNifEnv* env, +- ERL_NIF_TERM curve, ERL_NIF_TERM key, +- EVP_PKEY **pkey, +- ERL_NIF_TERM *ret, +- size_t *order_size); +- +-int get_ec_private_key_2(ErlNifEnv* env, ++static int get_ec_private_key_2(ErlNifEnv* env, + ERL_NIF_TERM curve, ERL_NIF_TERM key, + EVP_PKEY **pkey, + ERL_NIF_TERM *ret, +@@ -319,7 +315,8 @@ int get_ec_private_key(ErlNifEnv* env, ERL_NIF_TERM key, EVP_PKEY **pkey) + return 0; + } + +-int mk_pub_key_binary(ErlNifEnv* env, EVP_PKEY **peer_pkey, ErlNifBinary *pubkey_bin, ERL_NIF_TERM *ret); ++static int mk_pub_key_binary(ErlNifEnv* env, EVP_PKEY *peer_pkey, ++ ErlNifBinary *pubkey_bin, ERL_NIF_TERM *ret); + + ERL_NIF_TERM ec_generate_key_nif(ErlNifEnv* env, int argc, const ERL_NIF_TERM argv[]) + { /* (Curve, PrivKey|undefined) */ +@@ -339,9 +336,8 @@ ERL_NIF_TERM ec_generate_key_nif(ErlNifEnv* env, int argc, const ERL_NIF_TERM ar + + /* Get the two keys, pub as binary and priv as BN. + Since the private key is explicitly given, it must be calculated. +- I haven't found any way to do that with the pure 3.0 interface yet. + */ +- if (!mk_pub_key_binary(env, &peer_pkey, &pubkey_bin, &ret)) ++ if (!mk_pub_key_binary(env, peer_pkey, &pubkey_bin, &ret)) + goto err; + + if (!EVP_PKEY_get_bn_param(peer_pkey, "priv", &priv_bn)) +@@ -398,67 +394,81 @@ ERL_NIF_TERM ec_generate_key_nif(ErlNifEnv* env, int argc, const ERL_NIF_TERM ar + return ret; + } + +-int mk_pub_key_binary(ErlNifEnv* env, EVP_PKEY **peer_pkey, ErlNifBinary *pubkey_bin, ERL_NIF_TERM *ret) ++static int mk_pub_key_binary(ErlNifEnv* env, EVP_PKEY *peer_pkey, ++ ErlNifBinary *pubkey_bin, ERL_NIF_TERM *ret) + { +- EC_KEY *ec_key = NULL; +- EC_POINT *public_key = NULL; +- EC_GROUP *group = NULL; +- BIGNUM *priv_bn = NULL; +- +- *ret = atom_undefined; +- +- /* Use the deprecated interface to get the curve and +- private key in pre 3.0 form: */ +- if ((ec_key = EVP_PKEY_get1_EC_KEY(*peer_pkey)) == NULL) +- assign_goto(*ret, err, EXCP_ERROR(env, "Couldn't get EC key")); +- +- if ((group = EC_GROUP_dup(EC_KEY_get0_group(ec_key))) == NULL) ++ size_t pub_key_size = 0; ++ size_t group_name_size = 0; ++ char group_name_buf[20]; ++ char* group_name = group_name_buf; ++ int group_nid; ++ EC_GROUP* ec_group = NULL; ++ EC_POINT* pub_key = NULL; ++ BIGNUM* priv_bn = NULL; ++ int ok = 0; ++ ++ /* This code was inspired by ++ * https://github.com/openssl/openssl/issues/18437 ++ * which first tried to get public key directly with ++ * EVP_PKEY_get_octet_string_param(peer_pkey, OSSL_PKEY_PARAM_PUB_KEY,..) ++ * ++ * I removed that since I don't know what key format that will produce ++ * if it succeeds. That is, we go directly to the "fallback" and calculate ++ * the public key. ++ */ ++ ++ if (!EVP_PKEY_get_utf8_string_param(peer_pkey, OSSL_PKEY_PARAM_GROUP_NAME, ++ NULL, 0, &group_name_size)) ++ assign_goto(*ret, err, EXCP_ERROR(env, "Couldn't get EC group name size")); ++ ++ if (group_name_size >= sizeof(group_name_buf)) ++ group_name = enif_alloc(group_name_size + 1); ++ if (!EVP_PKEY_get_utf8_string_param(peer_pkey, OSSL_PKEY_PARAM_GROUP_NAME, ++ group_name, group_name_size+1, ++ NULL)) ++ assign_goto(*ret, err, EXCP_ERROR(env, "Couldn't get EC group name")); ++ ++ group_nid = OBJ_sn2nid(group_name); ++ if (group_nid == NID_undef) ++ assign_goto(*ret, err, EXCP_ERROR(env, "Couldn't get EC group nid")); ++ ++ ec_group = EC_GROUP_new_by_curve_name(group_nid); ++ if (ec_group == NULL) + assign_goto(*ret, err, EXCP_ERROR(env, "Couldn't get EC_GROUP")); + +- if ((public_key = EC_POINT_new(group)) == NULL) ++ pub_key = EC_POINT_new(ec_group); ++ if (pub_key == NULL) + assign_goto(*ret, err, EXCP_ERROR(env, "Couldn't create POINT")); + +- if (!EC_POINT_copy(public_key, EC_GROUP_get0_generator(group))) +- assign_goto(*ret, err, EXCP_ERROR(env, "Couldn't copy POINT")); +- +- /* Make the corresponding public key */ +- if (!EVP_PKEY_get_bn_param(*peer_pkey, "priv", &priv_bn)) ++ if (!EVP_PKEY_get_bn_param(peer_pkey, OSSL_PKEY_PARAM_PRIV_KEY, &priv_bn)) + assign_goto(*ret, err, EXCP_BADARG_N(env, 1, "Couldn't get peer priv key bytes")); + +- if (BN_is_zero(priv_bn)) +- assign_goto(*ret, err, EXCP_BADARG_N(env, 1, "peer priv key must not be 0")); +- +- if (!EC_POINT_mul(group, public_key, priv_bn, NULL, NULL, NULL)) ++ if (!EC_POINT_mul(ec_group, pub_key, priv_bn, NULL, NULL, NULL)) + assign_goto(*ret, err, EXCP_ERROR(env, "Couldn't multiply POINT")); + +- if (!EC_KEY_set_public_key(ec_key, public_key)) +- assign_goto(*ret, err, EXCP_ERROR(env, "Couldn't set EC_KEY")); +- +- if (!EVP_PKEY_assign_EC_KEY(*peer_pkey, ec_key)) +- assign_goto(*ret, err, EXCP_ERROR(env, "Couldn't assign EC_KEY to PKEY")); +- +- /* And now get the binary representation (by some reason we can't read it from +- peer_pubkey in the calling function with 3.0-functions.) +- */ +- { +- point_conversion_form_t form = EC_KEY_get_conv_form(ec_key); +- size_t dlen = EC_POINT_point2oct(group, public_key, form, NULL, 0, NULL); +- +- if (!enif_alloc_binary(dlen, pubkey_bin) || +- !EC_POINT_point2oct(group, public_key, form, pubkey_bin->data, pubkey_bin->size, NULL) +- ) +- assign_goto(*ret, err, EXCP_ERROR(env, "Couldn't get public key")); ++ pub_key_size = EC_POINT_point2oct(ec_group, pub_key, ++ POINT_CONVERSION_UNCOMPRESSED, NULL, 0, NULL); ++ if (pub_key_size == 0) ++ assign_goto(*ret, err, EXCP_ERROR(env, "Couldn't get pub_key_size")); ++ ++ enif_alloc_binary(pub_key_size, pubkey_bin); ++ if (!EC_POINT_point2oct(ec_group, pub_key, POINT_CONVERSION_UNCOMPRESSED, ++ pubkey_bin->data, ++ pubkey_bin->size, NULL)) { ++ enif_release_binary(pubkey_bin); ++ assign_goto(*ret, err, EXCP_ERROR(env, "Couldn't get pub key bytes")); + } + +- err: +- if (public_key) EC_POINT_free(public_key); +- if (group) EC_GROUP_free(group); ++ *ret = enif_make_binary(env, pubkey_bin); ++ ok = 1; ++ ++err: ++ if (group_name != group_name_buf) enif_free(group_name); ++ if (pub_key) EC_POINT_free(pub_key); ++ if (ec_group) EC_GROUP_free(ec_group); + if (priv_bn) BN_free(priv_bn); + +- if (*ret == atom_undefined) +- return 1; +- else +- return 0; ++ return ok; + } + + # endif /* HAS_3_0_API */ +@@ -908,10 +918,8 @@ ERL_NIF_TERM ec_generate_key_nif(ErlNifEnv* env, int argc, const ERL_NIF_TERM ar + + # endif /* ! HAS_3_0_API */ + +-#endif /* HAVE_EC */ +- ++#else /* ifndef HAVE_EC */ + +-#if ! defined(HAVE_EC) + ERL_NIF_TERM ec_generate_key_nif(ErlNifEnv* env, int argc, const ERL_NIF_TERM argv[]) + { /* (Curve, PrivKey) */ + return EXCP_NOTSUP_N(env, 0, "EC not supported"); diff --git a/otp-0012-crypto-Fix-get_ossl_BN_param_from_bin_sz-to-not-abus.patch b/otp-0012-crypto-Fix-get_ossl_BN_param_from_bin_sz-to-not-abus.patch new file mode 100644 index 0000000..fca43ef --- /dev/null +++ b/otp-0012-crypto-Fix-get_ossl_BN_param_from_bin_sz-to-not-abus.patch @@ -0,0 +1,102 @@ +From: Sverker Eriksson +Date: Wed, 7 Jun 2023 18:50:23 +0200 +Subject: [PATCH] crypto: Fix get_ossl_BN_param_from_bin_sz() to not abuse + ErlNifBinary + +It is not allowed to write to the binary buffer returned by +enif_inspect_binary() (even if you created the binary yourself). + +In DEBUG built VM such abuse will be punished with: + +"Readonly data written by NIF, checksums differ 8000425 != 25040008 +ABORTING" + +Instead use enif_make_new_binary() to create a writable binary buffer. + +diff --git a/lib/crypto/c_src/bn.c b/lib/crypto/c_src/bn.c +index f06ed9002e..5e9fec5093 100644 +--- a/lib/crypto/c_src/bn.c ++++ b/lib/crypto/c_src/bn.c +@@ -212,23 +212,38 @@ int get_ossl_BN_param_from_bin(ErlNifEnv* env, char* key, ERL_NIF_TERM bin, OSSL + return get_ossl_BN_param_from_bin_sz(env, key, bin, dest, NULL); + } + +-int get_ossl_BN_param_from_bin_sz(ErlNifEnv* env, char* key, ERL_NIF_TERM bin, OSSL_PARAM *dest, size_t *size) ++int get_ossl_BN_param_from_bin_sz(ErlNifEnv* env, char* key, ERL_NIF_TERM bin, ++ OSSL_PARAM *dest, size_t *size) + { + BIGNUM *bn = NULL; +- ErlNifBinary tmp; ++ int ok = 0; + +- if (!get_bn_from_bin_sz(env, bin, &bn, size) || +- !enif_inspect_binary(env, bin_from_bn(env,bn), &tmp) || // Allocate buf +- BN_bn2nativepad(bn, tmp.data, tmp.size) < 0) {// Fill with BN in right endianity +- if (bn) BN_free(bn); ++ if (!get_bn_from_bin_sz(env, bin, &bn, size)) + return 0; +- } +- +- *dest = OSSL_PARAM_construct_BN(key, tmp.data, tmp.size); +- if (bn) BN_free(bn); ++ ++ ok = get_ossl_BN_param_from_bn(env, key, bn, dest); ++ BN_free(bn); ++ return ok; ++} ++ ++int get_ossl_BN_param_from_bn(ErlNifEnv* env, char* key, const BIGNUM* bn, ++ OSSL_PARAM *dest) ++{ ++ const size_t bn_sz = BN_num_bytes(bn); ++ unsigned char* tmp_buf; ++ ERL_NIF_TERM dummy_term; ++ ++ /* Create a binary term just as a convenient tmp buffer */ ++ tmp_buf = enif_make_new_binary(env, bn_sz, &dummy_term); ++ if (BN_bn2nativepad(bn, tmp_buf, bn_sz) < 0) // Fill with BN in right endianity ++ return 0; ++ ++ *dest = OSSL_PARAM_construct_BN(key, tmp_buf, bn_sz); + return 1; + } + ++ ++ + int get_ossl_param_from_bin_in_list(ErlNifEnv* env, char* key, ERL_NIF_TERM *listcell, OSSL_PARAM *dest) + { + ERL_NIF_TERM head; +diff --git a/lib/crypto/c_src/bn.h b/lib/crypto/c_src/bn.h +index 5e207aed2d..662a32dc29 100644 +--- a/lib/crypto/c_src/bn.h ++++ b/lib/crypto/c_src/bn.h +@@ -38,6 +38,7 @@ int get_bn_from_bin_sz(ErlNifEnv* env, ERL_NIF_TERM term, BIGNUM** bnp, size_t* + int get_ossl_octet_string_param_from_bin(ErlNifEnv* env, char* key, ERL_NIF_TERM bin, OSSL_PARAM *dest); + int get_ossl_BN_param_from_bin(ErlNifEnv* env, char* key, ERL_NIF_TERM bin, OSSL_PARAM *dest); + int get_ossl_BN_param_from_bin_sz(ErlNifEnv* env, char* key, ERL_NIF_TERM bin, OSSL_PARAM *dest, size_t *size); ++int get_ossl_BN_param_from_bn(ErlNifEnv* env, char* key, const BIGNUM* bn, OSSL_PARAM *dest); + + int get_ossl_param_from_bin_in_list(ErlNifEnv* env, char* key, ERL_NIF_TERM *listcell, OSSL_PARAM *dest); + #endif +diff --git a/lib/crypto/c_src/ec.c b/lib/crypto/c_src/ec.c +index 852f3ba79c..af5f5d6f4a 100644 +--- a/lib/crypto/c_src/ec.c ++++ b/lib/crypto/c_src/ec.c +@@ -189,15 +189,8 @@ int get_curve_definition(ErlNifEnv* env, ERL_NIF_TERM *ret, ERL_NIF_TERM def, + } else + assign_goto(*ret, err, EXCP_ERROR_N(env, 1, "Bad last field")); + +- { +- ErlNifBinary tmp; +- +- if (!enif_inspect_binary(env, bin_from_bn(env,p), &tmp) || // Allocate buf +- BN_bn2nativepad(p, tmp.data, tmp.size) < 0) {// Fill with BN in right endianity +- assign_goto(*ret, err, EXCP_ERROR_N(env, 1, "BN padding failed")); +- } +- params[(*i)++] = OSSL_PARAM_construct_BN("p", tmp.data, tmp.size); +- } ++ if (!get_ossl_BN_param_from_bn(env, "p", p, ¶ms[(*i)++])) ++ assign_goto(*ret, err, EXCP_ERROR_N(env, 1, "BN padding failed")); + # endif + } + else diff --git a/otp-0013-crypto-Re-enable-FIPS_SUPPORT-for-HAS_3_0_API.patch b/otp-0013-crypto-Re-enable-FIPS_SUPPORT-for-HAS_3_0_API.patch new file mode 100644 index 0000000..1ae1141 --- /dev/null +++ b/otp-0013-crypto-Re-enable-FIPS_SUPPORT-for-HAS_3_0_API.patch @@ -0,0 +1,22 @@ +From: Sverker Eriksson +Date: Wed, 7 Jun 2023 20:38:11 +0200 +Subject: [PATCH] crypto: Re-enable FIPS_SUPPORT for HAS_3_0_API + + +diff --git a/lib/crypto/c_src/openssl_config.h b/lib/crypto/c_src/openssl_config.h +index d034590a2e..b73141a530 100644 +--- a/lib/crypto/c_src/openssl_config.h ++++ b/lib/crypto/c_src/openssl_config.h +@@ -468,12 +468,6 @@ do { \ + # undef FIPS_SUPPORT + #endif + +-/* Disable FIPS for 3.0 temporaryly until the support is added */ +-#if defined(FIPS_SUPPORT) && \ +- defined(HAS_3_0_API) +-# undef FIPS_SUPPORT +-#endif +- + #if defined(FIPS_SUPPORT) && \ + defined(HAS_3_0_API) + # define FIPS_mode() EVP_default_properties_is_fips_enabled(NULL) diff --git a/otp-0014-crypto-Fix-FIPS-bug-in-check_pkey_algorithm_type.patch b/otp-0014-crypto-Fix-FIPS-bug-in-check_pkey_algorithm_type.patch new file mode 100644 index 0000000..fea8a04 --- /dev/null +++ b/otp-0014-crypto-Fix-FIPS-bug-in-check_pkey_algorithm_type.patch @@ -0,0 +1,18 @@ +From: Sverker Eriksson +Date: Mon, 12 Jun 2023 17:14:19 +0200 +Subject: [PATCH] crypto: Fix FIPS bug in check_pkey_algorithm_type + + +diff --git a/lib/crypto/c_src/pkey.c b/lib/crypto/c_src/pkey.c +index bfdcfe3553..afdff78f48 100644 +--- a/lib/crypto/c_src/pkey.c ++++ b/lib/crypto/c_src/pkey.c +@@ -100,7 +100,7 @@ static int check_pkey_algorithm_type(ErlNifEnv *env, + + + #ifdef HAVE_EDDSA +- if (FIPS_MODE()) ++ if (FIPS_MODE() && algorithm == atom_eddsa) + assign_goto(*err_return, err, EXCP_NOTSUP_N(env, alg_arg_num, "Unsupported algorithm in FIPS mode")); + #endif + diff --git a/otp-0015-crypto_SUITE-Change-to-longer-dss-keys-acceptable-to.patch b/otp-0015-crypto_SUITE-Change-to-longer-dss-keys-acceptable-to.patch new file mode 100644 index 0000000..cf011e3 --- /dev/null +++ b/otp-0015-crypto_SUITE-Change-to-longer-dss-keys-acceptable-to.patch @@ -0,0 +1,28 @@ +From: Sverker Eriksson +Date: Tue, 13 Jun 2023 18:58:31 +0200 +Subject: [PATCH] crypto_SUITE: Change to longer dss keys acceptable to FIPS + + +diff --git a/lib/crypto/test/crypto_SUITE.erl b/lib/crypto/test/crypto_SUITE.erl +index 0572feaf33..29dba82c41 100644 +--- a/lib/crypto/test/crypto_SUITE.erl ++++ b/lib/crypto/test/crypto_SUITE.erl +@@ -3677,13 +3677,13 @@ rsa_private_stronger() -> + dss_plain() -> + rsa_plain(). + dss_public() -> +- 25854665488880835237281628794585130313500176551981812527054397586638455298000483144002221850980183404910190346416063318160497344811383498859129095184158800144312512447497510551471331451396405348497845813002058423110442376886564659959543650802132345311573634832461635601376738282831340827591903548964194832978. ++ 16#289ff18c32a56bb0b8839370647683a38a5a7e291410b93207212adc8088d30f93e9e4abc523f3d46936e7d5c90d88742b36afd37563408f15c8c1a4f7ac24bf05f01008ffee70c8825d57c3a9308bad8a095af2b53b2dda3cbed846d95e301eb9b84766415d11f6c33209a0d28571096ab04a79aa0dc465997529686b68e887cd8a205c2dc8195aef0422eba9979f549ac85548e419413643b7244361153ada1480d238cd00dc16527938955548dd5d027ded1029eeeb8ed6c61b4cd59341d8b15466e9da890a989996f4d7691e6072de136af28b5874bf08bd1f8a60cfb1c00888132909f515e04bce81b02951aa41baac68ffdb8c5dc77a1d32d8f2c10dd7. + dss_private() -> +- 441502407453038284293378221372000880210588566361. ++ 16#6132e551cdac88409183bd37ee1452cd247d4834b08814b275be3ff5. + dss_params() -> +- [109799869232806890760655301608454668257695818999841877165019612946154359052535682480084145133201304812979481136659521529774182959764860329095546511521488413513097576425638476458000255392402120367876345280670101492199681798674053929238558140260669578407351853803102625390950534052428162468100618240968893110797, +- 1349199015905534965792122312016505075413456283393, +- 18320614775012672475365915366944922415598782131828709277168615511695849821411624805195787607930033958243224786899641459701930253094446221381818858674389863050420226114787005820357372837321561754462061849169568607689530279303056075793886577588606958623645901271866346406773590024901668622321064384483571751669]. ++ [16#f2d39ed3062b13c916273600a0f2a029e86d7a4b9217b4f1815bf2b24d9710a57ab33f997294b014585b8d0198dfdccbcd75314da5ff85aa344b45adaeaa979b51a312a7bfa94472fb633f1a6f156bb4458867dfd38403f06b851f00fe2d3484077bded71ab7513d04a140220575fb693395480e4c8402b7a46cec2d37a778c305accd1f13e9f62e865315f4b22cc467c8986ec8e4961ddf810566b0c4ee369ac6aa15e43f4744005826f5bde8071a19e30b6909aac4b3d174237270dad02799d09b8a2cc5f22e66894b5422228b2c234f11f5a771c5b89cf465a2acecbbeeaa1725fe8f9b59422be8991052cb556ddf2c8ce8fa9206dbf39feadc194e00f8e5, ++ 16#8000000000000000c118f49835e4ef733c4d15800fcf059e884d31b1, ++ 16#e3a93c09da6f560e4d483a382a4c546f2335c36a4c35ac1463c08a3e6dd415df56fdc537f25fd5372be63e4f5300780b782f1acd01c8b4eb33414615fd0ea82573acba7ef83f5a943854151afc2d7dfe121fb8cd03335b065b549c5dcc606be9052483bc284e12ac3c8dba09b426e08402030e70bc1cc2bf8957c4ba0630f3f32ad689389ac47443176063f247d9e2296b3ea5b5bc2335828ea1a080ed35918dee212fd031279d1b894f01afec523833669eac031a420e540ba1320a59c424a3e5849a460a56bcb001647885b1433c4f992971746bfe2977ce7259c550b551a6c35761e4a41af764e8d92132fcc0a59d1684eab90d863f29f41cf7578faa908c]. + + ec_key_named() -> + Curve = hd(crypto:ec_curves()), diff --git a/otp-0016-crypto_SUITE-Remove-sha-1-as-hash-for-dss-if-FIPS.patch b/otp-0016-crypto_SUITE-Remove-sha-1-as-hash-for-dss-if-FIPS.patch new file mode 100644 index 0000000..d073b00 --- /dev/null +++ b/otp-0016-crypto_SUITE-Remove-sha-1-as-hash-for-dss-if-FIPS.patch @@ -0,0 +1,33 @@ +From: Sverker Eriksson +Date: Tue, 13 Jun 2023 19:00:31 +0200 +Subject: [PATCH] crypto_SUITE: Remove sha-1 as hash for dss if FIPS + + +diff --git a/lib/crypto/test/crypto_SUITE.erl b/lib/crypto/test/crypto_SUITE.erl +index 29dba82c41..00d4a0a6fe 100644 +--- a/lib/crypto/test/crypto_SUITE.erl ++++ b/lib/crypto/test/crypto_SUITE.erl +@@ -2257,15 +2257,19 @@ group_config(dss = Type, Config) -> + Public = dss_params() ++ [dss_public()], + Private = dss_params() ++ [dss_private()], + SupportedHashs = proplists:get_value(hashs, crypto:supports(), []), +- DssHashs = ++ DssHashs0 = + case crypto:info_lib() of + [{<<"OpenSSL">>,LibVer,_}] when is_integer(LibVer), LibVer > 16#10001000 -> +- [sha, sha224, sha256, sha384, sha512]; ++ [sha224, sha256, sha384, sha512]; + [{<<"OpenSSL">>,LibVer,_}] when is_integer(LibVer), LibVer > 16#10000000 -> +- [sha, sha224, sha256]; ++ [sha224, sha256]; + _Else -> +- [sha] ++ [] + end, ++ DssHashs = case crypto:info_fips() of ++ enabled -> DssHashs0; ++ _ -> [sha | DssHashs0] ++ end, + SignVerify = [{Type, Hash, Public, Private, Msg} + || Hash <- DssHashs, + lists:member(Hash, SupportedHashs)], diff --git a/otp-0017-crypto_SUITE-Remove-md5-ripemd160-and-sha-as-hash-fo.patch b/otp-0017-crypto_SUITE-Remove-md5-ripemd160-and-sha-as-hash-fo.patch new file mode 100644 index 0000000..6d436a2 --- /dev/null +++ b/otp-0017-crypto_SUITE-Remove-md5-ripemd160-and-sha-as-hash-fo.patch @@ -0,0 +1,24 @@ +From: Sverker Eriksson +Date: Tue, 13 Jun 2023 19:02:32 +0200 +Subject: [PATCH] crypto_SUITE: Remove md5, ripemd160 and sha as hash for rsa + sign if FIPS + + +diff --git a/lib/crypto/test/crypto_SUITE.erl b/lib/crypto/test/crypto_SUITE.erl +index 00d4a0a6fe..afacdde051 100644 +--- a/lib/crypto/test/crypto_SUITE.erl ++++ b/lib/crypto/test/crypto_SUITE.erl +@@ -2420,7 +2420,12 @@ rsa_sign_verify_tests(Config, Msg, Public, Private, PublicS, PrivateS, OptsToTry + end. + + rsa_sign_verify_tests(Msg, Public, Private, PublicS, PrivateS, OptsToTry) -> +- gen_rsa_sign_verify_tests([md5, ripemd160, sha, sha224, sha256], Msg, Public, Private, ++ Hashs0 = [sha224, sha256], ++ Hashs = case crypto:info_fips() of ++ enabled -> Hashs0; ++ _ -> [md5, ripemd160, sha | Hashs0] ++ end, ++ gen_rsa_sign_verify_tests(Hashs, Msg, Public, Private, + [undefined | OptsToTry]) ++ + gen_rsa_sign_verify_tests([sha384, sha512], Msg, PublicS, PrivateS, + [undefined | OptsToTry]). diff --git a/otp-0018-crypto-Try-generate-ec-key-by-name-if-possible.patch b/otp-0018-crypto-Try-generate-ec-key-by-name-if-possible.patch new file mode 100644 index 0000000..02603cd --- /dev/null +++ b/otp-0018-crypto-Try-generate-ec-key-by-name-if-possible.patch @@ -0,0 +1,284 @@ +From: Sverker Eriksson +Date: Wed, 14 Jun 2023 22:00:35 +0200 +Subject: [PATCH] crypto: Try generate ec key by name if possible + +OpenSSL 3 FIPS does only accept named ec curves. + +So we try that first, and if it fails we retry +with the params passed down by crypto.erl. + +diff --git a/lib/crypto/c_src/ec.c b/lib/crypto/c_src/ec.c +index af5f5d6f4a..49e1da4fe4 100644 +--- a/lib/crypto/c_src/ec.c ++++ b/lib/crypto/c_src/ec.c +@@ -28,7 +28,8 @@ + + int get_curve_definition(ErlNifEnv* env, ERL_NIF_TERM *ret, ERL_NIF_TERM def, + OSSL_PARAM params[], int *i, +- size_t *order_size) ++ size_t *order_size, ++ struct get_curve_def_ctx* gcd) + { + const ERL_NIF_TERM* curve; + int c_arity = -1; +@@ -40,6 +41,7 @@ int get_curve_definition(ErlNifEnv* env, ERL_NIF_TERM *ret, ERL_NIF_TERM def, + int arity = -1; + const ERL_NIF_TERM* curve_tuple; + ++ + /* Here are two random curve definition examples, one prime_field and + one characteristic_two_field. Both are from the crypto/src/crypto_ec_curves.erl. + +@@ -79,6 +81,23 @@ int get_curve_definition(ErlNifEnv* env, ERL_NIF_TERM *ret, ERL_NIF_TERM def, + c_arity != 5) + assign_goto(*ret, err, EXCP_ERROR_N(env, 1, "Bad curve def. Expect 5-tuple.")); + ++ if (gcd->use_curve_name ++ && curve_tuple[1] != atom_undefined ++ && enif_get_atom(env, curve_tuple[1], gcd->curve_name, ++ sizeof(gcd->curve_name), ERL_NIF_LATIN1)) { ++ ErlNifBinary order_bin; ++ params[(*i)++] = OSSL_PARAM_construct_utf8_string("group", gcd->curve_name, 0); ++ ++ if (order_size) { ++ if (!enif_inspect_binary(env, curve[3], &order_bin)) ++ assign_goto(*ret, err, EXCP_ERROR_N(env, 1, "Bad order")); ++ *order_size = order_bin.size; ++ } ++ gcd->use_curve_name = 1; ++ return 1; ++ } ++ gcd->use_curve_name = 0; ++ + if (!get_ossl_octet_string_param_from_bin(env, "generator", curve[2], ¶ms[(*i)++])) + assign_goto(*ret, err, EXCP_ERROR_N(env, 1, "Bad Generator (Point)")); + +@@ -211,6 +230,7 @@ int get_ec_public_key(ErlNifEnv* env, ERL_NIF_TERM key, EVP_PKEY **pkey) + int tpl_arity; + int i = 0; + OSSL_PARAM params[15]; ++ struct get_curve_def_ctx gcd; + EVP_PKEY_CTX *pctx = NULL; + + if (!enif_get_tuple(env, key, &tpl_arity, &tpl_terms) || +@@ -222,19 +242,27 @@ int get_ec_public_key(ErlNifEnv* env, ERL_NIF_TERM key, EVP_PKEY **pkey) + if (!get_ossl_octet_string_param_from_bin(env, "pub", tpl_terms[1], ¶ms[i++])) + assign_goto(ret, err, EXCP_BADARG_N(env, 0, "Bad public key")); + +- if (!get_curve_definition(env, &ret, tpl_terms[0], params, &i, NULL)) ++ if (!(pctx = EVP_PKEY_CTX_new_from_name(NULL, "EC", NULL))) ++ assign_goto(ret, err, EXCP_ERROR(env, "Can't make EVP_PKEY_CTX")); ++ ++ gcd.use_curve_name = 1; ++retry_without_name: ++ if (!get_curve_definition(env, &ret, tpl_terms[0], params, &i, NULL, &gcd)) + goto err; + + params[i++] = OSSL_PARAM_construct_end(); + +- if (!(pctx = EVP_PKEY_CTX_new_from_name(NULL, "EC", NULL))) +- assign_goto(ret, err, EXCP_ERROR(env, "Can't make EVP_PKEY_CTX")); +- + if (EVP_PKEY_fromdata_init(pctx) <= 0) + assign_goto(ret, err, EXCP_ERROR(env, "Can't init fromdata")); + +- if (EVP_PKEY_fromdata(pctx, pkey, EVP_PKEY_PUBLIC_KEY, params) <= 0) ++ if (EVP_PKEY_fromdata(pctx, pkey, EVP_PKEY_PUBLIC_KEY, params) <= 0) { ++ if (gcd.use_curve_name) { ++ gcd.use_curve_name = 0; ++ i = 1; ++ goto retry_without_name; ++ } + assign_goto(ret, err, EXCP_ERROR(env, "Can't do fromdata")); ++ } + + if (!*pkey) + assign_goto(ret, err, EXCP_ERROR(env, "Couldn't get a public key")); +@@ -256,24 +284,33 @@ static int get_ec_private_key_2(ErlNifEnv* env, + { + int i = 0; + OSSL_PARAM params[15]; ++ struct get_curve_def_ctx gcd; + EVP_PKEY_CTX *pctx = NULL; + + if (!get_ossl_BN_param_from_bin(env, "priv", key, ¶ms[i++])) + assign_goto(*ret, err, EXCP_BADARG_N(env, 0, "Bad private key")); + +- if (!get_curve_definition(env, ret, curve, params, &i, order_size)) ++ if (!(pctx = EVP_PKEY_CTX_new_from_name(NULL, "EC", NULL))) ++ assign_goto(*ret, err, EXCP_ERROR(env, "Can't make EVP_PKEY_CTX")); ++ ++ gcd.use_curve_name = 1; ++retry_without_name: ++ if (!get_curve_definition(env, ret, curve, params, &i, order_size, &gcd)) + goto err; + + params[i++] = OSSL_PARAM_construct_end(); + +- if (!(pctx = EVP_PKEY_CTX_new_from_name(NULL, "EC", NULL))) +- assign_goto(*ret, err, EXCP_ERROR(env, "Can't make EVP_PKEY_CTX")); +- + if (EVP_PKEY_fromdata_init(pctx) <= 0) + assign_goto(*ret, err, EXCP_ERROR(env, "Can't init fromdata")); + +- if (EVP_PKEY_fromdata(pctx, pkey, EVP_PKEY_KEYPAIR, params) <= 0) ++ if (EVP_PKEY_fromdata(pctx, pkey, EVP_PKEY_KEYPAIR, params) <= 0) { ++ if (gcd.use_curve_name) { ++ gcd.use_curve_name = 0; ++ i = 1; ++ goto retry_without_name; ++ } + assign_goto(*ret, err, EXCP_ERROR(env, "Can't do fromdata")); ++ } + + if (!*pkey) + assign_goto(*ret, err, EXCP_ERROR(env, "Couldn't get a private key")); +@@ -316,9 +353,10 @@ ERL_NIF_TERM ec_generate_key_nif(ErlNifEnv* env, int argc, const ERL_NIF_TERM ar + ERL_NIF_TERM ret = atom_undefined; + int i = 0; + OSSL_PARAM params[15]; ++ struct get_curve_def_ctx gcd; + EVP_PKEY_CTX *pctx = NULL; + EVP_PKEY *pkey = NULL, *peer_pkey = NULL; +- size_t sz, order_size; ++ size_t sz, order_size = 0; + BIGNUM *priv_bn = NULL; + ErlNifBinary pubkey_bin; + +@@ -338,26 +376,36 @@ ERL_NIF_TERM ec_generate_key_nif(ErlNifEnv* env, int argc, const ERL_NIF_TERM ar + } + else + { ++ /* Neither the private nor the public key is known, so we generate the pair: */ ++ if (!(pctx = EVP_PKEY_CTX_new_from_name(NULL, "EC", NULL))) ++ assign_goto(ret, err, EXCP_ERROR(env, "Can't EVP_PKEY_CTX_new_from_name")); ++ ++ gcd.use_curve_name = 1; ++ retry_without_name: + /* PrivKey (that is, argv[1]) == atom_undefined */ +- if (!get_curve_definition(env, &ret, argv[0], params, &i, &order_size)) ++ if (!get_curve_definition(env, &ret, argv[0], params, &i, ++ &order_size, &gcd)) + // INSERT "ret" parameter in get_curve_definition !! + assign_goto(ret, err, EXCP_BADARG_N(env, 0, "Couldn't get Curve definition")); + + params[i++] = OSSL_PARAM_construct_end(); + +- /* Neither the private nor the public key is known, so we generate the pair: */ +- if (!(pctx = EVP_PKEY_CTX_new_from_name(NULL, "EC", NULL))) +- assign_goto(ret, err, EXCP_ERROR(env, "Can't EVP_PKEY_CTX_new_from_name")); +- + if (EVP_PKEY_keygen_init(pctx) <= 0) + assign_goto(ret, err, EXCP_ERROR(env, "Can't EVP_PKEY_keygen_init")); + + if (!EVP_PKEY_CTX_set_params(pctx, params)) + assign_goto(ret, err, EXCP_ERROR(env, "Can't EVP_PKEY_CTX_set_params")); +- +- if (!EVP_PKEY_generate(pctx, &pkey)) ++ ++ if (!EVP_PKEY_generate(pctx, &pkey)) { ++ if (gcd.use_curve_name) { ++ gcd.use_curve_name = 0; ++ i = 0; ++ goto retry_without_name; ++ } + assign_goto(ret, err, EXCP_ERROR(env, "Couldn't generate EC key")); +- ++ } ++ ++ + /* Get the two keys, pub as binary and priv as BN */ + if (!EVP_PKEY_get_octet_string_param(pkey, "encoded-pub-key", NULL, 0, &sz)) + assign_goto(ret, err, EXCP_ERROR(env, "Can't get pub octet string size")); +@@ -375,6 +423,8 @@ ERL_NIF_TERM ec_generate_key_nif(ErlNifEnv* env, int argc, const ERL_NIF_TERM ar + assign_goto(ret, err, EXCP_BADARG_N(env, 1, "Couldn't get priv key bytes")); + } + ++ if (order_size == 0) ++ order_size = BN_num_bytes(priv_bn); + ret = enif_make_tuple2(env, + enif_make_binary(env, &pubkey_bin), + bn2term(env, order_size, priv_bn)); +diff --git a/lib/crypto/c_src/ec.h b/lib/crypto/c_src/ec.h +index e53986d64e..f0b0b96207 100644 +--- a/lib/crypto/c_src/ec.h ++++ b/lib/crypto/c_src/ec.h +@@ -26,9 +26,17 @@ + #if defined(HAVE_EC) + + # if defined(HAS_3_0_API) ++ ++struct get_curve_def_ctx ++{ ++ char curve_name[20]; ++ int use_curve_name; ++}; ++ + int get_curve_definition(ErlNifEnv* env, ERL_NIF_TERM *ret, ERL_NIF_TERM def, + OSSL_PARAM params[], int *i, +- size_t *order_size); ++ size_t *order_size, ++ struct get_curve_def_ctx*); + # endif /* HAS_3_0_API */ + + # if ! defined(HAS_3_0_API) +diff --git a/lib/crypto/c_src/ecdh.c b/lib/crypto/c_src/ecdh.c +index 7509d9cb84..f1b0f7eb28 100644 +--- a/lib/crypto/c_src/ecdh.c ++++ b/lib/crypto/c_src/ecdh.c +@@ -42,6 +42,7 @@ ERL_NIF_TERM ecdh_compute_key_nif(ErlNifEnv* env, int argc, const ERL_NIF_TERM a + int ret_bin_alloc = 0; + int i = 0, i_key = 0; + OSSL_PARAM params[15]; ++ struct get_curve_def_ctx gcd; + EVP_PKEY_CTX *own_pctx = NULL, *peer_pctx = NULL, *pctx_gen = NULL; + EVP_PKEY *own_pkey = NULL, *peer_pkey = NULL; + int err; +@@ -53,21 +54,29 @@ ERL_NIF_TERM ecdh_compute_key_nif(ErlNifEnv* env, int argc, const ERL_NIF_TERM a + if (!get_ossl_octet_string_param_from_bin(env, "pub", argv[0], ¶ms[i++])) + assign_goto(ret, err, EXCP_BADARG_N(env, 0, "Bad peer public key; binary expected")); + ++ /* Build the remote public key in peer_pkey */ ++ peer_pctx = EVP_PKEY_CTX_new_from_name(NULL, "EC", NULL); ++ ++ gcd.use_curve_name = 1; ++retry_without_name: + /* Curve definition/name */ +- if (!get_curve_definition(env, &ret, argv[1], params, &i, NULL)) ++ if (!get_curve_definition(env, &ret, argv[1], params, &i, NULL, &gcd)) + goto err; + + /* End of params */ + params[i++] = OSSL_PARAM_construct_end(); + +- /* Build the remote public key in peer_pkey */ +- peer_pctx = EVP_PKEY_CTX_new_from_name(NULL, "EC", NULL); +- + if (EVP_PKEY_fromdata_init(peer_pctx) <= 0) + assign_goto(ret, err, EXCP_ERROR(env, "Can't init fromdata")); + +- if (EVP_PKEY_fromdata(peer_pctx, &peer_pkey, EVP_PKEY_PUBLIC_KEY, params) <= 0) ++ if (EVP_PKEY_fromdata(peer_pctx, &peer_pkey, EVP_PKEY_PUBLIC_KEY, params) <= 0) { ++ if (gcd.use_curve_name) { ++ gcd.use_curve_name = 0; ++ i = 1; ++ goto retry_without_name; ++ } + assign_goto(ret, err, EXCP_ERROR(env, "Can't do fromdata")); ++ } + + if (!peer_pkey) + assign_goto(ret, err, EXCP_ERROR(env, "No peer_pkey")); +diff --git a/lib/crypto/test/crypto_SUITE.erl b/lib/crypto/test/crypto_SUITE.erl +index afacdde051..e047964daa 100644 +--- a/lib/crypto/test/crypto_SUITE.erl ++++ b/lib/crypto/test/crypto_SUITE.erl +@@ -3695,7 +3695,7 @@ dss_params() -> + 16#e3a93c09da6f560e4d483a382a4c546f2335c36a4c35ac1463c08a3e6dd415df56fdc537f25fd5372be63e4f5300780b782f1acd01c8b4eb33414615fd0ea82573acba7ef83f5a943854151afc2d7dfe121fb8cd03335b065b549c5dcc606be9052483bc284e12ac3c8dba09b426e08402030e70bc1cc2bf8957c4ba0630f3f32ad689389ac47443176063f247d9e2296b3ea5b5bc2335828ea1a080ed35918dee212fd031279d1b894f01afec523833669eac031a420e540ba1320a59c424a3e5849a460a56bcb001647885b1433c4f992971746bfe2977ce7259c550b551a6c35761e4a41af764e8d92132fcc0a59d1684eab90d863f29f41cf7578faa908c]. + + ec_key_named() -> +- Curve = hd(crypto:ec_curves()), ++ Curve = secp224r1, %hd(crypto:ec_curves()), + {D2_pub, D2_priv} = crypto:generate_key(ecdh, Curve), + {[D2_priv, Curve], [D2_pub, Curve]}. + diff --git a/otp-0019-crypto_SUITE-Skip-sha-1-sign-for-FIPS.patch b/otp-0019-crypto_SUITE-Skip-sha-1-sign-for-FIPS.patch new file mode 100644 index 0000000..c85e46e --- /dev/null +++ b/otp-0019-crypto_SUITE-Skip-sha-1-sign-for-FIPS.patch @@ -0,0 +1,59 @@ +From: Sverker Eriksson +Date: Thu, 15 Jun 2023 19:53:14 +0200 +Subject: [PATCH] crypto_SUITE: Skip sha-1 sign for FIPS + + +diff --git a/lib/crypto/test/crypto_SUITE.erl b/lib/crypto/test/crypto_SUITE.erl +index e047964daa..c56faa9bc4 100644 +--- a/lib/crypto/test/crypto_SUITE.erl ++++ b/lib/crypto/test/crypto_SUITE.erl +@@ -1268,6 +1268,12 @@ use_all_ec_sign_verify(_Config) -> + crypto:info_fips(), + Curves, + Hashs]), ++ SkipHashs0 = [md4, md5, ripemd160, sha3_224, sha3_256, sha3_384, sha3_512, ++ blake2b, blake2s], ++ SkipHashs = case crypto:info_fips() of ++ enabled -> [sha | SkipHashs0]; ++ _ -> SkipHashs0 ++ end, + Results = + [{{Curve,Hash}, + try +@@ -1282,7 +1288,7 @@ use_all_ec_sign_verify(_Config) -> + {C,E} + end} + || Curve <- Curves -- [ed25519, ed448, x25519, x448, ipsec3, ipsec4], +- Hash <- Hashs -- [md4, md5, ripemd160, sha3_224, sha3_256, sha3_384, sha3_512, blake2b, blake2s] ++ Hash <- Hashs -- SkipHashs + ], + Fails = + lists:filter(fun({_,true}) -> false; +@@ -1730,14 +1736,19 @@ do_sign_verify({Type, undefined=Hash, Private, Public, Msg, Signature}) -> + end; + + do_sign_verify({Type, Hash, Public, Private, Msg}) -> +- Signature = crypto:sign(Type, Hash, Msg, Private), +- case crypto:verify(Type, Hash, Msg, Signature, Public) of +- true -> +- ct:log("OK crypto:sign(~p, ~p, ..., ..., ...)", [Type,Hash]), +- negative_verify(Type, Hash, Msg, <<10,20>>, Public); +- false -> +- ct:log("ERROR crypto:sign(~p, ~p, ..., ..., ...)", [Type,Hash]), +- ct:fail({{crypto, verify, [Type, Hash, Msg, Signature, Public]}}) ++ case {Hash, crypto:info_fips()} of ++ {sha, enabled} -> ++ io:format("Skip sign with SHA for FIPS\n"); ++ _ -> ++ Signature = crypto:sign(Type, Hash, Msg, Private), ++ case crypto:verify(Type, Hash, Msg, Signature, Public) of ++ true -> ++ ct:log("OK crypto:sign(~p, ~p, ..., ..., ...)", [Type,Hash]), ++ negative_verify(Type, Hash, Msg, <<10,20>>, Public); ++ false -> ++ ct:log("ERROR crypto:sign(~p, ~p, ..., ..., ...)", [Type,Hash]), ++ ct:fail({{crypto, verify, [Type, Hash, Msg, Signature, Public]}}) ++ end + end; + do_sign_verify({Type, Hash, Public, Private, Msg, Options}) -> + LibVer = diff --git a/otp-0020-crypto-Unalias-some-ec-curve-names.patch b/otp-0020-crypto-Unalias-some-ec-curve-names.patch new file mode 100644 index 0000000..c3c9df4 --- /dev/null +++ b/otp-0020-crypto-Unalias-some-ec-curve-names.patch @@ -0,0 +1,806 @@ +From: Sverker Eriksson +Date: Fri, 16 Jun 2023 16:55:41 +0200 +Subject: [PATCH] crypto: Unalias some ec curve names + +to pass OpenSSL the name it accepts. + +diff --git a/lib/crypto/src/crypto.erl b/lib/crypto/src/crypto.erl +index 6abaacad5c..1cc11aa6eb 100644 +--- a/lib/crypto/src/crypto.erl ++++ b/lib/crypto/src/crypto.erl +@@ -2372,14 +2372,12 @@ nif_curve_params(CurveName) when is_atom(CurveName) -> + x448 -> {evp,CurveName}; + x25519 -> {evp,CurveName}; + _ -> +- Spec = +- try +- crypto_ec_curves:curve(CurveName) +- catch +- _:_ -> +- undefined +- end, +- {Spec, CurveName} ++ try ++ crypto_ec_curves:curve_with_name(CurveName) ++ catch ++ _:_ -> ++ {undefined, CurveName} ++ end + end. + + +diff --git a/lib/crypto/src/crypto_ec_curves.erl b/lib/crypto/src/crypto_ec_curves.erl +index a0a2f99601..3f14c34a26 100644 +--- a/lib/crypto/src/crypto_ec_curves.erl ++++ b/lib/crypto/src/crypto_ec_curves.erl +@@ -1,11 +1,22 @@ + -module(crypto_ec_curves). + +--export([curve/1, curves/0]). ++-export([curve/1, curves/0, curve_with_name/1]). + + curves() -> + proplists:get_value(curves, crypto:supports()) -- [x25519,x448]. + +-curve(secp112r1) -> ++real_name(secp192r1) -> prime192v1; ++real_name(secp256r1) -> prime256v1; ++real_name(Name) -> Name. ++ ++curve_with_name(Curve) -> ++ RealName = real_name(Curve), ++ {params(RealName), RealName}. ++ ++curve(Curve) -> ++ params(real_name(Curve)). ++ ++params(secp112r1) -> + { + {prime_field, <<16#DB7C2ABF62E35E668076BEAD208B:112>>}, %% Prime + {<<16#DB7C2ABF62E35E668076BEAD2088:112>>, %% A +@@ -18,7 +29,7 @@ curve(secp112r1) -> + <<16#01:8>> %% CoFactor + }; + +-curve(secp112r2) -> ++params(secp112r2) -> + { + {prime_field, <<16#DB7C2ABF62E35E668076BEAD208B:112>>}, %% Prime + {<<16#6127C24C05F38A0AAAF65C0EF02C:112>>, %% A +@@ -31,7 +42,7 @@ curve(secp112r2) -> + <<16#04:8>> %% CoFactor + }; + +-curve(secp128r1) -> ++params(secp128r1) -> + { + {prime_field, <<16#FFFFFFFDFFFFFFFFFFFFFFFFFFFFFFFF:128>>}, %% Prime + {<<16#FFFFFFFDFFFFFFFFFFFFFFFFFFFFFFFC:128>>, %% A +@@ -44,7 +55,7 @@ curve(secp128r1) -> + <<16#01:8>> %% CoFactor + }; + +-curve(secp128r2) -> ++params(secp128r2) -> + { + {prime_field, <<16#FFFFFFFDFFFFFFFFFFFFFFFFFFFFFFFF:128>>}, %% Prime + {<<16#D6031998D1B3BBFEBF59CC9BBFF9AEE1:128>>, %% A +@@ -57,7 +68,7 @@ curve(secp128r2) -> + <<16#04:8>> %% CoFactor + }; + +-curve(secp160k1) -> ++params(secp160k1) -> + { + {prime_field, <<16#FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFAC73:160>>}, %% Prime + {<<16#00:8>>, %% A +@@ -70,7 +81,7 @@ curve(secp160k1) -> + <<16#01:8>> %% CoFactor + }; + +-curve(secp160r1) -> ++params(secp160r1) -> + { + {prime_field, <<16#FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF7FFFFFFF:160>>}, %% Prime + {<<16#FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF7FFFFFFC:160>>, %% A +@@ -83,7 +94,7 @@ curve(secp160r1) -> + <<16#01:8>> %% CoFactor + }; + +-curve(secp160r2) -> ++params(secp160r2) -> + { + {prime_field, <<16#FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFAC73:160>>}, %% Prime + {<<16#FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFAC70:160>>, %% A +@@ -96,20 +107,7 @@ curve(secp160r2) -> + <<16#01:8>> %% CoFactor + }; + +-curve(secp192r1) -> +- { +- {prime_field, <<16#FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFFFFFFFFFFFF:192>>}, %% Prime +- {<<16#FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFFFFFFFFFFFC:192>>, %% A +- <<16#64210519E59C80E70FA7E9AB72243049FEB8DEECC146B9B1:192>>, %% B +- <<16#3045AE6FC8422F64ED579528D38120EAE12196D5:160>>}, %% Seed +- <<16#04:8, +- 16#188DA80EB03090F67CBF20EB43A18800F4FF0AFD82FF1012:192, %% X(p0) +- 16#07192B95FFC8DA78631011ED6B24CDD573F977A11E794811:192>>, %% Y(p0) +- <<16#FFFFFFFFFFFFFFFFFFFFFFFF99DEF836146BC9B1B4D22831:192>>, %% Order +- <<16#01:8>> %% CoFactor +- }; +- +-curve(secp192k1) -> ++params(secp192k1) -> + { + {prime_field, <<16#FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFEE37:192>>}, %% Prime + {<<16#00:8>>, %% A +@@ -122,7 +120,7 @@ curve(secp192k1) -> + <<16#01:8>> %% CoFactor + }; + +-curve(secp224k1) -> ++params(secp224k1) -> + { + {prime_field, <<16#FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFE56D:224>>}, %% Prime + {<<16#00:8>>, %% A +@@ -135,7 +133,7 @@ curve(secp224k1) -> + <<16#01:8>> %% CoFactor + }; + +-curve(secp224r1) -> ++params(secp224r1) -> + { + {prime_field, <<16#FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF000000000000000000000001:224>>}, %% Prime + {<<16#FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFFFFFFFFFFFFFFFFFFFE:224>>, %% A +@@ -148,7 +146,7 @@ curve(secp224r1) -> + <<16#01:8>> %% CoFactor + }; + +-curve(secp256k1) -> ++params(secp256k1) -> + { + {prime_field, <<16#FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFC2F:256>>}, %% Prime + {<<16#00:8>>, %% A +@@ -161,20 +159,7 @@ curve(secp256k1) -> + <<16#01:8>> %% CoFactor + }; + +-curve(secp256r1) -> +- { +- {prime_field, <<16#FFFFFFFF00000001000000000000000000000000FFFFFFFFFFFFFFFFFFFFFFFF:256>>}, %% Prime +- {<<16#FFFFFFFF00000001000000000000000000000000FFFFFFFFFFFFFFFFFFFFFFFC:256>>, %% A +- <<16#5AC635D8AA3A93E7B3EBBD55769886BC651D06B0CC53B0F63BCE3C3E27D2604B:256>>, %% B +- <<16#C49D360886E704936A6678E1139D26B7819F7E90:160>>}, %% Seed +- <<16#04:8, +- 16#6B17D1F2E12C4247F8BCE6E563A440F277037D812DEB33A0F4A13945D898C296:256, %% X(p0) +- 16#4FE342E2FE1A7F9B8EE7EB4A7C0F9E162BCE33576B315ECECBB6406837BF51F5:256>>, %% Y(p0) +- <<16#FFFFFFFF00000000FFFFFFFFFFFFFFFFBCE6FAADA7179E84F3B9CAC2FC632551:256>>, %% Order +- <<16#01:8>> %% CoFactor +- }; +- +-curve(secp384r1) -> ++params(secp384r1) -> + { + {prime_field, <<16#FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFE:256, %% Prime + 16#FFFFFFFF0000000000000000FFFFFFFF:128>>}, +@@ -193,7 +178,7 @@ curve(secp384r1) -> + <<16#01:8>> %% CoFactor + }; + +-curve(secp521r1) -> ++params(secp521r1) -> + { + {prime_field, <<16#01FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF:256, %% Prime + 16#FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF:256, +@@ -218,7 +203,7 @@ curve(secp521r1) -> + <<16#01:8>> %% CoFactor + }; + +-curve(prime192v1) -> ++params(prime192v1) -> + { + {prime_field, <<16#FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFFFFFFFFFFFF:192>>}, %% Prime + {<<16#FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFFFFFFFFFFFC:192>>, %% A +@@ -231,7 +216,7 @@ curve(prime192v1) -> + <<16#01:8>> %% CoFactor + }; + +-curve(prime192v2) -> ++params(prime192v2) -> + { + {prime_field, <<16#FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFFFFFFFFFFFF:192>>}, %% Prime + {<<16#FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFFFFFFFFFFFC:192>>, %% A +@@ -244,7 +229,7 @@ curve(prime192v2) -> + <<16#01:8>> %% CoFactor + }; + +-curve(prime192v3) -> ++params(prime192v3) -> + { + {prime_field, <<16#FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFFFFFFFFFFFF:192>>}, %% Prime + {<<16#FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFFFFFFFFFFFC:192>>, %% A +@@ -257,7 +242,7 @@ curve(prime192v3) -> + <<16#01:8>> %% CoFactor + }; + +-curve(prime239v1) -> ++params(prime239v1) -> + { + {prime_field, <<16#7FFFFFFFFFFFFFFFFFFFFFFF7FFFFFFFFFFF8000000000007FFFFFFFFFFF:240>>}, %% Prime + {<<16#7FFFFFFFFFFFFFFFFFFFFFFF7FFFFFFFFFFF8000000000007FFFFFFFFFFC:240>>, %% A +@@ -270,7 +255,7 @@ curve(prime239v1) -> + <<16#01:8>> %% CoFactor + }; + +-curve(prime239v2) -> ++params(prime239v2) -> + { + {prime_field, <<16#7FFFFFFFFFFFFFFFFFFFFFFF7FFFFFFFFFFF8000000000007FFFFFFFFFFF:240>>}, %% Prime + {<<16#7FFFFFFFFFFFFFFFFFFFFFFF7FFFFFFFFFFF8000000000007FFFFFFFFFFC:240>>, %% A +@@ -283,7 +268,7 @@ curve(prime239v2) -> + <<16#01:8>> %% CoFactor + }; + +-curve(prime239v3) -> ++params(prime239v3) -> + { + {prime_field, <<16#7FFFFFFFFFFFFFFFFFFFFFFF7FFFFFFFFFFF8000000000007FFFFFFFFFFF:240>>}, %% Prime + {<<16#7FFFFFFFFFFFFFFFFFFFFFFF7FFFFFFFFFFF8000000000007FFFFFFFFFFC:240>>, %% A +@@ -296,7 +281,7 @@ curve(prime239v3) -> + <<16#01:8>> %% CoFactor + }; + +-curve(prime256v1) -> ++params(prime256v1) -> + { + {prime_field, <<16#FFFFFFFF00000001000000000000000000000000FFFFFFFFFFFFFFFFFFFFFFFF:256>>}, %% Prime + {<<16#FFFFFFFF00000001000000000000000000000000FFFFFFFFFFFFFFFFFFFFFFFC:256>>, %% A +@@ -309,7 +294,7 @@ curve(prime256v1) -> + <<16#01:8>> %% CoFactor + }; + +-curve(sect113r1) -> ++params(sect113r1) -> + { + {characteristic_two_field, 113, {tpbasis,9}}, + {<<16#3088250CA6E7C7FE649CE85820F7:112>>, %% A +@@ -322,7 +307,7 @@ curve(sect113r1) -> + <<16#02:8>> %% CoFactor + }; + +-curve(sect113r2) -> ++params(sect113r2) -> + { + {characteristic_two_field, 113, {tpbasis,9}}, + {<<16#689918DBEC7E5A0DD6DFC0AA55C7:112>>, %% A +@@ -335,7 +320,7 @@ curve(sect113r2) -> + <<16#02:8>> %% CoFactor + }; + +-curve(sect131r1) -> ++params(sect131r1) -> + { + {characteristic_two_field, 131, {ppbasis,2,3,8}}, + {<<16#07A11B09A76B562144418FF3FF8C2570B8:136>>, %% A +@@ -348,7 +333,7 @@ curve(sect131r1) -> + <<16#02:8>> %% CoFactor + }; + +-curve(sect131r2) -> ++params(sect131r2) -> + { + {characteristic_two_field, 131, {ppbasis,2,3,8}}, + {<<16#03E5A88919D7CAFCBF415F07C2176573B2:136>>, %% A +@@ -361,7 +346,7 @@ curve(sect131r2) -> + <<16#02:8>> %% CoFactor + }; + +-curve(sect163k1) -> ++params(sect163k1) -> + { + {characteristic_two_field, 163, {ppbasis,3,6,7}}, + {<<16#01:8>>, %% A +@@ -374,7 +359,7 @@ curve(sect163k1) -> + <<16#02:8>> %% CoFactor + }; + +-curve(sect163r1) -> ++params(sect163r1) -> + { + {characteristic_two_field, 163, {ppbasis,3,6,7}}, + {<<16#07B6882CAAEFA84F9554FF8428BD88E246D2782AE2:168>>, %% A +@@ -387,7 +372,7 @@ curve(sect163r1) -> + <<16#02:8>> %% CoFactor + }; + +-curve(sect163r2) -> ++params(sect163r2) -> + { + {characteristic_two_field, 163, {ppbasis,3,6,7}}, + {<<16#01:8>>, %% A +@@ -400,7 +385,7 @@ curve(sect163r2) -> + <<16#02:8>> %% CoFactor + }; + +-curve(sect193r1) -> ++params(sect193r1) -> + { + {characteristic_two_field, 193, {tpbasis,15}}, + {<<16#17858FEB7A98975169E171F77B4087DE098AC8A911DF7B01:192>>, %% A +@@ -413,7 +398,7 @@ curve(sect193r1) -> + <<16#02:8>> %% CoFactor + }; + +-curve(sect193r2) -> ++params(sect193r2) -> + { + {characteristic_two_field, 193, {tpbasis,15}}, + {<<16#0163F35A5137C2CE3EA6ED8667190B0BC43ECD69977702709B:200>>, %% A +@@ -426,7 +411,7 @@ curve(sect193r2) -> + <<16#02:8>> %% CoFactor + }; + +-curve(sect233k1) -> ++params(sect233k1) -> + { + {characteristic_two_field, 233, {tpbasis,74}}, + {<<16#00:8>>, %% A +@@ -439,7 +424,7 @@ curve(sect233k1) -> + <<16#04:8>> %% CoFactor + }; + +-curve(sect233r1) -> ++params(sect233r1) -> + { + {characteristic_two_field, 233, {tpbasis,74}}, + {<<16#01:8>>, %% A +@@ -452,7 +437,7 @@ curve(sect233r1) -> + <<16#02:8>> %% CoFactor + }; + +-curve(sect239k1) -> ++params(sect239k1) -> + { + {characteristic_two_field, 239, {tpbasis,158}}, + {<<16#00:8>>, %% A +@@ -465,7 +450,7 @@ curve(sect239k1) -> + <<16#04:8>> %% CoFactor + }; + +-curve(sect283k1) -> ++params(sect283k1) -> + { + {characteristic_two_field, 283, {ppbasis,5,7,12}}, + {<<16#00:8>>, %% A +@@ -481,7 +466,7 @@ curve(sect283k1) -> + <<16#04:8>> %% CoFactor + }; + +-curve(sect283r1) -> ++params(sect283r1) -> + { + {characteristic_two_field, 283, {ppbasis,5,7,12}}, + {<<16#01:8>>, %% A +@@ -498,7 +483,7 @@ curve(sect283r1) -> + <<16#02:8>> %% CoFactor + }; + +-curve(sect409k1) -> ++params(sect409k1) -> + { + {characteristic_two_field, 409, {tpbasis,87}}, + {<<16#00:8>>, %% A +@@ -514,7 +499,7 @@ curve(sect409k1) -> + <<16#04:8>> %% CoFactor + }; + +-curve(sect409r1) -> ++params(sect409r1) -> + { + {characteristic_two_field, 409, {tpbasis,87}}, + {<<16#01:8>>, %% A +@@ -531,7 +516,7 @@ curve(sect409r1) -> + <<16#02:8>> %% CoFactor + }; + +-curve(sect571k1) -> ++params(sect571k1) -> + { + {characteristic_two_field, 571, {ppbasis,2,5,10}}, + {<<16#00:8>>, %% A +@@ -550,7 +535,7 @@ curve(sect571k1) -> + <<16#04:8>> %% CoFactor + }; + +-curve(sect571r1) -> ++params(sect571r1) -> + { + {characteristic_two_field, 571, {ppbasis,2,5,10}}, + {<<16#01:8>>, %% A +@@ -571,7 +556,7 @@ curve(sect571r1) -> + <<16#02:8>> %% CoFactor + }; + +-curve(c2pnb163v1) -> ++params(c2pnb163v1) -> + { + {characteristic_two_field, 163, {ppbasis,1,2,8}}, + {<<16#072546B5435234A422E0789675F432C89435DE5242:168>>, %% A +@@ -584,7 +569,7 @@ curve(c2pnb163v1) -> + <<16#02:8>> %% CoFactor + }; + +-curve(c2pnb163v2) -> ++params(c2pnb163v2) -> + { + {characteristic_two_field, 163, {ppbasis,1,2,8}}, + {<<16#0108B39E77C4B108BED981ED0E890E117C511CF072:168>>, %% A +@@ -597,7 +582,7 @@ curve(c2pnb163v2) -> + <<16#02:8>> %% CoFactor + }; + +-curve(c2pnb163v3) -> ++params(c2pnb163v3) -> + { + {characteristic_two_field, 163, {ppbasis,1,2,8}}, + {<<16#07A526C63D3E25A256A007699F5447E32AE456B50E:168>>, %% A +@@ -610,7 +595,7 @@ curve(c2pnb163v3) -> + <<16#02:8>> %% CoFactor + }; + +-curve(c2pnb176v1) -> ++params(c2pnb176v1) -> + { + {characteristic_two_field, 176, {ppbasis,1,2,43}}, + {<<16#E4E6DB2995065C407D9D39B8D0967B96704BA8E9C90B:176>>, %% A +@@ -623,7 +608,7 @@ curve(c2pnb176v1) -> + <<16#FF6E:16>> %% CoFactor + }; + +-curve(c2tnb191v1) -> ++params(c2tnb191v1) -> + { + {characteristic_two_field, 191, {tpbasis,9}}, + {<<16#2866537B676752636A68F56554E12640276B649EF7526267:192>>, %% A +@@ -636,7 +621,7 @@ curve(c2tnb191v1) -> + <<16#02:8>> %% CoFactor + }; + +-curve(c2tnb191v2) -> ++params(c2tnb191v2) -> + { + {characteristic_two_field, 191, {tpbasis,9}}, + {<<16#401028774D7777C7B7666D1366EA432071274F89FF01E718:192>>, %% A +@@ -649,7 +634,7 @@ curve(c2tnb191v2) -> + <<16#04:8>> %% CoFactor + }; + +-curve(c2tnb191v3) -> ++params(c2tnb191v3) -> + { + {characteristic_two_field, 191, {tpbasis,9}}, + {<<16#6C01074756099122221056911C77D77E77A777E7E7E77FCB:192>>, %% A +@@ -662,7 +647,7 @@ curve(c2tnb191v3) -> + <<16#06:8>> %% CoFactor + }; + +-curve(c2pnb208w1) -> ++params(c2pnb208w1) -> + { + {characteristic_two_field, 208, {ppbasis,1,2,83}}, + {<<16#00:8>>, %% A +@@ -675,7 +660,7 @@ curve(c2pnb208w1) -> + <<16#FE48:16>> %% CoFactor + }; + +-curve(c2tnb239v1) -> ++params(c2tnb239v1) -> + { + {characteristic_two_field, 239, {tpbasis,36}}, + {<<16#32010857077C5431123A46B808906756F543423E8D27877578125778AC76:240>>, %% A +@@ -688,7 +673,7 @@ curve(c2tnb239v1) -> + <<16#04:8>> %% CoFactor + }; + +-curve(c2tnb239v2) -> ++params(c2tnb239v2) -> + { + {characteristic_two_field, 239, {tpbasis,36}}, + {<<16#4230017757A767FAE42398569B746325D45313AF0766266479B75654E65F:240>>, %% A +@@ -701,7 +686,7 @@ curve(c2tnb239v2) -> + <<16#06:8>> %% CoFactor + }; + +-curve(c2tnb239v3) -> ++params(c2tnb239v3) -> + { + {characteristic_two_field, 239, {tpbasis,36}}, + {<<16#01238774666A67766D6676F778E676B66999176666E687666D8766C66A9F:240>>, %% A +@@ -714,7 +699,7 @@ curve(c2tnb239v3) -> + <<16#0A:8>> %% CoFactor + }; + +-curve(c2pnb272w1) -> ++params(c2pnb272w1) -> + { + {characteristic_two_field, 272, {ppbasis,1,3,56}}, + {<<16#91A091F03B5FBA4AB2CCF49C4EDD220FB028712D42BE752B2C40094DBACDB586:256, %% A +@@ -732,7 +717,7 @@ curve(c2pnb272w1) -> + <<16#FF06:16>> %% CoFactor + }; + +-curve(c2pnb304w1) -> ++params(c2pnb304w1) -> + { + {characteristic_two_field, 304, {ppbasis,1,2,11}}, + {<<16#FD0D693149A118F651E6DCE6802085377E5F882D1B510B44160074C128807836:256, %% A +@@ -750,7 +735,7 @@ curve(c2pnb304w1) -> + <<16#FE2E:16>> %% CoFactor + }; + +-curve(c2tnb359v1) -> ++params(c2tnb359v1) -> + { + {characteristic_two_field, 359, {tpbasis,68}}, + {<<16#5667676A654B20754F356EA92017D946567C46675556F19556A04616B567D223:256, %% A +@@ -768,7 +753,7 @@ curve(c2tnb359v1) -> + <<16#4C:8>> %% CoFactor + }; + +-curve(c2pnb368w1) -> ++params(c2pnb368w1) -> + { + {characteristic_two_field, 368, {ppbasis,1,2,85}}, + {<<16#E0D2EE25095206F5E2A4F9ED229F1F256E79A0E2B455970D8D0D865BD94778C5:256, %% A +@@ -786,7 +771,7 @@ curve(c2pnb368w1) -> + <<16#FF70:16>> %% CoFactor + }; + +-curve(c2tnb431r1) -> ++params(c2tnb431r1) -> + { + {characteristic_two_field, 431, {tpbasis,120}}, + {<<16#1A827EF00DD6FC0E234CAF046C6A5D8A85395B236CC4AD2CF32A0CADBDC9DDF6:256, %% A +@@ -804,7 +789,7 @@ curve(c2tnb431r1) -> + <<16#2760:16>> %% CoFactor + }; + +-curve(wtls1) -> ++params(wtls1) -> + { + {characteristic_two_field, 113, {tpbasis,9}}, + {<<16#01:8>>, %% A +@@ -817,7 +802,7 @@ curve(wtls1) -> + <<16#02:8>> %% CoFactor + }; + +-curve(wtls3) -> ++params(wtls3) -> + { + {characteristic_two_field, 163, {ppbasis,3,6,7}}, + {<<16#01:8>>, %% A +@@ -830,7 +815,7 @@ curve(wtls3) -> + <<16#02:8>> %% CoFactor + }; + +-curve(wtls4) -> ++params(wtls4) -> + { + {characteristic_two_field, 113, {tpbasis,9}}, + {<<16#3088250CA6E7C7FE649CE85820F7:112>>, %% A +@@ -843,7 +828,7 @@ curve(wtls4) -> + <<16#02:8>> %% CoFactor + }; + +-curve(wtls5) -> ++params(wtls5) -> + { + {characteristic_two_field, 163, {ppbasis,1,2,8}}, + {<<16#072546B5435234A422E0789675F432C89435DE5242:168>>, %% A +@@ -856,7 +841,7 @@ curve(wtls5) -> + <<16#02:8>> %% CoFactor + }; + +-curve(wtls6) -> ++params(wtls6) -> + { + {prime_field, <<16#DB7C2ABF62E35E668076BEAD208B:112>>}, %% Prime + {<<16#DB7C2ABF62E35E668076BEAD2088:112>>, %% A +@@ -869,7 +854,7 @@ curve(wtls6) -> + <<16#01:8>> %% CoFactor + }; + +-curve(wtls7) -> ++params(wtls7) -> + { + {prime_field, <<16#FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFAC73:160>>}, %% Prime + {<<16#FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFAC70:160>>, %% A +@@ -882,7 +867,7 @@ curve(wtls7) -> + <<16#01:8>> %% CoFactor + }; + +-curve(wtls8) -> ++params(wtls8) -> + { + {prime_field, <<16#FFFFFFFFFFFFFFFFFFFFFFFFFDE7:112>>}, %% Prime + {<<16#00:8>>, %% A +@@ -895,7 +880,7 @@ curve(wtls8) -> + <<16#01:8>> %% CoFactor + }; + +-curve(wtls9) -> ++params(wtls9) -> + { + {prime_field, <<16#FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFC808F:160>>}, %% Prime + {<<16#00:8>>, %% A +@@ -908,7 +893,7 @@ curve(wtls9) -> + <<16#01:8>> %% CoFactor + }; + +-curve(wtls10) -> ++params(wtls10) -> + { + {characteristic_two_field, 233, {tpbasis,74}}, + {<<16#00:8>>, %% A +@@ -921,7 +906,7 @@ curve(wtls10) -> + <<16#04:8>> %% CoFactor + }; + +-curve(wtls11) -> ++params(wtls11) -> + { + {characteristic_two_field, 233, {tpbasis,74}}, + {<<16#01:8>>, %% A +@@ -934,7 +919,7 @@ curve(wtls11) -> + <<16#02:8>> %% CoFactor + }; + +-curve(wtls12) -> ++params(wtls12) -> + { + {prime_field, <<16#FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF000000000000000000000001:224>>}, %% Prime + {<<16#FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFFFFFFFFFFFFFFFFFFFE:224>>, %% A +@@ -947,7 +932,7 @@ curve(wtls12) -> + <<16#01:8>> %% CoFactor + }; + +-curve(ipsec3) -> ++params(ipsec3) -> + { + {characteristic_two_field, 155, {tpbasis,62}}, + {<<16#00:8>>, %% A +@@ -960,7 +945,7 @@ curve(ipsec3) -> + <<16#03:8>> %% CoFactor + }; + +-curve(ipsec4) -> ++params(ipsec4) -> + { + {characteristic_two_field, 185, {tpbasis,69}}, + {<<16#00:8>>, %% A +@@ -973,7 +958,7 @@ curve(ipsec4) -> + <<16#02:8>> %% CoFactor + }; + +-curve(brainpoolP160r1) -> ++params(brainpoolP160r1) -> + { + {prime_field, <<16#E95E4A5F737059DC60DFC7AD95B3D8139515620F:160>>}, %% Prime + {<<16#340E7BE2A280EB74E2BE61BADA745D97E8F7C300:160>>, %% A +@@ -986,7 +971,7 @@ curve(brainpoolP160r1) -> + <<16#01:8>> %% CoFactor + }; + +-curve(brainpoolP160t1) -> ++params(brainpoolP160t1) -> + { + {prime_field, <<16#E95E4A5F737059DC60DFC7AD95B3D8139515620F:160>>}, %% Prime + {<<16#E95E4A5F737059DC60DFC7AD95B3D8139515620C:160>>, %% A +@@ -999,7 +984,7 @@ curve(brainpoolP160t1) -> + <<16#01:8>> %% CoFactor + }; + +-curve(brainpoolP192r1) -> ++params(brainpoolP192r1) -> + { + {prime_field, <<16#C302F41D932A36CDA7A3463093D18DB78FCE476DE1A86297:192>>}, %% Prime + {<<16#6A91174076B1E0E19C39C031FE8685C1CAE040E5C69A28EF:192>>, %% A +@@ -1012,7 +997,7 @@ curve(brainpoolP192r1) -> + <<16#01:8>> %% CoFactor + }; + +-curve(brainpoolP192t1) -> ++params(brainpoolP192t1) -> + { + {prime_field, <<16#C302F41D932A36CDA7A3463093D18DB78FCE476DE1A86297:192>>}, %% Prime + {<<16#C302F41D932A36CDA7A3463093D18DB78FCE476DE1A86294:192>>, %% A +@@ -1025,7 +1010,7 @@ curve(brainpoolP192t1) -> + <<16#01:8>> %% CoFactor + }; + +-curve(brainpoolP224r1) -> ++params(brainpoolP224r1) -> + { + {prime_field, <<16#D7C134AA264366862A18302575D1D787B09F075797DA89F57EC8C0FF:224>>}, %% Prime + {<<16#68A5E62CA9CE6C1C299803A6C1530B514E182AD8B0042A59CAD29F43:224>>, %% A +@@ -1038,7 +1023,7 @@ curve(brainpoolP224r1) -> + <<16#01:8>> %% CoFactor + }; + +-curve(brainpoolP224t1) -> ++params(brainpoolP224t1) -> + { + {prime_field, <<16#D7C134AA264366862A18302575D1D787B09F075797DA89F57EC8C0FF:224>>}, %% Prime + {<<16#D7C134AA264366862A18302575D1D787B09F075797DA89F57EC8C0FC:224>>, %% A +@@ -1051,7 +1036,7 @@ curve(brainpoolP224t1) -> + <<16#01:8>> %% CoFactor + }; + +-curve(brainpoolP256r1) -> ++params(brainpoolP256r1) -> + { + {prime_field, <<16#A9FB57DBA1EEA9BC3E660A909D838D726E3BF623D52620282013481D1F6E5377:256>>}, %% Prime + {<<16#7D5A0975FC2C3057EEF67530417AFFE7FB8055C126DC5C6CE94A4B44F330B5D9:256>>, %% A +@@ -1064,7 +1049,7 @@ curve(brainpoolP256r1) -> + <<16#01:8>> %% CoFactor + }; + +-curve(brainpoolP256t1) -> ++params(brainpoolP256t1) -> + { + {prime_field, <<16#A9FB57DBA1EEA9BC3E660A909D838D726E3BF623D52620282013481D1F6E5377:256>>}, %% Prime + {<<16#A9FB57DBA1EEA9BC3E660A909D838D726E3BF623D52620282013481D1F6E5374:256>>, %% A +@@ -1077,7 +1062,7 @@ curve(brainpoolP256t1) -> + <<16#01:8>> %% CoFactor + }; + +-curve(brainpoolP320r1) -> ++params(brainpoolP320r1) -> + { + {prime_field, <<16#D35E472036BC4FB7E13C785ED201E065F98FCFA6F6F40DEF4F92B9EC7893EC28:256, %% Prime + 16#FCD412B1F1B32E27:64>>}, +@@ -1096,7 +1081,7 @@ curve(brainpoolP320r1) -> + <<16#01:8>> %% CoFactor + }; + +-curve(brainpoolP320t1) -> ++params(brainpoolP320t1) -> + { + {prime_field, <<16#D35E472036BC4FB7E13C785ED201E065F98FCFA6F6F40DEF4F92B9EC7893EC28:256, %% Prime + 16#FCD412B1F1B32E27:64>>}, +@@ -1115,7 +1100,7 @@ curve(brainpoolP320t1) -> + <<16#01:8>> %% CoFactor + }; + +-curve(brainpoolP384r1) -> ++params(brainpoolP384r1) -> + { + {prime_field, <<16#8CB91E82A3386D280F5D6F7E50E641DF152F7109ED5456B412B1DA197FB71123:256, %% Prime + 16#ACD3A729901D1A71874700133107EC53:128>>}, +@@ -1134,7 +1119,7 @@ curve(brainpoolP384r1) -> + <<16#01:8>> %% CoFactor + }; + +-curve(brainpoolP384t1) -> ++params(brainpoolP384t1) -> + { + {prime_field, <<16#8CB91E82A3386D280F5D6F7E50E641DF152F7109ED5456B412B1DA197FB71123:256, %% Prime + 16#ACD3A729901D1A71874700133107EC53:128>>}, +@@ -1153,7 +1138,7 @@ curve(brainpoolP384t1) -> + <<16#01:8>> %% CoFactor + }; + +-curve(brainpoolP512r1) -> ++params(brainpoolP512r1) -> + { + {prime_field, <<16#AADD9DB8DBE9C48B3FD4E6AE33C9FC07CB308DB3B3C9D20ED6639CCA70330871:256, %% Prime + 16#7D4D9B009BC66842AECDA12AE6A380E62881FF2F2D82C68528AA6056583A48F3:256>>}, +@@ -1172,7 +1157,7 @@ curve(brainpoolP512r1) -> + <<16#01:8>> %% CoFactor + }; + +-curve(brainpoolP512t1) -> ++params(brainpoolP512t1) -> + { + {prime_field, <<16#AADD9DB8DBE9C48B3FD4E6AE33C9FC07CB308DB3B3C9D20ED6639CCA70330871:256, %% Prime + 16#7D4D9B009BC66842AECDA12AE6A380E62881FF2F2D82C68528AA6056583A48F3:256>>}, diff --git a/otp-0021-crypto_SUITE-Skip-ec-curves-with-224-bits-if-FIPS.patch b/otp-0021-crypto_SUITE-Skip-ec-curves-with-224-bits-if-FIPS.patch new file mode 100644 index 0000000..5615558 --- /dev/null +++ b/otp-0021-crypto_SUITE-Skip-ec-curves-with-224-bits-if-FIPS.patch @@ -0,0 +1,78 @@ +From: Sverker Eriksson +Date: Fri, 16 Jun 2023 19:31:34 +0200 +Subject: [PATCH] crypto_SUITE: Skip ec curves with < 224 bits if FIPS + + +diff --git a/lib/crypto/test/crypto_SUITE.erl b/lib/crypto/test/crypto_SUITE.erl +index c56faa9bc4..1179a516b2 100644 +--- a/lib/crypto/test/crypto_SUITE.erl ++++ b/lib/crypto/test/crypto_SUITE.erl +@@ -1256,8 +1256,19 @@ no_generate_compute(Config) when is_list(Config) -> + compute() -> + [{doc, " Test crypto:compute_key"}]. + compute(Config) when is_list(Config) -> +- Gen = proplists:get_value(compute, Config), ++ Gen0 = proplists:get_value(compute, Config), ++ Gen = case crypto:info_fips() of ++ enabled -> ++ SkipCurves = [secp192r1], ++ lists:filter(fun({_,_,_,Curve,_}) -> ++ not lists:member(Curve,SkipCurves) ++ end, ++ Gen0); ++ _ -> ++ Gen0 ++ end, + lists:foreach(fun do_compute/1, Gen). ++ + %%-------------------------------------------------------------------- + use_all_ec_sign_verify(_Config) -> + Msg = <<"hello world!">>, +@@ -1270,10 +1281,17 @@ use_all_ec_sign_verify(_Config) -> + Hashs]), + SkipHashs0 = [md4, md5, ripemd160, sha3_224, sha3_256, sha3_384, sha3_512, + blake2b, blake2s], +- SkipHashs = case crypto:info_fips() of +- enabled -> [sha | SkipHashs0]; +- _ -> SkipHashs0 +- end, ++ SkipCurves0 = [ed25519, ed448, x25519, x448, ipsec3, ipsec4], ++ ++ {SkipHashs, SkipCurves} ++ = case crypto:info_fips() of ++ enabled -> ++ {[sha | SkipHashs0], ++ [secp192r1, prime192v1, sect163k1, sect163r2]}; ++ _ -> ++ {SkipHashs0, SkipCurves0} ++ end, ++ + Results = + [{{Curve,Hash}, + try +@@ -1287,7 +1305,7 @@ use_all_ec_sign_verify(_Config) -> + C:E -> + {C,E} + end} +- || Curve <- Curves -- [ed25519, ed448, x25519, x448, ipsec3, ipsec4], ++ || Curve <- Curves -- SkipCurves, + Hash <- Hashs -- SkipHashs + ], + Fails = +@@ -1316,7 +1334,15 @@ use_all_ec_sign_verify(_Config) -> + + %%-------------------------------------------------------------------- + use_all_ecdh_generate_compute(Config) -> +- Curves = crypto:supports(curves) -- [ed25519, ed448, x25519, x448], ++ SkipCurves0 = [ed25519, ed448, x25519, x448], ++ SkipCurves = ++ case crypto:info_fips() of ++ enabled -> ++ [secp192r1, prime192v1, sect163k1, sect163r2 | SkipCurves0]; ++ _ -> ++ SkipCurves0 ++ end, ++ Curves = crypto:supports(curves) -- SkipCurves, + do_dh_curves(Config, Curves). + + use_all_eddh_generate_compute(Config) -> diff --git a/otp-0022-crypto_SUITE-Fix-safe-primes-for-DH-with-FIPS.patch b/otp-0022-crypto_SUITE-Fix-safe-primes-for-DH-with-FIPS.patch new file mode 100644 index 0000000..3181670 --- /dev/null +++ b/otp-0022-crypto_SUITE-Fix-safe-primes-for-DH-with-FIPS.patch @@ -0,0 +1,37 @@ +From: Sverker Eriksson +Date: Tue, 20 Jun 2023 14:50:27 +0200 +Subject: [PATCH] crypto_SUITE: Fix safe primes for DH with FIPS + +FIPs on OpenSSL 3 seems to demand P to be a safe prime +where Q = (P-1)/2 is also prime. + +diff --git a/lib/crypto/test/crypto_SUITE.erl b/lib/crypto/test/crypto_SUITE.erl +index 1179a516b2..eea60a523d 100644 +--- a/lib/crypto/test/crypto_SUITE.erl ++++ b/lib/crypto/test/crypto_SUITE.erl +@@ -1220,6 +1220,15 @@ generate_compute(Config) when is_list(Config) -> + compute_bug() -> + [{doc, "Test that it works even if the Secret is smaller than expected"}]. + compute_bug(_Config) -> ++ case crypto:info_fips() of ++ enabled -> ++ %% FIPs on OpenSSL 3 seems to demand P to be a safe prime ++ %% where Q = (P-1)/2 is also prime. ++ skip; ++ _ -> do_compute_bug() ++ end. ++ ++do_compute_bug() -> + ExpectedSecret = <<118,89,171,16,156,18,156,103,189,134,130,49,28,144,111,241,247,82,79,32,228,11,209,141,119,176,251,80,105,143,235,251,203,121,223,211,129,3,233,133,45,2,31,157,24,111,5,75,153,66,135,185,128,115,229,178,216,39,73,52,80,151,8,241,34,52,226,71,137,167,53,48,59,224,175,154,89,110,76,83,24,117,149,21,72,6,186,78,149,74,188,56,98,244,30,77,108,248,88,194,195,237,23,51,20,242,254,123,21,12,209,74,217,168,230,65,7,60,211,139,128,239,234,153,22,229,180,59,159,121,41,156,121,200,177,130,163,162,54,224,93,1,94,11,177,254,118,28,156,26,116,10,207,145,219,166,214,189,214,230,221,170,228,15,69,88,31,68,94,255,113,58,49,82,86,192,248,176,131,133,39,186,194,172,206,84,184,16,66,68,153,128,178,227,27,118,52,130,122,92,24,222,102,195,221,207,255,13,152,175,65,32,167,84,54,244,243,109,244,18,234,16,159,224,188,2,106,123,27,17,131,171,226,34,111,251,62,119,155,124,221,124,254,62,97,167,1,105,116,98,98,19,197,30,72,180,79,221,100,134,120,117,124,85,73,132,224,223,222,41,155,137,218,130,238,237,157,161,134,150,69,206,91,141,17,89,120,218,235,229,37,150,76,197,7,157,56,144,42,203,137,100,200,72,141,194,239,1,67,236,238,183,48,214,75,76,108,235,3,237,67,40,137,45,182,236,246,37,116,103,144,237,142,211,88,233,11,24,21,218,41,245,250,51,130,250,104,74,189,17,69,145,70,50,50,215,253,155,10,128,41,114,185,211,82,164,72,92,17,145,104,66,6,140,226,80,43,62,1,166,216,153,118,96,15,147,126,137,118,191,192,75,149,241,206,18,92,17,154,215,219,18,6,139,190,103,210,156,184,29,224,213,157,60,112,189,104,220,125,40,186,50,119,17,143,136,149,38,74,107,21,192,59,61,59,42,231,144,59,175,3,176,87,23,16,122,54,31,82,34,230,211,44,81,41,47,86,37,228,175,130,148,88,136,131,254,241,202,99,199,175,1,141,215,124,155,120,43,141,89,11,140,120,141,29,35,82,219,155,204,75,12,66,241,253,33,250,84,24,85,68,13,80,85,142,227,34,139,26,146,24>>, + OthersPublicKey = 635619632099733175381667940709387641100492974601603060984753028943194386334921787463327680809776598322996634648015962954045728174069768874873236397421720142610982770302060309928552098274817978606093380781524199673890631795310930242601197479471368910519338301177304682162189801040921618559902948819107531088646753320486728060005223263561551402855338732899079439899705951063999951507319258050864346087428042978411873495523439615429804957374639092580169417598963105885529553632847023899713490485619763926900318508906706745060947269748612049634207985438016935262521715769812475329234748426647554362991758104620357149045960316987533503707855364806010494793980069245562784050236811004893018183726397041999426883788660276453352521120006817370050691205529335316794439089316232980047277245051173281601960196573681285904611182521967067911862467395705665888521948321299521549941618586026714676885890192323289343756440666276226084448279082483536164085883288884231665240707495770544705648564889889198060417915693315346959170105413290799314390963124178046425737828369059171472978294050322371452255088799865552038756937873388385970088906560408959959429398326288750834357514847891423941047433478384621074116184703014798814515161475596555032391555842, + MyPrivateKey = 387759582879975726965038486537011291913744975764132199838375902680222019267527675651273586836110220500657652661706223760165097275862806031329642160439090779625708664007910974206651834216043397115514725827856461492311499129200688538220719685637154290305617686974719521885238198226075381217068175824097878445476010193039590876624464274744156624589136789060427283492343902761765833713520850870233407503430180028104167029073459918756981323130062648615262139444306321256382009848217866984408901761817655567071716275177768316006340055589170095799943481591033461616307776069027985761229636731465482676467627154100912586936231051371168178564599296638350391246393336702334311781595616786107810962134407697848002331639021101685320844880636050048769216986088652236979636019052557155807310341483407890060105599892252118584570558049301477535792498672552850760356632076013402382600669875697284264329434950712239302528367835155163504374877787288116104285944993818319105835423479332617802010952731990182088670508346704423006877514817882782443833997288652405892920173712497948376815825396272381214976859009518623799156300136570204539240675245115597412280078940442452936425561984312708387584800789375684525365060589104566195610526570099527133097201479, +@@ -4403,8 +4412,7 @@ ecdh() -> + ). + + dh() -> +- {dh, 90970053988169282502023478715631717259407236400413906591937635666709823903223997309250405131675572047545403771567755831138144089197560332757755059848492919215391041119286178688014693040542889497092308638580104031455627238700168892909539193174537248629499995652186913900511641708112112482297874449292467498403, 2}. +- ++ {dh, 16#FFFFFFFFFFFFFFFFADF85458A2BB4A9AAFDC5620273D3CF1D8B9C583CE2D3695A9E13641146433FBCC939DCE249B3EF97D2FE363630C75D8F681B202AEC4617AD3DF1ED5D5FD65612433F51F5F066ED0856365553DED1AF3B557135E7F57C935984F0C70E0E68B77E2A689DAF3EFE8721DF158A136ADE73530ACCA4F483A797ABC0AB182B324FB61D108A94BB2C8E3FBB96ADAB760D7F4681D4F42A3DE394DF4AE56EDE76372BB190B07A7C8EE0A6D709E02FCE1CDF7E2ECC03404CD28342F619172FE9CE98583FF8E4F1232EEF28183C3FE3B1B4C6FAD733BB5FCBC2EC22005C58EF1837D1683B2C6F34A26C1B2EFFA886B423861285C97FFFFFFFFFFFFFFFF, 2}. + + + rsa_oaep() -> diff --git a/otp-0023-crypto-Skip-entire-engine_SUITE-if-notsup.patch b/otp-0023-crypto-Skip-entire-engine_SUITE-if-notsup.patch new file mode 100644 index 0000000..770826f --- /dev/null +++ b/otp-0023-crypto-Skip-entire-engine_SUITE-if-notsup.patch @@ -0,0 +1,53 @@ +From: Sverker Eriksson +Date: Tue, 20 Jun 2023 15:29:57 +0200 +Subject: [PATCH] crypto: Skip entire engine_SUITE if notsup + + +diff --git a/lib/crypto/test/engine_SUITE.erl b/lib/crypto/test/engine_SUITE.erl +index 8907d3968f..b2c25bdcae 100644 +--- a/lib/crypto/test/engine_SUITE.erl ++++ b/lib/crypto/test/engine_SUITE.erl +@@ -136,20 +136,23 @@ groups() -> + + + init_per_suite(Config) -> +- try {os:type(), crypto:info_lib()} of +- {_, [{_,_, <<"OpenSSL 1.0.1s-freebsd 1 Mar 2016">>}]} -> ++ try {engine_supported(), os:type(), crypto:info_lib()} of ++ {false,_,[{_,_,OpenSSLversion}]} -> ++ {skip, "Engine not supported by " ++ OpenSSLversion}; ++ ++ {_,_, [{_,_, <<"OpenSSL 1.0.1s-freebsd 1 Mar 2016">>}]} -> + {skip, "Problem with engine on OpenSSL 1.0.1s-freebsd"}; + +- {_, [{_,_,<<"LibreSSL 2.1.",_/binary>>}]} -> ++ {_,_, [{_,_,<<"LibreSSL 2.1.",_/binary>>}]} -> + {skip, "Problem with engine on older LibreSSL 2.1.*"}; + +- {{unix,darwin}, _} -> ++ {_,{unix,darwin}, _} -> + {skip, "Engine unsupported on Darwin"}; +- +- {{win32,_}, _} -> ++ ++ {_,{win32,_}, _} -> + {skip, "Engine unsupported on Windows"}; +- +- {OS, Res} -> ++ ++ {_,OS, Res} -> + ct:log("crypto:info_lib() -> ~p\nos:type() -> ~p", [Res,OS]), + try crypto:start() of + ok -> +@@ -166,6 +169,11 @@ init_per_suite(Config) -> + end_per_suite(_Config) -> + ok. + ++engine_supported() -> ++ try crypto:engine_list(), true ++ catch error:notsup -> false ++ end. ++ + %%-------------------------------------------------------------------- + init_per_group(engine_stored_key, Config) -> + group_load_engine(Config, [engine_method_rsa]); diff --git a/otp-0024-crypto-Fix-doc-for-FIPS-with-OpenSSL-3.patch b/otp-0024-crypto-Fix-doc-for-FIPS-with-OpenSSL-3.patch new file mode 100644 index 0000000..36a0c8b --- /dev/null +++ b/otp-0024-crypto-Fix-doc-for-FIPS-with-OpenSSL-3.patch @@ -0,0 +1,21 @@ +From: Sverker Eriksson +Date: Tue, 20 Jun 2023 20:55:03 +0200 +Subject: [PATCH] crypto: Fix doc for FIPS with OpenSSL 3 + + +diff --git a/lib/crypto/doc/src/crypto_app.xml b/lib/crypto/doc/src/crypto_app.xml +index dcc86cd49c..4bc019f244 100644 +--- a/lib/crypto/doc/src/crypto_app.xml ++++ b/lib/crypto/doc/src/crypto_app.xml +@@ -50,9 +50,9 @@ + LibreSSL should also work.

+ +

The crypto app is tested daily with at least one version of each of the +- OpenSSL 1.0.1, 1.0.2, 1.1.0, 1.1.1 and 3.0. FIPS mode is also tested for 1.0.1 and 1.0.2.

++ OpenSSL 1.0.1, 1.0.2, 1.1.0, 1.1.1 and 3.0. FIPS mode is also tested for 1.0.1, 1.0.2 and 3.0.

+ +-

Using OpenSSL 3.0 with Engines or in FIPS mode is not yet supported by the OTP/crypto app.

++

Using OpenSSL 3.0 with Engines is not yet supported by the OTP/crypto app.

+ +

Source releases of OpenSSL can be downloaded from the OpenSSL project home page, + or mirror sites listed there. From 88aca5c203ffa55c07661a5e05deeb8c7f21ed36 Mon Sep 17 00:00:00 2001 From: Peter Lemenkov Date: Wed, 20 Sep 2023 11:07:56 +0200 Subject: [PATCH 097/135] Erlang ver. 26.1 Signed-off-by: Peter Lemenkov --- erlang.spec | 21 +- otp-0002-Remove-rpath.patch | 2 +- otp-0006-Add-extra-search-directory.patch | 4 +- ...ate_key-3-for-ecdh-to-only-use-OpenS.patch | 215 ----- ...ssl_BN_param_from_bin_sz-to-not-abus.patch | 102 --- ...-enable-FIPS_SUPPORT-for-HAS_3_0_API.patch | 22 - ...IPS-bug-in-check_pkey_algorithm_type.patch | 18 - ...nge-to-longer-dss-keys-acceptable-to.patch | 28 - ...Remove-sha-1-as-hash-for-dss-if-FIPS.patch | 33 - ...ove-md5-ripemd160-and-sha-as-hash-fo.patch | 24 - ...-generate-ec-key-by-name-if-possible.patch | 284 ------ ...rypto_SUITE-Skip-sha-1-sign-for-FIPS.patch | 59 -- ...0-crypto-Unalias-some-ec-curve-names.patch | 806 ------------------ ...Skip-ec-curves-with-224-bits-if-FIPS.patch | 78 -- ...ITE-Fix-safe-primes-for-DH-with-FIPS.patch | 37 - ...o-Skip-entire-engine_SUITE-if-notsup.patch | 53 -- ...ypto-Fix-doc-for-FIPS-with-OpenSSL-3.patch | 21 - sources | 2 +- 18 files changed, 9 insertions(+), 1800 deletions(-) delete mode 100644 otp-0011-crypto-Fix-generate_key-3-for-ecdh-to-only-use-OpenS.patch delete mode 100644 otp-0012-crypto-Fix-get_ossl_BN_param_from_bin_sz-to-not-abus.patch delete mode 100644 otp-0013-crypto-Re-enable-FIPS_SUPPORT-for-HAS_3_0_API.patch delete mode 100644 otp-0014-crypto-Fix-FIPS-bug-in-check_pkey_algorithm_type.patch delete mode 100644 otp-0015-crypto_SUITE-Change-to-longer-dss-keys-acceptable-to.patch delete mode 100644 otp-0016-crypto_SUITE-Remove-sha-1-as-hash-for-dss-if-FIPS.patch delete mode 100644 otp-0017-crypto_SUITE-Remove-md5-ripemd160-and-sha-as-hash-fo.patch delete mode 100644 otp-0018-crypto-Try-generate-ec-key-by-name-if-possible.patch delete mode 100644 otp-0019-crypto_SUITE-Skip-sha-1-sign-for-FIPS.patch delete mode 100644 otp-0020-crypto-Unalias-some-ec-curve-names.patch delete mode 100644 otp-0021-crypto_SUITE-Skip-ec-curves-with-224-bits-if-FIPS.patch delete mode 100644 otp-0022-crypto_SUITE-Fix-safe-primes-for-DH-with-FIPS.patch delete mode 100644 otp-0023-crypto-Skip-entire-engine_SUITE-if-notsup.patch delete mode 100644 otp-0024-crypto-Fix-doc-for-FIPS-with-OpenSSL-3.patch diff --git a/erlang.spec b/erlang.spec index da51e3b..b4e6469 100644 --- a/erlang.spec +++ b/erlang.spec @@ -68,8 +68,8 @@ Name: erlang -Version: 26.0.2 -Release: 3%{?dist} +Version: 26.1 +Release: 1%{?dist} Summary: General-purpose programming language and runtime environment License: ASL 2.0 @@ -110,20 +110,6 @@ Patch7: otp-0007-Avoid-forking-sed-to-get-basename.patch Patch8: otp-0008-Load-man-pages-from-system-wide-directory.patch Patch9: otp-0009-configure.ac-C99-fix-for-ERTS___AFTER_MORECORE_HOOK_.patch Patch10: otp-0010-configure.ac-C99-fixes-for-poll_works-check.patch -Patch11: otp-0011-crypto-Fix-generate_key-3-for-ecdh-to-only-use-OpenS.patch -Patch12: otp-0012-crypto-Fix-get_ossl_BN_param_from_bin_sz-to-not-abus.patch -Patch13: otp-0013-crypto-Re-enable-FIPS_SUPPORT-for-HAS_3_0_API.patch -Patch14: otp-0014-crypto-Fix-FIPS-bug-in-check_pkey_algorithm_type.patch -Patch15: otp-0015-crypto_SUITE-Change-to-longer-dss-keys-acceptable-to.patch -Patch16: otp-0016-crypto_SUITE-Remove-sha-1-as-hash-for-dss-if-FIPS.patch -Patch17: otp-0017-crypto_SUITE-Remove-md5-ripemd160-and-sha-as-hash-fo.patch -Patch18: otp-0018-crypto-Try-generate-ec-key-by-name-if-possible.patch -Patch19: otp-0019-crypto_SUITE-Skip-sha-1-sign-for-FIPS.patch -Patch20: otp-0020-crypto-Unalias-some-ec-curve-names.patch -Patch21: otp-0021-crypto_SUITE-Skip-ec-curves-with-224-bits-if-FIPS.patch -Patch22: otp-0022-crypto_SUITE-Fix-safe-primes-for-DH-with-FIPS.patch -Patch23: otp-0023-crypto-Skip-entire-engine_SUITE-if-notsup.patch -Patch24: otp-0024-crypto-Fix-doc-for-FIPS-with-OpenSSL-3.patch # end of autogenerated patch tag list BuildRequires: gcc @@ -1982,6 +1968,9 @@ useradd -r -g epmd -d /dev/null -s /sbin/nologin \ %changelog +* Wed Sep 20 2023 Peter Lemenkov - 26.1-1 +- Ver. 26.1 + * Tue Aug 8 2023 Peter Lemenkov - 26.0.2-3 - Reenable OpenSSL 3 diff --git a/otp-0002-Remove-rpath.patch b/otp-0002-Remove-rpath.patch index b906050..c3685c9 100644 --- a/otp-0002-Remove-rpath.patch +++ b/otp-0002-Remove-rpath.patch @@ -5,7 +5,7 @@ Subject: [PATCH] Remove rpath Signed-off-by: Peter Lemenkov diff --git a/lib/crypto/c_src/Makefile.in b/lib/crypto/c_src/Makefile.in -index 25167a8a3a..2345970fa9 100644 +index 1691a7d120..48dcff51d0 100644 --- a/lib/crypto/c_src/Makefile.in +++ b/lib/crypto/c_src/Makefile.in @@ -147,7 +147,7 @@ endif diff --git a/otp-0006-Add-extra-search-directory.patch b/otp-0006-Add-extra-search-directory.patch index 3c7339a..9717baa 100644 --- a/otp-0006-Add-extra-search-directory.patch +++ b/otp-0006-Add-extra-search-directory.patch @@ -5,10 +5,10 @@ Subject: [PATCH] Add extra search directory Signed-off-by: Peter Lemenkov diff --git a/lib/kernel/src/code_server.erl b/lib/kernel/src/code_server.erl -index f420337eb7..7e056ac2f6 100644 +index c5ba677c6e..0d23c61c0c 100644 --- a/lib/kernel/src/code_server.erl +++ b/lib/kernel/src/code_server.erl -@@ -89,11 +89,17 @@ init(Ref, Parent, [Root,Mode]) -> +@@ -90,11 +90,17 @@ init(Ref, Parent, [Root,Mode]) -> IPath = case Mode of interactive -> diff --git a/otp-0011-crypto-Fix-generate_key-3-for-ecdh-to-only-use-OpenS.patch b/otp-0011-crypto-Fix-generate_key-3-for-ecdh-to-only-use-OpenS.patch deleted file mode 100644 index ca059e6..0000000 --- a/otp-0011-crypto-Fix-generate_key-3-for-ecdh-to-only-use-OpenS.patch +++ /dev/null @@ -1,215 +0,0 @@ -From: Sverker Eriksson -Date: Wed, 7 Jun 2023 18:52:46 +0200 -Subject: [PATCH] crypto: Fix generate_key/3 for ecdh to only use OpenSSL 3.0 - API - -to prepare for using FIPS on OpenSSL 3.0 - -diff --git a/lib/crypto/c_src/Makefile.in b/lib/crypto/c_src/Makefile.in -index 2345970fa9..28f7b595e8 100644 ---- a/lib/crypto/c_src/Makefile.in -+++ b/lib/crypto/c_src/Makefile.in -@@ -205,9 +205,9 @@ $(LIBDIR)/otp_test_engine$(TYPEMARKER).dll: $(TEST_ENGINE_OBJS) - $(V_LD) $(LDFLAGS) -o $@ $(SSL_DED_LD_RUNTIME_LIBRARY_PATH) -L$(SSL_LIBDIR) $(TEST_ENGINE_OBJS) -l$(SSL_CRYPTO_LIBNAME) -l$(SSL_SSL_LIBNAME) $(SSL_EXTRA_LIBS) - endif - --$(OBJDIR)/ec$(TYPEMARKER).o: ec.c -- $(V_at)$(INSTALL_DIR) $(OBJDIR) -- $(V_CC) -c -o $@ $(ALL_CFLAGS) $(CRYPTO_NO_DEPRECATE_WARN) $< -+# $(OBJDIR)/ec$(TYPEMARKER).o: ec.c -+# $(V_at)$(INSTALL_DIR) $(OBJDIR) -+# $(V_CC) -c -o $@ $(ALL_CFLAGS) $(CRYPTO_NO_DEPRECATE_WARN) $< - - $(OBJDIR)/%$(TYPEMARKER).o: %.c - $(V_at)$(INSTALL_DIR) $(OBJDIR) -diff --git a/lib/crypto/c_src/ec.c b/lib/crypto/c_src/ec.c -index 124582c4f8..852f3ba79c 100644 ---- a/lib/crypto/c_src/ec.c -+++ b/lib/crypto/c_src/ec.c -@@ -24,6 +24,8 @@ - #ifdef HAVE_EC - # if defined(HAS_3_0_API) - -+# include -+ - int get_curve_definition(ErlNifEnv* env, ERL_NIF_TERM *ret, ERL_NIF_TERM def, - OSSL_PARAM params[], int *i, - size_t *order_size) -@@ -253,13 +255,7 @@ int get_ec_public_key(ErlNifEnv* env, ERL_NIF_TERM key, EVP_PKEY **pkey) - } - - --int get_ec_private_key_2(ErlNifEnv* env, -- ERL_NIF_TERM curve, ERL_NIF_TERM key, -- EVP_PKEY **pkey, -- ERL_NIF_TERM *ret, -- size_t *order_size); -- --int get_ec_private_key_2(ErlNifEnv* env, -+static int get_ec_private_key_2(ErlNifEnv* env, - ERL_NIF_TERM curve, ERL_NIF_TERM key, - EVP_PKEY **pkey, - ERL_NIF_TERM *ret, -@@ -319,7 +315,8 @@ int get_ec_private_key(ErlNifEnv* env, ERL_NIF_TERM key, EVP_PKEY **pkey) - return 0; - } - --int mk_pub_key_binary(ErlNifEnv* env, EVP_PKEY **peer_pkey, ErlNifBinary *pubkey_bin, ERL_NIF_TERM *ret); -+static int mk_pub_key_binary(ErlNifEnv* env, EVP_PKEY *peer_pkey, -+ ErlNifBinary *pubkey_bin, ERL_NIF_TERM *ret); - - ERL_NIF_TERM ec_generate_key_nif(ErlNifEnv* env, int argc, const ERL_NIF_TERM argv[]) - { /* (Curve, PrivKey|undefined) */ -@@ -339,9 +336,8 @@ ERL_NIF_TERM ec_generate_key_nif(ErlNifEnv* env, int argc, const ERL_NIF_TERM ar - - /* Get the two keys, pub as binary and priv as BN. - Since the private key is explicitly given, it must be calculated. -- I haven't found any way to do that with the pure 3.0 interface yet. - */ -- if (!mk_pub_key_binary(env, &peer_pkey, &pubkey_bin, &ret)) -+ if (!mk_pub_key_binary(env, peer_pkey, &pubkey_bin, &ret)) - goto err; - - if (!EVP_PKEY_get_bn_param(peer_pkey, "priv", &priv_bn)) -@@ -398,67 +394,81 @@ ERL_NIF_TERM ec_generate_key_nif(ErlNifEnv* env, int argc, const ERL_NIF_TERM ar - return ret; - } - --int mk_pub_key_binary(ErlNifEnv* env, EVP_PKEY **peer_pkey, ErlNifBinary *pubkey_bin, ERL_NIF_TERM *ret) -+static int mk_pub_key_binary(ErlNifEnv* env, EVP_PKEY *peer_pkey, -+ ErlNifBinary *pubkey_bin, ERL_NIF_TERM *ret) - { -- EC_KEY *ec_key = NULL; -- EC_POINT *public_key = NULL; -- EC_GROUP *group = NULL; -- BIGNUM *priv_bn = NULL; -- -- *ret = atom_undefined; -- -- /* Use the deprecated interface to get the curve and -- private key in pre 3.0 form: */ -- if ((ec_key = EVP_PKEY_get1_EC_KEY(*peer_pkey)) == NULL) -- assign_goto(*ret, err, EXCP_ERROR(env, "Couldn't get EC key")); -- -- if ((group = EC_GROUP_dup(EC_KEY_get0_group(ec_key))) == NULL) -+ size_t pub_key_size = 0; -+ size_t group_name_size = 0; -+ char group_name_buf[20]; -+ char* group_name = group_name_buf; -+ int group_nid; -+ EC_GROUP* ec_group = NULL; -+ EC_POINT* pub_key = NULL; -+ BIGNUM* priv_bn = NULL; -+ int ok = 0; -+ -+ /* This code was inspired by -+ * https://github.com/openssl/openssl/issues/18437 -+ * which first tried to get public key directly with -+ * EVP_PKEY_get_octet_string_param(peer_pkey, OSSL_PKEY_PARAM_PUB_KEY,..) -+ * -+ * I removed that since I don't know what key format that will produce -+ * if it succeeds. That is, we go directly to the "fallback" and calculate -+ * the public key. -+ */ -+ -+ if (!EVP_PKEY_get_utf8_string_param(peer_pkey, OSSL_PKEY_PARAM_GROUP_NAME, -+ NULL, 0, &group_name_size)) -+ assign_goto(*ret, err, EXCP_ERROR(env, "Couldn't get EC group name size")); -+ -+ if (group_name_size >= sizeof(group_name_buf)) -+ group_name = enif_alloc(group_name_size + 1); -+ if (!EVP_PKEY_get_utf8_string_param(peer_pkey, OSSL_PKEY_PARAM_GROUP_NAME, -+ group_name, group_name_size+1, -+ NULL)) -+ assign_goto(*ret, err, EXCP_ERROR(env, "Couldn't get EC group name")); -+ -+ group_nid = OBJ_sn2nid(group_name); -+ if (group_nid == NID_undef) -+ assign_goto(*ret, err, EXCP_ERROR(env, "Couldn't get EC group nid")); -+ -+ ec_group = EC_GROUP_new_by_curve_name(group_nid); -+ if (ec_group == NULL) - assign_goto(*ret, err, EXCP_ERROR(env, "Couldn't get EC_GROUP")); - -- if ((public_key = EC_POINT_new(group)) == NULL) -+ pub_key = EC_POINT_new(ec_group); -+ if (pub_key == NULL) - assign_goto(*ret, err, EXCP_ERROR(env, "Couldn't create POINT")); - -- if (!EC_POINT_copy(public_key, EC_GROUP_get0_generator(group))) -- assign_goto(*ret, err, EXCP_ERROR(env, "Couldn't copy POINT")); -- -- /* Make the corresponding public key */ -- if (!EVP_PKEY_get_bn_param(*peer_pkey, "priv", &priv_bn)) -+ if (!EVP_PKEY_get_bn_param(peer_pkey, OSSL_PKEY_PARAM_PRIV_KEY, &priv_bn)) - assign_goto(*ret, err, EXCP_BADARG_N(env, 1, "Couldn't get peer priv key bytes")); - -- if (BN_is_zero(priv_bn)) -- assign_goto(*ret, err, EXCP_BADARG_N(env, 1, "peer priv key must not be 0")); -- -- if (!EC_POINT_mul(group, public_key, priv_bn, NULL, NULL, NULL)) -+ if (!EC_POINT_mul(ec_group, pub_key, priv_bn, NULL, NULL, NULL)) - assign_goto(*ret, err, EXCP_ERROR(env, "Couldn't multiply POINT")); - -- if (!EC_KEY_set_public_key(ec_key, public_key)) -- assign_goto(*ret, err, EXCP_ERROR(env, "Couldn't set EC_KEY")); -- -- if (!EVP_PKEY_assign_EC_KEY(*peer_pkey, ec_key)) -- assign_goto(*ret, err, EXCP_ERROR(env, "Couldn't assign EC_KEY to PKEY")); -- -- /* And now get the binary representation (by some reason we can't read it from -- peer_pubkey in the calling function with 3.0-functions.) -- */ -- { -- point_conversion_form_t form = EC_KEY_get_conv_form(ec_key); -- size_t dlen = EC_POINT_point2oct(group, public_key, form, NULL, 0, NULL); -- -- if (!enif_alloc_binary(dlen, pubkey_bin) || -- !EC_POINT_point2oct(group, public_key, form, pubkey_bin->data, pubkey_bin->size, NULL) -- ) -- assign_goto(*ret, err, EXCP_ERROR(env, "Couldn't get public key")); -+ pub_key_size = EC_POINT_point2oct(ec_group, pub_key, -+ POINT_CONVERSION_UNCOMPRESSED, NULL, 0, NULL); -+ if (pub_key_size == 0) -+ assign_goto(*ret, err, EXCP_ERROR(env, "Couldn't get pub_key_size")); -+ -+ enif_alloc_binary(pub_key_size, pubkey_bin); -+ if (!EC_POINT_point2oct(ec_group, pub_key, POINT_CONVERSION_UNCOMPRESSED, -+ pubkey_bin->data, -+ pubkey_bin->size, NULL)) { -+ enif_release_binary(pubkey_bin); -+ assign_goto(*ret, err, EXCP_ERROR(env, "Couldn't get pub key bytes")); - } - -- err: -- if (public_key) EC_POINT_free(public_key); -- if (group) EC_GROUP_free(group); -+ *ret = enif_make_binary(env, pubkey_bin); -+ ok = 1; -+ -+err: -+ if (group_name != group_name_buf) enif_free(group_name); -+ if (pub_key) EC_POINT_free(pub_key); -+ if (ec_group) EC_GROUP_free(ec_group); - if (priv_bn) BN_free(priv_bn); - -- if (*ret == atom_undefined) -- return 1; -- else -- return 0; -+ return ok; - } - - # endif /* HAS_3_0_API */ -@@ -908,10 +918,8 @@ ERL_NIF_TERM ec_generate_key_nif(ErlNifEnv* env, int argc, const ERL_NIF_TERM ar - - # endif /* ! HAS_3_0_API */ - --#endif /* HAVE_EC */ -- -+#else /* ifndef HAVE_EC */ - --#if ! defined(HAVE_EC) - ERL_NIF_TERM ec_generate_key_nif(ErlNifEnv* env, int argc, const ERL_NIF_TERM argv[]) - { /* (Curve, PrivKey) */ - return EXCP_NOTSUP_N(env, 0, "EC not supported"); diff --git a/otp-0012-crypto-Fix-get_ossl_BN_param_from_bin_sz-to-not-abus.patch b/otp-0012-crypto-Fix-get_ossl_BN_param_from_bin_sz-to-not-abus.patch deleted file mode 100644 index fca43ef..0000000 --- a/otp-0012-crypto-Fix-get_ossl_BN_param_from_bin_sz-to-not-abus.patch +++ /dev/null @@ -1,102 +0,0 @@ -From: Sverker Eriksson -Date: Wed, 7 Jun 2023 18:50:23 +0200 -Subject: [PATCH] crypto: Fix get_ossl_BN_param_from_bin_sz() to not abuse - ErlNifBinary - -It is not allowed to write to the binary buffer returned by -enif_inspect_binary() (even if you created the binary yourself). - -In DEBUG built VM such abuse will be punished with: - -"Readonly data written by NIF, checksums differ 8000425 != 25040008 -ABORTING" - -Instead use enif_make_new_binary() to create a writable binary buffer. - -diff --git a/lib/crypto/c_src/bn.c b/lib/crypto/c_src/bn.c -index f06ed9002e..5e9fec5093 100644 ---- a/lib/crypto/c_src/bn.c -+++ b/lib/crypto/c_src/bn.c -@@ -212,23 +212,38 @@ int get_ossl_BN_param_from_bin(ErlNifEnv* env, char* key, ERL_NIF_TERM bin, OSSL - return get_ossl_BN_param_from_bin_sz(env, key, bin, dest, NULL); - } - --int get_ossl_BN_param_from_bin_sz(ErlNifEnv* env, char* key, ERL_NIF_TERM bin, OSSL_PARAM *dest, size_t *size) -+int get_ossl_BN_param_from_bin_sz(ErlNifEnv* env, char* key, ERL_NIF_TERM bin, -+ OSSL_PARAM *dest, size_t *size) - { - BIGNUM *bn = NULL; -- ErlNifBinary tmp; -+ int ok = 0; - -- if (!get_bn_from_bin_sz(env, bin, &bn, size) || -- !enif_inspect_binary(env, bin_from_bn(env,bn), &tmp) || // Allocate buf -- BN_bn2nativepad(bn, tmp.data, tmp.size) < 0) {// Fill with BN in right endianity -- if (bn) BN_free(bn); -+ if (!get_bn_from_bin_sz(env, bin, &bn, size)) - return 0; -- } -- -- *dest = OSSL_PARAM_construct_BN(key, tmp.data, tmp.size); -- if (bn) BN_free(bn); -+ -+ ok = get_ossl_BN_param_from_bn(env, key, bn, dest); -+ BN_free(bn); -+ return ok; -+} -+ -+int get_ossl_BN_param_from_bn(ErlNifEnv* env, char* key, const BIGNUM* bn, -+ OSSL_PARAM *dest) -+{ -+ const size_t bn_sz = BN_num_bytes(bn); -+ unsigned char* tmp_buf; -+ ERL_NIF_TERM dummy_term; -+ -+ /* Create a binary term just as a convenient tmp buffer */ -+ tmp_buf = enif_make_new_binary(env, bn_sz, &dummy_term); -+ if (BN_bn2nativepad(bn, tmp_buf, bn_sz) < 0) // Fill with BN in right endianity -+ return 0; -+ -+ *dest = OSSL_PARAM_construct_BN(key, tmp_buf, bn_sz); - return 1; - } - -+ -+ - int get_ossl_param_from_bin_in_list(ErlNifEnv* env, char* key, ERL_NIF_TERM *listcell, OSSL_PARAM *dest) - { - ERL_NIF_TERM head; -diff --git a/lib/crypto/c_src/bn.h b/lib/crypto/c_src/bn.h -index 5e207aed2d..662a32dc29 100644 ---- a/lib/crypto/c_src/bn.h -+++ b/lib/crypto/c_src/bn.h -@@ -38,6 +38,7 @@ int get_bn_from_bin_sz(ErlNifEnv* env, ERL_NIF_TERM term, BIGNUM** bnp, size_t* - int get_ossl_octet_string_param_from_bin(ErlNifEnv* env, char* key, ERL_NIF_TERM bin, OSSL_PARAM *dest); - int get_ossl_BN_param_from_bin(ErlNifEnv* env, char* key, ERL_NIF_TERM bin, OSSL_PARAM *dest); - int get_ossl_BN_param_from_bin_sz(ErlNifEnv* env, char* key, ERL_NIF_TERM bin, OSSL_PARAM *dest, size_t *size); -+int get_ossl_BN_param_from_bn(ErlNifEnv* env, char* key, const BIGNUM* bn, OSSL_PARAM *dest); - - int get_ossl_param_from_bin_in_list(ErlNifEnv* env, char* key, ERL_NIF_TERM *listcell, OSSL_PARAM *dest); - #endif -diff --git a/lib/crypto/c_src/ec.c b/lib/crypto/c_src/ec.c -index 852f3ba79c..af5f5d6f4a 100644 ---- a/lib/crypto/c_src/ec.c -+++ b/lib/crypto/c_src/ec.c -@@ -189,15 +189,8 @@ int get_curve_definition(ErlNifEnv* env, ERL_NIF_TERM *ret, ERL_NIF_TERM def, - } else - assign_goto(*ret, err, EXCP_ERROR_N(env, 1, "Bad last field")); - -- { -- ErlNifBinary tmp; -- -- if (!enif_inspect_binary(env, bin_from_bn(env,p), &tmp) || // Allocate buf -- BN_bn2nativepad(p, tmp.data, tmp.size) < 0) {// Fill with BN in right endianity -- assign_goto(*ret, err, EXCP_ERROR_N(env, 1, "BN padding failed")); -- } -- params[(*i)++] = OSSL_PARAM_construct_BN("p", tmp.data, tmp.size); -- } -+ if (!get_ossl_BN_param_from_bn(env, "p", p, ¶ms[(*i)++])) -+ assign_goto(*ret, err, EXCP_ERROR_N(env, 1, "BN padding failed")); - # endif - } - else diff --git a/otp-0013-crypto-Re-enable-FIPS_SUPPORT-for-HAS_3_0_API.patch b/otp-0013-crypto-Re-enable-FIPS_SUPPORT-for-HAS_3_0_API.patch deleted file mode 100644 index 1ae1141..0000000 --- a/otp-0013-crypto-Re-enable-FIPS_SUPPORT-for-HAS_3_0_API.patch +++ /dev/null @@ -1,22 +0,0 @@ -From: Sverker Eriksson -Date: Wed, 7 Jun 2023 20:38:11 +0200 -Subject: [PATCH] crypto: Re-enable FIPS_SUPPORT for HAS_3_0_API - - -diff --git a/lib/crypto/c_src/openssl_config.h b/lib/crypto/c_src/openssl_config.h -index d034590a2e..b73141a530 100644 ---- a/lib/crypto/c_src/openssl_config.h -+++ b/lib/crypto/c_src/openssl_config.h -@@ -468,12 +468,6 @@ do { \ - # undef FIPS_SUPPORT - #endif - --/* Disable FIPS for 3.0 temporaryly until the support is added */ --#if defined(FIPS_SUPPORT) && \ -- defined(HAS_3_0_API) --# undef FIPS_SUPPORT --#endif -- - #if defined(FIPS_SUPPORT) && \ - defined(HAS_3_0_API) - # define FIPS_mode() EVP_default_properties_is_fips_enabled(NULL) diff --git a/otp-0014-crypto-Fix-FIPS-bug-in-check_pkey_algorithm_type.patch b/otp-0014-crypto-Fix-FIPS-bug-in-check_pkey_algorithm_type.patch deleted file mode 100644 index fea8a04..0000000 --- a/otp-0014-crypto-Fix-FIPS-bug-in-check_pkey_algorithm_type.patch +++ /dev/null @@ -1,18 +0,0 @@ -From: Sverker Eriksson -Date: Mon, 12 Jun 2023 17:14:19 +0200 -Subject: [PATCH] crypto: Fix FIPS bug in check_pkey_algorithm_type - - -diff --git a/lib/crypto/c_src/pkey.c b/lib/crypto/c_src/pkey.c -index bfdcfe3553..afdff78f48 100644 ---- a/lib/crypto/c_src/pkey.c -+++ b/lib/crypto/c_src/pkey.c -@@ -100,7 +100,7 @@ static int check_pkey_algorithm_type(ErlNifEnv *env, - - - #ifdef HAVE_EDDSA -- if (FIPS_MODE()) -+ if (FIPS_MODE() && algorithm == atom_eddsa) - assign_goto(*err_return, err, EXCP_NOTSUP_N(env, alg_arg_num, "Unsupported algorithm in FIPS mode")); - #endif - diff --git a/otp-0015-crypto_SUITE-Change-to-longer-dss-keys-acceptable-to.patch b/otp-0015-crypto_SUITE-Change-to-longer-dss-keys-acceptable-to.patch deleted file mode 100644 index cf011e3..0000000 --- a/otp-0015-crypto_SUITE-Change-to-longer-dss-keys-acceptable-to.patch +++ /dev/null @@ -1,28 +0,0 @@ -From: Sverker Eriksson -Date: Tue, 13 Jun 2023 18:58:31 +0200 -Subject: [PATCH] crypto_SUITE: Change to longer dss keys acceptable to FIPS - - -diff --git a/lib/crypto/test/crypto_SUITE.erl b/lib/crypto/test/crypto_SUITE.erl -index 0572feaf33..29dba82c41 100644 ---- a/lib/crypto/test/crypto_SUITE.erl -+++ b/lib/crypto/test/crypto_SUITE.erl -@@ -3677,13 +3677,13 @@ rsa_private_stronger() -> - dss_plain() -> - rsa_plain(). - dss_public() -> -- 25854665488880835237281628794585130313500176551981812527054397586638455298000483144002221850980183404910190346416063318160497344811383498859129095184158800144312512447497510551471331451396405348497845813002058423110442376886564659959543650802132345311573634832461635601376738282831340827591903548964194832978. -+ 16#289ff18c32a56bb0b8839370647683a38a5a7e291410b93207212adc8088d30f93e9e4abc523f3d46936e7d5c90d88742b36afd37563408f15c8c1a4f7ac24bf05f01008ffee70c8825d57c3a9308bad8a095af2b53b2dda3cbed846d95e301eb9b84766415d11f6c33209a0d28571096ab04a79aa0dc465997529686b68e887cd8a205c2dc8195aef0422eba9979f549ac85548e419413643b7244361153ada1480d238cd00dc16527938955548dd5d027ded1029eeeb8ed6c61b4cd59341d8b15466e9da890a989996f4d7691e6072de136af28b5874bf08bd1f8a60cfb1c00888132909f515e04bce81b02951aa41baac68ffdb8c5dc77a1d32d8f2c10dd7. - dss_private() -> -- 441502407453038284293378221372000880210588566361. -+ 16#6132e551cdac88409183bd37ee1452cd247d4834b08814b275be3ff5. - dss_params() -> -- [109799869232806890760655301608454668257695818999841877165019612946154359052535682480084145133201304812979481136659521529774182959764860329095546511521488413513097576425638476458000255392402120367876345280670101492199681798674053929238558140260669578407351853803102625390950534052428162468100618240968893110797, -- 1349199015905534965792122312016505075413456283393, -- 18320614775012672475365915366944922415598782131828709277168615511695849821411624805195787607930033958243224786899641459701930253094446221381818858674389863050420226114787005820357372837321561754462061849169568607689530279303056075793886577588606958623645901271866346406773590024901668622321064384483571751669]. -+ [16#f2d39ed3062b13c916273600a0f2a029e86d7a4b9217b4f1815bf2b24d9710a57ab33f997294b014585b8d0198dfdccbcd75314da5ff85aa344b45adaeaa979b51a312a7bfa94472fb633f1a6f156bb4458867dfd38403f06b851f00fe2d3484077bded71ab7513d04a140220575fb693395480e4c8402b7a46cec2d37a778c305accd1f13e9f62e865315f4b22cc467c8986ec8e4961ddf810566b0c4ee369ac6aa15e43f4744005826f5bde8071a19e30b6909aac4b3d174237270dad02799d09b8a2cc5f22e66894b5422228b2c234f11f5a771c5b89cf465a2acecbbeeaa1725fe8f9b59422be8991052cb556ddf2c8ce8fa9206dbf39feadc194e00f8e5, -+ 16#8000000000000000c118f49835e4ef733c4d15800fcf059e884d31b1, -+ 16#e3a93c09da6f560e4d483a382a4c546f2335c36a4c35ac1463c08a3e6dd415df56fdc537f25fd5372be63e4f5300780b782f1acd01c8b4eb33414615fd0ea82573acba7ef83f5a943854151afc2d7dfe121fb8cd03335b065b549c5dcc606be9052483bc284e12ac3c8dba09b426e08402030e70bc1cc2bf8957c4ba0630f3f32ad689389ac47443176063f247d9e2296b3ea5b5bc2335828ea1a080ed35918dee212fd031279d1b894f01afec523833669eac031a420e540ba1320a59c424a3e5849a460a56bcb001647885b1433c4f992971746bfe2977ce7259c550b551a6c35761e4a41af764e8d92132fcc0a59d1684eab90d863f29f41cf7578faa908c]. - - ec_key_named() -> - Curve = hd(crypto:ec_curves()), diff --git a/otp-0016-crypto_SUITE-Remove-sha-1-as-hash-for-dss-if-FIPS.patch b/otp-0016-crypto_SUITE-Remove-sha-1-as-hash-for-dss-if-FIPS.patch deleted file mode 100644 index d073b00..0000000 --- a/otp-0016-crypto_SUITE-Remove-sha-1-as-hash-for-dss-if-FIPS.patch +++ /dev/null @@ -1,33 +0,0 @@ -From: Sverker Eriksson -Date: Tue, 13 Jun 2023 19:00:31 +0200 -Subject: [PATCH] crypto_SUITE: Remove sha-1 as hash for dss if FIPS - - -diff --git a/lib/crypto/test/crypto_SUITE.erl b/lib/crypto/test/crypto_SUITE.erl -index 29dba82c41..00d4a0a6fe 100644 ---- a/lib/crypto/test/crypto_SUITE.erl -+++ b/lib/crypto/test/crypto_SUITE.erl -@@ -2257,15 +2257,19 @@ group_config(dss = Type, Config) -> - Public = dss_params() ++ [dss_public()], - Private = dss_params() ++ [dss_private()], - SupportedHashs = proplists:get_value(hashs, crypto:supports(), []), -- DssHashs = -+ DssHashs0 = - case crypto:info_lib() of - [{<<"OpenSSL">>,LibVer,_}] when is_integer(LibVer), LibVer > 16#10001000 -> -- [sha, sha224, sha256, sha384, sha512]; -+ [sha224, sha256, sha384, sha512]; - [{<<"OpenSSL">>,LibVer,_}] when is_integer(LibVer), LibVer > 16#10000000 -> -- [sha, sha224, sha256]; -+ [sha224, sha256]; - _Else -> -- [sha] -+ [] - end, -+ DssHashs = case crypto:info_fips() of -+ enabled -> DssHashs0; -+ _ -> [sha | DssHashs0] -+ end, - SignVerify = [{Type, Hash, Public, Private, Msg} - || Hash <- DssHashs, - lists:member(Hash, SupportedHashs)], diff --git a/otp-0017-crypto_SUITE-Remove-md5-ripemd160-and-sha-as-hash-fo.patch b/otp-0017-crypto_SUITE-Remove-md5-ripemd160-and-sha-as-hash-fo.patch deleted file mode 100644 index 6d436a2..0000000 --- a/otp-0017-crypto_SUITE-Remove-md5-ripemd160-and-sha-as-hash-fo.patch +++ /dev/null @@ -1,24 +0,0 @@ -From: Sverker Eriksson -Date: Tue, 13 Jun 2023 19:02:32 +0200 -Subject: [PATCH] crypto_SUITE: Remove md5, ripemd160 and sha as hash for rsa - sign if FIPS - - -diff --git a/lib/crypto/test/crypto_SUITE.erl b/lib/crypto/test/crypto_SUITE.erl -index 00d4a0a6fe..afacdde051 100644 ---- a/lib/crypto/test/crypto_SUITE.erl -+++ b/lib/crypto/test/crypto_SUITE.erl -@@ -2420,7 +2420,12 @@ rsa_sign_verify_tests(Config, Msg, Public, Private, PublicS, PrivateS, OptsToTry - end. - - rsa_sign_verify_tests(Msg, Public, Private, PublicS, PrivateS, OptsToTry) -> -- gen_rsa_sign_verify_tests([md5, ripemd160, sha, sha224, sha256], Msg, Public, Private, -+ Hashs0 = [sha224, sha256], -+ Hashs = case crypto:info_fips() of -+ enabled -> Hashs0; -+ _ -> [md5, ripemd160, sha | Hashs0] -+ end, -+ gen_rsa_sign_verify_tests(Hashs, Msg, Public, Private, - [undefined | OptsToTry]) ++ - gen_rsa_sign_verify_tests([sha384, sha512], Msg, PublicS, PrivateS, - [undefined | OptsToTry]). diff --git a/otp-0018-crypto-Try-generate-ec-key-by-name-if-possible.patch b/otp-0018-crypto-Try-generate-ec-key-by-name-if-possible.patch deleted file mode 100644 index 02603cd..0000000 --- a/otp-0018-crypto-Try-generate-ec-key-by-name-if-possible.patch +++ /dev/null @@ -1,284 +0,0 @@ -From: Sverker Eriksson -Date: Wed, 14 Jun 2023 22:00:35 +0200 -Subject: [PATCH] crypto: Try generate ec key by name if possible - -OpenSSL 3 FIPS does only accept named ec curves. - -So we try that first, and if it fails we retry -with the params passed down by crypto.erl. - -diff --git a/lib/crypto/c_src/ec.c b/lib/crypto/c_src/ec.c -index af5f5d6f4a..49e1da4fe4 100644 ---- a/lib/crypto/c_src/ec.c -+++ b/lib/crypto/c_src/ec.c -@@ -28,7 +28,8 @@ - - int get_curve_definition(ErlNifEnv* env, ERL_NIF_TERM *ret, ERL_NIF_TERM def, - OSSL_PARAM params[], int *i, -- size_t *order_size) -+ size_t *order_size, -+ struct get_curve_def_ctx* gcd) - { - const ERL_NIF_TERM* curve; - int c_arity = -1; -@@ -40,6 +41,7 @@ int get_curve_definition(ErlNifEnv* env, ERL_NIF_TERM *ret, ERL_NIF_TERM def, - int arity = -1; - const ERL_NIF_TERM* curve_tuple; - -+ - /* Here are two random curve definition examples, one prime_field and - one characteristic_two_field. Both are from the crypto/src/crypto_ec_curves.erl. - -@@ -79,6 +81,23 @@ int get_curve_definition(ErlNifEnv* env, ERL_NIF_TERM *ret, ERL_NIF_TERM def, - c_arity != 5) - assign_goto(*ret, err, EXCP_ERROR_N(env, 1, "Bad curve def. Expect 5-tuple.")); - -+ if (gcd->use_curve_name -+ && curve_tuple[1] != atom_undefined -+ && enif_get_atom(env, curve_tuple[1], gcd->curve_name, -+ sizeof(gcd->curve_name), ERL_NIF_LATIN1)) { -+ ErlNifBinary order_bin; -+ params[(*i)++] = OSSL_PARAM_construct_utf8_string("group", gcd->curve_name, 0); -+ -+ if (order_size) { -+ if (!enif_inspect_binary(env, curve[3], &order_bin)) -+ assign_goto(*ret, err, EXCP_ERROR_N(env, 1, "Bad order")); -+ *order_size = order_bin.size; -+ } -+ gcd->use_curve_name = 1; -+ return 1; -+ } -+ gcd->use_curve_name = 0; -+ - if (!get_ossl_octet_string_param_from_bin(env, "generator", curve[2], ¶ms[(*i)++])) - assign_goto(*ret, err, EXCP_ERROR_N(env, 1, "Bad Generator (Point)")); - -@@ -211,6 +230,7 @@ int get_ec_public_key(ErlNifEnv* env, ERL_NIF_TERM key, EVP_PKEY **pkey) - int tpl_arity; - int i = 0; - OSSL_PARAM params[15]; -+ struct get_curve_def_ctx gcd; - EVP_PKEY_CTX *pctx = NULL; - - if (!enif_get_tuple(env, key, &tpl_arity, &tpl_terms) || -@@ -222,19 +242,27 @@ int get_ec_public_key(ErlNifEnv* env, ERL_NIF_TERM key, EVP_PKEY **pkey) - if (!get_ossl_octet_string_param_from_bin(env, "pub", tpl_terms[1], ¶ms[i++])) - assign_goto(ret, err, EXCP_BADARG_N(env, 0, "Bad public key")); - -- if (!get_curve_definition(env, &ret, tpl_terms[0], params, &i, NULL)) -+ if (!(pctx = EVP_PKEY_CTX_new_from_name(NULL, "EC", NULL))) -+ assign_goto(ret, err, EXCP_ERROR(env, "Can't make EVP_PKEY_CTX")); -+ -+ gcd.use_curve_name = 1; -+retry_without_name: -+ if (!get_curve_definition(env, &ret, tpl_terms[0], params, &i, NULL, &gcd)) - goto err; - - params[i++] = OSSL_PARAM_construct_end(); - -- if (!(pctx = EVP_PKEY_CTX_new_from_name(NULL, "EC", NULL))) -- assign_goto(ret, err, EXCP_ERROR(env, "Can't make EVP_PKEY_CTX")); -- - if (EVP_PKEY_fromdata_init(pctx) <= 0) - assign_goto(ret, err, EXCP_ERROR(env, "Can't init fromdata")); - -- if (EVP_PKEY_fromdata(pctx, pkey, EVP_PKEY_PUBLIC_KEY, params) <= 0) -+ if (EVP_PKEY_fromdata(pctx, pkey, EVP_PKEY_PUBLIC_KEY, params) <= 0) { -+ if (gcd.use_curve_name) { -+ gcd.use_curve_name = 0; -+ i = 1; -+ goto retry_without_name; -+ } - assign_goto(ret, err, EXCP_ERROR(env, "Can't do fromdata")); -+ } - - if (!*pkey) - assign_goto(ret, err, EXCP_ERROR(env, "Couldn't get a public key")); -@@ -256,24 +284,33 @@ static int get_ec_private_key_2(ErlNifEnv* env, - { - int i = 0; - OSSL_PARAM params[15]; -+ struct get_curve_def_ctx gcd; - EVP_PKEY_CTX *pctx = NULL; - - if (!get_ossl_BN_param_from_bin(env, "priv", key, ¶ms[i++])) - assign_goto(*ret, err, EXCP_BADARG_N(env, 0, "Bad private key")); - -- if (!get_curve_definition(env, ret, curve, params, &i, order_size)) -+ if (!(pctx = EVP_PKEY_CTX_new_from_name(NULL, "EC", NULL))) -+ assign_goto(*ret, err, EXCP_ERROR(env, "Can't make EVP_PKEY_CTX")); -+ -+ gcd.use_curve_name = 1; -+retry_without_name: -+ if (!get_curve_definition(env, ret, curve, params, &i, order_size, &gcd)) - goto err; - - params[i++] = OSSL_PARAM_construct_end(); - -- if (!(pctx = EVP_PKEY_CTX_new_from_name(NULL, "EC", NULL))) -- assign_goto(*ret, err, EXCP_ERROR(env, "Can't make EVP_PKEY_CTX")); -- - if (EVP_PKEY_fromdata_init(pctx) <= 0) - assign_goto(*ret, err, EXCP_ERROR(env, "Can't init fromdata")); - -- if (EVP_PKEY_fromdata(pctx, pkey, EVP_PKEY_KEYPAIR, params) <= 0) -+ if (EVP_PKEY_fromdata(pctx, pkey, EVP_PKEY_KEYPAIR, params) <= 0) { -+ if (gcd.use_curve_name) { -+ gcd.use_curve_name = 0; -+ i = 1; -+ goto retry_without_name; -+ } - assign_goto(*ret, err, EXCP_ERROR(env, "Can't do fromdata")); -+ } - - if (!*pkey) - assign_goto(*ret, err, EXCP_ERROR(env, "Couldn't get a private key")); -@@ -316,9 +353,10 @@ ERL_NIF_TERM ec_generate_key_nif(ErlNifEnv* env, int argc, const ERL_NIF_TERM ar - ERL_NIF_TERM ret = atom_undefined; - int i = 0; - OSSL_PARAM params[15]; -+ struct get_curve_def_ctx gcd; - EVP_PKEY_CTX *pctx = NULL; - EVP_PKEY *pkey = NULL, *peer_pkey = NULL; -- size_t sz, order_size; -+ size_t sz, order_size = 0; - BIGNUM *priv_bn = NULL; - ErlNifBinary pubkey_bin; - -@@ -338,26 +376,36 @@ ERL_NIF_TERM ec_generate_key_nif(ErlNifEnv* env, int argc, const ERL_NIF_TERM ar - } - else - { -+ /* Neither the private nor the public key is known, so we generate the pair: */ -+ if (!(pctx = EVP_PKEY_CTX_new_from_name(NULL, "EC", NULL))) -+ assign_goto(ret, err, EXCP_ERROR(env, "Can't EVP_PKEY_CTX_new_from_name")); -+ -+ gcd.use_curve_name = 1; -+ retry_without_name: - /* PrivKey (that is, argv[1]) == atom_undefined */ -- if (!get_curve_definition(env, &ret, argv[0], params, &i, &order_size)) -+ if (!get_curve_definition(env, &ret, argv[0], params, &i, -+ &order_size, &gcd)) - // INSERT "ret" parameter in get_curve_definition !! - assign_goto(ret, err, EXCP_BADARG_N(env, 0, "Couldn't get Curve definition")); - - params[i++] = OSSL_PARAM_construct_end(); - -- /* Neither the private nor the public key is known, so we generate the pair: */ -- if (!(pctx = EVP_PKEY_CTX_new_from_name(NULL, "EC", NULL))) -- assign_goto(ret, err, EXCP_ERROR(env, "Can't EVP_PKEY_CTX_new_from_name")); -- - if (EVP_PKEY_keygen_init(pctx) <= 0) - assign_goto(ret, err, EXCP_ERROR(env, "Can't EVP_PKEY_keygen_init")); - - if (!EVP_PKEY_CTX_set_params(pctx, params)) - assign_goto(ret, err, EXCP_ERROR(env, "Can't EVP_PKEY_CTX_set_params")); -- -- if (!EVP_PKEY_generate(pctx, &pkey)) -+ -+ if (!EVP_PKEY_generate(pctx, &pkey)) { -+ if (gcd.use_curve_name) { -+ gcd.use_curve_name = 0; -+ i = 0; -+ goto retry_without_name; -+ } - assign_goto(ret, err, EXCP_ERROR(env, "Couldn't generate EC key")); -- -+ } -+ -+ - /* Get the two keys, pub as binary and priv as BN */ - if (!EVP_PKEY_get_octet_string_param(pkey, "encoded-pub-key", NULL, 0, &sz)) - assign_goto(ret, err, EXCP_ERROR(env, "Can't get pub octet string size")); -@@ -375,6 +423,8 @@ ERL_NIF_TERM ec_generate_key_nif(ErlNifEnv* env, int argc, const ERL_NIF_TERM ar - assign_goto(ret, err, EXCP_BADARG_N(env, 1, "Couldn't get priv key bytes")); - } - -+ if (order_size == 0) -+ order_size = BN_num_bytes(priv_bn); - ret = enif_make_tuple2(env, - enif_make_binary(env, &pubkey_bin), - bn2term(env, order_size, priv_bn)); -diff --git a/lib/crypto/c_src/ec.h b/lib/crypto/c_src/ec.h -index e53986d64e..f0b0b96207 100644 ---- a/lib/crypto/c_src/ec.h -+++ b/lib/crypto/c_src/ec.h -@@ -26,9 +26,17 @@ - #if defined(HAVE_EC) - - # if defined(HAS_3_0_API) -+ -+struct get_curve_def_ctx -+{ -+ char curve_name[20]; -+ int use_curve_name; -+}; -+ - int get_curve_definition(ErlNifEnv* env, ERL_NIF_TERM *ret, ERL_NIF_TERM def, - OSSL_PARAM params[], int *i, -- size_t *order_size); -+ size_t *order_size, -+ struct get_curve_def_ctx*); - # endif /* HAS_3_0_API */ - - # if ! defined(HAS_3_0_API) -diff --git a/lib/crypto/c_src/ecdh.c b/lib/crypto/c_src/ecdh.c -index 7509d9cb84..f1b0f7eb28 100644 ---- a/lib/crypto/c_src/ecdh.c -+++ b/lib/crypto/c_src/ecdh.c -@@ -42,6 +42,7 @@ ERL_NIF_TERM ecdh_compute_key_nif(ErlNifEnv* env, int argc, const ERL_NIF_TERM a - int ret_bin_alloc = 0; - int i = 0, i_key = 0; - OSSL_PARAM params[15]; -+ struct get_curve_def_ctx gcd; - EVP_PKEY_CTX *own_pctx = NULL, *peer_pctx = NULL, *pctx_gen = NULL; - EVP_PKEY *own_pkey = NULL, *peer_pkey = NULL; - int err; -@@ -53,21 +54,29 @@ ERL_NIF_TERM ecdh_compute_key_nif(ErlNifEnv* env, int argc, const ERL_NIF_TERM a - if (!get_ossl_octet_string_param_from_bin(env, "pub", argv[0], ¶ms[i++])) - assign_goto(ret, err, EXCP_BADARG_N(env, 0, "Bad peer public key; binary expected")); - -+ /* Build the remote public key in peer_pkey */ -+ peer_pctx = EVP_PKEY_CTX_new_from_name(NULL, "EC", NULL); -+ -+ gcd.use_curve_name = 1; -+retry_without_name: - /* Curve definition/name */ -- if (!get_curve_definition(env, &ret, argv[1], params, &i, NULL)) -+ if (!get_curve_definition(env, &ret, argv[1], params, &i, NULL, &gcd)) - goto err; - - /* End of params */ - params[i++] = OSSL_PARAM_construct_end(); - -- /* Build the remote public key in peer_pkey */ -- peer_pctx = EVP_PKEY_CTX_new_from_name(NULL, "EC", NULL); -- - if (EVP_PKEY_fromdata_init(peer_pctx) <= 0) - assign_goto(ret, err, EXCP_ERROR(env, "Can't init fromdata")); - -- if (EVP_PKEY_fromdata(peer_pctx, &peer_pkey, EVP_PKEY_PUBLIC_KEY, params) <= 0) -+ if (EVP_PKEY_fromdata(peer_pctx, &peer_pkey, EVP_PKEY_PUBLIC_KEY, params) <= 0) { -+ if (gcd.use_curve_name) { -+ gcd.use_curve_name = 0; -+ i = 1; -+ goto retry_without_name; -+ } - assign_goto(ret, err, EXCP_ERROR(env, "Can't do fromdata")); -+ } - - if (!peer_pkey) - assign_goto(ret, err, EXCP_ERROR(env, "No peer_pkey")); -diff --git a/lib/crypto/test/crypto_SUITE.erl b/lib/crypto/test/crypto_SUITE.erl -index afacdde051..e047964daa 100644 ---- a/lib/crypto/test/crypto_SUITE.erl -+++ b/lib/crypto/test/crypto_SUITE.erl -@@ -3695,7 +3695,7 @@ dss_params() -> - 16#e3a93c09da6f560e4d483a382a4c546f2335c36a4c35ac1463c08a3e6dd415df56fdc537f25fd5372be63e4f5300780b782f1acd01c8b4eb33414615fd0ea82573acba7ef83f5a943854151afc2d7dfe121fb8cd03335b065b549c5dcc606be9052483bc284e12ac3c8dba09b426e08402030e70bc1cc2bf8957c4ba0630f3f32ad689389ac47443176063f247d9e2296b3ea5b5bc2335828ea1a080ed35918dee212fd031279d1b894f01afec523833669eac031a420e540ba1320a59c424a3e5849a460a56bcb001647885b1433c4f992971746bfe2977ce7259c550b551a6c35761e4a41af764e8d92132fcc0a59d1684eab90d863f29f41cf7578faa908c]. - - ec_key_named() -> -- Curve = hd(crypto:ec_curves()), -+ Curve = secp224r1, %hd(crypto:ec_curves()), - {D2_pub, D2_priv} = crypto:generate_key(ecdh, Curve), - {[D2_priv, Curve], [D2_pub, Curve]}. - diff --git a/otp-0019-crypto_SUITE-Skip-sha-1-sign-for-FIPS.patch b/otp-0019-crypto_SUITE-Skip-sha-1-sign-for-FIPS.patch deleted file mode 100644 index c85e46e..0000000 --- a/otp-0019-crypto_SUITE-Skip-sha-1-sign-for-FIPS.patch +++ /dev/null @@ -1,59 +0,0 @@ -From: Sverker Eriksson -Date: Thu, 15 Jun 2023 19:53:14 +0200 -Subject: [PATCH] crypto_SUITE: Skip sha-1 sign for FIPS - - -diff --git a/lib/crypto/test/crypto_SUITE.erl b/lib/crypto/test/crypto_SUITE.erl -index e047964daa..c56faa9bc4 100644 ---- a/lib/crypto/test/crypto_SUITE.erl -+++ b/lib/crypto/test/crypto_SUITE.erl -@@ -1268,6 +1268,12 @@ use_all_ec_sign_verify(_Config) -> - crypto:info_fips(), - Curves, - Hashs]), -+ SkipHashs0 = [md4, md5, ripemd160, sha3_224, sha3_256, sha3_384, sha3_512, -+ blake2b, blake2s], -+ SkipHashs = case crypto:info_fips() of -+ enabled -> [sha | SkipHashs0]; -+ _ -> SkipHashs0 -+ end, - Results = - [{{Curve,Hash}, - try -@@ -1282,7 +1288,7 @@ use_all_ec_sign_verify(_Config) -> - {C,E} - end} - || Curve <- Curves -- [ed25519, ed448, x25519, x448, ipsec3, ipsec4], -- Hash <- Hashs -- [md4, md5, ripemd160, sha3_224, sha3_256, sha3_384, sha3_512, blake2b, blake2s] -+ Hash <- Hashs -- SkipHashs - ], - Fails = - lists:filter(fun({_,true}) -> false; -@@ -1730,14 +1736,19 @@ do_sign_verify({Type, undefined=Hash, Private, Public, Msg, Signature}) -> - end; - - do_sign_verify({Type, Hash, Public, Private, Msg}) -> -- Signature = crypto:sign(Type, Hash, Msg, Private), -- case crypto:verify(Type, Hash, Msg, Signature, Public) of -- true -> -- ct:log("OK crypto:sign(~p, ~p, ..., ..., ...)", [Type,Hash]), -- negative_verify(Type, Hash, Msg, <<10,20>>, Public); -- false -> -- ct:log("ERROR crypto:sign(~p, ~p, ..., ..., ...)", [Type,Hash]), -- ct:fail({{crypto, verify, [Type, Hash, Msg, Signature, Public]}}) -+ case {Hash, crypto:info_fips()} of -+ {sha, enabled} -> -+ io:format("Skip sign with SHA for FIPS\n"); -+ _ -> -+ Signature = crypto:sign(Type, Hash, Msg, Private), -+ case crypto:verify(Type, Hash, Msg, Signature, Public) of -+ true -> -+ ct:log("OK crypto:sign(~p, ~p, ..., ..., ...)", [Type,Hash]), -+ negative_verify(Type, Hash, Msg, <<10,20>>, Public); -+ false -> -+ ct:log("ERROR crypto:sign(~p, ~p, ..., ..., ...)", [Type,Hash]), -+ ct:fail({{crypto, verify, [Type, Hash, Msg, Signature, Public]}}) -+ end - end; - do_sign_verify({Type, Hash, Public, Private, Msg, Options}) -> - LibVer = diff --git a/otp-0020-crypto-Unalias-some-ec-curve-names.patch b/otp-0020-crypto-Unalias-some-ec-curve-names.patch deleted file mode 100644 index c3c9df4..0000000 --- a/otp-0020-crypto-Unalias-some-ec-curve-names.patch +++ /dev/null @@ -1,806 +0,0 @@ -From: Sverker Eriksson -Date: Fri, 16 Jun 2023 16:55:41 +0200 -Subject: [PATCH] crypto: Unalias some ec curve names - -to pass OpenSSL the name it accepts. - -diff --git a/lib/crypto/src/crypto.erl b/lib/crypto/src/crypto.erl -index 6abaacad5c..1cc11aa6eb 100644 ---- a/lib/crypto/src/crypto.erl -+++ b/lib/crypto/src/crypto.erl -@@ -2372,14 +2372,12 @@ nif_curve_params(CurveName) when is_atom(CurveName) -> - x448 -> {evp,CurveName}; - x25519 -> {evp,CurveName}; - _ -> -- Spec = -- try -- crypto_ec_curves:curve(CurveName) -- catch -- _:_ -> -- undefined -- end, -- {Spec, CurveName} -+ try -+ crypto_ec_curves:curve_with_name(CurveName) -+ catch -+ _:_ -> -+ {undefined, CurveName} -+ end - end. - - -diff --git a/lib/crypto/src/crypto_ec_curves.erl b/lib/crypto/src/crypto_ec_curves.erl -index a0a2f99601..3f14c34a26 100644 ---- a/lib/crypto/src/crypto_ec_curves.erl -+++ b/lib/crypto/src/crypto_ec_curves.erl -@@ -1,11 +1,22 @@ - -module(crypto_ec_curves). - ---export([curve/1, curves/0]). -+-export([curve/1, curves/0, curve_with_name/1]). - - curves() -> - proplists:get_value(curves, crypto:supports()) -- [x25519,x448]. - --curve(secp112r1) -> -+real_name(secp192r1) -> prime192v1; -+real_name(secp256r1) -> prime256v1; -+real_name(Name) -> Name. -+ -+curve_with_name(Curve) -> -+ RealName = real_name(Curve), -+ {params(RealName), RealName}. -+ -+curve(Curve) -> -+ params(real_name(Curve)). -+ -+params(secp112r1) -> - { - {prime_field, <<16#DB7C2ABF62E35E668076BEAD208B:112>>}, %% Prime - {<<16#DB7C2ABF62E35E668076BEAD2088:112>>, %% A -@@ -18,7 +29,7 @@ curve(secp112r1) -> - <<16#01:8>> %% CoFactor - }; - --curve(secp112r2) -> -+params(secp112r2) -> - { - {prime_field, <<16#DB7C2ABF62E35E668076BEAD208B:112>>}, %% Prime - {<<16#6127C24C05F38A0AAAF65C0EF02C:112>>, %% A -@@ -31,7 +42,7 @@ curve(secp112r2) -> - <<16#04:8>> %% CoFactor - }; - --curve(secp128r1) -> -+params(secp128r1) -> - { - {prime_field, <<16#FFFFFFFDFFFFFFFFFFFFFFFFFFFFFFFF:128>>}, %% Prime - {<<16#FFFFFFFDFFFFFFFFFFFFFFFFFFFFFFFC:128>>, %% A -@@ -44,7 +55,7 @@ curve(secp128r1) -> - <<16#01:8>> %% CoFactor - }; - --curve(secp128r2) -> -+params(secp128r2) -> - { - {prime_field, <<16#FFFFFFFDFFFFFFFFFFFFFFFFFFFFFFFF:128>>}, %% Prime - {<<16#D6031998D1B3BBFEBF59CC9BBFF9AEE1:128>>, %% A -@@ -57,7 +68,7 @@ curve(secp128r2) -> - <<16#04:8>> %% CoFactor - }; - --curve(secp160k1) -> -+params(secp160k1) -> - { - {prime_field, <<16#FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFAC73:160>>}, %% Prime - {<<16#00:8>>, %% A -@@ -70,7 +81,7 @@ curve(secp160k1) -> - <<16#01:8>> %% CoFactor - }; - --curve(secp160r1) -> -+params(secp160r1) -> - { - {prime_field, <<16#FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF7FFFFFFF:160>>}, %% Prime - {<<16#FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF7FFFFFFC:160>>, %% A -@@ -83,7 +94,7 @@ curve(secp160r1) -> - <<16#01:8>> %% CoFactor - }; - --curve(secp160r2) -> -+params(secp160r2) -> - { - {prime_field, <<16#FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFAC73:160>>}, %% Prime - {<<16#FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFAC70:160>>, %% A -@@ -96,20 +107,7 @@ curve(secp160r2) -> - <<16#01:8>> %% CoFactor - }; - --curve(secp192r1) -> -- { -- {prime_field, <<16#FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFFFFFFFFFFFF:192>>}, %% Prime -- {<<16#FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFFFFFFFFFFFC:192>>, %% A -- <<16#64210519E59C80E70FA7E9AB72243049FEB8DEECC146B9B1:192>>, %% B -- <<16#3045AE6FC8422F64ED579528D38120EAE12196D5:160>>}, %% Seed -- <<16#04:8, -- 16#188DA80EB03090F67CBF20EB43A18800F4FF0AFD82FF1012:192, %% X(p0) -- 16#07192B95FFC8DA78631011ED6B24CDD573F977A11E794811:192>>, %% Y(p0) -- <<16#FFFFFFFFFFFFFFFFFFFFFFFF99DEF836146BC9B1B4D22831:192>>, %% Order -- <<16#01:8>> %% CoFactor -- }; -- --curve(secp192k1) -> -+params(secp192k1) -> - { - {prime_field, <<16#FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFEE37:192>>}, %% Prime - {<<16#00:8>>, %% A -@@ -122,7 +120,7 @@ curve(secp192k1) -> - <<16#01:8>> %% CoFactor - }; - --curve(secp224k1) -> -+params(secp224k1) -> - { - {prime_field, <<16#FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFE56D:224>>}, %% Prime - {<<16#00:8>>, %% A -@@ -135,7 +133,7 @@ curve(secp224k1) -> - <<16#01:8>> %% CoFactor - }; - --curve(secp224r1) -> -+params(secp224r1) -> - { - {prime_field, <<16#FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF000000000000000000000001:224>>}, %% Prime - {<<16#FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFFFFFFFFFFFFFFFFFFFE:224>>, %% A -@@ -148,7 +146,7 @@ curve(secp224r1) -> - <<16#01:8>> %% CoFactor - }; - --curve(secp256k1) -> -+params(secp256k1) -> - { - {prime_field, <<16#FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFC2F:256>>}, %% Prime - {<<16#00:8>>, %% A -@@ -161,20 +159,7 @@ curve(secp256k1) -> - <<16#01:8>> %% CoFactor - }; - --curve(secp256r1) -> -- { -- {prime_field, <<16#FFFFFFFF00000001000000000000000000000000FFFFFFFFFFFFFFFFFFFFFFFF:256>>}, %% Prime -- {<<16#FFFFFFFF00000001000000000000000000000000FFFFFFFFFFFFFFFFFFFFFFFC:256>>, %% A -- <<16#5AC635D8AA3A93E7B3EBBD55769886BC651D06B0CC53B0F63BCE3C3E27D2604B:256>>, %% B -- <<16#C49D360886E704936A6678E1139D26B7819F7E90:160>>}, %% Seed -- <<16#04:8, -- 16#6B17D1F2E12C4247F8BCE6E563A440F277037D812DEB33A0F4A13945D898C296:256, %% X(p0) -- 16#4FE342E2FE1A7F9B8EE7EB4A7C0F9E162BCE33576B315ECECBB6406837BF51F5:256>>, %% Y(p0) -- <<16#FFFFFFFF00000000FFFFFFFFFFFFFFFFBCE6FAADA7179E84F3B9CAC2FC632551:256>>, %% Order -- <<16#01:8>> %% CoFactor -- }; -- --curve(secp384r1) -> -+params(secp384r1) -> - { - {prime_field, <<16#FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFE:256, %% Prime - 16#FFFFFFFF0000000000000000FFFFFFFF:128>>}, -@@ -193,7 +178,7 @@ curve(secp384r1) -> - <<16#01:8>> %% CoFactor - }; - --curve(secp521r1) -> -+params(secp521r1) -> - { - {prime_field, <<16#01FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF:256, %% Prime - 16#FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF:256, -@@ -218,7 +203,7 @@ curve(secp521r1) -> - <<16#01:8>> %% CoFactor - }; - --curve(prime192v1) -> -+params(prime192v1) -> - { - {prime_field, <<16#FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFFFFFFFFFFFF:192>>}, %% Prime - {<<16#FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFFFFFFFFFFFC:192>>, %% A -@@ -231,7 +216,7 @@ curve(prime192v1) -> - <<16#01:8>> %% CoFactor - }; - --curve(prime192v2) -> -+params(prime192v2) -> - { - {prime_field, <<16#FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFFFFFFFFFFFF:192>>}, %% Prime - {<<16#FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFFFFFFFFFFFC:192>>, %% A -@@ -244,7 +229,7 @@ curve(prime192v2) -> - <<16#01:8>> %% CoFactor - }; - --curve(prime192v3) -> -+params(prime192v3) -> - { - {prime_field, <<16#FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFFFFFFFFFFFF:192>>}, %% Prime - {<<16#FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFFFFFFFFFFFC:192>>, %% A -@@ -257,7 +242,7 @@ curve(prime192v3) -> - <<16#01:8>> %% CoFactor - }; - --curve(prime239v1) -> -+params(prime239v1) -> - { - {prime_field, <<16#7FFFFFFFFFFFFFFFFFFFFFFF7FFFFFFFFFFF8000000000007FFFFFFFFFFF:240>>}, %% Prime - {<<16#7FFFFFFFFFFFFFFFFFFFFFFF7FFFFFFFFFFF8000000000007FFFFFFFFFFC:240>>, %% A -@@ -270,7 +255,7 @@ curve(prime239v1) -> - <<16#01:8>> %% CoFactor - }; - --curve(prime239v2) -> -+params(prime239v2) -> - { - {prime_field, <<16#7FFFFFFFFFFFFFFFFFFFFFFF7FFFFFFFFFFF8000000000007FFFFFFFFFFF:240>>}, %% Prime - {<<16#7FFFFFFFFFFFFFFFFFFFFFFF7FFFFFFFFFFF8000000000007FFFFFFFFFFC:240>>, %% A -@@ -283,7 +268,7 @@ curve(prime239v2) -> - <<16#01:8>> %% CoFactor - }; - --curve(prime239v3) -> -+params(prime239v3) -> - { - {prime_field, <<16#7FFFFFFFFFFFFFFFFFFFFFFF7FFFFFFFFFFF8000000000007FFFFFFFFFFF:240>>}, %% Prime - {<<16#7FFFFFFFFFFFFFFFFFFFFFFF7FFFFFFFFFFF8000000000007FFFFFFFFFFC:240>>, %% A -@@ -296,7 +281,7 @@ curve(prime239v3) -> - <<16#01:8>> %% CoFactor - }; - --curve(prime256v1) -> -+params(prime256v1) -> - { - {prime_field, <<16#FFFFFFFF00000001000000000000000000000000FFFFFFFFFFFFFFFFFFFFFFFF:256>>}, %% Prime - {<<16#FFFFFFFF00000001000000000000000000000000FFFFFFFFFFFFFFFFFFFFFFFC:256>>, %% A -@@ -309,7 +294,7 @@ curve(prime256v1) -> - <<16#01:8>> %% CoFactor - }; - --curve(sect113r1) -> -+params(sect113r1) -> - { - {characteristic_two_field, 113, {tpbasis,9}}, - {<<16#3088250CA6E7C7FE649CE85820F7:112>>, %% A -@@ -322,7 +307,7 @@ curve(sect113r1) -> - <<16#02:8>> %% CoFactor - }; - --curve(sect113r2) -> -+params(sect113r2) -> - { - {characteristic_two_field, 113, {tpbasis,9}}, - {<<16#689918DBEC7E5A0DD6DFC0AA55C7:112>>, %% A -@@ -335,7 +320,7 @@ curve(sect113r2) -> - <<16#02:8>> %% CoFactor - }; - --curve(sect131r1) -> -+params(sect131r1) -> - { - {characteristic_two_field, 131, {ppbasis,2,3,8}}, - {<<16#07A11B09A76B562144418FF3FF8C2570B8:136>>, %% A -@@ -348,7 +333,7 @@ curve(sect131r1) -> - <<16#02:8>> %% CoFactor - }; - --curve(sect131r2) -> -+params(sect131r2) -> - { - {characteristic_two_field, 131, {ppbasis,2,3,8}}, - {<<16#03E5A88919D7CAFCBF415F07C2176573B2:136>>, %% A -@@ -361,7 +346,7 @@ curve(sect131r2) -> - <<16#02:8>> %% CoFactor - }; - --curve(sect163k1) -> -+params(sect163k1) -> - { - {characteristic_two_field, 163, {ppbasis,3,6,7}}, - {<<16#01:8>>, %% A -@@ -374,7 +359,7 @@ curve(sect163k1) -> - <<16#02:8>> %% CoFactor - }; - --curve(sect163r1) -> -+params(sect163r1) -> - { - {characteristic_two_field, 163, {ppbasis,3,6,7}}, - {<<16#07B6882CAAEFA84F9554FF8428BD88E246D2782AE2:168>>, %% A -@@ -387,7 +372,7 @@ curve(sect163r1) -> - <<16#02:8>> %% CoFactor - }; - --curve(sect163r2) -> -+params(sect163r2) -> - { - {characteristic_two_field, 163, {ppbasis,3,6,7}}, - {<<16#01:8>>, %% A -@@ -400,7 +385,7 @@ curve(sect163r2) -> - <<16#02:8>> %% CoFactor - }; - --curve(sect193r1) -> -+params(sect193r1) -> - { - {characteristic_two_field, 193, {tpbasis,15}}, - {<<16#17858FEB7A98975169E171F77B4087DE098AC8A911DF7B01:192>>, %% A -@@ -413,7 +398,7 @@ curve(sect193r1) -> - <<16#02:8>> %% CoFactor - }; - --curve(sect193r2) -> -+params(sect193r2) -> - { - {characteristic_two_field, 193, {tpbasis,15}}, - {<<16#0163F35A5137C2CE3EA6ED8667190B0BC43ECD69977702709B:200>>, %% A -@@ -426,7 +411,7 @@ curve(sect193r2) -> - <<16#02:8>> %% CoFactor - }; - --curve(sect233k1) -> -+params(sect233k1) -> - { - {characteristic_two_field, 233, {tpbasis,74}}, - {<<16#00:8>>, %% A -@@ -439,7 +424,7 @@ curve(sect233k1) -> - <<16#04:8>> %% CoFactor - }; - --curve(sect233r1) -> -+params(sect233r1) -> - { - {characteristic_two_field, 233, {tpbasis,74}}, - {<<16#01:8>>, %% A -@@ -452,7 +437,7 @@ curve(sect233r1) -> - <<16#02:8>> %% CoFactor - }; - --curve(sect239k1) -> -+params(sect239k1) -> - { - {characteristic_two_field, 239, {tpbasis,158}}, - {<<16#00:8>>, %% A -@@ -465,7 +450,7 @@ curve(sect239k1) -> - <<16#04:8>> %% CoFactor - }; - --curve(sect283k1) -> -+params(sect283k1) -> - { - {characteristic_two_field, 283, {ppbasis,5,7,12}}, - {<<16#00:8>>, %% A -@@ -481,7 +466,7 @@ curve(sect283k1) -> - <<16#04:8>> %% CoFactor - }; - --curve(sect283r1) -> -+params(sect283r1) -> - { - {characteristic_two_field, 283, {ppbasis,5,7,12}}, - {<<16#01:8>>, %% A -@@ -498,7 +483,7 @@ curve(sect283r1) -> - <<16#02:8>> %% CoFactor - }; - --curve(sect409k1) -> -+params(sect409k1) -> - { - {characteristic_two_field, 409, {tpbasis,87}}, - {<<16#00:8>>, %% A -@@ -514,7 +499,7 @@ curve(sect409k1) -> - <<16#04:8>> %% CoFactor - }; - --curve(sect409r1) -> -+params(sect409r1) -> - { - {characteristic_two_field, 409, {tpbasis,87}}, - {<<16#01:8>>, %% A -@@ -531,7 +516,7 @@ curve(sect409r1) -> - <<16#02:8>> %% CoFactor - }; - --curve(sect571k1) -> -+params(sect571k1) -> - { - {characteristic_two_field, 571, {ppbasis,2,5,10}}, - {<<16#00:8>>, %% A -@@ -550,7 +535,7 @@ curve(sect571k1) -> - <<16#04:8>> %% CoFactor - }; - --curve(sect571r1) -> -+params(sect571r1) -> - { - {characteristic_two_field, 571, {ppbasis,2,5,10}}, - {<<16#01:8>>, %% A -@@ -571,7 +556,7 @@ curve(sect571r1) -> - <<16#02:8>> %% CoFactor - }; - --curve(c2pnb163v1) -> -+params(c2pnb163v1) -> - { - {characteristic_two_field, 163, {ppbasis,1,2,8}}, - {<<16#072546B5435234A422E0789675F432C89435DE5242:168>>, %% A -@@ -584,7 +569,7 @@ curve(c2pnb163v1) -> - <<16#02:8>> %% CoFactor - }; - --curve(c2pnb163v2) -> -+params(c2pnb163v2) -> - { - {characteristic_two_field, 163, {ppbasis,1,2,8}}, - {<<16#0108B39E77C4B108BED981ED0E890E117C511CF072:168>>, %% A -@@ -597,7 +582,7 @@ curve(c2pnb163v2) -> - <<16#02:8>> %% CoFactor - }; - --curve(c2pnb163v3) -> -+params(c2pnb163v3) -> - { - {characteristic_two_field, 163, {ppbasis,1,2,8}}, - {<<16#07A526C63D3E25A256A007699F5447E32AE456B50E:168>>, %% A -@@ -610,7 +595,7 @@ curve(c2pnb163v3) -> - <<16#02:8>> %% CoFactor - }; - --curve(c2pnb176v1) -> -+params(c2pnb176v1) -> - { - {characteristic_two_field, 176, {ppbasis,1,2,43}}, - {<<16#E4E6DB2995065C407D9D39B8D0967B96704BA8E9C90B:176>>, %% A -@@ -623,7 +608,7 @@ curve(c2pnb176v1) -> - <<16#FF6E:16>> %% CoFactor - }; - --curve(c2tnb191v1) -> -+params(c2tnb191v1) -> - { - {characteristic_two_field, 191, {tpbasis,9}}, - {<<16#2866537B676752636A68F56554E12640276B649EF7526267:192>>, %% A -@@ -636,7 +621,7 @@ curve(c2tnb191v1) -> - <<16#02:8>> %% CoFactor - }; - --curve(c2tnb191v2) -> -+params(c2tnb191v2) -> - { - {characteristic_two_field, 191, {tpbasis,9}}, - {<<16#401028774D7777C7B7666D1366EA432071274F89FF01E718:192>>, %% A -@@ -649,7 +634,7 @@ curve(c2tnb191v2) -> - <<16#04:8>> %% CoFactor - }; - --curve(c2tnb191v3) -> -+params(c2tnb191v3) -> - { - {characteristic_two_field, 191, {tpbasis,9}}, - {<<16#6C01074756099122221056911C77D77E77A777E7E7E77FCB:192>>, %% A -@@ -662,7 +647,7 @@ curve(c2tnb191v3) -> - <<16#06:8>> %% CoFactor - }; - --curve(c2pnb208w1) -> -+params(c2pnb208w1) -> - { - {characteristic_two_field, 208, {ppbasis,1,2,83}}, - {<<16#00:8>>, %% A -@@ -675,7 +660,7 @@ curve(c2pnb208w1) -> - <<16#FE48:16>> %% CoFactor - }; - --curve(c2tnb239v1) -> -+params(c2tnb239v1) -> - { - {characteristic_two_field, 239, {tpbasis,36}}, - {<<16#32010857077C5431123A46B808906756F543423E8D27877578125778AC76:240>>, %% A -@@ -688,7 +673,7 @@ curve(c2tnb239v1) -> - <<16#04:8>> %% CoFactor - }; - --curve(c2tnb239v2) -> -+params(c2tnb239v2) -> - { - {characteristic_two_field, 239, {tpbasis,36}}, - {<<16#4230017757A767FAE42398569B746325D45313AF0766266479B75654E65F:240>>, %% A -@@ -701,7 +686,7 @@ curve(c2tnb239v2) -> - <<16#06:8>> %% CoFactor - }; - --curve(c2tnb239v3) -> -+params(c2tnb239v3) -> - { - {characteristic_two_field, 239, {tpbasis,36}}, - {<<16#01238774666A67766D6676F778E676B66999176666E687666D8766C66A9F:240>>, %% A -@@ -714,7 +699,7 @@ curve(c2tnb239v3) -> - <<16#0A:8>> %% CoFactor - }; - --curve(c2pnb272w1) -> -+params(c2pnb272w1) -> - { - {characteristic_two_field, 272, {ppbasis,1,3,56}}, - {<<16#91A091F03B5FBA4AB2CCF49C4EDD220FB028712D42BE752B2C40094DBACDB586:256, %% A -@@ -732,7 +717,7 @@ curve(c2pnb272w1) -> - <<16#FF06:16>> %% CoFactor - }; - --curve(c2pnb304w1) -> -+params(c2pnb304w1) -> - { - {characteristic_two_field, 304, {ppbasis,1,2,11}}, - {<<16#FD0D693149A118F651E6DCE6802085377E5F882D1B510B44160074C128807836:256, %% A -@@ -750,7 +735,7 @@ curve(c2pnb304w1) -> - <<16#FE2E:16>> %% CoFactor - }; - --curve(c2tnb359v1) -> -+params(c2tnb359v1) -> - { - {characteristic_two_field, 359, {tpbasis,68}}, - {<<16#5667676A654B20754F356EA92017D946567C46675556F19556A04616B567D223:256, %% A -@@ -768,7 +753,7 @@ curve(c2tnb359v1) -> - <<16#4C:8>> %% CoFactor - }; - --curve(c2pnb368w1) -> -+params(c2pnb368w1) -> - { - {characteristic_two_field, 368, {ppbasis,1,2,85}}, - {<<16#E0D2EE25095206F5E2A4F9ED229F1F256E79A0E2B455970D8D0D865BD94778C5:256, %% A -@@ -786,7 +771,7 @@ curve(c2pnb368w1) -> - <<16#FF70:16>> %% CoFactor - }; - --curve(c2tnb431r1) -> -+params(c2tnb431r1) -> - { - {characteristic_two_field, 431, {tpbasis,120}}, - {<<16#1A827EF00DD6FC0E234CAF046C6A5D8A85395B236CC4AD2CF32A0CADBDC9DDF6:256, %% A -@@ -804,7 +789,7 @@ curve(c2tnb431r1) -> - <<16#2760:16>> %% CoFactor - }; - --curve(wtls1) -> -+params(wtls1) -> - { - {characteristic_two_field, 113, {tpbasis,9}}, - {<<16#01:8>>, %% A -@@ -817,7 +802,7 @@ curve(wtls1) -> - <<16#02:8>> %% CoFactor - }; - --curve(wtls3) -> -+params(wtls3) -> - { - {characteristic_two_field, 163, {ppbasis,3,6,7}}, - {<<16#01:8>>, %% A -@@ -830,7 +815,7 @@ curve(wtls3) -> - <<16#02:8>> %% CoFactor - }; - --curve(wtls4) -> -+params(wtls4) -> - { - {characteristic_two_field, 113, {tpbasis,9}}, - {<<16#3088250CA6E7C7FE649CE85820F7:112>>, %% A -@@ -843,7 +828,7 @@ curve(wtls4) -> - <<16#02:8>> %% CoFactor - }; - --curve(wtls5) -> -+params(wtls5) -> - { - {characteristic_two_field, 163, {ppbasis,1,2,8}}, - {<<16#072546B5435234A422E0789675F432C89435DE5242:168>>, %% A -@@ -856,7 +841,7 @@ curve(wtls5) -> - <<16#02:8>> %% CoFactor - }; - --curve(wtls6) -> -+params(wtls6) -> - { - {prime_field, <<16#DB7C2ABF62E35E668076BEAD208B:112>>}, %% Prime - {<<16#DB7C2ABF62E35E668076BEAD2088:112>>, %% A -@@ -869,7 +854,7 @@ curve(wtls6) -> - <<16#01:8>> %% CoFactor - }; - --curve(wtls7) -> -+params(wtls7) -> - { - {prime_field, <<16#FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFAC73:160>>}, %% Prime - {<<16#FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFAC70:160>>, %% A -@@ -882,7 +867,7 @@ curve(wtls7) -> - <<16#01:8>> %% CoFactor - }; - --curve(wtls8) -> -+params(wtls8) -> - { - {prime_field, <<16#FFFFFFFFFFFFFFFFFFFFFFFFFDE7:112>>}, %% Prime - {<<16#00:8>>, %% A -@@ -895,7 +880,7 @@ curve(wtls8) -> - <<16#01:8>> %% CoFactor - }; - --curve(wtls9) -> -+params(wtls9) -> - { - {prime_field, <<16#FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFC808F:160>>}, %% Prime - {<<16#00:8>>, %% A -@@ -908,7 +893,7 @@ curve(wtls9) -> - <<16#01:8>> %% CoFactor - }; - --curve(wtls10) -> -+params(wtls10) -> - { - {characteristic_two_field, 233, {tpbasis,74}}, - {<<16#00:8>>, %% A -@@ -921,7 +906,7 @@ curve(wtls10) -> - <<16#04:8>> %% CoFactor - }; - --curve(wtls11) -> -+params(wtls11) -> - { - {characteristic_two_field, 233, {tpbasis,74}}, - {<<16#01:8>>, %% A -@@ -934,7 +919,7 @@ curve(wtls11) -> - <<16#02:8>> %% CoFactor - }; - --curve(wtls12) -> -+params(wtls12) -> - { - {prime_field, <<16#FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF000000000000000000000001:224>>}, %% Prime - {<<16#FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFFFFFFFFFFFFFFFFFFFE:224>>, %% A -@@ -947,7 +932,7 @@ curve(wtls12) -> - <<16#01:8>> %% CoFactor - }; - --curve(ipsec3) -> -+params(ipsec3) -> - { - {characteristic_two_field, 155, {tpbasis,62}}, - {<<16#00:8>>, %% A -@@ -960,7 +945,7 @@ curve(ipsec3) -> - <<16#03:8>> %% CoFactor - }; - --curve(ipsec4) -> -+params(ipsec4) -> - { - {characteristic_two_field, 185, {tpbasis,69}}, - {<<16#00:8>>, %% A -@@ -973,7 +958,7 @@ curve(ipsec4) -> - <<16#02:8>> %% CoFactor - }; - --curve(brainpoolP160r1) -> -+params(brainpoolP160r1) -> - { - {prime_field, <<16#E95E4A5F737059DC60DFC7AD95B3D8139515620F:160>>}, %% Prime - {<<16#340E7BE2A280EB74E2BE61BADA745D97E8F7C300:160>>, %% A -@@ -986,7 +971,7 @@ curve(brainpoolP160r1) -> - <<16#01:8>> %% CoFactor - }; - --curve(brainpoolP160t1) -> -+params(brainpoolP160t1) -> - { - {prime_field, <<16#E95E4A5F737059DC60DFC7AD95B3D8139515620F:160>>}, %% Prime - {<<16#E95E4A5F737059DC60DFC7AD95B3D8139515620C:160>>, %% A -@@ -999,7 +984,7 @@ curve(brainpoolP160t1) -> - <<16#01:8>> %% CoFactor - }; - --curve(brainpoolP192r1) -> -+params(brainpoolP192r1) -> - { - {prime_field, <<16#C302F41D932A36CDA7A3463093D18DB78FCE476DE1A86297:192>>}, %% Prime - {<<16#6A91174076B1E0E19C39C031FE8685C1CAE040E5C69A28EF:192>>, %% A -@@ -1012,7 +997,7 @@ curve(brainpoolP192r1) -> - <<16#01:8>> %% CoFactor - }; - --curve(brainpoolP192t1) -> -+params(brainpoolP192t1) -> - { - {prime_field, <<16#C302F41D932A36CDA7A3463093D18DB78FCE476DE1A86297:192>>}, %% Prime - {<<16#C302F41D932A36CDA7A3463093D18DB78FCE476DE1A86294:192>>, %% A -@@ -1025,7 +1010,7 @@ curve(brainpoolP192t1) -> - <<16#01:8>> %% CoFactor - }; - --curve(brainpoolP224r1) -> -+params(brainpoolP224r1) -> - { - {prime_field, <<16#D7C134AA264366862A18302575D1D787B09F075797DA89F57EC8C0FF:224>>}, %% Prime - {<<16#68A5E62CA9CE6C1C299803A6C1530B514E182AD8B0042A59CAD29F43:224>>, %% A -@@ -1038,7 +1023,7 @@ curve(brainpoolP224r1) -> - <<16#01:8>> %% CoFactor - }; - --curve(brainpoolP224t1) -> -+params(brainpoolP224t1) -> - { - {prime_field, <<16#D7C134AA264366862A18302575D1D787B09F075797DA89F57EC8C0FF:224>>}, %% Prime - {<<16#D7C134AA264366862A18302575D1D787B09F075797DA89F57EC8C0FC:224>>, %% A -@@ -1051,7 +1036,7 @@ curve(brainpoolP224t1) -> - <<16#01:8>> %% CoFactor - }; - --curve(brainpoolP256r1) -> -+params(brainpoolP256r1) -> - { - {prime_field, <<16#A9FB57DBA1EEA9BC3E660A909D838D726E3BF623D52620282013481D1F6E5377:256>>}, %% Prime - {<<16#7D5A0975FC2C3057EEF67530417AFFE7FB8055C126DC5C6CE94A4B44F330B5D9:256>>, %% A -@@ -1064,7 +1049,7 @@ curve(brainpoolP256r1) -> - <<16#01:8>> %% CoFactor - }; - --curve(brainpoolP256t1) -> -+params(brainpoolP256t1) -> - { - {prime_field, <<16#A9FB57DBA1EEA9BC3E660A909D838D726E3BF623D52620282013481D1F6E5377:256>>}, %% Prime - {<<16#A9FB57DBA1EEA9BC3E660A909D838D726E3BF623D52620282013481D1F6E5374:256>>, %% A -@@ -1077,7 +1062,7 @@ curve(brainpoolP256t1) -> - <<16#01:8>> %% CoFactor - }; - --curve(brainpoolP320r1) -> -+params(brainpoolP320r1) -> - { - {prime_field, <<16#D35E472036BC4FB7E13C785ED201E065F98FCFA6F6F40DEF4F92B9EC7893EC28:256, %% Prime - 16#FCD412B1F1B32E27:64>>}, -@@ -1096,7 +1081,7 @@ curve(brainpoolP320r1) -> - <<16#01:8>> %% CoFactor - }; - --curve(brainpoolP320t1) -> -+params(brainpoolP320t1) -> - { - {prime_field, <<16#D35E472036BC4FB7E13C785ED201E065F98FCFA6F6F40DEF4F92B9EC7893EC28:256, %% Prime - 16#FCD412B1F1B32E27:64>>}, -@@ -1115,7 +1100,7 @@ curve(brainpoolP320t1) -> - <<16#01:8>> %% CoFactor - }; - --curve(brainpoolP384r1) -> -+params(brainpoolP384r1) -> - { - {prime_field, <<16#8CB91E82A3386D280F5D6F7E50E641DF152F7109ED5456B412B1DA197FB71123:256, %% Prime - 16#ACD3A729901D1A71874700133107EC53:128>>}, -@@ -1134,7 +1119,7 @@ curve(brainpoolP384r1) -> - <<16#01:8>> %% CoFactor - }; - --curve(brainpoolP384t1) -> -+params(brainpoolP384t1) -> - { - {prime_field, <<16#8CB91E82A3386D280F5D6F7E50E641DF152F7109ED5456B412B1DA197FB71123:256, %% Prime - 16#ACD3A729901D1A71874700133107EC53:128>>}, -@@ -1153,7 +1138,7 @@ curve(brainpoolP384t1) -> - <<16#01:8>> %% CoFactor - }; - --curve(brainpoolP512r1) -> -+params(brainpoolP512r1) -> - { - {prime_field, <<16#AADD9DB8DBE9C48B3FD4E6AE33C9FC07CB308DB3B3C9D20ED6639CCA70330871:256, %% Prime - 16#7D4D9B009BC66842AECDA12AE6A380E62881FF2F2D82C68528AA6056583A48F3:256>>}, -@@ -1172,7 +1157,7 @@ curve(brainpoolP512r1) -> - <<16#01:8>> %% CoFactor - }; - --curve(brainpoolP512t1) -> -+params(brainpoolP512t1) -> - { - {prime_field, <<16#AADD9DB8DBE9C48B3FD4E6AE33C9FC07CB308DB3B3C9D20ED6639CCA70330871:256, %% Prime - 16#7D4D9B009BC66842AECDA12AE6A380E62881FF2F2D82C68528AA6056583A48F3:256>>}, diff --git a/otp-0021-crypto_SUITE-Skip-ec-curves-with-224-bits-if-FIPS.patch b/otp-0021-crypto_SUITE-Skip-ec-curves-with-224-bits-if-FIPS.patch deleted file mode 100644 index 5615558..0000000 --- a/otp-0021-crypto_SUITE-Skip-ec-curves-with-224-bits-if-FIPS.patch +++ /dev/null @@ -1,78 +0,0 @@ -From: Sverker Eriksson -Date: Fri, 16 Jun 2023 19:31:34 +0200 -Subject: [PATCH] crypto_SUITE: Skip ec curves with < 224 bits if FIPS - - -diff --git a/lib/crypto/test/crypto_SUITE.erl b/lib/crypto/test/crypto_SUITE.erl -index c56faa9bc4..1179a516b2 100644 ---- a/lib/crypto/test/crypto_SUITE.erl -+++ b/lib/crypto/test/crypto_SUITE.erl -@@ -1256,8 +1256,19 @@ no_generate_compute(Config) when is_list(Config) -> - compute() -> - [{doc, " Test crypto:compute_key"}]. - compute(Config) when is_list(Config) -> -- Gen = proplists:get_value(compute, Config), -+ Gen0 = proplists:get_value(compute, Config), -+ Gen = case crypto:info_fips() of -+ enabled -> -+ SkipCurves = [secp192r1], -+ lists:filter(fun({_,_,_,Curve,_}) -> -+ not lists:member(Curve,SkipCurves) -+ end, -+ Gen0); -+ _ -> -+ Gen0 -+ end, - lists:foreach(fun do_compute/1, Gen). -+ - %%-------------------------------------------------------------------- - use_all_ec_sign_verify(_Config) -> - Msg = <<"hello world!">>, -@@ -1270,10 +1281,17 @@ use_all_ec_sign_verify(_Config) -> - Hashs]), - SkipHashs0 = [md4, md5, ripemd160, sha3_224, sha3_256, sha3_384, sha3_512, - blake2b, blake2s], -- SkipHashs = case crypto:info_fips() of -- enabled -> [sha | SkipHashs0]; -- _ -> SkipHashs0 -- end, -+ SkipCurves0 = [ed25519, ed448, x25519, x448, ipsec3, ipsec4], -+ -+ {SkipHashs, SkipCurves} -+ = case crypto:info_fips() of -+ enabled -> -+ {[sha | SkipHashs0], -+ [secp192r1, prime192v1, sect163k1, sect163r2]}; -+ _ -> -+ {SkipHashs0, SkipCurves0} -+ end, -+ - Results = - [{{Curve,Hash}, - try -@@ -1287,7 +1305,7 @@ use_all_ec_sign_verify(_Config) -> - C:E -> - {C,E} - end} -- || Curve <- Curves -- [ed25519, ed448, x25519, x448, ipsec3, ipsec4], -+ || Curve <- Curves -- SkipCurves, - Hash <- Hashs -- SkipHashs - ], - Fails = -@@ -1316,7 +1334,15 @@ use_all_ec_sign_verify(_Config) -> - - %%-------------------------------------------------------------------- - use_all_ecdh_generate_compute(Config) -> -- Curves = crypto:supports(curves) -- [ed25519, ed448, x25519, x448], -+ SkipCurves0 = [ed25519, ed448, x25519, x448], -+ SkipCurves = -+ case crypto:info_fips() of -+ enabled -> -+ [secp192r1, prime192v1, sect163k1, sect163r2 | SkipCurves0]; -+ _ -> -+ SkipCurves0 -+ end, -+ Curves = crypto:supports(curves) -- SkipCurves, - do_dh_curves(Config, Curves). - - use_all_eddh_generate_compute(Config) -> diff --git a/otp-0022-crypto_SUITE-Fix-safe-primes-for-DH-with-FIPS.patch b/otp-0022-crypto_SUITE-Fix-safe-primes-for-DH-with-FIPS.patch deleted file mode 100644 index 3181670..0000000 --- a/otp-0022-crypto_SUITE-Fix-safe-primes-for-DH-with-FIPS.patch +++ /dev/null @@ -1,37 +0,0 @@ -From: Sverker Eriksson -Date: Tue, 20 Jun 2023 14:50:27 +0200 -Subject: [PATCH] crypto_SUITE: Fix safe primes for DH with FIPS - -FIPs on OpenSSL 3 seems to demand P to be a safe prime -where Q = (P-1)/2 is also prime. - -diff --git a/lib/crypto/test/crypto_SUITE.erl b/lib/crypto/test/crypto_SUITE.erl -index 1179a516b2..eea60a523d 100644 ---- a/lib/crypto/test/crypto_SUITE.erl -+++ b/lib/crypto/test/crypto_SUITE.erl -@@ -1220,6 +1220,15 @@ generate_compute(Config) when is_list(Config) -> - compute_bug() -> - [{doc, "Test that it works even if the Secret is smaller than expected"}]. - compute_bug(_Config) -> -+ case crypto:info_fips() of -+ enabled -> -+ %% FIPs on OpenSSL 3 seems to demand P to be a safe prime -+ %% where Q = (P-1)/2 is also prime. -+ skip; -+ _ -> do_compute_bug() -+ end. -+ -+do_compute_bug() -> - ExpectedSecret = <<118,89,171,16,156,18,156,103,189,134,130,49,28,144,111,241,247,82,79,32,228,11,209,141,119,176,251,80,105,143,235,251,203,121,223,211,129,3,233,133,45,2,31,157,24,111,5,75,153,66,135,185,128,115,229,178,216,39,73,52,80,151,8,241,34,52,226,71,137,167,53,48,59,224,175,154,89,110,76,83,24,117,149,21,72,6,186,78,149,74,188,56,98,244,30,77,108,248,88,194,195,237,23,51,20,242,254,123,21,12,209,74,217,168,230,65,7,60,211,139,128,239,234,153,22,229,180,59,159,121,41,156,121,200,177,130,163,162,54,224,93,1,94,11,177,254,118,28,156,26,116,10,207,145,219,166,214,189,214,230,221,170,228,15,69,88,31,68,94,255,113,58,49,82,86,192,248,176,131,133,39,186,194,172,206,84,184,16,66,68,153,128,178,227,27,118,52,130,122,92,24,222,102,195,221,207,255,13,152,175,65,32,167,84,54,244,243,109,244,18,234,16,159,224,188,2,106,123,27,17,131,171,226,34,111,251,62,119,155,124,221,124,254,62,97,167,1,105,116,98,98,19,197,30,72,180,79,221,100,134,120,117,124,85,73,132,224,223,222,41,155,137,218,130,238,237,157,161,134,150,69,206,91,141,17,89,120,218,235,229,37,150,76,197,7,157,56,144,42,203,137,100,200,72,141,194,239,1,67,236,238,183,48,214,75,76,108,235,3,237,67,40,137,45,182,236,246,37,116,103,144,237,142,211,88,233,11,24,21,218,41,245,250,51,130,250,104,74,189,17,69,145,70,50,50,215,253,155,10,128,41,114,185,211,82,164,72,92,17,145,104,66,6,140,226,80,43,62,1,166,216,153,118,96,15,147,126,137,118,191,192,75,149,241,206,18,92,17,154,215,219,18,6,139,190,103,210,156,184,29,224,213,157,60,112,189,104,220,125,40,186,50,119,17,143,136,149,38,74,107,21,192,59,61,59,42,231,144,59,175,3,176,87,23,16,122,54,31,82,34,230,211,44,81,41,47,86,37,228,175,130,148,88,136,131,254,241,202,99,199,175,1,141,215,124,155,120,43,141,89,11,140,120,141,29,35,82,219,155,204,75,12,66,241,253,33,250,84,24,85,68,13,80,85,142,227,34,139,26,146,24>>, - OthersPublicKey = 635619632099733175381667940709387641100492974601603060984753028943194386334921787463327680809776598322996634648015962954045728174069768874873236397421720142610982770302060309928552098274817978606093380781524199673890631795310930242601197479471368910519338301177304682162189801040921618559902948819107531088646753320486728060005223263561551402855338732899079439899705951063999951507319258050864346087428042978411873495523439615429804957374639092580169417598963105885529553632847023899713490485619763926900318508906706745060947269748612049634207985438016935262521715769812475329234748426647554362991758104620357149045960316987533503707855364806010494793980069245562784050236811004893018183726397041999426883788660276453352521120006817370050691205529335316794439089316232980047277245051173281601960196573681285904611182521967067911862467395705665888521948321299521549941618586026714676885890192323289343756440666276226084448279082483536164085883288884231665240707495770544705648564889889198060417915693315346959170105413290799314390963124178046425737828369059171472978294050322371452255088799865552038756937873388385970088906560408959959429398326288750834357514847891423941047433478384621074116184703014798814515161475596555032391555842, - MyPrivateKey = 387759582879975726965038486537011291913744975764132199838375902680222019267527675651273586836110220500657652661706223760165097275862806031329642160439090779625708664007910974206651834216043397115514725827856461492311499129200688538220719685637154290305617686974719521885238198226075381217068175824097878445476010193039590876624464274744156624589136789060427283492343902761765833713520850870233407503430180028104167029073459918756981323130062648615262139444306321256382009848217866984408901761817655567071716275177768316006340055589170095799943481591033461616307776069027985761229636731465482676467627154100912586936231051371168178564599296638350391246393336702334311781595616786107810962134407697848002331639021101685320844880636050048769216986088652236979636019052557155807310341483407890060105599892252118584570558049301477535792498672552850760356632076013402382600669875697284264329434950712239302528367835155163504374877787288116104285944993818319105835423479332617802010952731990182088670508346704423006877514817882782443833997288652405892920173712497948376815825396272381214976859009518623799156300136570204539240675245115597412280078940442452936425561984312708387584800789375684525365060589104566195610526570099527133097201479, -@@ -4403,8 +4412,7 @@ ecdh() -> - ). - - dh() -> -- {dh, 90970053988169282502023478715631717259407236400413906591937635666709823903223997309250405131675572047545403771567755831138144089197560332757755059848492919215391041119286178688014693040542889497092308638580104031455627238700168892909539193174537248629499995652186913900511641708112112482297874449292467498403, 2}. -- -+ {dh, 16#FFFFFFFFFFFFFFFFADF85458A2BB4A9AAFDC5620273D3CF1D8B9C583CE2D3695A9E13641146433FBCC939DCE249B3EF97D2FE363630C75D8F681B202AEC4617AD3DF1ED5D5FD65612433F51F5F066ED0856365553DED1AF3B557135E7F57C935984F0C70E0E68B77E2A689DAF3EFE8721DF158A136ADE73530ACCA4F483A797ABC0AB182B324FB61D108A94BB2C8E3FBB96ADAB760D7F4681D4F42A3DE394DF4AE56EDE76372BB190B07A7C8EE0A6D709E02FCE1CDF7E2ECC03404CD28342F619172FE9CE98583FF8E4F1232EEF28183C3FE3B1B4C6FAD733BB5FCBC2EC22005C58EF1837D1683B2C6F34A26C1B2EFFA886B423861285C97FFFFFFFFFFFFFFFF, 2}. - - - rsa_oaep() -> diff --git a/otp-0023-crypto-Skip-entire-engine_SUITE-if-notsup.patch b/otp-0023-crypto-Skip-entire-engine_SUITE-if-notsup.patch deleted file mode 100644 index 770826f..0000000 --- a/otp-0023-crypto-Skip-entire-engine_SUITE-if-notsup.patch +++ /dev/null @@ -1,53 +0,0 @@ -From: Sverker Eriksson -Date: Tue, 20 Jun 2023 15:29:57 +0200 -Subject: [PATCH] crypto: Skip entire engine_SUITE if notsup - - -diff --git a/lib/crypto/test/engine_SUITE.erl b/lib/crypto/test/engine_SUITE.erl -index 8907d3968f..b2c25bdcae 100644 ---- a/lib/crypto/test/engine_SUITE.erl -+++ b/lib/crypto/test/engine_SUITE.erl -@@ -136,20 +136,23 @@ groups() -> - - - init_per_suite(Config) -> -- try {os:type(), crypto:info_lib()} of -- {_, [{_,_, <<"OpenSSL 1.0.1s-freebsd 1 Mar 2016">>}]} -> -+ try {engine_supported(), os:type(), crypto:info_lib()} of -+ {false,_,[{_,_,OpenSSLversion}]} -> -+ {skip, "Engine not supported by " ++ OpenSSLversion}; -+ -+ {_,_, [{_,_, <<"OpenSSL 1.0.1s-freebsd 1 Mar 2016">>}]} -> - {skip, "Problem with engine on OpenSSL 1.0.1s-freebsd"}; - -- {_, [{_,_,<<"LibreSSL 2.1.",_/binary>>}]} -> -+ {_,_, [{_,_,<<"LibreSSL 2.1.",_/binary>>}]} -> - {skip, "Problem with engine on older LibreSSL 2.1.*"}; - -- {{unix,darwin}, _} -> -+ {_,{unix,darwin}, _} -> - {skip, "Engine unsupported on Darwin"}; -- -- {{win32,_}, _} -> -+ -+ {_,{win32,_}, _} -> - {skip, "Engine unsupported on Windows"}; -- -- {OS, Res} -> -+ -+ {_,OS, Res} -> - ct:log("crypto:info_lib() -> ~p\nos:type() -> ~p", [Res,OS]), - try crypto:start() of - ok -> -@@ -166,6 +169,11 @@ init_per_suite(Config) -> - end_per_suite(_Config) -> - ok. - -+engine_supported() -> -+ try crypto:engine_list(), true -+ catch error:notsup -> false -+ end. -+ - %%-------------------------------------------------------------------- - init_per_group(engine_stored_key, Config) -> - group_load_engine(Config, [engine_method_rsa]); diff --git a/otp-0024-crypto-Fix-doc-for-FIPS-with-OpenSSL-3.patch b/otp-0024-crypto-Fix-doc-for-FIPS-with-OpenSSL-3.patch deleted file mode 100644 index 36a0c8b..0000000 --- a/otp-0024-crypto-Fix-doc-for-FIPS-with-OpenSSL-3.patch +++ /dev/null @@ -1,21 +0,0 @@ -From: Sverker Eriksson -Date: Tue, 20 Jun 2023 20:55:03 +0200 -Subject: [PATCH] crypto: Fix doc for FIPS with OpenSSL 3 - - -diff --git a/lib/crypto/doc/src/crypto_app.xml b/lib/crypto/doc/src/crypto_app.xml -index dcc86cd49c..4bc019f244 100644 ---- a/lib/crypto/doc/src/crypto_app.xml -+++ b/lib/crypto/doc/src/crypto_app.xml -@@ -50,9 +50,9 @@ - LibreSSL should also work.

- -

The crypto app is tested daily with at least one version of each of the -- OpenSSL 1.0.1, 1.0.2, 1.1.0, 1.1.1 and 3.0. FIPS mode is also tested for 1.0.1 and 1.0.2.

-+ OpenSSL 1.0.1, 1.0.2, 1.1.0, 1.1.1 and 3.0. FIPS mode is also tested for 1.0.1, 1.0.2 and 3.0.

- --

Using OpenSSL 3.0 with Engines or in FIPS mode is not yet supported by the OTP/crypto app.

-+

Using OpenSSL 3.0 with Engines is not yet supported by the OTP/crypto app.

- -

Source releases of OpenSSL can be downloaded from the OpenSSL project home page, - or mirror sites listed there. diff --git a/sources b/sources index e0f0ac9..bc4dc6f 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (otp-OTP-26.0.2.tar.gz) = 9bbf1099e902e10000c218c24dd510e2432659c50fe9b795c67f5bf61b243127aeb44ff60d62a9a3cdfce9d23ec97ae5d154690df99c2d781199f68b124eb44c +SHA512 (otp-OTP-26.1.tar.gz) = 5700487223c1e7a317b83c6828bcd3b0e531ffb9ca9c0bd6328f83faa51176bda01aaa3209e8657d1a1a62fb8d85d6d4050b0e97b425e4bb0bfb72aacb1b39bb From 25d796624195aac056a6ac18b44e84c94ef70df2 Mon Sep 17 00:00:00 2001 From: Peter Lemenkov Date: Wed, 20 Sep 2023 12:10:07 +0200 Subject: [PATCH 098/135] A new man-file was added Signed-off-by: Peter Lemenkov --- erlang.spec | 1 + 1 file changed, 1 insertion(+) diff --git a/erlang.spec b/erlang.spec index b4e6469..33081f3 100644 --- a/erlang.spec +++ b/erlang.spec @@ -1596,6 +1596,7 @@ useradd -r -g epmd -d /dev/null -s /sbin/nologin \ %{_mandir}/man3/dict.* %{_mandir}/man3/digraph.* %{_mandir}/man3/digraph_utils.* +%{_mandir}/man3/edlin.* %{_mandir}/man3/edlin_expand.* %{_mandir}/man3/epp.* %{_mandir}/man3/erl_anno.* From 4557df10d56645cde494698eb0b9d7462176c80f Mon Sep 17 00:00:00 2001 From: Peter Lemenkov Date: Fri, 29 Sep 2023 16:34:06 +0200 Subject: [PATCH 099/135] Erlang ver. 26.1.1 Signed-off-by: Peter Lemenkov --- erlang.spec | 5 ++++- sources | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/erlang.spec b/erlang.spec index 33081f3..fc23db1 100644 --- a/erlang.spec +++ b/erlang.spec @@ -68,7 +68,7 @@ Name: erlang -Version: 26.1 +Version: 26.1.1 Release: 1%{?dist} Summary: General-purpose programming language and runtime environment @@ -1969,6 +1969,9 @@ useradd -r -g epmd -d /dev/null -s /sbin/nologin \ %changelog +* Fri Sep 29 2023 Peter Lemenkov - 26.1.1-1 +- Ver. 26.1.1 + * Wed Sep 20 2023 Peter Lemenkov - 26.1-1 - Ver. 26.1 diff --git a/sources b/sources index bc4dc6f..a8a8b5b 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (otp-OTP-26.1.tar.gz) = 5700487223c1e7a317b83c6828bcd3b0e531ffb9ca9c0bd6328f83faa51176bda01aaa3209e8657d1a1a62fb8d85d6d4050b0e97b425e4bb0bfb72aacb1b39bb +SHA512 (otp-OTP-26.1.1.tar.gz) = 2a10a4bd1145ee3a720ed7dcc7db098052c67e5c962611df9d43c596cef0fe0bc25051bd90216030d14b47e91bd2072bcfd21dbc6f509516dfb2fe7c0a7988a6 From 6bddebbe912d7d4467c2a79242f1fe888735f012 Mon Sep 17 00:00:00 2001 From: Peter Lemenkov Date: Fri, 13 Oct 2023 13:33:13 +0200 Subject: [PATCH 100/135] Erlang ver. 26.1.2 Signed-off-by: Peter Lemenkov --- erlang.spec | 5 ++++- sources | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/erlang.spec b/erlang.spec index fc23db1..41f693f 100644 --- a/erlang.spec +++ b/erlang.spec @@ -68,7 +68,7 @@ Name: erlang -Version: 26.1.1 +Version: 26.1.2 Release: 1%{?dist} Summary: General-purpose programming language and runtime environment @@ -1969,6 +1969,9 @@ useradd -r -g epmd -d /dev/null -s /sbin/nologin \ %changelog +* Fri Oct 13 2023 Peter Lemenkov - 26.1.2-1 +- Ver. 26.1.2 + * Fri Sep 29 2023 Peter Lemenkov - 26.1.1-1 - Ver. 26.1.1 diff --git a/sources b/sources index a8a8b5b..d98e324 100644 --- a/sources +++ b/sources @@ -1 +1,2 @@ SHA512 (otp-OTP-26.1.1.tar.gz) = 2a10a4bd1145ee3a720ed7dcc7db098052c67e5c962611df9d43c596cef0fe0bc25051bd90216030d14b47e91bd2072bcfd21dbc6f509516dfb2fe7c0a7988a6 +SHA512 (otp-OTP-26.1.2.tar.gz) = 6907bba4ee726582b6344995c73223f725ea628897b34fc807a2a0306536bb15ce55c7fd4da1cb596dc59c9695b3bb6bba59618ca2a7a9a999e183f671656710 From d847a77a0eae0dba10672e822023c93239dae798 Mon Sep 17 00:00:00 2001 From: Peter Lemenkov Date: Wed, 13 Dec 2023 20:58:41 +0100 Subject: [PATCH 101/135] Erlang ver. 26.2 Signed-off-by: Peter Lemenkov --- erlang.spec | 5 ++++- ...o-not-format-man-pages-and-do-not-install-miscellan.patch | 2 +- otp-0002-Remove-rpath.patch | 2 +- otp-0003-Do-not-install-C-sources.patch | 4 ++-- sources | 3 +-- 5 files changed, 9 insertions(+), 7 deletions(-) diff --git a/erlang.spec b/erlang.spec index 41f693f..51e0d5a 100644 --- a/erlang.spec +++ b/erlang.spec @@ -68,7 +68,7 @@ Name: erlang -Version: 26.1.2 +Version: 26.2 Release: 1%{?dist} Summary: General-purpose programming language and runtime environment @@ -1969,6 +1969,9 @@ useradd -r -g epmd -d /dev/null -s /sbin/nologin \ %changelog +* Wed Dec 13 2023 Peter Lemenkov - 26.2-1 +- Ver. 26.2 + * Fri Oct 13 2023 Peter Lemenkov - 26.1.2-1 - Ver. 26.1.2 diff --git a/otp-0001-Do-not-format-man-pages-and-do-not-install-miscellan.patch b/otp-0001-Do-not-format-man-pages-and-do-not-install-miscellan.patch index 0cc953a..270792a 100644 --- a/otp-0001-Do-not-format-man-pages-and-do-not-install-miscellan.patch +++ b/otp-0001-Do-not-format-man-pages-and-do-not-install-miscellan.patch @@ -6,7 +6,7 @@ Subject: [PATCH] Do not format man-pages and do not install miscellaneous Signed-off-by: Peter Lemenkov diff --git a/erts/etc/common/Makefile.in b/erts/etc/common/Makefile.in -index 3c5a5cee64..3c3dbda661 100644 +index 42af9c87dc..c017e0a4ed 100644 --- a/erts/etc/common/Makefile.in +++ b/erts/etc/common/Makefile.in @@ -552,10 +552,6 @@ endif diff --git a/otp-0002-Remove-rpath.patch b/otp-0002-Remove-rpath.patch index c3685c9..5cadc0c 100644 --- a/otp-0002-Remove-rpath.patch +++ b/otp-0002-Remove-rpath.patch @@ -5,7 +5,7 @@ Subject: [PATCH] Remove rpath Signed-off-by: Peter Lemenkov diff --git a/lib/crypto/c_src/Makefile.in b/lib/crypto/c_src/Makefile.in -index 1691a7d120..48dcff51d0 100644 +index aedc9e7a13..b27c2aa01b 100644 --- a/lib/crypto/c_src/Makefile.in +++ b/lib/crypto/c_src/Makefile.in @@ -147,7 +147,7 @@ endif diff --git a/otp-0003-Do-not-install-C-sources.patch b/otp-0003-Do-not-install-C-sources.patch index bb55157..23056c4 100644 --- a/otp-0003-Do-not-install-C-sources.patch +++ b/otp-0003-Do-not-install-C-sources.patch @@ -27,10 +27,10 @@ index 82a6b6e87a..5f2fe8ba7d 100644 release_docs_spec: diff --git a/lib/erl_interface/src/Makefile.in b/lib/erl_interface/src/Makefile.in -index 0a5ae800be..2cc354c43e 100644 +index fa1ea3cd39..b977b6afe5 100644 --- a/lib/erl_interface/src/Makefile.in +++ b/lib/erl_interface/src/Makefile.in -@@ -712,13 +712,11 @@ ifeq (@DYNAMIC_LIB@, yes) +@@ -715,13 +715,11 @@ ifeq (@DYNAMIC_LIB@, yes) endif $(INSTALL_PROGRAM) $(EXE_TARGETS) "$(RELSYSDIR)/bin" $(INSTALL_DATA) $(EXTRA) "$(RELSYSDIR)/src" diff --git a/sources b/sources index d98e324..e49994e 100644 --- a/sources +++ b/sources @@ -1,2 +1 @@ -SHA512 (otp-OTP-26.1.1.tar.gz) = 2a10a4bd1145ee3a720ed7dcc7db098052c67e5c962611df9d43c596cef0fe0bc25051bd90216030d14b47e91bd2072bcfd21dbc6f509516dfb2fe7c0a7988a6 -SHA512 (otp-OTP-26.1.2.tar.gz) = 6907bba4ee726582b6344995c73223f725ea628897b34fc807a2a0306536bb15ce55c7fd4da1cb596dc59c9695b3bb6bba59618ca2a7a9a999e183f671656710 +SHA512 (otp-OTP-26.2.tar.gz) = 647f38e7a1d2a0e49aee982d9f6461a83df01d6248756eea3cc926c60dd03e82d881534e3ce3374e233a3ab7b0fad7c775a54d0079f4d5b13de8d8a97c7de642 From 0ec84deb99001d24945b9fc94ce04d743e76d331 Mon Sep 17 00:00:00 2001 From: Peter Lemenkov Date: Mon, 18 Dec 2023 22:22:49 +0100 Subject: [PATCH 102/135] Erlang ver. 26.2.1 Signed-off-by: Peter Lemenkov --- erlang.spec | 5 ++++- sources | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/erlang.spec b/erlang.spec index 51e0d5a..bf2ba6c 100644 --- a/erlang.spec +++ b/erlang.spec @@ -68,7 +68,7 @@ Name: erlang -Version: 26.2 +Version: 26.2.1 Release: 1%{?dist} Summary: General-purpose programming language and runtime environment @@ -1969,6 +1969,9 @@ useradd -r -g epmd -d /dev/null -s /sbin/nologin \ %changelog +* Mon Dec 18 2023 Peter Lemenkov - 26.2.1-1 +- Ver. 26.2.1 + * Wed Dec 13 2023 Peter Lemenkov - 26.2-1 - Ver. 26.2 diff --git a/sources b/sources index e49994e..a7e4eab 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (otp-OTP-26.2.tar.gz) = 647f38e7a1d2a0e49aee982d9f6461a83df01d6248756eea3cc926c60dd03e82d881534e3ce3374e233a3ab7b0fad7c775a54d0079f4d5b13de8d8a97c7de642 +SHA512 (otp-OTP-26.2.1.tar.gz) = f4fa0d11ecbd99ca5ef4421abb78ef2aba8ea0f8d19e4aed991c2afcc42bb057a37ae34a416b050fd7ed8ca39ba7cc8b3619ff371bc09f56dfd5b523988a8f8c From bccb7e6b4b4600e35663d2452d3bd8778693bf31 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Fri, 19 Jan 2024 18:19:06 +0000 Subject: [PATCH 103/135] Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild --- erlang.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/erlang.spec b/erlang.spec index bf2ba6c..11b3eb0 100644 --- a/erlang.spec +++ b/erlang.spec @@ -69,7 +69,7 @@ Name: erlang Version: 26.2.1 -Release: 1%{?dist} +Release: 2%{?dist} Summary: General-purpose programming language and runtime environment License: ASL 2.0 @@ -1969,6 +1969,9 @@ useradd -r -g epmd -d /dev/null -s /sbin/nologin \ %changelog +* Fri Jan 19 2024 Fedora Release Engineering - 26.2.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + * Mon Dec 18 2023 Peter Lemenkov - 26.2.1-1 - Ver. 26.2.1 From 31296f6a24fdb1163bb750ad2651ac53603a3b7e Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Wed, 24 Jan 2024 10:32:33 +0000 Subject: [PATCH 104/135] Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild --- erlang.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/erlang.spec b/erlang.spec index 11b3eb0..61f21ee 100644 --- a/erlang.spec +++ b/erlang.spec @@ -69,7 +69,7 @@ Name: erlang Version: 26.2.1 -Release: 2%{?dist} +Release: 3%{?dist} Summary: General-purpose programming language and runtime environment License: ASL 2.0 @@ -1969,6 +1969,9 @@ useradd -r -g epmd -d /dev/null -s /sbin/nologin \ %changelog +* Wed Jan 24 2024 Fedora Release Engineering - 26.2.1-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + * Fri Jan 19 2024 Fedora Release Engineering - 26.2.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild From d2e9015f83b074984280f16d50ea1c4f8fb52174 Mon Sep 17 00:00:00 2001 From: Peter Lemenkov Date: Mon, 12 Feb 2024 18:32:42 +0100 Subject: [PATCH 105/135] Erlang ver. 26.2.2 Signed-off-by: Peter Lemenkov --- erlang.spec | 7 +++++-- ....ac-C99-fix-for-ERTS___AFTER_MORECORE_HOOK_.patch | 4 ++-- ...configure.ac-C99-fixes-for-poll_works-check.patch | 12 ++++++------ sources | 2 +- 4 files changed, 14 insertions(+), 11 deletions(-) diff --git a/erlang.spec b/erlang.spec index 61f21ee..75be2be 100644 --- a/erlang.spec +++ b/erlang.spec @@ -68,8 +68,8 @@ Name: erlang -Version: 26.2.1 -Release: 3%{?dist} +Version: 26.2.2 +Release: 1%{?dist} Summary: General-purpose programming language and runtime environment License: ASL 2.0 @@ -1969,6 +1969,9 @@ useradd -r -g epmd -d /dev/null -s /sbin/nologin \ %changelog +* Mon Feb 12 2024 Peter Lemenkov - 26.2.2-1 +- Ver. 26.2.2 + * Wed Jan 24 2024 Fedora Release Engineering - 26.2.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild diff --git a/otp-0009-configure.ac-C99-fix-for-ERTS___AFTER_MORECORE_HOOK_.patch b/otp-0009-configure.ac-C99-fix-for-ERTS___AFTER_MORECORE_HOOK_.patch index 3790e65..9270b96 100644 --- a/otp-0009-configure.ac-C99-fix-for-ERTS___AFTER_MORECORE_HOOK_.patch +++ b/otp-0009-configure.ac-C99-fix-for-ERTS___AFTER_MORECORE_HOOK_.patch @@ -6,7 +6,7 @@ Subject: [PATCH] configure.ac: C99 fix for #include for the sbrk function if the header is available. diff --git a/erts/configure b/erts/configure -index a09c84ff09..478ebaa206 100755 +index 8d2083aa48..93e4ae295d 100755 --- a/erts/configure +++ b/erts/configure @@ -20890,6 +20890,9 @@ else $as_nop @@ -20,7 +20,7 @@ index a09c84ff09..478ebaa206 100755 extern char end; #elif defined(HAVE__END_SYMBOL) diff --git a/erts/configure.ac b/erts/configure.ac -index 540cc4b3cb..0d4d9377ef 100644 +index c591393fcd..5d5793518f 100644 --- a/erts/configure.ac +++ b/erts/configure.ac @@ -2449,6 +2449,9 @@ AC_CACHE_CHECK([if __after_morecore_hook can track malloc()s core memory use], diff --git a/otp-0010-configure.ac-C99-fixes-for-poll_works-check.patch b/otp-0010-configure.ac-C99-fixes-for-poll_works-check.patch index 255158c..6fe66dd 100644 --- a/otp-0010-configure.ac-C99-fixes-for-poll_works-check.patch +++ b/otp-0010-configure.ac-C99-fixes-for-poll_works-check.patch @@ -7,10 +7,10 @@ Return from main instead of calling exit, so that no function declaration is needed. diff --git a/erts/configure b/erts/configure -index 478ebaa206..549b53546c 100755 +index 93e4ae295d..bdff51a401 100755 --- a/erts/configure +++ b/erts/configure -@@ -24821,10 +24821,13 @@ else $as_nop +@@ -24837,10 +24837,13 @@ else $as_nop /* end confdefs.h. */ #include @@ -26,7 +26,7 @@ index 478ebaa206..549b53546c 100755 #else struct pollfd fds[1]; int fd; -@@ -24833,9 +24836,9 @@ main() +@@ -24849,9 +24852,9 @@ main() fds[0].events = POLLIN; fds[0].revents = 0; if (poll(fds, 1, 0) < 0 || (fds[0].revents & POLLNVAL) != 0) { @@ -39,10 +39,10 @@ index 478ebaa206..549b53546c 100755 } diff --git a/erts/configure.ac b/erts/configure.ac -index 0d4d9377ef..296a72bacc 100644 +index 5d5793518f..d08cf9569c 100644 --- a/erts/configure.ac +++ b/erts/configure.ac -@@ -3068,10 +3068,13 @@ poll_works=no +@@ -3083,10 +3083,13 @@ poll_works=no AC_RUN_IFELSE([AC_LANG_SOURCE([[ #include @@ -58,7 +58,7 @@ index 0d4d9377ef..296a72bacc 100644 #else struct pollfd fds[1]; int fd; -@@ -3080,9 +3083,9 @@ main() +@@ -3095,9 +3098,9 @@ main() fds[0].events = POLLIN; fds[0].revents = 0; if (poll(fds, 1, 0) < 0 || (fds[0].revents & POLLNVAL) != 0) { diff --git a/sources b/sources index a7e4eab..af5cae6 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (otp-OTP-26.2.1.tar.gz) = f4fa0d11ecbd99ca5ef4421abb78ef2aba8ea0f8d19e4aed991c2afcc42bb057a37ae34a416b050fd7ed8ca39ba7cc8b3619ff371bc09f56dfd5b523988a8f8c +SHA512 (otp-OTP-26.2.2.tar.gz) = 27d89f4ee1c7beccd27348ad0d5d9650cda58614f3c278b0a7cf062bf4efc91bd1c7aecfff55b934c57f69cb30c41ead89b94625616817acb2e5910b95bc80fd From bdd905072f2725278a74d085ecb3ec68dbd6e974 Mon Sep 17 00:00:00 2001 From: Peter Lemenkov Date: Thu, 7 Mar 2024 21:18:10 +0100 Subject: [PATCH 106/135] Erlang ver. 26.2.3 Signed-off-by: Peter Lemenkov --- erlang.spec | 2 +- otp-0006-Add-extra-search-directory.patch | 2 +- ....ac-C99-fix-for-ERTS___AFTER_MORECORE_HOOK_.patch | 8 ++++---- ...configure.ac-C99-fixes-for-poll_works-check.patch | 12 ++++++------ sources | 2 +- 5 files changed, 13 insertions(+), 13 deletions(-) diff --git a/erlang.spec b/erlang.spec index 75be2be..8d34939 100644 --- a/erlang.spec +++ b/erlang.spec @@ -68,7 +68,7 @@ Name: erlang -Version: 26.2.2 +Version: 26.2.3 Release: 1%{?dist} Summary: General-purpose programming language and runtime environment diff --git a/otp-0006-Add-extra-search-directory.patch b/otp-0006-Add-extra-search-directory.patch index 9717baa..2f872ef 100644 --- a/otp-0006-Add-extra-search-directory.patch +++ b/otp-0006-Add-extra-search-directory.patch @@ -5,7 +5,7 @@ Subject: [PATCH] Add extra search directory Signed-off-by: Peter Lemenkov diff --git a/lib/kernel/src/code_server.erl b/lib/kernel/src/code_server.erl -index c5ba677c6e..0d23c61c0c 100644 +index 7327636751..2e92e77598 100644 --- a/lib/kernel/src/code_server.erl +++ b/lib/kernel/src/code_server.erl @@ -90,11 +90,17 @@ init(Ref, Parent, [Root,Mode]) -> diff --git a/otp-0009-configure.ac-C99-fix-for-ERTS___AFTER_MORECORE_HOOK_.patch b/otp-0009-configure.ac-C99-fix-for-ERTS___AFTER_MORECORE_HOOK_.patch index 9270b96..8fd2271 100644 --- a/otp-0009-configure.ac-C99-fix-for-ERTS___AFTER_MORECORE_HOOK_.patch +++ b/otp-0009-configure.ac-C99-fix-for-ERTS___AFTER_MORECORE_HOOK_.patch @@ -6,10 +6,10 @@ Subject: [PATCH] configure.ac: C99 fix for #include for the sbrk function if the header is available. diff --git a/erts/configure b/erts/configure -index 8d2083aa48..93e4ae295d 100755 +index b395d4e891..432067c52c 100755 --- a/erts/configure +++ b/erts/configure -@@ -20890,6 +20890,9 @@ else $as_nop +@@ -20909,6 +20909,9 @@ else $as_nop #ifdef HAVE_MALLOC_H # include #endif @@ -20,10 +20,10 @@ index 8d2083aa48..93e4ae295d 100755 extern char end; #elif defined(HAVE__END_SYMBOL) diff --git a/erts/configure.ac b/erts/configure.ac -index c591393fcd..5d5793518f 100644 +index f944657fba..c55c9e5339 100644 --- a/erts/configure.ac +++ b/erts/configure.ac -@@ -2449,6 +2449,9 @@ AC_CACHE_CHECK([if __after_morecore_hook can track malloc()s core memory use], +@@ -2450,6 +2450,9 @@ AC_CACHE_CHECK([if __after_morecore_hook can track malloc()s core memory use], #ifdef HAVE_MALLOC_H # include #endif diff --git a/otp-0010-configure.ac-C99-fixes-for-poll_works-check.patch b/otp-0010-configure.ac-C99-fixes-for-poll_works-check.patch index 6fe66dd..40d204c 100644 --- a/otp-0010-configure.ac-C99-fixes-for-poll_works-check.patch +++ b/otp-0010-configure.ac-C99-fixes-for-poll_works-check.patch @@ -7,10 +7,10 @@ Return from main instead of calling exit, so that no function declaration is needed. diff --git a/erts/configure b/erts/configure -index 93e4ae295d..bdff51a401 100755 +index 432067c52c..17c6065d06 100755 --- a/erts/configure +++ b/erts/configure -@@ -24837,10 +24837,13 @@ else $as_nop +@@ -24865,10 +24865,13 @@ else $as_nop /* end confdefs.h. */ #include @@ -26,7 +26,7 @@ index 93e4ae295d..bdff51a401 100755 #else struct pollfd fds[1]; int fd; -@@ -24849,9 +24852,9 @@ main() +@@ -24877,9 +24880,9 @@ main() fds[0].events = POLLIN; fds[0].revents = 0; if (poll(fds, 1, 0) < 0 || (fds[0].revents & POLLNVAL) != 0) { @@ -39,10 +39,10 @@ index 93e4ae295d..bdff51a401 100755 } diff --git a/erts/configure.ac b/erts/configure.ac -index 5d5793518f..d08cf9569c 100644 +index c55c9e5339..c3a2863193 100644 --- a/erts/configure.ac +++ b/erts/configure.ac -@@ -3083,10 +3083,13 @@ poll_works=no +@@ -3093,10 +3093,13 @@ poll_works=no AC_RUN_IFELSE([AC_LANG_SOURCE([[ #include @@ -58,7 +58,7 @@ index 5d5793518f..d08cf9569c 100644 #else struct pollfd fds[1]; int fd; -@@ -3095,9 +3098,9 @@ main() +@@ -3105,9 +3108,9 @@ main() fds[0].events = POLLIN; fds[0].revents = 0; if (poll(fds, 1, 0) < 0 || (fds[0].revents & POLLNVAL) != 0) { diff --git a/sources b/sources index af5cae6..15685fc 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (otp-OTP-26.2.2.tar.gz) = 27d89f4ee1c7beccd27348ad0d5d9650cda58614f3c278b0a7cf062bf4efc91bd1c7aecfff55b934c57f69cb30c41ead89b94625616817acb2e5910b95bc80fd +SHA512 (otp-OTP-26.2.3.tar.gz) = 0c736e15b0ce05bff01a53666f76ac9ed95989b75661d6a2306e447fc7c647ce9d88a55ae7d75d40e75ba0fffd5ddfb12c65ed1a16d9f074729c783a39ca33a5 From 962eed8794116fad3c7d72c3f0a9e60ae9f8095f Mon Sep 17 00:00:00 2001 From: Peter Lemenkov Date: Sat, 13 Apr 2024 18:15:56 +0200 Subject: [PATCH 107/135] Erlang ver. 26.2.4 Signed-off-by: Peter Lemenkov --- erlang.spec | 5 ++++- ....ac-C99-fix-for-ERTS___AFTER_MORECORE_HOOK_.patch | 8 ++++---- ...configure.ac-C99-fixes-for-poll_works-check.patch | 12 ++++++------ sources | 2 +- 4 files changed, 15 insertions(+), 12 deletions(-) diff --git a/erlang.spec b/erlang.spec index 8d34939..d1830a8 100644 --- a/erlang.spec +++ b/erlang.spec @@ -68,7 +68,7 @@ Name: erlang -Version: 26.2.3 +Version: 26.2.4 Release: 1%{?dist} Summary: General-purpose programming language and runtime environment @@ -1969,6 +1969,9 @@ useradd -r -g epmd -d /dev/null -s /sbin/nologin \ %changelog +* Sat Apr 13 2024 Peter Lemenkov - 26.2.4-1 +- Ver. 26.2.4 + * Mon Feb 12 2024 Peter Lemenkov - 26.2.2-1 - Ver. 26.2.2 diff --git a/otp-0009-configure.ac-C99-fix-for-ERTS___AFTER_MORECORE_HOOK_.patch b/otp-0009-configure.ac-C99-fix-for-ERTS___AFTER_MORECORE_HOOK_.patch index 8fd2271..8050629 100644 --- a/otp-0009-configure.ac-C99-fix-for-ERTS___AFTER_MORECORE_HOOK_.patch +++ b/otp-0009-configure.ac-C99-fix-for-ERTS___AFTER_MORECORE_HOOK_.patch @@ -6,10 +6,10 @@ Subject: [PATCH] configure.ac: C99 fix for #include for the sbrk function if the header is available. diff --git a/erts/configure b/erts/configure -index b395d4e891..432067c52c 100755 +index 2044690dc6..f31d7775a4 100755 --- a/erts/configure +++ b/erts/configure -@@ -20909,6 +20909,9 @@ else $as_nop +@@ -20937,6 +20937,9 @@ else $as_nop #ifdef HAVE_MALLOC_H # include #endif @@ -20,10 +20,10 @@ index b395d4e891..432067c52c 100755 extern char end; #elif defined(HAVE__END_SYMBOL) diff --git a/erts/configure.ac b/erts/configure.ac -index f944657fba..c55c9e5339 100644 +index f247c1e71f..59c4d05460 100644 --- a/erts/configure.ac +++ b/erts/configure.ac -@@ -2450,6 +2450,9 @@ AC_CACHE_CHECK([if __after_morecore_hook can track malloc()s core memory use], +@@ -2459,6 +2459,9 @@ AC_CACHE_CHECK([if __after_morecore_hook can track malloc()s core memory use], #ifdef HAVE_MALLOC_H # include #endif diff --git a/otp-0010-configure.ac-C99-fixes-for-poll_works-check.patch b/otp-0010-configure.ac-C99-fixes-for-poll_works-check.patch index 40d204c..65acd3b 100644 --- a/otp-0010-configure.ac-C99-fixes-for-poll_works-check.patch +++ b/otp-0010-configure.ac-C99-fixes-for-poll_works-check.patch @@ -7,10 +7,10 @@ Return from main instead of calling exit, so that no function declaration is needed. diff --git a/erts/configure b/erts/configure -index 432067c52c..17c6065d06 100755 +index f31d7775a4..77fb9d0d7f 100755 --- a/erts/configure +++ b/erts/configure -@@ -24865,10 +24865,13 @@ else $as_nop +@@ -24893,10 +24893,13 @@ else $as_nop /* end confdefs.h. */ #include @@ -26,7 +26,7 @@ index 432067c52c..17c6065d06 100755 #else struct pollfd fds[1]; int fd; -@@ -24877,9 +24880,9 @@ main() +@@ -24905,9 +24908,9 @@ main() fds[0].events = POLLIN; fds[0].revents = 0; if (poll(fds, 1, 0) < 0 || (fds[0].revents & POLLNVAL) != 0) { @@ -39,10 +39,10 @@ index 432067c52c..17c6065d06 100755 } diff --git a/erts/configure.ac b/erts/configure.ac -index c55c9e5339..c3a2863193 100644 +index 59c4d05460..0abb11a967 100644 --- a/erts/configure.ac +++ b/erts/configure.ac -@@ -3093,10 +3093,13 @@ poll_works=no +@@ -3102,10 +3102,13 @@ poll_works=no AC_RUN_IFELSE([AC_LANG_SOURCE([[ #include @@ -58,7 +58,7 @@ index c55c9e5339..c3a2863193 100644 #else struct pollfd fds[1]; int fd; -@@ -3105,9 +3108,9 @@ main() +@@ -3114,9 +3117,9 @@ main() fds[0].events = POLLIN; fds[0].revents = 0; if (poll(fds, 1, 0) < 0 || (fds[0].revents & POLLNVAL) != 0) { diff --git a/sources b/sources index 15685fc..c686d83 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (otp-OTP-26.2.3.tar.gz) = 0c736e15b0ce05bff01a53666f76ac9ed95989b75661d6a2306e447fc7c647ce9d88a55ae7d75d40e75ba0fffd5ddfb12c65ed1a16d9f074729c783a39ca33a5 +SHA512 (otp-OTP-26.2.4.tar.gz) = 2fa385b5ec93810c984f31e22757fe8614087191adf0f99376702bd15a316237f8abc1b65d40a302d3919cd28afe65fb4086e39638c6c39af165c0c1ee6fb51d From 70fd44b05933f18909e113658871457fa93c3766 Mon Sep 17 00:00:00 2001 From: Peter Lemenkov Date: Sat, 4 May 2024 19:05:46 +0200 Subject: [PATCH 108/135] Erlang ver. 26.2.5 Signed-off-by: Peter Lemenkov --- erlang.spec | 5 ++++- sources | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/erlang.spec b/erlang.spec index d1830a8..dbf464c 100644 --- a/erlang.spec +++ b/erlang.spec @@ -68,7 +68,7 @@ Name: erlang -Version: 26.2.4 +Version: 26.2.5 Release: 1%{?dist} Summary: General-purpose programming language and runtime environment @@ -1969,6 +1969,9 @@ useradd -r -g epmd -d /dev/null -s /sbin/nologin \ %changelog +* Sat May 4 2024 Peter Lemenkov - 26.2.5-1 +- Ver. 26.2.5 + * Sat Apr 13 2024 Peter Lemenkov - 26.2.4-1 - Ver. 26.2.4 diff --git a/sources b/sources index c686d83..e69e9eb 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (otp-OTP-26.2.4.tar.gz) = 2fa385b5ec93810c984f31e22757fe8614087191adf0f99376702bd15a316237f8abc1b65d40a302d3919cd28afe65fb4086e39638c6c39af165c0c1ee6fb51d +SHA512 (otp-OTP-26.2.5.tar.gz) = f06d34290c0d93609aa3efbdc97206e8d3ce17aa2c3f62b6c566c7631ee3a3d45a89b61ce0ace81604b5a94610d03ad98558f27ee888ca90ecdeeeb2759c0184 From 986d3f3ba728fffccf1f3df7f0679c68ea91952f Mon Sep 17 00:00:00 2001 From: Jonathan Wright Date: Fri, 31 May 2024 15:38:58 -0500 Subject: [PATCH 109/135] convert license to SPDX format --- erlang.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erlang.spec b/erlang.spec index dbf464c..fa47211 100644 --- a/erlang.spec +++ b/erlang.spec @@ -72,7 +72,7 @@ Version: 26.2.5 Release: 1%{?dist} Summary: General-purpose programming language and runtime environment -License: ASL 2.0 +License: Apache-2.0 URL: https://www.erlang.org %if ! (0%{?rhel} && 0%{?rhel} <= 6) VCS: scm:git:https://github.com/erlang/otp From 42618325e73762497d04fd973b348ee100d84621 Mon Sep 17 00:00:00 2001 From: Peter Lemenkov Date: Wed, 26 Jun 2024 10:39:37 +0200 Subject: [PATCH 110/135] Erlang ver. 26.2.5.1 Signed-off-by: Peter Lemenkov --- erlang-configure-c99.patch | 89 -------------------------------------- erlang.spec | 5 ++- sources | 2 +- 3 files changed, 5 insertions(+), 91 deletions(-) delete mode 100644 erlang-configure-c99.patch diff --git a/erlang-configure-c99.patch b/erlang-configure-c99.patch deleted file mode 100644 index e7abc79..0000000 --- a/erlang-configure-c99.patch +++ /dev/null @@ -1,89 +0,0 @@ -Configure changes to adjust to stricter C99 compilers: Avoid -implicit function declarations, and define main as returning int. - -Submitted upstream: - -diff --git a/erts/configure b/erts/configure -index 815428caaf61c914..7d057e69ae5e3a93 100755 ---- a/erts/configure -+++ b/erts/configure -@@ -20529,6 +20529,9 @@ else $as_nop - #ifdef HAVE_MALLOC_H - # include - #endif -+#ifdef HAVE_UNISTD_H -+# include -+#endif - #if defined(HAVE_END_SYMBOL) - extern char end; - #elif defined(HAVE__END_SYMBOL) -@@ -24437,10 +24440,13 @@ else $as_nop - /* end confdefs.h. */ - - #include --main() -+#ifdef HAVE_FCNTL_H -+#include -+#endif -+int main() - { - #ifdef _POLL_EMUL_H_ -- exit(1); /* Implemented using select() -- fail */ -+ return 1; /* Implemented using select() -- fail */ - #else - struct pollfd fds[1]; - int fd; -@@ -24449,9 +24455,9 @@ main() - fds[0].events = POLLIN; - fds[0].revents = 0; - if (poll(fds, 1, 0) < 0 || (fds[0].revents & POLLNVAL) != 0) { -- exit(1); /* Does not work for devices -- fail */ -+ return 1; /* Does not work for devices -- fail */ - } -- exit(0); -+ return 0; - #endif - } - -diff --git a/erts/configure.ac b/erts/configure.ac -index ab2ee78acdca211e..f658b66e3c0e508a 100644 ---- a/erts/configure.ac -+++ b/erts/configure.ac -@@ -2436,6 +2436,9 @@ AC_CACHE_CHECK([if __after_morecore_hook can track malloc()s core memory use], - #ifdef HAVE_MALLOC_H - # include - #endif -+#ifdef HAVE_UNISTD_H -+# include -+#endif - #if defined(HAVE_END_SYMBOL) - extern char end; - #elif defined(HAVE__END_SYMBOL) -@@ -3033,10 +3036,13 @@ poll_works=no - - AC_RUN_IFELSE([AC_LANG_SOURCE([[ - #include --main() -+#ifdef HAVE_FCNTL_H -+#include -+#endif -+int main() - { - #ifdef _POLL_EMUL_H_ -- exit(1); /* Implemented using select() -- fail */ -+ return 1; /* Implemented using select() -- fail */ - #else - struct pollfd fds[1]; - int fd; -@@ -3045,9 +3051,9 @@ main() - fds[0].events = POLLIN; - fds[0].revents = 0; - if (poll(fds, 1, 0) < 0 || (fds[0].revents & POLLNVAL) != 0) { -- exit(1); /* Does not work for devices -- fail */ -+ return 1; /* Does not work for devices -- fail */ - } -- exit(0); -+ return 0; - #endif - } - ]])],[poll_works=yes],[poll_works=no],[ diff --git a/erlang.spec b/erlang.spec index fa47211..b27e3d0 100644 --- a/erlang.spec +++ b/erlang.spec @@ -68,7 +68,7 @@ Name: erlang -Version: 26.2.5 +Version: 26.2.5.1 Release: 1%{?dist} Summary: General-purpose programming language and runtime environment @@ -1969,6 +1969,9 @@ useradd -r -g epmd -d /dev/null -s /sbin/nologin \ %changelog +* Wed Jun 26 2024 Peter Lemenkov - 26.2.5.1-1 +- Ver. 26.2.5.1 + * Sat May 4 2024 Peter Lemenkov - 26.2.5-1 - Ver. 26.2.5 diff --git a/sources b/sources index e69e9eb..58c38a3 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (otp-OTP-26.2.5.tar.gz) = f06d34290c0d93609aa3efbdc97206e8d3ce17aa2c3f62b6c566c7631ee3a3d45a89b61ce0ace81604b5a94610d03ad98558f27ee888ca90ecdeeeb2759c0184 +SHA512 (otp-OTP-26.2.5.1.tar.gz) = fe7cf5c3a386123fa00e364c1f2e884adb46b8080cd4e84eee83c07531c4fca23c909e439516f0e0730735487c7d0384df9fd98ac68e29c6e05add6039ea18f4 From 9afd6d3c6bae0f60bf422f0751570ed6038ca6b9 Mon Sep 17 00:00:00 2001 From: Peter Lemenkov Date: Wed, 26 Jun 2024 11:08:05 +0200 Subject: [PATCH 111/135] Fix FTBFS with recent RPM Signed-off-by: Peter Lemenkov --- erlang.spec | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/erlang.spec b/erlang.spec index b27e3d0..ed2cc1b 100644 --- a/erlang.spec +++ b/erlang.spec @@ -74,9 +74,7 @@ Summary: General-purpose programming language and runtime environment License: Apache-2.0 URL: https://www.erlang.org -%if ! (0%{?rhel} && 0%{?rhel} <= 6) -VCS: scm:git:https://github.com/erlang/otp -%endif +VCS: git:https://github.com/erlang/otp.git Source0: https://github.com/erlang/otp/archive/OTP-%{version}/otp-OTP-%{version}.tar.gz Source5: epmd.service Source6: epmd.socket @@ -417,7 +415,7 @@ Requires: %{name}-stdlib%{?_isa} = %{version}-%{release} %description examples Examples for some Erlang modules. -%endif %{__with_examples} +%endif # __with_examples %package ftp Summary: FTP client @@ -698,7 +696,7 @@ Summary: A set of programming tools including a coverage analyzer etc %if %{__with_emacs} BuildRequires: emacs BuildRequires: emacs-el -%endif %{__with_emacs} +%endif # __with_emacs Requires: %{name}-compiler%{?_isa} = %{version}-%{release} Requires: %{name}-erts%{?_isa} = %{version}-%{release} Requires: %{name}-inets%{?_isa} = %{version}-%{release} @@ -709,7 +707,7 @@ Requires: %{name}-stdlib%{?_isa} = %{version}-%{release} Requires: emacs-filesystem Obsoletes: emacs-erlang Obsoletes: emacs-erlang-el -%endif %{__with_emacs} +%endif # __with_emacs %description tools @@ -805,7 +803,7 @@ cp lib/tools/emacs/*.el emacs-erlang/ pushd emacs-erlang %{_emacs_bytecompile} *.el popd -%endif %{__with_emacs} +%endif # __with_emacs %make_build @@ -835,7 +833,7 @@ for f in lib/tools/emacs/{README,*.el}; do "$RPM_BUILD_ROOT%{_emacs_sitelispdir}/erlang/" done install -m 0644 emacs-erlang/*.elc "$RPM_BUILD_ROOT%{_emacs_sitelispdir}/erlang/" -%endif %{__with_emacs} +%endif # __with_emacs make DESTDIR=$RPM_BUILD_ROOT install @@ -853,7 +851,7 @@ find $RPM_BUILD_ROOT%{_libdir}/erlang/lib/kernel-*/examples/uds_dist -type d -pe %else # Remove all examples find $RPM_BUILD_ROOT%{_libdir}/erlang/lib/ -mindepth 1 -maxdepth 2 -type d -name examples -exec rm -rf {} \; -%endif %{__with_examples} +%endif # __with_examples chmod 0755 $RPM_BUILD_ROOT%{_libdir}/erlang/bin @@ -1272,7 +1270,7 @@ useradd -r -g epmd -d /dev/null -s /sbin/nologin \ %if %{__with_wxwidgets} %{_libdir}/erlang/lib/wx-*/examples/ %endif # __with_wxwidgets -%endif %{__with_examples} +%endif # __with_examples %files ftp %dir %{_libdir}/erlang/lib/ftp-*/ @@ -1704,7 +1702,7 @@ useradd -r -g epmd -d /dev/null -s /sbin/nologin \ %{_emacs_sitelispdir}/erlang/*.el %{_emacs_sitelispdir}/erlang/*.elc %{_emacs_sitestartdir}/erlang-init.el -%endif %{__with_emacs} +%endif # __with_emacs %if %{__with_wxwidgets} %files wx From 039ee25fc043dea1315dc225480d2a2cc62aa33d Mon Sep 17 00:00:00 2001 From: Peter Lemenkov Date: Wed, 10 Jul 2024 15:58:30 +0200 Subject: [PATCH 112/135] Erlang ver. 26.2.5.2 Signed-off-by: Peter Lemenkov --- erlang.spec | 11 ++++------- sources | 2 +- 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/erlang.spec b/erlang.spec index ed2cc1b..ed975d0 100644 --- a/erlang.spec +++ b/erlang.spec @@ -68,7 +68,7 @@ Name: erlang -Version: 26.2.5.1 +Version: 26.2.5.2 Release: 1%{?dist} Summary: General-purpose programming language and runtime environment @@ -122,13 +122,11 @@ BuildRequires: erlang %endif %endif -%if ! (0%{?rhel} && 0%{?rhel} <= 6) # for BuildRequires: systemd-devel BuildRequires: systemd %{?systemd_requires} Requires: systemd -%endif BuildRequires: autoconf BuildRequires: automake #BuildRequires: erlang-rpm-macros @@ -930,12 +928,10 @@ ln -s "${jinterface_lib_dir}priv/OtpErlang.jar" "$RPM_BUILD_ROOT%{_javadir}/%{na %endif # __with_java # systemd-related stuff -%if ! (0%{?rhel} && 0%{?rhel} <= 6) install -D -p -m 0644 %{SOURCE5} %{buildroot}%{_unitdir}/epmd.service install -D -p -m 0644 %{SOURCE6} %{buildroot}%{_unitdir}/epmd.socket install -D -p -m 0644 %{SOURCE7} %{buildroot}%{_unitdir}/epmd@.service install -D -p -m 0644 %{SOURCE8} %{buildroot}%{_unitdir}/epmd@.socket -%endif %if %{__with_wxwidgets} @@ -1209,12 +1205,10 @@ useradd -r -g epmd -d /dev/null -s /sbin/nologin \ %endif %{_libdir}/erlang/releases/* %{_libdir}/erlang/usr/ -%if ! (0%{?rhel} && 0%{?rhel} <= 6) %{_unitdir}/epmd.service %{_unitdir}/epmd.socket %{_unitdir}/epmd@.service %{_unitdir}/epmd@.socket -%endif %if %{__with_wxwidgets} %files et @@ -1967,6 +1961,9 @@ useradd -r -g epmd -d /dev/null -s /sbin/nologin \ %changelog +* Wed Jul 10 2024 Peter Lemenkov - 26.2.5.2-1 +- Ver. 26.2.5.2 + * Wed Jun 26 2024 Peter Lemenkov - 26.2.5.1-1 - Ver. 26.2.5.1 diff --git a/sources b/sources index 58c38a3..2b4a35d 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (otp-OTP-26.2.5.1.tar.gz) = fe7cf5c3a386123fa00e364c1f2e884adb46b8080cd4e84eee83c07531c4fca23c909e439516f0e0730735487c7d0384df9fd98ac68e29c6e05add6039ea18f4 +SHA512 (otp-OTP-26.2.5.2.tar.gz) = 913029b713472b300c1ce8dc8658915ab3b3f2f36f5e01b5df492829baa70acbb76951747cbc0eed07267d5afc06fa25b8444c06d7cead1ec6f796a824facebe From 1d682bab55cd7f60e0dac2f8d66abe5dc9a257dd Mon Sep 17 00:00:00 2001 From: Peter Lemenkov Date: Wed, 10 Jul 2024 16:34:14 +0200 Subject: [PATCH 113/135] OpenSSL engine split off since Fedora 41 Signed-off-by: Peter Lemenkov --- erlang.spec | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/erlang.spec b/erlang.spec index ed975d0..e15dab6 100644 --- a/erlang.spec +++ b/erlang.spec @@ -242,9 +242,9 @@ A byte code compiler for Erlang which produces highly compact code. %package crypto Summary: Cryptographical support BuildRequires: pkgconfig(openssl) -# FIXME there is something wrong with OpenSSL 3.0 support in Erlang right now. -# We have to fallback to OpenSSL1 explicitly. -# BuildRequires: openssl1.1-devel +%if 0%{fedora} > 40 +BuildRequires: openssl-devel-engine +%endif Requires: %{name}-erts%{?_isa} = %{version}-%{release} Requires: %{name}-kernel%{?_isa} = %{version}-%{release} Requires: %{name}-stdlib%{?_isa} = %{version}-%{release} From 0e5c862b2a0187cc55b9b5794748c13a64a73417 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Wed, 17 Jul 2024 22:08:38 +0000 Subject: [PATCH 114/135] Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild --- erlang.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/erlang.spec b/erlang.spec index e15dab6..e27af3b 100644 --- a/erlang.spec +++ b/erlang.spec @@ -69,7 +69,7 @@ Name: erlang Version: 26.2.5.2 -Release: 1%{?dist} +Release: 2%{?dist} Summary: General-purpose programming language and runtime environment License: Apache-2.0 @@ -1961,6 +1961,9 @@ useradd -r -g epmd -d /dev/null -s /sbin/nologin \ %changelog +* Wed Jul 17 2024 Fedora Release Engineering - 26.2.5.2-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild + * Wed Jul 10 2024 Peter Lemenkov - 26.2.5.2-1 - Ver. 26.2.5.2 From d9d1e480c904192b3ab6716e04fcd76f511bf32d Mon Sep 17 00:00:00 2001 From: Peter Lemenkov Date: Thu, 5 Sep 2024 19:21:18 +0200 Subject: [PATCH 115/135] Erlang ver. 26.2.5.3 Signed-off-by: Peter Lemenkov --- erlang.spec | 7 +++++-- sources | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/erlang.spec b/erlang.spec index e27af3b..0f65250 100644 --- a/erlang.spec +++ b/erlang.spec @@ -68,8 +68,8 @@ Name: erlang -Version: 26.2.5.2 -Release: 2%{?dist} +Version: 26.2.5.3 +Release: 1%{?dist} Summary: General-purpose programming language and runtime environment License: Apache-2.0 @@ -1961,6 +1961,9 @@ useradd -r -g epmd -d /dev/null -s /sbin/nologin \ %changelog +* Thu Sep 5 2024 Peter Lemenkov - 26.2.5.3-1 +- Ver. 26.2.5.3 + * Wed Jul 17 2024 Fedora Release Engineering - 26.2.5.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild diff --git a/sources b/sources index 2b4a35d..bec37f2 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (otp-OTP-26.2.5.2.tar.gz) = 913029b713472b300c1ce8dc8658915ab3b3f2f36f5e01b5df492829baa70acbb76951747cbc0eed07267d5afc06fa25b8444c06d7cead1ec6f796a824facebe +SHA512 (otp-OTP-26.2.5.3.tar.gz) = 2fc5d9209c3428eca42d35aa868aef2e58b6d6611d85de7a6b28d355f97431b39fe36428965e9d9cb28e814129c101e7c4e60ccbc2c0e59f119f5fce22e15424 From cc3d6c8a984bfabe5b9ac8d7d4841e0e3bc3d578 Mon Sep 17 00:00:00 2001 From: Peter Lemenkov Date: Wed, 9 Oct 2024 17:36:59 +0300 Subject: [PATCH 116/135] Erlang ver. 26.2.5.4 Signed-off-by: Peter Lemenkov --- erlang.spec | 2 +- sources | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/erlang.spec b/erlang.spec index 0f65250..e129b92 100644 --- a/erlang.spec +++ b/erlang.spec @@ -68,7 +68,7 @@ Name: erlang -Version: 26.2.5.3 +Version: 26.2.5.4 Release: 1%{?dist} Summary: General-purpose programming language and runtime environment diff --git a/sources b/sources index bec37f2..456d911 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (otp-OTP-26.2.5.3.tar.gz) = 2fc5d9209c3428eca42d35aa868aef2e58b6d6611d85de7a6b28d355f97431b39fe36428965e9d9cb28e814129c101e7c4e60ccbc2c0e59f119f5fce22e15424 +SHA512 (otp-OTP-26.2.5.4.tar.gz) = fcbd3692a6f63bd293de06e11fe4ee5054c153b1481b399260546fa845e96e37dee822ef6fd5d965350357873f0bf3e28f70dab57db3b7f98f36bf772dbdf46e From 320b3b4669fe0d8774083010dc3af77f0a1cdb2c Mon Sep 17 00:00:00 2001 From: Peter Lemenkov Date: Fri, 1 Nov 2024 14:35:45 +0300 Subject: [PATCH 117/135] Erlang ver. 26.2.5.5 Signed-off-by: Peter Lemenkov --- erlang.spec | 8 +++++++- sources | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/erlang.spec b/erlang.spec index e129b92..22e0f97 100644 --- a/erlang.spec +++ b/erlang.spec @@ -68,7 +68,7 @@ Name: erlang -Version: 26.2.5.4 +Version: 26.2.5.5 Release: 1%{?dist} Summary: General-purpose programming language and runtime environment @@ -1961,6 +1961,12 @@ useradd -r -g epmd -d /dev/null -s /sbin/nologin \ %changelog +* Fri Nov 1 2024 Peter Lemenkov - 26.2.5.5-1 +- Ver. 26.2.5.5 + +* Wed Oct 9 2024 Peter Lemenkov - 26.2.5.4-1 +- Ver. 26.2.5.4 + * Thu Sep 5 2024 Peter Lemenkov - 26.2.5.3-1 - Ver. 26.2.5.3 diff --git a/sources b/sources index 456d911..6c9e828 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (otp-OTP-26.2.5.4.tar.gz) = fcbd3692a6f63bd293de06e11fe4ee5054c153b1481b399260546fa845e96e37dee822ef6fd5d965350357873f0bf3e28f70dab57db3b7f98f36bf772dbdf46e +SHA512 (otp-OTP-26.2.5.5.tar.gz) = af6dc4ce7999a64ec3312bca96b37d980d3d4a21f7efa9d2e8d1bba8cfa800951db3c6b5b081d4db1b90306faf21ee08b11f3ab3373c549c471b806d47043bed From 42ddc9677e4771bc663b627376e16fe1f77da348 Mon Sep 17 00:00:00 2001 From: Peter Lemenkov Date: Sat, 7 Dec 2024 16:32:02 +0100 Subject: [PATCH 118/135] Erlang ver. 26.2.5.6 Signed-off-by: Peter Lemenkov --- erlang.spec | 5 ++++- sources | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/erlang.spec b/erlang.spec index 22e0f97..93bfd48 100644 --- a/erlang.spec +++ b/erlang.spec @@ -68,7 +68,7 @@ Name: erlang -Version: 26.2.5.5 +Version: 26.2.5.6 Release: 1%{?dist} Summary: General-purpose programming language and runtime environment @@ -1961,6 +1961,9 @@ useradd -r -g epmd -d /dev/null -s /sbin/nologin \ %changelog +* Sat Dec 7 2024 Peter Lemenkov - 26.2.5.6-1 +- Ver. 26.2.5.6 + * Fri Nov 1 2024 Peter Lemenkov - 26.2.5.5-1 - Ver. 26.2.5.5 diff --git a/sources b/sources index 6c9e828..34cf8be 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (otp-OTP-26.2.5.5.tar.gz) = af6dc4ce7999a64ec3312bca96b37d980d3d4a21f7efa9d2e8d1bba8cfa800951db3c6b5b081d4db1b90306faf21ee08b11f3ab3373c549c471b806d47043bed +SHA512 (otp-OTP-26.2.5.6.tar.gz) = 149f047e7e814a6da76f53a6bd3215d7561556a7589c95b21eabebab7dbc76f5b421fb42495dd9e6e73a57f8f535408577c5d5b4f5300cb2a448b8ac0e0c1a01 From a41792bba819a71201e542df62f7720bf68e3ad5 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Thu, 16 Jan 2025 17:07:09 +0000 Subject: [PATCH 119/135] Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild --- erlang.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/erlang.spec b/erlang.spec index 93bfd48..5472a29 100644 --- a/erlang.spec +++ b/erlang.spec @@ -69,7 +69,7 @@ Name: erlang Version: 26.2.5.6 -Release: 1%{?dist} +Release: 2%{?dist} Summary: General-purpose programming language and runtime environment License: Apache-2.0 @@ -1961,6 +1961,9 @@ useradd -r -g epmd -d /dev/null -s /sbin/nologin \ %changelog +* Thu Jan 16 2025 Fedora Release Engineering - 26.2.5.6-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild + * Sat Dec 7 2024 Peter Lemenkov - 26.2.5.6-1 - Ver. 26.2.5.6 From a59fa7eb2f9c2a36a3c379706dfb3139b07c766c Mon Sep 17 00:00:00 2001 From: Peter Lemenkov Date: Tue, 11 Feb 2025 13:31:57 +0100 Subject: [PATCH 120/135] Erlang ver. 26.2.5.7 Signed-off-by: Peter Lemenkov --- erlang.spec | 9 +-- ...-fix-for-ERTS___AFTER_MORECORE_HOOK_.patch | 35 --------- ...re.ac-C99-fixes-for-poll_works-check.patch | 72 ------------------- sources | 2 +- 4 files changed, 6 insertions(+), 112 deletions(-) delete mode 100644 otp-0009-configure.ac-C99-fix-for-ERTS___AFTER_MORECORE_HOOK_.patch delete mode 100644 otp-0010-configure.ac-C99-fixes-for-poll_works-check.patch diff --git a/erlang.spec b/erlang.spec index 5472a29..1231fbd 100644 --- a/erlang.spec +++ b/erlang.spec @@ -68,8 +68,8 @@ Name: erlang -Version: 26.2.5.6 -Release: 2%{?dist} +Version: 26.2.5.7 +Release: 1%{?dist} Summary: General-purpose programming language and runtime environment License: Apache-2.0 @@ -106,8 +106,6 @@ Patch5: otp-0005-Do-not-install-nteventlog-and-related-doc-files-on-n.patch Patch6: otp-0006-Add-extra-search-directory.patch Patch7: otp-0007-Avoid-forking-sed-to-get-basename.patch Patch8: otp-0008-Load-man-pages-from-system-wide-directory.patch -Patch9: otp-0009-configure.ac-C99-fix-for-ERTS___AFTER_MORECORE_HOOK_.patch -Patch10: otp-0010-configure.ac-C99-fixes-for-poll_works-check.patch # end of autogenerated patch tag list BuildRequires: gcc @@ -1961,6 +1959,9 @@ useradd -r -g epmd -d /dev/null -s /sbin/nologin \ %changelog +* Tue Feb 11 2025 Peter Lemenkov - 26.2.5.7-1 +- Ver. 26.2.5.7 + * Thu Jan 16 2025 Fedora Release Engineering - 26.2.5.6-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild diff --git a/otp-0009-configure.ac-C99-fix-for-ERTS___AFTER_MORECORE_HOOK_.patch b/otp-0009-configure.ac-C99-fix-for-ERTS___AFTER_MORECORE_HOOK_.patch deleted file mode 100644 index 8050629..0000000 --- a/otp-0009-configure.ac-C99-fix-for-ERTS___AFTER_MORECORE_HOOK_.patch +++ /dev/null @@ -1,35 +0,0 @@ -From: Florian Weimer -Date: Thu, 24 Nov 2022 11:57:49 +0100 -Subject: [PATCH] configure.ac: C99 fix for - ERTS___AFTER_MORECORE_HOOK_CAN_TRACK_MALLOC - -#include for the sbrk function if the header is available. - -diff --git a/erts/configure b/erts/configure -index 2044690dc6..f31d7775a4 100755 ---- a/erts/configure -+++ b/erts/configure -@@ -20937,6 +20937,9 @@ else $as_nop - #ifdef HAVE_MALLOC_H - # include - #endif -+#ifdef HAVE_UNISTD_H -+# include -+#endif - #if defined(HAVE_END_SYMBOL) - extern char end; - #elif defined(HAVE__END_SYMBOL) -diff --git a/erts/configure.ac b/erts/configure.ac -index f247c1e71f..59c4d05460 100644 ---- a/erts/configure.ac -+++ b/erts/configure.ac -@@ -2459,6 +2459,9 @@ AC_CACHE_CHECK([if __after_morecore_hook can track malloc()s core memory use], - #ifdef HAVE_MALLOC_H - # include - #endif -+#ifdef HAVE_UNISTD_H -+# include -+#endif - #if defined(HAVE_END_SYMBOL) - extern char end; - #elif defined(HAVE__END_SYMBOL) diff --git a/otp-0010-configure.ac-C99-fixes-for-poll_works-check.patch b/otp-0010-configure.ac-C99-fixes-for-poll_works-check.patch deleted file mode 100644 index 65acd3b..0000000 --- a/otp-0010-configure.ac-C99-fixes-for-poll_works-check.patch +++ /dev/null @@ -1,72 +0,0 @@ -From: Florian Weimer -Date: Thu, 24 Nov 2022 11:59:22 +0100 -Subject: [PATCH] configure.ac: C99 fixes for poll_works check - -Include if it is available for the open prototype. -Return from main instead of calling exit, so that no function -declaration is needed. - -diff --git a/erts/configure b/erts/configure -index f31d7775a4..77fb9d0d7f 100755 ---- a/erts/configure -+++ b/erts/configure -@@ -24893,10 +24893,13 @@ else $as_nop - /* end confdefs.h. */ - - #include --main() -+#ifdef HAVE_FCNTL_H -+#include -+#endif -+int main() - { - #ifdef _POLL_EMUL_H_ -- exit(1); /* Implemented using select() -- fail */ -+ return 1; /* Implemented using select() -- fail */ - #else - struct pollfd fds[1]; - int fd; -@@ -24905,9 +24908,9 @@ main() - fds[0].events = POLLIN; - fds[0].revents = 0; - if (poll(fds, 1, 0) < 0 || (fds[0].revents & POLLNVAL) != 0) { -- exit(1); /* Does not work for devices -- fail */ -+ return 1; /* Does not work for devices -- fail */ - } -- exit(0); -+ return 0; - #endif - } - -diff --git a/erts/configure.ac b/erts/configure.ac -index 59c4d05460..0abb11a967 100644 ---- a/erts/configure.ac -+++ b/erts/configure.ac -@@ -3102,10 +3102,13 @@ poll_works=no - - AC_RUN_IFELSE([AC_LANG_SOURCE([[ - #include --main() -+#ifdef HAVE_FCNTL_H -+#include -+#endif -+int main() - { - #ifdef _POLL_EMUL_H_ -- exit(1); /* Implemented using select() -- fail */ -+ return 1; /* Implemented using select() -- fail */ - #else - struct pollfd fds[1]; - int fd; -@@ -3114,9 +3117,9 @@ main() - fds[0].events = POLLIN; - fds[0].revents = 0; - if (poll(fds, 1, 0) < 0 || (fds[0].revents & POLLNVAL) != 0) { -- exit(1); /* Does not work for devices -- fail */ -+ return 1; /* Does not work for devices -- fail */ - } -- exit(0); -+ return 0; - #endif - } - ]])],[poll_works=yes],[poll_works=no],[ diff --git a/sources b/sources index 34cf8be..477853b 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (otp-OTP-26.2.5.6.tar.gz) = 149f047e7e814a6da76f53a6bd3215d7561556a7589c95b21eabebab7dbc76f5b421fb42495dd9e6e73a57f8f535408577c5d5b4f5300cb2a448b8ac0e0c1a01 +SHA512 (otp-OTP-26.2.5.7.tar.gz) = 210a2246fc1bb5c82fe50c797a63045d09822dbddfadff024d9a227d38a22a6f607e8f2fa146d19cc31567f3d4c6e007b845981147c87df97fc0315dd64c169e From 35769571a05f484f9776e162b903028e8cc31451 Mon Sep 17 00:00:00 2001 From: Peter Lemenkov Date: Thu, 13 Feb 2025 19:42:45 +0100 Subject: [PATCH 121/135] Erlang ver. 26.2.5.8 Signed-off-by: Peter Lemenkov --- erlang.spec | 5 ++++- sources | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/erlang.spec b/erlang.spec index 1231fbd..e31aa7b 100644 --- a/erlang.spec +++ b/erlang.spec @@ -68,7 +68,7 @@ Name: erlang -Version: 26.2.5.7 +Version: 26.2.5.8 Release: 1%{?dist} Summary: General-purpose programming language and runtime environment @@ -1959,6 +1959,9 @@ useradd -r -g epmd -d /dev/null -s /sbin/nologin \ %changelog +* Thu Feb 13 2025 Peter Lemenkov - 26.2.5.8-1 +- Ver. 26.2.5.8 + * Tue Feb 11 2025 Peter Lemenkov - 26.2.5.7-1 - Ver. 26.2.5.7 diff --git a/sources b/sources index 477853b..ed06a02 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (otp-OTP-26.2.5.7.tar.gz) = 210a2246fc1bb5c82fe50c797a63045d09822dbddfadff024d9a227d38a22a6f607e8f2fa146d19cc31567f3d4c6e007b845981147c87df97fc0315dd64c169e +SHA512 (otp-OTP-26.2.5.8.tar.gz) = 44893d2c2f8c3e0e04ada83b77f21dbc8c72f8b95005beeb11d320208cacd2c6bbc57c4c073f1cdd401f408a651e014fc2e6d4f52e7f787e2492a8ab3f872e98 From 085b3c69e0d9c941d105451736ee14a9def074d3 Mon Sep 17 00:00:00 2001 From: Peter Lemenkov Date: Fri, 21 Feb 2025 17:21:51 +0100 Subject: [PATCH 122/135] Erlang ver. 26.2.5.9 Signed-off-by: Peter Lemenkov --- erlang.spec | 2 +- sources | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/erlang.spec b/erlang.spec index e31aa7b..b1c5af0 100644 --- a/erlang.spec +++ b/erlang.spec @@ -68,7 +68,7 @@ Name: erlang -Version: 26.2.5.8 +Version: 26.2.5.9 Release: 1%{?dist} Summary: General-purpose programming language and runtime environment diff --git a/sources b/sources index ed06a02..e00ecbf 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (otp-OTP-26.2.5.8.tar.gz) = 44893d2c2f8c3e0e04ada83b77f21dbc8c72f8b95005beeb11d320208cacd2c6bbc57c4c073f1cdd401f408a651e014fc2e6d4f52e7f787e2492a8ab3f872e98 +SHA512 (otp-OTP-26.2.5.9.tar.gz) = 68cdba025b7f77d1b143737a536160f65ecbb1ab681bc92a7ab037f80ae6993ebabff62399de4688f1b9de054d0823a6d093545e1c414530c165e8e14806c611 From 28be5b518144ed7fe9b700e4b8f3adb1a89d5c0d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Tue, 11 Feb 2025 14:36:26 +0100 Subject: [PATCH 123/135] Add sysusers.d config file to allow rpm to create users/groups automatically See https://fedoraproject.org/wiki/Changes/RPMSuportForSystemdSysusers. --- erlang.spec | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/erlang.spec b/erlang.spec index b1c5af0..df03ab3 100644 --- a/erlang.spec +++ b/erlang.spec @@ -69,7 +69,7 @@ Name: erlang Version: 26.2.5.9 -Release: 1%{?dist} +Release: 2%{?dist} Summary: General-purpose programming language and runtime environment License: Apache-2.0 @@ -349,7 +349,6 @@ BuildRequires: m4 BuildRequires: ncurses-devel BuildRequires: zlib-devel # epmd user, epmd group -Requires(pre): shadow-utils Requires: %{name}-kernel%{?_isa} = %{version}-%{release} Requires: %{name}-stdlib%{?_isa} = %{version}-%{release} Requires: lksctp-tools @@ -741,6 +740,11 @@ Provides support for XML 1.0. # remove shipped zlib sources #rm -f erts/emulator/zlib/*.[ch] +# Create a sysusers.d config file +cat >erlang.sysusers.conf </dev/null || groupadd -r epmd -getent passwd epmd >/dev/null || \ -useradd -r -g epmd -d /dev/null -s /sbin/nologin \ --c "Erlang Port Mapper Daemon" epmd 2>/dev/null || : %files @@ -1207,6 +1208,7 @@ useradd -r -g epmd -d /dev/null -s /sbin/nologin \ %{_unitdir}/epmd.socket %{_unitdir}/epmd@.service %{_unitdir}/epmd@.socket +%{_sysusersdir}/erlang.conf %if %{__with_wxwidgets} %files et @@ -1959,6 +1961,9 @@ useradd -r -g epmd -d /dev/null -s /sbin/nologin \ %changelog +* Mon Mar 10 2025 Zbigniew Jedrzejewski-Szmek - 26.2.5.9-2 +- Add sysusers.d config file to allow rpm to create users/groups automatically + * Thu Feb 13 2025 Peter Lemenkov - 26.2.5.8-1 - Ver. 26.2.5.8 From b243901f61dc8005cb89d679983fe0e07d5b5761 Mon Sep 17 00:00:00 2001 From: Peter Lemenkov Date: Fri, 28 Mar 2025 17:13:32 +0100 Subject: [PATCH 124/135] Erlang ver. 26.2.5.10 Signed-off-by: Peter Lemenkov --- erlang.spec | 7 +++++-- sources | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/erlang.spec b/erlang.spec index df03ab3..c8ab6e0 100644 --- a/erlang.spec +++ b/erlang.spec @@ -68,8 +68,8 @@ Name: erlang -Version: 26.2.5.9 -Release: 2%{?dist} +Version: 26.2.5.10 +Release: 1%{?dist} Summary: General-purpose programming language and runtime environment License: Apache-2.0 @@ -1961,6 +1961,9 @@ ERL_TOP=${ERL_TOP} make TARGET=${TARGET} release_tests %changelog +* Fri Mar 28 2025 Peter Lemenkov - 26.2.5.10-1 +- Ver. 26.2.5.10 + * Mon Mar 10 2025 Zbigniew Jedrzejewski-Szmek - 26.2.5.9-2 - Add sysusers.d config file to allow rpm to create users/groups automatically diff --git a/sources b/sources index e00ecbf..20d0566 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (otp-OTP-26.2.5.9.tar.gz) = 68cdba025b7f77d1b143737a536160f65ecbb1ab681bc92a7ab037f80ae6993ebabff62399de4688f1b9de054d0823a6d093545e1c414530c165e8e14806c611 +SHA512 (otp-OTP-26.2.5.10.tar.gz) = d92a26200b28770e6030be1b0703abcd5a7da6ce85656b617f78b75b04afcf5023bee239ad274475f22d8a1ef90d35b123d042723611164497cf09fd587a0b1e From fff94550c5ddd1e2917bf5006ab701753ee62d5c Mon Sep 17 00:00:00 2001 From: Peter Lemenkov Date: Wed, 16 Apr 2025 20:03:31 +0200 Subject: [PATCH 125/135] Erlang ver. 26.2.5.11 Signed-off-by: Peter Lemenkov --- erlang.spec | 2 +- sources | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/erlang.spec b/erlang.spec index c8ab6e0..945c736 100644 --- a/erlang.spec +++ b/erlang.spec @@ -68,7 +68,7 @@ Name: erlang -Version: 26.2.5.10 +Version: 26.2.5.11 Release: 1%{?dist} Summary: General-purpose programming language and runtime environment diff --git a/sources b/sources index 20d0566..cede25a 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (otp-OTP-26.2.5.10.tar.gz) = d92a26200b28770e6030be1b0703abcd5a7da6ce85656b617f78b75b04afcf5023bee239ad274475f22d8a1ef90d35b123d042723611164497cf09fd587a0b1e +SHA512 (otp-OTP-26.2.5.11.tar.gz) = 9cc04a9f807b4c0dd36bca93d52ab5ec7f022925b18dbaf3d5ce7184c20ad29c9e538caa622e65402c7e3a0c103a5d7ec025ec67853fee33fc6418ffefe9ddd6 From b2511601764e9b547581a9fe10a19439d7d40475 Mon Sep 17 00:00:00 2001 From: Peter Lemenkov Date: Thu, 8 May 2025 18:10:48 +0200 Subject: [PATCH 126/135] Erlang ver. 26.2.5.12 Signed-off-by: Peter Lemenkov --- erlang.spec | 2 +- sources | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/erlang.spec b/erlang.spec index 945c736..1262a12 100644 --- a/erlang.spec +++ b/erlang.spec @@ -68,7 +68,7 @@ Name: erlang -Version: 26.2.5.11 +Version: 26.2.5.12 Release: 1%{?dist} Summary: General-purpose programming language and runtime environment diff --git a/sources b/sources index cede25a..73f4c57 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (otp-OTP-26.2.5.11.tar.gz) = 9cc04a9f807b4c0dd36bca93d52ab5ec7f022925b18dbaf3d5ce7184c20ad29c9e538caa622e65402c7e3a0c103a5d7ec025ec67853fee33fc6418ffefe9ddd6 +SHA512 (otp-OTP-26.2.5.12.tar.gz) = 58dcefcca96bbce4ab28518e4a5a2326cec6d2580b7316d5329553d1da7b03e8f395e2a586c9e7344426d549e450e1e3f3bb25528e3e5dc72eaa5505abe2197a From bfc9034d42bdcc49ae21f14993f9eb0758897719 Mon Sep 17 00:00:00 2001 From: Peter Lemenkov Date: Mon, 16 Jun 2025 18:02:09 +0200 Subject: [PATCH 127/135] Erlang ver. 26.2.5.13 Signed-off-by: Peter Lemenkov --- erlang.spec | 2 +- sources | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/erlang.spec b/erlang.spec index 1262a12..830d088 100644 --- a/erlang.spec +++ b/erlang.spec @@ -68,7 +68,7 @@ Name: erlang -Version: 26.2.5.12 +Version: 26.2.5.13 Release: 1%{?dist} Summary: General-purpose programming language and runtime environment diff --git a/sources b/sources index 73f4c57..6ee0529 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (otp-OTP-26.2.5.12.tar.gz) = 58dcefcca96bbce4ab28518e4a5a2326cec6d2580b7316d5329553d1da7b03e8f395e2a586c9e7344426d549e450e1e3f3bb25528e3e5dc72eaa5505abe2197a +SHA512 (otp-OTP-26.2.5.13.tar.gz) = c707a4ef6a45541f0afd1eb0f75b8dc9e1750781ee1072327d43ed19c02bb721f4fc242b12c30b32cb90622f187e0a28421a8bf11dcede0c14f5b6eb5b7224ad From 84f099dbec611e23341b69e4d3b2dd268ea7fb8c Mon Sep 17 00:00:00 2001 From: "Benjamin A. Beasley" Date: Wed, 18 Jun 2025 07:49:37 -0400 Subject: [PATCH 128/135] Rename typer (in /usr/bin) to erlang-typer; fixes RHBZ#2359567 - Add Conflicts with python3-typer-cli to erlang-dialyzer in F41/F42 - Fix a conditional that would not work on EPEL --- erlang.spec | 24 ++++++++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) diff --git a/erlang.spec b/erlang.spec index 830d088..b1bca69 100644 --- a/erlang.spec +++ b/erlang.spec @@ -69,7 +69,7 @@ Name: erlang Version: 26.2.5.13 -Release: 1%{?dist} +Release: 2%{?dist} Summary: General-purpose programming language and runtime environment License: Apache-2.0 @@ -240,7 +240,7 @@ A byte code compiler for Erlang which produces highly compact code. %package crypto Summary: Cryptographical support BuildRequires: pkgconfig(openssl) -%if 0%{fedora} > 40 +%if 0%{?fedora} > 40 BuildRequires: openssl-devel-engine %endif Requires: %{name}-erts%{?_isa} = %{version}-%{release} @@ -938,6 +938,19 @@ install -D -p -m 0644 %{SOURCE8} %{buildroot}%{_unitdir}/epmd@.socket %if %{__with_wxwidgets} echo "No need to fix additional scripts" +# Fix file conflict w/ python3-typer-cli by renaming our typer to erlang-typer. +# We only rename the symlink in %%{_bindir}, not its direct and indirect +# targets in subdirectories of %%{_libdir}. +# +# File conflicts: /usr/bin/typer between erlang-dialyzer and python3-typer-cli +# https://bugzilla.redhat.com/show_bug.cgi?id=2359567 +mv %{buildroot}%{_bindir}/typer %{buildroot}%{_bindir}/erlang-typer +%if %{with doc} +mv %{buildroot}%{_mandir}/man1/typer.1 \ + %{buildroot}%{_mandir}/man1/erlang-typer.1 +sed -r -i 's/^(\.TH[[:blank:]]+)?(typer)\b/\1erlang-\2/' \ + %{buildroot}%{_mandir}/man1/erlang-typer.1 +%endif %else # FIXME workaround for broken Erlang install procedure echo "Removing scripts which won't work w/o wxWidgets anyway" @@ -1043,14 +1056,14 @@ ERL_TOP=${ERL_TOP} make TARGET=${TARGET} release_tests %files dialyzer %{_bindir}/dialyzer # FIXME FIXME FIXME this must be installed properly!!!!!! -%{_bindir}/typer +%{_bindir}/erlang-typer %{_libdir}/erlang/bin/dialyzer %{_libdir}/erlang/bin/typer %{_libdir}/erlang/erts-*/bin/dialyzer %{_libdir}/erlang/erts-*/bin/typer %{_libdir}/erlang/lib/dialyzer-*/ %if %{with doc} -%{_mandir}/man1/typer.* +%{_mandir}/man1/erlang-typer.* %{_mandir}/man3/dialyzer.* %endif %endif # __with_wxwidgets @@ -1961,6 +1974,9 @@ ERL_TOP=${ERL_TOP} make TARGET=${TARGET} release_tests %changelog +* Wed Jun 18 2025 Benjamin A. Beasley - 26.2.5.13-2 +- Rename typer (in /usr/bin) to erlang-typer; fixes RHBZ#2359567 + * Fri Mar 28 2025 Peter Lemenkov - 26.2.5.10-1 - Ver. 26.2.5.10 From c953b384903c43db17fc27659294b328076ad7c1 Mon Sep 17 00:00:00 2001 From: Peter Lemenkov Date: Thu, 19 Jun 2025 13:25:27 +0200 Subject: [PATCH 129/135] Missed %changelog entries Signed-off-by: Peter Lemenkov --- erlang.spec | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/erlang.spec b/erlang.spec index b1bca69..9fa05e5 100644 --- a/erlang.spec +++ b/erlang.spec @@ -1977,6 +1977,15 @@ ERL_TOP=${ERL_TOP} make TARGET=${TARGET} release_tests * Wed Jun 18 2025 Benjamin A. Beasley - 26.2.5.13-2 - Rename typer (in /usr/bin) to erlang-typer; fixes RHBZ#2359567 +* Mon Jun 16 2025 Peter Lemenkov - 26.2.5.13-1 +- Ver. 26.2.5.13 + +* Thu May 8 2025 Peter Lemenkov - 26.2.5.12-1 +- Ver. 26.2.5.12 + +* Wed Apr 16 2025 Peter Lemenkov - 26.2.5.11-1 +- Ver. 26.2.5.11 + * Fri Mar 28 2025 Peter Lemenkov - 26.2.5.10-1 - Ver. 26.2.5.10 From 083a1581a8eff56f46fcc42b1ae626e1d5f53f74 Mon Sep 17 00:00:00 2001 From: Peter Lemenkov Date: Thu, 19 Jun 2025 13:26:04 +0200 Subject: [PATCH 130/135] Add GDB tools Signed-off-by: Peter Lemenkov --- erlang.spec | 15 ++ otp-0009-Add-GDB-tools.patch | 464 +++++++++++++++++++++++++++++++++++ 2 files changed, 479 insertions(+) create mode 100644 otp-0009-Add-GDB-tools.patch diff --git a/erlang.spec b/erlang.spec index 9fa05e5..ef2cc9c 100644 --- a/erlang.spec +++ b/erlang.spec @@ -106,10 +106,13 @@ Patch5: otp-0005-Do-not-install-nteventlog-and-related-doc-files-on-n.patch Patch6: otp-0006-Add-extra-search-directory.patch Patch7: otp-0007-Avoid-forking-sed-to-get-basename.patch Patch8: otp-0008-Load-man-pages-from-system-wide-directory.patch +Patch9: otp-0009-Add-GDB-tools.patch # end of autogenerated patch tag list BuildRequires: gcc BuildRequires: gcc-c++ +# For gdb-tools +BuildRequires: gdb BuildRequires: flex BuildRequires: make @@ -421,6 +424,13 @@ Requires: %{name}-stdlib%{?_isa} = %{version}-%{release} %description ftp FTP client. +%package gdb-tools +Summary: GDB plugin +Requires: gdb + +%description gdb-tools +GDB plugin. + %package inets Summary: A set of services such as a Web server and a HTTP client etc Requires: %{name}-erts%{?_isa} = %{version}-%{release} @@ -968,6 +978,8 @@ install -d -p -m 0755 %{buildroot}%{_datadir}/erlang/lib install -m0644 -D erlang.sysusers.conf %{buildroot}%{_sysusersdir}/erlang.conf +# GDB tools +install -D -p -m 0755 ./bin/*/jit-reader.so %{buildroot}%{_libdir}/gdb/jit-reader.so %check TARGET="$(make target_configured)" @@ -1287,6 +1299,9 @@ ERL_TOP=${ERL_TOP} make TARGET=${TARGET} release_tests %{_mandir}/man3/ftp.* %endif +%files gdb-tools +%{_libdir}/gdb/jit-reader.so + %files inets %dir %{_libdir}/erlang/lib/inets-*/ %{_libdir}/erlang/lib/inets-*/ebin diff --git a/otp-0009-Add-GDB-tools.patch b/otp-0009-Add-GDB-tools.patch new file mode 100644 index 0000000..462324e --- /dev/null +++ b/otp-0009-Add-GDB-tools.patch @@ -0,0 +1,464 @@ +From: Peter Lemenkov +Date: Thu, 19 Jun 2025 13:17:52 +0200 +Subject: [PATCH] Add GDB tools + +* https://github.com/erlang/otp-gdb-tools +* Commit 7b864f58c534699e4124e31ecfda86041b941037. + +Signed-off-by: Peter Lemenkov + +diff --git a/erts/etc/unix/gdb-tools/README.md b/erts/etc/unix/gdb-tools/README.md +new file mode 100644 +index 0000000000..8a6cf92b1d +--- /dev/null ++++ b/erts/etc/unix/gdb-tools/README.md +@@ -0,0 +1,42 @@ ++# Erlang/OTP GDB Tools ++ ++This repository contains GDB tools that cannot ++be part of the main Erlang/OTP repository for licensing ++reasons. The tools are used when building and debugging ++Erlang/OTP with gdb and are installed as needed by the ++Erlang/OTP build system. ++ ++Right now the only tool in this repository is the jit-reader ++which is a plugin to gdb that allows it to read the stack of ++Erlang processes when using the JIT. This allows commands ++such as `backtrace` to show Erlang stackframes. For example: ++ ++``` ++(gdb) bt ++#0 0x00007fffa40005ee in global::call_bif_shared () ++#1 0x00007fffa411eaac in erl_eval:eval_lc1/7 () at erl_eval.erl:929 ++#2 0x00007fffa411e7bc in erl_eval:eval_lc/7 () at erl_eval.erl:917 ++#3 0x00007fffa4296528 in lists:map_1/2 () at lists.erl:2082 ++#4 0x00007fffa4296554 in lists:map_1/2 () at lists.erl:2082 ++#5 0x00007fffa4296554 in lists:map_1/2 () at lists.erl:2082 ++#6 0x00007fffa4296554 in lists:map_1/2 () at lists.erl:2082 ++..... ++#98 0x00007fffa4296554 in lists:map_1/2 () at lists.erl:2082 ++#99 0x00007fffa4296554 in lists:map_1/2 () at lists.erl:2082 ++#100 0x00007fffa4296554 in lists:map_1/2 () at lists.erl:2082 ++#101 0x00007fffa42963d4 in lists:map/2 () at lists.erl:2077 ++#102 0x00007fffa411e45c in erl_eval:do_apply/7 () at erl_eval.erl:904 ++#103 0x00007fffa45f4c58 in shell:exprs/7 () at shell.erl:893 ++#104 0x00007fffa45f42c4 in shell:eval_exprs/7 () at shell.erl:849 ++#105 0x00007fffa45f3dac in shell:eval_loop/4 () at shell.erl:834 ++#106 0x00007fffa40024b8 in erts_beamasm:normal_exit/0-CodeInfoPrologue () ++Backtrace stopped: previous frame inner to this frame (corrupt stack?) ++(gdb) ++``` ++ ++## Updates of jit-reader ++ ++When updating jit-reader you first need to update this repository ++and push the new version here. Then you need to run ++`./otp_build update_gdb_tools` in the Erlang/OTP repo for ++it to use the correct commit. +diff --git a/erts/etc/unix/gdb-tools/jit-reader.c b/erts/etc/unix/gdb-tools/jit-reader.c +new file mode 100644 +index 0000000000..3c39c5540d +--- /dev/null ++++ b/erts/etc/unix/gdb-tools/jit-reader.c +@@ -0,0 +1,386 @@ ++#include ++ ++#include ++#include ++#include ++#include ++ ++/* Useful links ++ * - https://pwparchive.wordpress.com/2011/11/20/new-jit-interface-for-gdb/ ++ * - https://sourceware.org/gdb/current/onlinedocs/gdb/Custom-Debug-Info.html ++ * - https://github.com/tetzank/asmjit-utilities ++ * - https://github.com/bminor/binutils-gdb/blob/master/gdb/testsuite/gdb.base/jitreader.c ++ */ ++ ++GDB_DECLARE_GPL_COMPATIBLE_READER ++ ++#if 0 ++#define HARD_DEBUG ++static FILE *log = NULL; ++#define LOG(...) do { fprintf(log, ##__VA_ARGS__); fflush(log); } while(0) ++#else ++#define LOG(...) ++#endif ++ ++typedef enum { ++ X64_RBP = 6, /* Frame pointer iff native frames are enabled */ ++ X64_RSP = 7, /* Stack pointer when using native stack */ ++ X64_R12 = 12, /* Stack pointer when using non-native stack */ ++ X64_R13 = 13, /* Current process */ ++ X64_RIP = 16 ++} X64Register; ++ ++typedef enum { ++ /* Return address only */ ++ ERTS_FRAME_LAYOUT_RA, ++ /* Frame pointer, return address */ ++ ERTS_FRAME_LAYOUT_FP_RA ++} ErtsFrameLayout; ++ ++struct emulator_info { ++ /* 0 = regular, 1 = frame pointers */ ++ int frame_layout; ++ const void *normal_exit; ++}; ++ ++struct erlang_module_info { ++ uint64_t base_address; ++ uint32_t range_count; ++ uint32_t code_size; ++ /* Module name, including null terminator. */ ++ uint16_t name_length; ++ char name[]; ++ /* array of range_info structures */ ++}; ++ ++struct range_info { ++ uint32_t start_offset; ++ uint32_t end_offset; ++ uint32_t line_count; ++ /* Range name, including null terminator. */ ++ uint16_t name_length; ++ char name[]; ++ /* array of line_info structures */ ++}; ++ ++struct line_info { ++ uint32_t start_offset; ++ uint32_t line_number; ++ /* File name, including null terminator. */ ++ uint16_t file_length; ++ char file[]; ++}; ++ ++enum debug_info_header { ++ DEBUG_INFO_HEADER_EMULATOR = 0, ++ DEBUG_INFO_HEADER_MODULE = 1, ++}; ++ ++struct debug_info { ++ enum debug_info_header header; ++ union { ++ struct emulator_info emu; ++ struct erlang_module_info mod; ++ } payload; ++}; ++ ++typedef struct range { ++ GDB_CORE_ADDR start; ++ GDB_CORE_ADDR end; ++#ifdef HARD_DEBUG ++ char *name; ++#endif ++} range; ++ ++typedef struct priv { ++ range *ranges; ++ int num_ranges; ++ ErtsFrameLayout frame_layout; ++ const void *normal_exit; ++} priv; ++ ++static enum gdb_status read_module_info(struct gdb_reader_funcs *self, ++ struct gdb_symbol_callbacks *cb, ++ struct erlang_module_info *module_info) { ++ struct gdb_object *obj = cb->object_open(cb); ++ GDB_CORE_ADDR mod_start, mod_end; ++ char *symfile = (char*)module_info; ++ priv *priv = self->priv_data; ++ ++ symfile += sizeof(*module_info) + module_info->name_length; ++ ++ mod_start = module_info->base_address; ++ mod_end = mod_start + module_info->code_size; ++ ++ priv->ranges = realloc(priv->ranges, (priv->num_ranges + 1) * sizeof(range)); ++ priv->ranges[priv->num_ranges].start = mod_start; ++ priv->ranges[priv->num_ranges].end = mod_end; ++#ifdef HARD_DEBUG ++ priv->ranges[priv->num_ranges].name = strdup(module_info->name); ++#endif ++ priv->num_ranges += 1; ++ ++ LOG("Add module `%s` (0x%lx, 0x%lx)\r\n", ++ module_info->name, mod_start, mod_end); ++ ++ for (int range = 0; range < module_info->range_count; range++) { ++ struct range_info *range_info; ++ struct gdb_symtab *symtab; ++ GDB_CORE_ADDR begin, end; ++ ++ range_info = (struct range_info *)symfile; ++ symfile += sizeof(*range_info) + range_info->name_length; ++ ++ begin = mod_start + range_info->start_offset; ++ end = mod_start + range_info->end_offset; ++ ++ LOG("Add range `%s` (0x%lx, 0x%lx), %u lines\r\n", ++ range_info->name, ++ begin, end, ++ range_info->line_count); ++ ++ /* A bug in GDB < 9 forces us to open and close the symtab for each ++ * iteration. */ ++ symtab = cb->symtab_open(cb, obj, module_info->name); ++ cb->block_open(cb, symtab, NULL, begin, end, range_info->name); ++ cb->symtab_close(cb, symtab); ++ ++ for (int line = 0; line < range_info->line_count; line++) { ++ struct gdb_line_mapping line_mapping; ++ struct line_info *line_info; ++ ++ line_info = (struct line_info *)symfile; ++ symfile += sizeof(*line_info) + line_info->file_length; ++ ++ line_mapping.pc = mod_start + line_info->start_offset; ++ line_mapping.line = line_info->line_number; ++ ++ LOG("\t%s:%u\r\n", line_info->file, line_info->line_number); ++ ++ /* The symbol table must be opened and closed on every single line ++ * for file names to work properly, as there is no other way to ++ * tell GDB that a certain line belongs to a different file than ++ * the rest of the table. Sigh. */ ++ symtab = cb->symtab_open(cb, obj, line_info->file); ++ ++ cb->block_open(cb, symtab, NULL, line_mapping.pc, end, ++ range_info->name); ++ cb->line_mapping_add(cb, symtab, 1, &line_mapping); ++ cb->symtab_close(cb, symtab); ++ } ++ } ++ ++ cb->object_close(cb, obj); ++ ++ return GDB_SUCCESS; ++} ++ ++static enum gdb_status read_emulator_info(struct gdb_reader_funcs *self, ++ struct gdb_symbol_callbacks *cb, ++ struct emulator_info *emulator_info) { ++ priv *priv = self->priv_data; ++ ++ priv->frame_layout = emulator_info->frame_layout; ++ priv->normal_exit = emulator_info->normal_exit; ++ ++ LOG("initialize: frame layout = %i\r\n", priv->frame_layout); ++ ++ return GDB_SUCCESS; ++} ++ ++static enum gdb_status read_debug_info(struct gdb_reader_funcs *self, ++ struct gdb_symbol_callbacks *cb, ++ void *memory, long memory_sz) { ++ struct debug_info *debug_info = memory; ++ ++ (void)memory_sz; ++ ++ switch (debug_info->header) { ++ case DEBUG_INFO_HEADER_EMULATOR: ++ return read_emulator_info(self, cb, &debug_info->payload.emu); ++ case DEBUG_INFO_HEADER_MODULE: ++ return read_module_info(self, cb, &debug_info->payload.mod); ++ } ++ ++ return GDB_FAIL; ++} ++ ++static void regfree(struct gdb_reg_value *reg) { ++ free(reg); ++} ++ ++static struct range *get_range(priv *priv, GDB_CORE_ADDR rip) { ++ for (int i = 0; i < priv->num_ranges; i++) { ++ if (rip >= priv->ranges[i].start && rip < priv->ranges[i].end) { ++ return &priv->ranges[i]; ++ } ++ } ++ ++ return NULL; ++} ++ ++static enum gdb_status unwind(struct gdb_reader_funcs *self, ++ struct gdb_unwind_callbacks *cb) { ++ GDB_CORE_ADDR rbp, rsp, rip; ++ struct range *range; ++ priv *priv; ++ ++ rbp = *(GDB_CORE_ADDR*)cb->reg_get(cb, X64_RBP)->value; ++ rsp = *(GDB_CORE_ADDR*)cb->reg_get(cb, X64_RSP)->value; ++ rip = *(GDB_CORE_ADDR*)cb->reg_get(cb, X64_RIP)->value; ++ ++ priv = self->priv_data; ++ range = get_range(priv, rip); ++ ++ /* Check that rip points to one of the addresses that we handle */ ++ if (range) { ++ struct gdb_reg_value *prev_rbp, *prev_rsp, *prev_rip; ++ ++ prev_rbp = malloc(sizeof(struct gdb_reg_value) + sizeof(char*)); ++ prev_rsp = malloc(sizeof(struct gdb_reg_value) + sizeof(char*)); ++ prev_rip = malloc(sizeof(struct gdb_reg_value) + sizeof(char*)); ++ ++ LOG("UNWIND match %s: rbp: 0x%lx rsp: 0x%lx rip: 0x%lx \r\n", ++ range->name, rbp, rsp, rip); ++ ++ prev_rbp->free = ®free; ++ prev_rbp->defined = 1; ++ prev_rbp->size = sizeof(char*); ++ prev_rsp->free = ®free; ++ prev_rsp->defined = 1; ++ prev_rsp->size = sizeof(char*); ++ prev_rip->free = ®free; ++ prev_rip->defined = 1; ++ prev_rip->size = sizeof(char*); ++ ++ if (priv->frame_layout == ERTS_FRAME_LAYOUT_FP_RA) { ++ /* Frame pointers are enabled, which means that rbp will point to ++ * where we stored the previous frames rbp. Also the previous ++ * frames address will be at rbp + 8 and the previous frames rsp ++ * will be rbp + 16. ++ * ++ * 0x00: <- prev_rsp ++ * 0x08: prev call addr ++ * 0x10: prev rbp <- curr rbp ++ * 0x18: current frame ++ * 0x20: <- curr rip */ ++ cb->target_read(rbp + 1 * sizeof(char*), &prev_rip->value, ++ sizeof(char*)); ++ cb->target_read(rbp + 0 * sizeof(char*), &prev_rbp->value, ++ sizeof(char*)); ++ *(GDB_CORE_ADDR*)prev_rsp->value = rbp + sizeof(char*[2]); ++ } else { ++ /* Normal frame layout, we need to scan the stack. */ ++ cb->target_read(rsp, &prev_rip->value, sizeof(char*)); ++ ++ for (rsp += sizeof(char*); ; rsp += sizeof(char*)) { ++ cb->target_read(rsp, &prev_rip->value, sizeof(char*)); ++ ++ LOG("rsp: 0x%lx rip: 0x%lx\r\n", ++ rsp, *(GDB_CORE_ADDR*)prev_rip->value); ++ ++ /* Check if it is a cp */ ++ if ((*(GDB_CORE_ADDR*)prev_rip->value & 0x3) == 0) { ++ break; ++ } ++ } ++ ++ *(GDB_CORE_ADDR*)prev_rsp->value = rsp; ++ *(GDB_CORE_ADDR*)prev_rbp->value = rsp - sizeof(char*); ++ } ++ ++ if (*(GDB_CORE_ADDR*)prev_rip->value == (uintptr_t)priv->normal_exit) { ++ LOG("Normal exit\r\n"); ++ *(GDB_CORE_ADDR*)prev_rsp->value = 0; ++ *(GDB_CORE_ADDR*)prev_rbp->value = 0; ++ } else { ++ LOG("UNWIND prev: rbp: 0x%lx rsp: 0x%lx rip: 0x%lx\r\n", ++ *(GDB_CORE_ADDR*)prev_rbp->value, ++ *(GDB_CORE_ADDR*)prev_rsp->value, ++ *(GDB_CORE_ADDR*)prev_rip->value); ++ } ++ ++ cb->reg_set(cb, X64_RIP, prev_rip); ++ cb->reg_set(cb, X64_RSP, prev_rsp); ++ cb->reg_set(cb, X64_RBP, prev_rbp); ++ ++ return GDB_SUCCESS; ++ } ++ ++ LOG("UNWIND no match: rbp: 0x%lx rsp: 0x%lx rip: 0x%lx\r\n", rbp, rsp, rip); ++ return GDB_FAIL; ++} ++ ++static struct gdb_frame_id get_frame_id(struct gdb_reader_funcs *self, ++ struct gdb_unwind_callbacks *cb){ ++ struct gdb_frame_id frame = {0, 0}; ++ GDB_CORE_ADDR rbp, rsp, rip; ++ struct range *range; ++ priv *priv; ++ ++ rbp = *(GDB_CORE_ADDR*)cb->reg_get(cb, X64_RBP)->value; ++ rsp = *(GDB_CORE_ADDR*)cb->reg_get(cb, X64_RSP)->value; ++ rip = *(GDB_CORE_ADDR*)cb->reg_get(cb, X64_RIP)->value; ++ ++ priv = self->priv_data; ++ range = get_range(priv, rip); ++ ++ LOG("FRAME: rip: 0x%lx rsp: 0x%lx rbp: 0x%lx \r\n", rip, rsp, rbp); ++ ++ if (range) { ++ frame.code_address = rip; ++ ++ if (priv->frame_layout == ERTS_FRAME_LAYOUT_FP_RA) { ++ frame.stack_address = rbp + sizeof(char*); ++ } else { ++ GDB_CORE_ADDR prev_rip; ++ ++ for (rsp += sizeof(char*); ; rsp += sizeof(char*)) { ++ cb->target_read(rsp, &prev_rip, sizeof(char*)); ++ ++ LOG("rsp: 0x%lx rip: 0x%lx\r\n", rsp, prev_rip); ++ ++ /* Check if it is a cp */ ++ if ((prev_rip & 0x3) == 0) { ++ break; ++ } ++ } ++ ++ frame.stack_address = rsp; ++ } ++ } ++ ++ LOG("FRAME: code_address: 0x%lx stack_address: 0x%lx\r\n", ++ frame.code_address, frame.stack_address); ++ ++ return frame; ++} ++ ++static void destroy(struct gdb_reader_funcs *self){ ++ free(self); ++} ++ ++struct gdb_reader_funcs *gdb_init_reader(void){ ++ struct gdb_reader_funcs *funcs = malloc(sizeof(struct gdb_reader_funcs)); ++ priv *priv_data = malloc(sizeof(priv)); ++ ++ priv_data->num_ranges = 1; ++ priv_data->ranges = malloc(sizeof(range)); ++ priv_data->ranges[0].start = 0; ++ priv_data->ranges[0].end = 0; ++ ++ funcs->reader_version = GDB_READER_INTERFACE_VERSION; ++ funcs->priv_data = priv_data; ++ ++ funcs->read = read_debug_info; ++ funcs->unwind = unwind; ++ funcs->get_frame_id = get_frame_id; ++ funcs->destroy = destroy; ++ ++#ifdef HARD_DEBUG ++ log = fopen("/tmp/jit-reader.log","w+"); ++ if (!log) fprintf(stderr,"Could not open /tmp/jit-reader.log"); ++#endif ++ ++ return funcs; ++} +diff --git a/erts/etc/unix/gdb-tools/jit-reader.mk b/erts/etc/unix/gdb-tools/jit-reader.mk +new file mode 100644 +index 0000000000..8ef0bccec2 +--- /dev/null ++++ b/erts/etc/unix/gdb-tools/jit-reader.mk +@@ -0,0 +1,9 @@ ++EXTRA_LIBS = $(BINDIR)/jit-reader.so ++ ++jit-reader: $(EXTRA_LIBS) ++ ++$(OBJDIR)/jit-reader.o: $(GDB_TOOLS)/jit-reader.c $(GDB_TOOLS)/jit-reader.h ++ $(V_CC) $(DED_CFLAGS) -I$(ETC) -o $@ -c $< ++ ++$(BINDIR)/jit-reader.so: $(OBJDIR)/jit-reader.o ++ $(V_LD) $(DED_LDFLAGS) -o $@ $^ From bcf126e0f2692e318f7b168078ccbf08821662b0 Mon Sep 17 00:00:00 2001 From: Peter Lemenkov Date: Fri, 20 Jun 2025 21:14:35 +0200 Subject: [PATCH 131/135] Bump release number Signed-off-by: Peter Lemenkov --- erlang.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/erlang.spec b/erlang.spec index ef2cc9c..f81d9be 100644 --- a/erlang.spec +++ b/erlang.spec @@ -69,7 +69,7 @@ Name: erlang Version: 26.2.5.13 -Release: 2%{?dist} +Release: 3%{?dist} Summary: General-purpose programming language and runtime environment License: Apache-2.0 @@ -1989,6 +1989,9 @@ ERL_TOP=${ERL_TOP} make TARGET=${TARGET} release_tests %changelog +* Fri Jun 20 2025 Peter Lemenkov - 26.2.5.13-3 +- Add GDB tools + * Wed Jun 18 2025 Benjamin A. Beasley - 26.2.5.13-2 - Rename typer (in /usr/bin) to erlang-typer; fixes RHBZ#2359567 From f43ad3bdaf58499158f65ea5fe5213acd56f9b5c Mon Sep 17 00:00:00 2001 From: Peter Lemenkov Date: Thu, 17 Jul 2025 20:48:21 +0200 Subject: [PATCH 132/135] Erlang ver. 26.2.5.14 Signed-off-by: Peter Lemenkov --- erlang.spec | 8 ++++++-- sources | 2 +- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/erlang.spec b/erlang.spec index f81d9be..879c777 100644 --- a/erlang.spec +++ b/erlang.spec @@ -68,8 +68,8 @@ Name: erlang -Version: 26.2.5.13 -Release: 3%{?dist} +Version: 26.2.5.14 +Release: 1%{?dist} Summary: General-purpose programming language and runtime environment License: Apache-2.0 @@ -426,6 +426,7 @@ FTP client. %package gdb-tools Summary: GDB plugin +License: GPL-3.0-or-later Requires: gdb %description gdb-tools @@ -1989,6 +1990,9 @@ ERL_TOP=${ERL_TOP} make TARGET=${TARGET} release_tests %changelog +* Thu Jul 17 2025 Peter Lemenkov - 26.2.5.14-1 +- Ver. 26.2.5.14 + * Fri Jun 20 2025 Peter Lemenkov - 26.2.5.13-3 - Add GDB tools diff --git a/sources b/sources index 6ee0529..c48157f 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (otp-OTP-26.2.5.13.tar.gz) = c707a4ef6a45541f0afd1eb0f75b8dc9e1750781ee1072327d43ed19c02bb721f4fc242b12c30b32cb90622f187e0a28421a8bf11dcede0c14f5b6eb5b7224ad +SHA512 (otp-OTP-26.2.5.14.tar.gz) = 49ab187d657efd45304685b2117aa8f9adc07a41864e13c1bb5c3b3893fcda4b5d3895bfe91a3dbcd5c3372f49b3aad9f4dafa6511755e6cab595ddd87c748cb From 4bc8ef38529402cc24f7c13ba4d3b06db89759ba Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Wed, 23 Jul 2025 19:57:16 +0000 Subject: [PATCH 133/135] Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild --- erlang.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/erlang.spec b/erlang.spec index 879c777..18490bf 100644 --- a/erlang.spec +++ b/erlang.spec @@ -69,7 +69,7 @@ Name: erlang Version: 26.2.5.14 -Release: 1%{?dist} +Release: 2%{?dist} Summary: General-purpose programming language and runtime environment License: Apache-2.0 @@ -1990,6 +1990,9 @@ ERL_TOP=${ERL_TOP} make TARGET=${TARGET} release_tests %changelog +* Wed Jul 23 2025 Fedora Release Engineering - 26.2.5.14-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild + * Thu Jul 17 2025 Peter Lemenkov - 26.2.5.14-1 - Ver. 26.2.5.14 From 5e7cc4ec01a5bfb1a150b0805266e1e6e706ef5c Mon Sep 17 00:00:00 2001 From: Peter Lemenkov Date: Wed, 10 Sep 2025 17:52:52 +0200 Subject: [PATCH 134/135] Erlang ver. 26.2.5.15 Signed-off-by: Peter Lemenkov --- erlang.spec | 9 +++++++-- sources | 2 +- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/erlang.spec b/erlang.spec index 18490bf..a209a55 100644 --- a/erlang.spec +++ b/erlang.spec @@ -68,8 +68,8 @@ Name: erlang -Version: 26.2.5.14 -Release: 2%{?dist} +Version: 26.2.5.15 +Release: 1%{?dist} Summary: General-purpose programming language and runtime environment License: Apache-2.0 @@ -362,6 +362,8 @@ Provides: erlang(erl_drv_version) = 3.3 #Provides: erlang(erl_nif_version) = %%(%%{buildroot}/bin/erl -noshell -eval 'io:format(erlang:system_info(nif_version)).' -s erlang halt) Provides: erlang(erl_nif_version) = 2.17 Provides: bundled(pcre) = 8.44 +# git commit 965d19506ff2aed72e039b8c650b6ef5e9446b8c +Provides: bundled(asmjit) Obsoletes: erlang-appmon Obsoletes: erlang-docbuilder Obsoletes: erlang-gs @@ -1990,6 +1992,9 @@ ERL_TOP=${ERL_TOP} make TARGET=${TARGET} release_tests %changelog +* Wed Sep 10 2025 Peter Lemenkov - 26.2.5.15-1 +- Ver. 26.2.5.15 + * Wed Jul 23 2025 Fedora Release Engineering - 26.2.5.14-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild diff --git a/sources b/sources index c48157f..aa20cd0 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (otp-OTP-26.2.5.14.tar.gz) = 49ab187d657efd45304685b2117aa8f9adc07a41864e13c1bb5c3b3893fcda4b5d3895bfe91a3dbcd5c3372f49b3aad9f4dafa6511755e6cab595ddd87c748cb +SHA512 (otp-OTP-26.2.5.15.tar.gz) = e8ba73f8e742d94e7c9180ecaca5871cab5b871f22a1357d9c50ac36e99f6e448c7d8bf93c1083b7210de688b4dbd8ecbab34e314f7732ab94ea78cde4ba6ae4 From 8d152258bbce1e386884700478d68e3bb5cdd968 Mon Sep 17 00:00:00 2001 From: Peter Lemenkov Date: Fri, 7 Nov 2025 17:22:57 +0100 Subject: [PATCH 135/135] Erlang ver. 26.2.5.16 Signed-off-by: Peter Lemenkov --- erlang.spec | 2 +- sources | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/erlang.spec b/erlang.spec index a209a55..878fb41 100644 --- a/erlang.spec +++ b/erlang.spec @@ -68,7 +68,7 @@ Name: erlang -Version: 26.2.5.15 +Version: 26.2.5.16 Release: 1%{?dist} Summary: General-purpose programming language and runtime environment diff --git a/sources b/sources index aa20cd0..674a546 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (otp-OTP-26.2.5.15.tar.gz) = e8ba73f8e742d94e7c9180ecaca5871cab5b871f22a1357d9c50ac36e99f6e448c7d8bf93c1083b7210de688b4dbd8ecbab34e314f7732ab94ea78cde4ba6ae4 +SHA512 (otp-OTP-26.2.5.16.tar.gz) = 4e973be7e8ccad196d59759108a521535b0f046268eb0406f789a50f411fa27c9c11fcfb61a7218605bf1b32921bb52c52fc7c99917e1acfc0d3ed09437129b2