summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorbernhardkaindl <43588962+bernhardkaindl@users.noreply.github.com>2021-09-06 16:55:38 +0200
committerGitHub <noreply@github.com>2021-09-06 08:55:38 -0600
commitb5fa64fb1036a0b436f238f73de7661b4e75213c (patch)
tree321a691f1e49f7d3f0e2307b0da0daf80416e1ec /var
parentc424b86a6492aa313596133e97f36dc6fe6bf42b (diff)
downloadspack-b5fa64fb1036a0b436f238f73de7661b4e75213c.tar.gz
spack-b5fa64fb1036a0b436f238f73de7661b4e75213c.tar.bz2
spack-b5fa64fb1036a0b436f238f73de7661b4e75213c.tar.xz
spack-b5fa64fb1036a0b436f238f73de7661b4e75213c.zip
libunistring: apply upstream fix for test suite (#25691)
Simple case of pragma weak not working with --as-needed https://bugs.gentoo.org/688464 https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=925746 Added possiblity to build from git master(new version master)
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/libunistring/package.py20
1 files changed, 20 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/libunistring/package.py b/var/spack/repos/builtin/packages/libunistring/package.py
index 7b17a43910..f194419474 100644
--- a/var/spack/repos/builtin/packages/libunistring/package.py
+++ b/var/spack/repos/builtin/packages/libunistring/package.py
@@ -12,7 +12,10 @@ class Libunistring(AutotoolsPackage, GNUMirrorPackage):
homepage = "https://www.gnu.org/software/libunistring/"
gnu_mirror_path = "libunistring/libunistring-0.9.10.tar.xz"
+ git = 'https://git.savannah.gnu.org/git/libunistring.git'
+ maintainers = ['bernhardkaindl']
+ version('master', branch='master')
version('0.9.10', sha256='eb8fb2c3e4b6e2d336608377050892b54c3c983b646c561836550863003c05d7')
version('0.9.9', sha256='a4d993ecfce16cf503ff7579f5da64619cee66226fb3b998dafb706190d9a833')
version('0.9.8', sha256='7b9338cf52706facb2e18587dceda2fbc4a2a3519efa1e15a3f2a68193942f80')
@@ -20,6 +23,23 @@ class Libunistring(AutotoolsPackage, GNUMirrorPackage):
version('0.9.6', sha256='2df42eae46743e3f91201bf5c100041540a7704e8b9abfd57c972b2d544de41b')
depends_on('iconv')
+ with when('@master'):
+ depends_on('autoconf', type='build')
+ depends_on('automake', type='build')
+ depends_on('libtool', type='build')
+ depends_on('texinfo', type='build')
+ depends_on('gperf', type='build')
# glibc 2.28+ removed libio.h and thus _IO_ftrylockfile
patch('removed_libio.patch', when='@:0.9.9')
+
+ @when('@0.9.10')
+ def patch(self):
+ # Applies upstream fix for testcase: pragma weak conflicts with --as-needed
+ # https://bugs.gentoo.org/688464#c9 (this links to all further info)
+ filter_file('# pragma weak pthread_create', '', 'tests/glthread/thread.h')
+
+ @when('@master')
+ def autoreconf(self, spec, prefix):
+ which('./gitsub.sh')('pull')
+ which('./autogen.sh')()