mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-pkg
synced 2026-01-15 03:53:32 +01:00
projects.py pkg-requires: Add --dont-strip-revision
Add --dont-strip-revision option to projects.py pkg-requires Sadly, Debian dpkg doesn't install a package with dependency somepkg = 1.2.3, if somepkg-1.2.3-10 is installed. To work around this, VERSION in project.conf files is now always interpreted as VERSION-REVISION Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
parent
2d6da0e694
commit
b79d89f37d
2 changed files with 10 additions and 3 deletions
|
|
@ -36,6 +36,8 @@ DIST_PCKG_DIR = $(DIST_DIR)/pckg
|
|||
PCKG_TAR ?= $(RPM_PROJECT)-$(RPM_VERSION).tar.gz
|
||||
|
||||
ifeq ($(PKG_FORMAT),debian)
|
||||
# too bad: debian Requires: somepkg = 1.2.3 isn't satisfied by somepkg-1.2.3-5
|
||||
PROJ_QUERY_PKG_REQUIRES_EXTRA_ARGS = --dont-strip-revision
|
||||
PCKG_RPM_RUN_I386 ?= $(RPM_PROJECT)-run_$(RPM_VERSION)_$(RPM_ARCH).deb
|
||||
ifeq ($(CREATE_DEVEL),true)
|
||||
PCKG_RPM_DEVEL_I386 ?= $(RPM_PROJECT)-devel_$(RPM_VERSION)_$(RPM_ARCH).deb
|
||||
|
|
@ -69,8 +71,8 @@ BINARY_RPM += $(DIST_PCKG_DIR)/$(PCKG_RPM_DEVEL_I386)
|
|||
endif
|
||||
DIST_PCKG_SRPM = $(BINARY_RPM) $(DIST_PCKG_DIR)/$(PCKG_RPM_SRC)
|
||||
# to be replaced by pkg.sh
|
||||
RPM_REQUIRES_DEVEL += $(call proj_query, pkg-requires devel $(PROJECT))
|
||||
RPM_REQUIRES_RUN += $(call proj_query, pkg-requires run $(PROJECT))
|
||||
RPM_REQUIRES_DEVEL += $(call proj_query, pkg-requires $(PROJ_QUERY_PKG_REQUIRES_EXTRA_ARGS) devel $(PROJECT))
|
||||
RPM_REQUIRES_RUN += $(call proj_query, pkg-requires $(PROJ_QUERY_PKG_REQUIRES_EXTRA_ARGS) run $(PROJECT))
|
||||
RPM_REQUIRES_DEVEL += $(RPM_PROJECT)-run = __NEXT_VERSION__
|
||||
|
||||
RPM_UPLOAD_OS_NAME = $(shell echo $(OS) | sed 's/-.*//')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue