dev-ada/langkit: Remove last-rited pkg

Closes: https://bugs.gentoo.org/708338
Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
Michał Górny 2021-01-31 00:48:21 +01:00
parent ca4e339210
commit a75c19a9f1
No known key found for this signature in database
GPG Key ID: 639ADAE2329E240E
10 changed files with 0 additions and 331 deletions

View File

@ -1,2 +0,0 @@
DIST langkit-2019-20190510-19B8C-src.tar.gz 699205 BLAKE2B 770f904cf2a2014dc6ed6383d3be51361a311d1feb5d594bf9e81ab80a01835ac0b24cd743539a70dff2120307b25a61f781586b504d910401018afcf3b8ae7b SHA512 fbaac1b6407292396711d3deba3a7b5eef6655b877c5515a3653699decdbb2c9824b42bb8e9680122a3ac6ac3eb605333eda7c0265fafd6ab2d117f932790b3b
DIST langkit-gpl-2018.tar.gz 565649 BLAKE2B e18beea565351eb4b10baa9168db742598817d231c5eab578b17c2b0409ac77b9972f8f426499e086779eaeda0ac1ba11e5cb3b47ecab8e63674b7ef654b26b7 SHA512 62a8820c3fd3d44f6cd22e181f6eddcf52945c93ea5eb793a63b7f13e71705807170b0cc4c3873b127e3fafe751a5dd27da54087986f506f8500b916ef1f078f

View File

@ -1,60 +0,0 @@
--- a/langkit/compile_context.py 2018-07-04 19:17:08.329346507 +0200
+++ b/langkit/compile_context.py 2018-07-04 19:17:57.276615724 +0200
@@ -1684,7 +1684,7 @@
generate_lexer
):
quex_py_file = path.join(os.environ["QUEX_PATH"], "quex-exe.py")
- subprocess.check_call([sys.executable, quex_py_file, "-i",
+ subprocess.check_call(["quex", "-i",
quex_file,
"-o", "quex_lexer",
"--buffer-element-size", "4",
--- a/langkit/libmanage.py 2018-11-20 21:38:03.042086783 +0100
+++ b/langkit/libmanage.py 2018-11-20 21:39:50.562273656 +0100
@@ -682,6 +682,8 @@
result = ['-XBUILD_MODE={}'.format(build_mode),
'-XLIBRARY_TYPE={}'.format(library_type),
+ '-XGPR_BUILD={}'.format(library_type),
+ '-XGNATCOLL_CORE_BUILD={}'.format(library_type),
'-XXMLADA_BUILD={}'.format(library_type)]
enable_build_warnings = getattr(args, 'enable_build_warnings', False)
--- a/testsuite/python_support/utils.py 2018-11-20 21:41:46.156324084 +0100
+++ b/testsuite/python_support/utils.py 2018-11-20 21:42:26.049651194 +0100
@@ -203,7 +203,8 @@
main_sources=', '.join('"{}"'.format(m) for m in ada_main)
))
run('gprbuild', '-Pgen', '-q', '-p',
- '-XLIBRARY_TYPE=relocatable', '-XXMLADA_BUILD=relocatable')
+ '-XLIBRARY_TYPE=relocatable', '-XGPR_BUILD=relocatable',
+ '-XXMLADA_BUILD=relocatable')
for i, m in enumerate(ada_main):
assert m.endswith('.adb')
--- a/testsuite/testsuite_support/__init__.py 2018-11-20 21:45:08.828905205 +0100
+++ b/testsuite/testsuite_support/__init__.py 2018-11-20 21:46:10.837858988 +0100
@@ -110,7 +110,9 @@
# Build Langkit_Support so that each testcase does not try to build it
# in parallel.
if not self.global_env['options'].disable_tear_up_builds:
- gargs = ['-p', '-P', self.langkit_support_project_file]
+ gargs = ['-p']
+ gargs = gargs + ['-XGPR_BUILD=relocatable']
+ gargs = gargs + ['-P', self.langkit_support_project_file]
cargs = ['-cargs', '-O0', '-g']
if self.coverage_enabled:
gargs.append('--subdirs=gnatcov')
--- a/testsuite/testsuite_support/base_driver.py 2018-11-20 22:04:54.199973719 +0100
+++ b/testsuite/testsuite_support/base_driver.py 2018-11-20 22:05:26.498436100 +0100
@@ -312,7 +312,9 @@
:param str project_file: Project file name.
"""
- argv = ['gprbuild', '-P', project_file, '-p']
+ argv = ['gprbuild']
+ argv = argv + ['-XGPR_BUILD=relocatable']
+ argv = argv + ['-P', project_file, '-p']
cargs = ['-O0', '-g', '-gnata']
if self.coverage_enabled:
argv.append('--subdirs=gnatcov')

View File

@ -1,71 +0,0 @@
--- a/testsuite/testsuite_support/__init__.py 2019-06-09 12:47:22.832308224 +0200
+++ b/testsuite/testsuite_support/__init__.py 2019-06-09 12:48:27.768399377 +0200
@@ -126,8 +126,10 @@
# Build Langkit_Support so that each testcase does not try to build it
# in parallel.
if not self.global_env['options'].disable_tear_up_builds:
- gargs = ['-p', '-P', self.langkit_support_project_file]
+ gargs = ['-p']
+ gargs = gargs + ['-XGPR_BUILD=relocatable']
+ gargs = gargs + ['-P', self.langkit_support_project_file]
- cargs = ['-cargs', '-O0', '-g', '-gnatwae']
+ cargs = ['-cargs', '-O0', '-g', '-gnatwa']
if self.coverage_enabled:
gargs.append('--subdirs=gnatcov')
cargs.extend(['-fdump-scos', '-fpreserve-control-flow'])
--- a/langkit/support/langkit_support.gpr 2019-06-09 14:00:50.239979207 +0200
+++ b/langkit/support/langkit_support.gpr 2019-06-09 14:00:56.580879634 +0200
@@ -8,7 +8,7 @@
for Object_Dir use "obj";
package Compiler is
- for Default_Switches ("Ada") use ("-gnatwae", "-gnatyg");
+ for Default_Switches ("Ada") use ("-gnatws", "-gnatyg");
end Compiler;
end Langkit_Support;
--- a/langkit/templates/langkit_support_gpr.mako 2019-06-09 19:07:51.131902613 +0200
+++ b/langkit/templates/langkit_support_gpr.mako 2019-06-09 19:09:55.530096368 +0200
@@ -61,7 +61,7 @@
case Build_Mode is
when "dev" =>
for Default_Switches ("Ada") use
- Common_Ada_Cargs & ("-g", "-O0", "-gnatwe", "-gnata");
+ Common_Ada_Cargs & ("-g", "-O0", "-gnatws", "-gnata");
when "prod" =>
-- Debug information is useful even with optimization for
--- a/testsuite/testsuite_support/base_driver.py 2019-06-09 20:00:21.202461893 +0200
+++ b/testsuite/testsuite_support/base_driver.py 2019-06-09 20:01:04.516848550 +0200
@@ -327,7 +327,9 @@
:param str project_file: Project file name.
"""
- argv = ['gprbuild', '-P', project_file, '-p']
+ argv = ['gprbuild']
+ argv = argv + ['-XGPR_BUILD=relocatable']
+ argv = argv + ['-P', project_file, '-p']
cargs = ['-O0', '-g', '-gnata']
if self.coverage_enabled:
argv.append('--subdirs=gnatcov')
--- a/langkit/libmanage.py 2019-06-09 20:40:14.885582672 +0200
+++ b/langkit/libmanage.py 2019-06-09 20:41:13.991738858 +0200
@@ -745,6 +745,7 @@
result = ['-XBUILD_MODE={}'.format(build_mode),
'-XLIBRARY_TYPE={}'.format(library_type),
'-XGPR_BUILD={}'.format(library_type),
+ '-XGNATCOLL_GMP_BUILD={}'.format(library_type),
'-XXMLADA_BUILD={}'.format(library_type)]
enable_build_warnings = getattr(args, 'enable_build_warnings', False)
--- a/testsuite/tests/misc/link_two_libs/test.yaml 2019-06-17 09:38:34.796029233 +0200
+++ b/testsuite/tests/misc/link_two_libs/test.yaml 2019-06-17 09:39:06.805549633 +0200
@@ -1,7 +1,3 @@
driver: python
input_sources: []
-expect_failure:
- - if: [gnat_community_2018]
- then: >
- A known issue in the gprbuild furnished with GNAT Community 2018
- prevents this test from passing.
+expect_failure: Gentoo failure

View File

@ -1,10 +0,0 @@
--- a/langkit/templates/mains_project_file.mako 2020-06-09 09:34:36.677265457 +0200
+++ b/langkit/templates/mains_project_file.mako 2020-06-09 09:35:30.569451995 +0200
@@ -40,4 +40,7 @@
for Switches ("ada") use ("-E");
end Binder;
+ package Linker is
+ for Switches ("ada") use ("-lgnat", "-lgnarl");
+ end Linker;
end Mains;

View File

@ -1,11 +0,0 @@
--- a/testsuite/testsuite_support/polyfill.py 2020-03-26 20:43:40.861154768 +0100
+++ b/testsuite/testsuite_support/polyfill.py 2020-03-26 20:44:07.874675123 +0100
@@ -376,7 +376,7 @@
# First load data provided by this testcase
try:
with open(os.path.join(test_dir, 'test.yaml'), 'r') as f:
- test_data = yaml.load(f)
+ test_data = yaml.safe_load(f)
except (IOError, yaml.error.YAMLError) as exc:
status = 'PROBLEM'
message = 'Invalid test.yaml: {}'.format(exc)

View File

@ -1,49 +0,0 @@
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=6
PYTHON_COMPAT=( python2_7 )
inherit python-single-r1 multiprocessing
MYP=${PN}-gpl-${PV}
DESCRIPTION="A Python framework to generate language parsers"
HOMEPAGE="https://www.adacore.com/community"
SRC_URI="http://mirrors.cdn.adacore.com/art/5b0cfbefc7a4475263382c2a
-> ${MYP}.tar.gz"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE=""
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
DEPEND="${PYTHON_DEPS}
dev-ada/gnatcoll-bindings[iconv,shared]
dev-python/mako
dev-python/pyyaml
dev-python/enum34
dev-python/funcy
dev-python/docutils
dev-python/quex"
RDEPEND="${DEPEND}"
S="${WORKDIR}"/${MYP}-src
PATCHES=(
"${FILESDIR}"/${P}-gentoo.patch
"${FILESDIR}"/${PN}-2019-pyyaml.patch
)
src_test() {
testsuite/testsuite.py -j $(makeopts_jobs) --show-error-output | tee testsuite.log
grep -q FAILED testsuite.log && die "Test failed"
}
src_install() {
default
python_domodule langkit
python_doscript scripts/create-project.py
}

View File

@ -1,52 +0,0 @@
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=( python2_7 )
inherit python-single-r1 multiprocessing
MYP=${P}-20190510-19B8C
DESCRIPTION="A Python framework to generate language parsers"
HOMEPAGE="https://www.adacore.com/community"
SRC_URI="http://mirrors.cdn.adacore.com/art/5cdf8f8a31e87a8f1c967d31
-> ${MYP}-src.tar.gz"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="test"
RESTRICT="!test? ( test )"
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
RDEPEND="${PYTHON_DEPS}
dev-ada/gnatcoll-bindings[iconv,shared]
dev-python/mako
dev-python/pyyaml
dev-python/enum34
dev-python/funcy
dev-python/docutils"
DEPEND="${RDEPEND}
test? ( dev-ada/gnatcoll-bindings[gmp] )"
S="${WORKDIR}"/${MYP}-src
PATCHES=(
"${FILESDIR}"/${P}-gentoo.patch
"${FILESDIR}"/${P}-pyyaml.patch
"${FILESDIR}"/${P}-gnarl.patch
)
src_test() {
testsuite/testsuite.py -j $(makeopts_jobs) --show-error-output | tee testsuite.log
grep -q FAILED testsuite.log && die "Test failed"
}
src_install() {
default
python_domodule langkit
python_doscript scripts/create-project.py
}

View File

@ -1,51 +0,0 @@
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=( python2_7 )
inherit python-single-r1 multiprocessing
MYP=${P}-20190510-19B8C
DESCRIPTION="A Python framework to generate language parsers"
HOMEPAGE="https://www.adacore.com/community"
SRC_URI="http://mirrors.cdn.adacore.com/art/5cdf8f8a31e87a8f1c967d31
-> ${MYP}-src.tar.gz"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE="test"
RESTRICT="!test? ( test )"
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
RDEPEND="${PYTHON_DEPS}
dev-ada/gnatcoll-bindings[iconv,shared]
dev-python/mako
dev-python/pyyaml
dev-python/enum34
dev-python/funcy
dev-python/docutils"
DEPEND="${RDEPEND}
test? ( dev-ada/gnatcoll-bindings[gmp] )"
S="${WORKDIR}"/${MYP}-src
PATCHES=(
"${FILESDIR}"/${P}-gentoo.patch
"${FILESDIR}"/${P}-pyyaml.patch
)
src_test() {
testsuite/testsuite.py -j $(makeopts_jobs) --show-error-output | tee testsuite.log
grep -q FAILED testsuite.log && die "Test failed"
}
src_install() {
default
python_domodule langkit
python_doscript scripts/create-project.py
}

View File

@ -1,17 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="project">
<email>ada@gentoo.org</email>
</maintainer>
<longdescription lang="en">
Langkit (nickname for language kit) is a tool whose purpose is to make
it easy to create syntactic and semantic analysis engines. Write a
language specification in our Python DSL and Langkit will generate for
you an Ada library with bindings for the C and Python programming
languages.
The generated library is meant to provide a basis to write tooling,
including tools working on potentially changing and incorrect code,
such as IDEs.
</longdescription>
</pkgmetadata>

View File

@ -340,14 +340,6 @@ kde-apps/kdebase-meta:5
# Masked to allow py2.7 removal
dev-lang/spark
# Alfredo Tupone <tupone@gentoo.org> (2020-08-16)
# Ported to py3.8 but not yet released
# Masked to allow py2.7 removal
# Michał Górny <mgorny@gentoo.org> (2021-01-01)
# Masking for removal to prevent eclass from crashing on these packages.
# Removal in 30 days.
dev-ada/langkit
# Mart Raudsepp <leio@gentoo.org> (2020-08-15)
# Development release, needs testing to ensure valac-0.50
# works for existing packages