Skip to contentSkip to conversation

libsass: fix runtime version when using git shallow tarball

PATCH New Yi Zhao 1 participant 2 messages Dec 11, 2025

lore
Share & tools
lore

Yi Zhao

author
#0 lore raw

PATCH 1/2 libsass: fix runtime version when using git shallow tarball

Add tag to SRC_URI to fix runtime version when using git shallow tarball.

Before the fix:

$ sassc --version
sassc: 66f0
libsass: 7037
sass2scss: 1.1.1
sass: 3.5

After the fix:

$ sassc --version
sassc: 3.6.2
libsass: 3.6.6
sass2scss: 1.1.1
sass: 3.5
---
 meta/recipes-support/sass/libsass_3.6.6.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-support/sass/libsass_3.6.6.bb +1 -1
index de608f0a6b..26f549e53f 100644
@@ -5,7 +5,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=8f34396ca205f5e119ee77aae91fa27d"
 
 inherit autotools
 
-SRC_URI = "git://github.com/sass/libsass.git;protocol=https;branch=master \
+SRC_URI = "git://github.com/sass/libsass.git;protocol=https;branch=master;tag=${PV} \
            file://0001-Remove-version.h-from-source-directory.patch"
 
 SRCREV = "7037f03fabeb2b18b5efa84403f5a6d7a990f460"
Signature · 1 line
2.34.1
author
#1 lore raw

PATCH 2/2 sassc: fix runtime version when using git shallow tarball

Add tag to SRC_URI to fix runtime version when using git shallow tarball.

Before the fix:

$ sassc --version
sassc: 66f0
libsass: 7037
sass2scss: 1.1.1
sass: 3.5

After the fix:

$ sassc --version
sassc: 3.6.2
libsass: 3.6.6
sass2scss: 1.1.1
sass: 3.5
---
 meta/recipes-support/sass/sassc_3.6.2.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-support/sass/sassc_3.6.2.bb +1 -1
index 1de02f44b6..65849bb1f1 100644
@@ -7,7 +7,7 @@ DEPENDS = "libsass"
 
 inherit autotools pkgconfig
 
-SRC_URI = "git://github.com/sass/sassc.git;protocol=https;branch=master \
+SRC_URI = "git://github.com/sass/sassc.git;protocol=https;branch=master;tag=${PV} \
            file://0001-Remove-sassc_version.h-from-source-directory.patch"
 
 SRCREV = "66f0ef37e7f0ad3a65d2f481eff09d09408f42d0"
Signature · 1 line
2.34.1