Hi there!

PTXCONF_GLIBC_VERSION is used for check for specific toolchain. However when 
left
blank, compilation fails with:
---------------------------
target: glibc.targetinstall
---------------------------

ptxdist: error: ptxd_make_xpkg_init: please define <PKG>_VERSION
ptxdist/rules/glibc.make:30: recipe for target 'glibc.targetinstall' failed

shouldn't we get libc version from toolchain in this case?

This problem has side effect: as it seems the only variable used from
Versions.make is PTXDIST_FULLVERSION composed from PTXDIST_VERSION_FULL and
PTXCONF_PROJECT_VERSION where PTXCONF_PROJECT_VERSION is dumped anyway,
what about:
---
 rules/post/dump.make   |  2 +-
 rules/pre/Version.make | 27 ---------------------------
 2 files changed, 1 insertion(+), 28 deletions(-)
 delete mode 100644 rules/pre/Version.make

diff --git a/rules/post/dump.make b/rules/post/dump.make
index 9931ee4..bba46d7 100644
--- a/rules/post/dump.make
+++ b/rules/post/dump.make
@@ -26,7 +26,7 @@ M2B_DUMP_VARIABLES := \
        PTXCONF_CONFIGFILE_VERSION \
        PTXCONFIG PTXCONF_SYSROOT_TARGET PTXCONF_PROJECT 
PTXCONF_PROJECT_VERSION \
        PTXDIST_WORKSPACE PTXDIST_TOPDIR \
-       PTXDIST PTXDIST_FULLVERSION \
+       PTXDIST PTXDIST_VERSION_FULL \
        RULESDIR SCRIPTSDIR STATEDIR SYSROOT WORKDIR \
        PACKAGES- PACKAGES-y PACKAGES-m
 
diff --git a/rules/pre/Version.make b/rules/pre/Version.make
deleted file mode 100644
index 5ebc827..0000000
--- a/rules/pre/Version.make
+++ /dev/null
@@ -1,27 +0,0 @@
-# -*-makefile-*-
-#
-# Copyright (C) 2003 by Marc Kleine-Budde <[email protected]>
-#           (C) 2008 by Wolfram Sang <[email protected]>
-#
-# See CREDITS for details about who has contributed to this project.
-#
-# For further information about the PTXdist project and license conditions
-# see the README file.
-#
-
-GCC_VERSION            := $(call remove_quotes,$(PTXCONF_CROSSCHAIN_CHECK))
-_version_temp          := $(subst ., ,$(GCC_VERSION))
-GCC_VERSION_MAJOR      := $(word 1,$(_version_temp))
-GCC_VERSION_MINOR      := $(word 2,$(_version_temp))
-GCC_VERSION_MICRO      := $(word 3,$(_version_temp))
-
-GLIBC_VERSION          := $(call remove_quotes,$(PTXCONF_GLIBC_VERSION))
-_version_temp          := $(subst ., ,$(GLIBC_VERSION))
-GLIBC_VERSION_MAJOR    := $(word 1,$(_version_temp))
-GLIBC_VERSION_MINOR    := $(word 2,$(_version_temp))
-GLIBC_VERSION_MICRO    := $(word 3,$(_version_temp))
-
-PTXDIST_FULLVERSION    := $(call 
remove_quotes,ptxdist-$(PTXDIST_VERSION_FULL)$(PTXCONF_PROJECT_VERSION))
-_version_temp          :=
-
-# vim: syntax=make
-- 
2.1.4


-- 
ptxdist mailing list
[email protected]

Reply via email to