From 4ce8fa9ddd253eb7364f4d8ce53b3b18f38f81ea Mon Sep 17 00:00:00 2001 From: Konstantin Demin Date: Tue, 29 Oct 2024 05:12:06 +0300 Subject: [PATCH] drop remnants --- debian/bin/gencontrol.py | 42 ---------------------- debian/templates/sourcebin.meta.control.in | 9 ----- 2 files changed, 51 deletions(-) delete mode 100644 debian/templates/sourcebin.meta.control.in diff --git a/debian/bin/gencontrol.py b/debian/bin/gencontrol.py index 3106984..3aa4540 100755 --- a/debian/bin/gencontrol.py +++ b/debian/bin/gencontrol.py @@ -33,9 +33,6 @@ locale.setlocale(locale.LC_CTYPE, "C.UTF-8") class Gencontrol(Base): - env_flags = [ - ] - def __init__( self, config_dirs=[ @@ -51,17 +48,6 @@ class Gencontrol(Base): self.config_dirs = config_dirs self.process_changelog() - for env, attr, desc in self.env_flags: - setattr(self, attr, False) - if os.getenv(env): - if self.changelog[0].distribution == 'UNRELEASED': - import warnings - warnings.warn(f'Disable {desc} on request ({env} set)') - setattr(self, attr, True) - else: - raise RuntimeError( - f'Unable to disable {desc} in release build ({env} set)') - def _setup_makeflags(self, names, makeflags, data) -> None: for src, dst, optional in names: if src in data or not optional: @@ -109,15 +95,8 @@ class Gencontrol(Base): ) -> None: self.bundle.add('main', (), makeflags, vars) - # Only build the metapackages if their names won't exactly match - # the packages they depend on - do_meta = config.packages.meta \ - and vars['source_suffix'] != '-' + vars['version'] - if config.packages.source: self.bundle.add('sourcebin', (), makeflags, vars) - if do_meta: - self.bundle.add('sourcebin.meta', (), makeflags, vars) if config.packages.libc_dev: libcdev_kernelarches = set() @@ -403,27 +382,6 @@ class Gencontrol(Base): self.vars['source_suffix'] = \ self.changelog[0].source[len(self.vars['source_basename']):] - distribution = self.changelog[0].distribution - if distribution in ('unstable', ): - if version.linux_revision_experimental or \ - version.linux_revision_backports or \ - version.linux_revision_other: - raise RuntimeError("Can't upload to %s with a version of %s" % - (distribution, version)) - if distribution in ('experimental', ): - if not version.linux_revision_experimental: - raise RuntimeError("Can't upload to %s with a version of %s" % - (distribution, version)) - if distribution.endswith('-security') or distribution.endswith('-lts'): - if version.linux_revision_backports or \ - version.linux_revision_other: - raise RuntimeError("Can't upload to %s with a version of %s" % - (distribution, version)) - if distribution.endswith('-backports'): - if not version.linux_revision_backports: - raise RuntimeError("Can't upload to %s with a version of %s" % - (distribution, version)) - def write(self) -> None: super().write() diff --git a/debian/templates/sourcebin.meta.control.in b/debian/templates/sourcebin.meta.control.in deleted file mode 100644 index c4f47b2..0000000 --- a/debian/templates/sourcebin.meta.control.in +++ /dev/null @@ -1,9 +0,0 @@ -Package: @source_basename@-source@source_suffix@ -Meta-Rules-Target: meta -Meta-Rules-Makeflags: INSTALLDOCS_LINK_DOC=@source_basename@-source-@version@ -Build-Profiles: -Architecture: all -Depends: @source_basename@-source-@version@ (= ${binary:Version}), ${misc:Depends} -Description: Linux kernel source (meta-package) - This package depends on packages containing the sources of the latest Linux - kernel.