Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 29 Nov 2024 20:42:43 GMT
From:      Gleb Popov <arrowd@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 0065d33851dc - main - devel/mercurial: Fix build with NLS option turned off
Message-ID:  <202411292042.4ATKghK2098413@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by arrowd:

URL: https://cgit.FreeBSD.org/ports/commit/?id=0065d33851dcecefcb57fe727621cf36cfed751d

commit 0065d33851dcecefcb57fe727621cf36cfed751d
Author:     Gleb Popov <arrowd@FreeBSD.org>
AuthorDate: 2024-11-29 20:39:34 +0000
Commit:     Gleb Popov <arrowd@FreeBSD.org>
CommitDate: 2024-11-29 20:39:34 +0000

    devel/mercurial: Fix build with NLS option turned off
---
 devel/mercurial/files/extra-patch-setup.py | 19 +++++++++++++------
 1 file changed, 13 insertions(+), 6 deletions(-)

diff --git a/devel/mercurial/files/extra-patch-setup.py b/devel/mercurial/files/extra-patch-setup.py
index ddb389b7523a..fc8a62f9e36e 100644
--- a/devel/mercurial/files/extra-patch-setup.py
+++ b/devel/mercurial/files/extra-patch-setup.py
@@ -1,20 +1,26 @@
---- setup.py.orig	2020-08-03 17:43:51 UTC
+--- setup.py.orig	2024-11-20 14:38:51 UTC
 +++ setup.py
-@@ -477,32 +477,7 @@ class hgbuildmo(build):
-     description = "build translations (.mo files)"
+@@ -527,39 +527,7 @@ class hgbuildmo(build):
+             raise DistutilsExecError("failed to build translations")
  
-     def run(self):
+     def _run(self):
+-        try:
+-            from shutil import which as find_executable
+-        except ImportError:
+-            # Deprecated in py3.12
+-            from distutils.spawn import find_executable
+-
 -        if not find_executable('msgfmt'):
 -            self.warn(
 -                "could not find msgfmt executable, no translations "
 -                "will be built"
 -            )
--            return
+-            return False
 -
 -        podir = 'i18n'
 -        if not os.path.isdir(podir):
 -            self.warn("could not find %s/ directory" % podir)
--            return
+-            return False
 -
 -        join = os.path.join
 -        for po in os.listdir(podir):
@@ -30,6 +36,7 @@
 -                cmd.append('-c')
 -            self.mkpath(join('mercurial', modir))
 -            self.make_file([pofile], mobuildfile, spawn, (cmd,))
+-        return True
 +        pass
  
  



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202411292042.4ATKghK2098413>