Skip to contentSkip to conversation

vala: fix package suffix

PATCH New Vicente Olivert Riera 3 participants 4 messages Jan 12, 2017 – Jan 24, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 vala: fix package suffix

vala executable has a suffix and we reffer to it in our vala wrapper, but we assume that suffix is always the same as the major version. This can be wrong, so better to obtain the suffix number from the config.h file.

---
 package/vala/vala.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
package/vala/vala.mk +1 -1
index dadfdfc..baa97ab 100644
@@ -23,7 +23,7 @@ define HOST_VALA_INSTALL_WRAPPER
 		$(HOST_DIR)/usr/bin/vala
 	$(INSTALL) -D -m 0755 package/vala/vala-wrapper \
 		$(HOST_DIR)/usr/bin/valac
-	$(SED) 's, at VALA_VERSION@,$(VALA_VERSION_MAJOR),' \
+	$(SED) 's, at VALA_VERSION@,$(shell grep PACKAGE_SUFFIX $(@D)/config.h | grep -o -E "[0-9]+\.[0-9]+"),' \
 		$(HOST_DIR)/usr/bin/vala \
 		$(HOST_DIR)/usr/bin/valac
 endef
Signature · 1 line
2.10.2
#1 lore raw

PATCH 2/2 vala: bump version to 0.35.3

---
 package/vala/vala.hash | 4 ++--
 package/vala/vala.mk   | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)
package/vala/vala.hash +2 -2
index ca5873c..7b6c287 100644
@@ -1,2 +1,2 @@
-# From https://download.gnome.org/sources/vala/0.34/vala-0.34.4.sha256sum
-sha256 6b17bd339414563ebc51f64b0b837919ea7552d8a8ffa71cdc837d25c9696b83  vala-0.34.4.tar.xz
+# From https://download.gnome.org/sources/vala/0.35/vala-0.35.3.sha256sum
+sha256 2d61184a2b483fe82f6f588271cd95575ed039e830a4d80d46774124b2e2b982  vala-0.35.3.tar.xz
package/vala/vala.mk +2 -2
index baa97ab..c118c34 100644
@@ -4,8 +4,8 @@
 #
 ################################################################################
 
-VALA_VERSION_MAJOR = 0.34
-VALA_VERSION = $(VALA_VERSION_MAJOR).4
+VALA_VERSION_MAJOR = 0.35
+VALA_VERSION = $(VALA_VERSION_MAJOR).3
 VALA_SITE = http://download.gnome.org/sources/vala/$(VALA_VERSION_MAJOR)
 VALA_SOURCE = vala-$(VALA_VERSION).tar.xz
 VALA_LICENSE = LGPLv2.1+
Signature · 1 line
2.10.2
#2 lore raw

PATCH 1/2 vala: fix package suffix

In reply to Vicente Olivert Riera

Hello,

Quoted 6 lines · Vicente Olivert Riera

vala executable has a suffix and we reffer to it in our vala wrapper, but we assume that suffix is always the same as the major version. This can be wrong, so better to obtain the suffix number from the config.h file.

Nope, that is not needed I believe.

Like all Gnome projects, 0.35 is not a stable vala version, so there's no reason to package it. And I guess that also explains why vala 0.35 still uses 0.34 as the package suffix.

So, by not package a development version, we also don't need this "fix package suffix" patch.

Best regards,

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
#3 lore raw

PATCH 1/2 vala: fix package suffix

Quoted 6 lines · Thomas Petazzoni

Nope, that is not needed I believe.

Like all Gnome projects, 0.35 is not a stable vala version, so there's no reason to package it. And I guess that also explains why vala 0.35 still uses 0.34 as the package suffix.

Quoted 6 lines

So, by not package a development version, we also don't need this "fix package suffix" patch.

Best regards,

Thomas

Hi All.
Indeed, odd major numbers in the gnome project are development versions, like gtk 3.89, glib 2.51 and others.
Regards.