summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTupone Alfredo <tupone@gentoo.org>2018-05-03 08:29:50 +0200
committerTupone Alfredo <tupone@gentoo.org>2018-05-03 08:31:08 +0200
commit92c6a25e4985c815faf78d8fc1d15b4f4d7f930c (patch)
treead8ac5607cb902d5d230417c66148483d95857a9 /dev-ada/langkit/files
parentdev-libs/lzo-2.10: arm64 stable (bug #651584) (diff)
downloadgentoo-92c6a25e4985c815faf78d8fc1d15b4f4d7f930c.tar.gz
gentoo-92c6a25e4985c815faf78d8fc1d15b4f4d7f930c.tar.bz2
gentoo-92c6a25e4985c815faf78d8fc1d15b4f4d7f930c.zip
dev-ada/langkit: Fix test when libgpr and xmlada are build with static-libs
Package-Manager: Portage-2.3.24, Repoman-2.3.6
Diffstat (limited to 'dev-ada/langkit/files')
-rw-r--r--dev-ada/langkit/files/langkit-2017-gentoo.patch33
1 files changed, 33 insertions, 0 deletions
diff --git a/dev-ada/langkit/files/langkit-2017-gentoo.patch b/dev-ada/langkit/files/langkit-2017-gentoo.patch
index e6609236b6cd..ecb7ce6e74dd 100644
--- a/dev-ada/langkit/files/langkit-2017-gentoo.patch
+++ b/dev-ada/langkit/files/langkit-2017-gentoo.patch
@@ -45,3 +45,36 @@
package Address_To_Id_Maps is new Ada.Containers.Hashed_Maps
(Lexical_Env, Integer, Hash, "=");
+--- a/testsuite/testsuite_support/__init__.py.old 2018-05-02 21:40:04.977442020 +0200
++++ b/testsuite/testsuite_support/__init__.py 2018-05-02 21:40:45.422759387 +0200
+@@ -68,6 +68,7 @@
+ # to build it in parallel.
+ if not self.global_env['options'].disable_tear_up_builds:
+- p = Run(['gprbuild', '-p', '-f', '-P',
++ p = Run(['gprbuild', '-p', '-f', '-XLIBRARY_TYPE=relocatable',
++ '-XXMLADA_BUILD=relocatable', '-P',
+ os.path.join(self.root_dir, '..', 'langkit', 'support',
+ 'langkit_support.gpr')], output=PIPE)
+ report(p, "Langkit support")
+--- a/testsuite/testsuite_support/langkit_support_driver.py.old 2018-05-03 08:01:20.019944992 +0200
++++ b/testsuite/testsuite_support/langkit_support_driver.py 2018-05-03 08:02:50.146430288 +0200
+@@ -36,5 +36,7 @@
+ ))
+
+ self.run_and_check(['gprbuild', '-p', '-P', 'p.gpr', '-gnata',
++ '-XLIBRARY_TYPE=relocatable',
++ '-XXMLADA_BUILD=relocatable',
+ '-cargs', '-O0', '-g'])
+ self.run_and_check(['./{}'.format(source[:-4])])
++++ a/testsuite/testsuite_support/adalog_driver.py.old 2018-05-03 08:14:30.998698722 +0200
+--- b/testsuite/testsuite_support/adalog_driver.py 2018-05-03 08:16:48.275417176 +0200
+@@ -41,6 +41,8 @@
+ )
+ ))
+
+- self.run_and_check(['gprbuild', '-p', '-P', 'p.gpr', '-cargs', '-O0',
++ self.run_and_check(['gprbuild', '-p', '-XLIBRARY_TYPE=relocatable',
++ '-XXMLADA_BUILD=relocatable',
++ '-P', 'p.gpr', '-cargs', '-O0',
+ '-g'])
+ self.run_and_check(['./{}'.format(source[:-4])])