UBUNTU: [Packaging] remove debian.*/variants

Now 'variants' is no longer used for building packages.

It is true that the 'variants' is used in linux-meta, but there is
no good reason to have it in linux-main.

Only the remaining function is to check the variants from
'debian/rules printenv', but it is not so useful.

Remove it.

Signed-off-by: Masahiro Yamada <masahiro.yamada@canonical.com>
Acked-by: Dimitri John Ledkov <dimitri.ledkov@canonical.com>
Signed-off-by: Dimitri John Ledkov <dimitri.ledkov@canonical.com>
This commit is contained in:
Masahiro Yamada
2023-12-06 17:29:25 +09:00
committed by Paolo Pisati
parent 12489d44e9
commit 3744987cf0
3 changed files with 0 additions and 8 deletions
-1
View File
@@ -1 +0,0 @@
-wip
-6
View File
@@ -19,12 +19,6 @@ release := $(patsubst %-$(revision),%,$(version))
prev_fullver ?= $(shell dpkg-parsechangelog -l$(DEBIAN)/changelog -o1 -c1 -S version)
prev_revision := $(lastword 0.0 $(subst -,$(space),$(prev_fullver)))
# Get variants. Assume primary if debian/variants is not present.
variants = --
ifneq (,$(wildcard $(DEBIAN)/variants))
variants := $(shell cat $(DEBIAN)/variants)
endif
# Get upstream version info
upstream_version := $(shell sed -n 's/^VERSION = \(.*\)$$/\1/p' Makefile)
upstream_patchlevel := $(shell sed -n 's/^PATCHLEVEL = \(.*\)$$/\1/p' Makefile)
-1
View File
@@ -43,7 +43,6 @@ printenv:
@echo "prev_revision = $(prev_revision)"
@echo "abinum = $(abinum)"
@echo "upstream_tag = $(upstream_tag)"
@echo "variants = $(variants)"
@echo "flavours = $(flavours)"
@echo "bin_pkg_name = $(bin_pkg_name)"
@echo "hdr_pkg_name = $(hdrs_pkg_name)"