pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel/mold mold: update to 1.4.1.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/1a3d0dfe240c
branches:  trunk
changeset: 383442:1a3d0dfe240c
user:      fcambus <fcambus%pkgsrc.org@localhost>
date:      Fri Aug 19 08:59:48 2022 +0000

description:
mold: update to 1.4.1.

New features:

- mold/macOS is now available as an alpha feature. We do not recommend using
  it for anything serious though. Starting from this version, we accept not
  only mold/Unix issues but also mold/macOS ones on our GitHub Issues. Feel
  free to file a bug if you encounter any problem.
- We started supporting CMake in addition to Make to build mold. Our long-term
  plan is to migrate from Make to CMake because we want to support Windows
  eventually and CMake provides a better Windows support than Make does.

Bug fixes and compatibility improvements:

- There was a bug that mold accidentally exported a hidden symbol from an
  executable if a shared library linked to that executable happened to define
  the same symbol. This caused a build issue with Blender. The bug has been
  fixed.
- --hash-style=both is now the default if no --hash-style option is given.
  Previously, --hash-style=sysv was the default. This change shouldn't affect
  most users because the compiler driver (cc, gcc, clang, etc.) always passes
  --hash-style to the linker. We made this change because GNU ld defaults to
  --hash-style=both.
- Alias symbols defined by the --defsym option now have the same scope as the
  aliased symbols. Previously, alias symbols defined by --defsym were always
  hidden and never be exported as dynamic symbols.
- mold now accepts foo = bar-style linker script directive to define symbol
  aliases. Previously, such statement was treated as a syntax error. This
  change was made to link mariadb-connector-c correctly.
- Symbols in mergeable string sections now have correct output section indices
  instead of SHN_UNDEF.
- [ARM32] Previously, calling a function from ARM code to Thumb code caused a
  program crash due to bug #442. This issue has been fixed.

diffstat:

 devel/mold/Makefile               |   6 ++++--
 devel/mold/PLIST                  |   4 +++-
 devel/mold/distinfo               |  10 +++++-----
 devel/mold/patches/patch-Makefile |  12 ++++++------
 4 files changed, 18 insertions(+), 14 deletions(-)

diffs (76 lines):

diff -r edd8f9ca73f0 -r 1a3d0dfe240c devel/mold/Makefile
--- a/devel/mold/Makefile       Fri Aug 19 08:39:46 2022 +0000
+++ b/devel/mold/Makefile       Fri Aug 19 08:59:48 2022 +0000
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.19 2022/08/06 09:13:47 fcambus Exp $
+# $NetBSD: Makefile,v 1.20 2022/08/19 08:59:48 fcambus Exp $
 
-DISTNAME=      mold-1.4.0
+DISTNAME=      mold-1.4.1
 CATEGORIES=    devel
 MASTER_SITES=  ${MASTER_SITE_GITHUB:=rui314/}
 GITHUB_TAG=    v${PKGVERSION_NOREV}
@@ -37,6 +37,8 @@
 
 PYTHON_FOR_BUILD_ONLY= yes
 
+REPLACE_PYTHON+=       update-git-hash.py
+
 pre-configure:
        # install phase uses python3 command
        [ -h "${BUILDLINK_DIR}/bin/python3" ] || ${LN} -s ${PYTHONBIN} "${BUILDLINK_DIR}/bin/python3"
diff -r edd8f9ca73f0 -r 1a3d0dfe240c devel/mold/PLIST
--- a/devel/mold/PLIST  Fri Aug 19 08:39:46 2022 +0000
+++ b/devel/mold/PLIST  Fri Aug 19 08:59:48 2022 +0000
@@ -1,7 +1,9 @@
-@comment $NetBSD: PLIST,v 1.3 2022/01/01 15:36:48 fcambus Exp $
+@comment $NetBSD: PLIST,v 1.4 2022/08/19 08:59:48 fcambus Exp $
 bin/ld.mold
 bin/ld64.mold
 bin/mold
 lib/mold/mold-wrapper.so
 libexec/mold/ld
+man/man1/ld.mold.1
 man/man1/mold.1
+share/doc/mold/LICENSE
diff -r edd8f9ca73f0 -r 1a3d0dfe240c devel/mold/distinfo
--- a/devel/mold/distinfo       Fri Aug 19 08:39:46 2022 +0000
+++ b/devel/mold/distinfo       Fri Aug 19 08:59:48 2022 +0000
@@ -1,6 +1,6 @@
-$NetBSD: distinfo,v 1.17 2022/08/06 09:13:47 fcambus Exp $
+$NetBSD: distinfo,v 1.18 2022/08/19 08:59:48 fcambus Exp $
 
-BLAKE2s (mold-1.4.0.tar.gz) = aba06059c352d607af27103a62fec365c62dd4905d6d20e32cdec6ee5b32c108
-SHA512 (mold-1.4.0.tar.gz) = 7b7c4a7bac6bbc6e22372d93d94a6cb804c7017eba16b90e9bbc42b9608108c724ef55337aabdd9ce2f5244b94c8fd64311e70e18b5f8cf5f68533c2639e550d
-Size (mold-1.4.0.tar.gz) = 4722082 bytes
-SHA1 (patch-Makefile) = ecc022b18cba1a78bfb45bbf6705647f430e151b
+BLAKE2s (mold-1.4.1.tar.gz) = 861bd62e2642ff189cea00afd66f755fa0c9aa2240fac78a16745618e3cf8b3f
+SHA512 (mold-1.4.1.tar.gz) = 304caf4e9d9b24170a9442a84036790407bd02609a5d07c31e5f0f6285128099cbc962571804636a5da55afda59b447c12218f9e4d402fbfa55ebc354814bdda
+Size (mold-1.4.1.tar.gz) = 6280266 bytes
+SHA1 (patch-Makefile) = a0a1ebcecd0a9362bd306224714b7cf1ceaea447
diff -r edd8f9ca73f0 -r 1a3d0dfe240c devel/mold/patches/patch-Makefile
--- a/devel/mold/patches/patch-Makefile Fri Aug 19 08:39:46 2022 +0000
+++ b/devel/mold/patches/patch-Makefile Fri Aug 19 08:59:48 2022 +0000
@@ -1,16 +1,16 @@
-$NetBSD: patch-Makefile,v 1.11 2022/08/06 09:13:47 fcambus Exp $
+$NetBSD: patch-Makefile,v 1.12 2022/08/19 08:59:48 fcambus Exp $
 
 - Do not hard-code -pthread, as it is handled by the pkgsrc infrastructure.
 - Do not hard-code -ldl
 
---- Makefile.orig      2022-08-04 12:47:21.000000000 +0000
+--- Makefile.orig      2022-08-18 08:27:51.000000000 +0000
 +++ Makefile
-@@ -48,7 +48,7 @@ MOLD_CXXFLAGS := -std=c++20 -fno-excepti
-                  -fno-asynchronous-unwind-tables -Ithird-party \
+@@ -49,7 +49,7 @@ MOLD_CXXFLAGS := -std=c++20 -fno-excepti
+                  -fno-asynchronous-unwind-tables \
                   -DMOLD_VERSION=\"$(VERSION)\" -DLIBDIR="\"$(LIBDIR)\""
  
 -MOLD_LDFLAGS := -pthread -lz -lm -ldl
 +MOLD_LDFLAGS := -lz -lm
  
- # Get a hash of the current git head. We don't want to use the git
- # command because the command prints out a warning if running under
+ LTO = 0
+ ifeq ($(LTO), 1)



Home | Main Index | Thread Index | Old Index