Hi,

I often find that I need to make refinements to the packaging of
foreign Scratchbox toolchains that are already deployed as Debian
packages. This is a bit of a pain with sb-toolchain-extras, because
the Debian packages generated have no release number and thus an
updated toolchain package doesn't look newer to dpkg.

The attached patch allows one to define a RELEASE variable in the
toolchain .conf file, and this will be appended to the final binary
package's version. Example:

 COMPILER_NAME = arm-linux-2006q3-27
 COMPILER_PACKAGE = scratchbox-toolchain-arm-linux-2006q3-27
 ALIEN_TC = yes

 RELEASE = 2

 CC_VER = 4.1
 ...

--Matt
Index: Makefile
===================================================================
--- Makefile	(revision 2849)
+++ Makefile	(working copy)
@@ -26,7 +26,11 @@
 REPLACES  = $(CONFLICTS), $(COMPILER_PACKAGE_REPLACES)
 endif
 
+ifdef RELEASE
+VERSION   ?= $(shell head -n1 /scratchbox/etc/scratchbox-version)-$(RELEASE)
+else
 VERSION   ?= $(shell head -n1 /scratchbox/etc/scratchbox-version)
+endif
 DATE      = $(shell head -n2 /scratchbox/etc/scratchbox-version | tail -n1)
 ARCH      = $(shell dpkg-architecture -qDEB_BUILD_ARCH || uname -i)
 CONTENTS  = /scratchbox/compilers/$(COMPILER_NAME)/ \
_______________________________________________
Scratchbox-users mailing list
Scratchbox-users@lists.scratchbox.org
http://lists.scratchbox.org/cgi-bin/mailman/listinfo/scratchbox-users

Reply via email to