Skip to contentSkip to conversation

libsass: fix runtime version

PATCH In review Yi Zhao 3 participants 5 messages Apr 25, 2025 – Apr 28, 2025

lore
Share & tools
lore

Yi Zhao

author
#0 lore raw

PATCH v3 1/2 libsass: fix runtime version

The version.h should be generated from version.h.in. But there is already a version.h file in source directory. When ${S} != ${B}, the version.h is generated in build directory, and the original version.h in source directory is not overwritten. However, the latter is used during the build, resulting in a missing runtime version. Remove version.h from source directory to ensure that the one in build directory is used during the build.

Before the fix:

$ sassc --version
sassc: [NA]
libsass: [NA]
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
---
 ...move-version.h-from-source-directory.patch | 87 +++++++++++++++++++
 meta/recipes-support/sass/libsass_git.bb      |  4 +-
 2 files changed, 90 insertions(+), 1 deletion(-)
 create mode 100644 meta/recipes-support/sass/libsass/0001-Remove-version.h-from-source-directory.patch
meta/recipes-support/sass/libsass/0001-Remove-version.h-from-source-directory.patch new file +87 -0
new file mode 100644
index 0000000000..d1356dc83a
@@ -0,0 +1,87 @@
+From e5af3bbc9ea6e56e3d4e5cabcb5ac57b521fa6c0 Mon Sep 17 00:00:00 2001
+From: Yi Zhao <[email protected]>
+Date: Thu, 24 Apr 2025 22:47:52 +0800
+Subject: [PATCH] Remove version.h from source directory
+
+The version.h should be generated from version.h.in. If the build
+directory is out of the source directory, the version.h is generated in
+build directory and the original version.h in source directory is not
+overwritten. However, the latter is used during the build, resulting in
+a missing runtime version:
+
+$ sassc --version
+sassc: [NA]
+libsass: [NA]
+sass2scss: 1.1.1
+sass: 3.5
+
+Remove version.h from source directory to ensure that the version.h in
+build directory is used during the build.
+
+Also remove '--dirty' option from 'git describe' command line in
+version.sh to get rid of '-dirty' suffix from version number that
+was introduced with this change.
+
+Upstream-Status: Submitted [https://github.com/sass/libsass/pull/3196]
+
+Signed-off-by: Yi Zhao <[email protected]>
+---
+ include/sass/version.h | 12 ------------
+ src/GNUmakefile.am     |  4 ++--
+ version.sh             |  2 +-
+ 3 files changed, 3 insertions(+), 15 deletions(-)
+ delete mode 100644 include/sass/version.h
+
+diff --git a/include/sass/version.h b/include/sass/version.h
+deleted file mode 100644
+index 56ea016a..00000000
+--- a/include/sass/version.h
++++ /dev/null
+@@ -1,12 +0,0 @@
+-#ifndef SASS_VERSION_H
+-#define SASS_VERSION_H
+-
+-#ifndef LIBSASS_VERSION
+-#define LIBSASS_VERSION "[NA]"
+-#endif
+-
+-#ifndef LIBSASS_LANGUAGE_VERSION
+-#define LIBSASS_LANGUAGE_VERSION "3.5"
+-#endif
+-
+-#endif
+diff --git a/src/GNUmakefile.am b/src/GNUmakefile.am
+index 9b0e6a99..e955f0b4 100644
+--- a/src/GNUmakefile.am
++++ b/src/GNUmakefile.am
+@@ -8,7 +8,7 @@ if ENABLE_COVERAGE
+ 	AM_COVLDFLAGS += -lgcov
+ endif
+ 
+-AM_CPPFLAGS = -I$(top_srcdir)/include
++AM_CPPFLAGS = -I$(top_srcdir)/include -I$(top_builddir)/include
+ AM_CFLAGS   = $(AM_COPT)
+ AM_CXXFLAGS = $(AM_COPT)
+ AM_LDFLAGS  = $(AM_COPT) $(AM_COVLDFLAGS)
+@@ -45,6 +45,6 @@ sass_includedir = $(includedir)/sass
+ 
+ sass_include_HEADERS = $(top_srcdir)/include/sass/base.h \
+                        $(top_srcdir)/include/sass/values.h \
+-                       $(top_srcdir)/include/sass/version.h \
++                       $(top_builddir)/include/sass/version.h \
+                        $(top_srcdir)/include/sass/context.h \
+                        $(top_srcdir)/include/sass/functions.h
+diff --git a/version.sh b/version.sh
+index 281de74d..7bc57230 100755
+--- a/version.sh
++++ b/version.sh
+@@ -1,5 +1,5 @@
+ if test "x$LIBSASS_VERSION" = "x"; then
+-  LIBSASS_VERSION=`git describe --abbrev=4 --dirty --always --tags 2>/dev/null`
++  LIBSASS_VERSION=`git describe --abbrev=4 --always --tags 2>/dev/null`
+ fi
+ if test "x$LIBSASS_VERSION" = "x"; then
+   LIBSASS_VERSION=`cat VERSION 2>/dev/null`
+-- 
+2.34.1
+
meta/recipes-support/sass/libsass_git.bb +3 -1
index f0824944b9..890cbf8e63 100644
@@ -5,7 +5,9 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=8f34396ca205f5e119ee77aae91fa27d"
 
 inherit autotools
 
-SRC_URI = "git://github.com/sass/libsass.git;branch=master;protocol=https"
+SRC_URI = "git://github.com/sass/libsass.git;branch=master;protocol=https \
+           file://0001-Remove-version.h-from-source-directory.patch"
+
 SRCREV = "7037f03fabeb2b18b5efa84403f5a6d7a990f460"
 PV = "3.6.6"
 
Signature · 1 line
2.34.1
author
#1 lore raw

PATCH v3 2/2 sassc: fix runtime version

The sassc_version.h should be generated from sassc_version.h.in. But there is already a sassc_version.h file in source directory. When ${S} != ${B}, the sassc_version.h is generated in build directory, and the original sassc_version.h in source directory is not overwritten. However, the latter is used during the build, resulting in a missing runtime version. Remove sassc_version.h from source directory to ensure that the one in build directory is used during the build.

Before the fix:

$ sassc --version
sassc: [NA]
libsass: [NA]
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
---
 ...assc_version.h-from-source-directory.patch | 61 +++++++++++++++++++
 meta/recipes-support/sass/sassc_git.bb        |  4 +-
 2 files changed, 64 insertions(+), 1 deletion(-)
 create mode 100644 meta/recipes-support/sass/sassc/0001-Remove-sassc_version.h-from-source-directory.patch
meta/recipes-support/sass/sassc/0001-Remove-sassc_version.h-from-source-directory.patch new file +61 -0
new file mode 100644
index 0000000000..c6717995c5
@@ -0,0 +1,61 @@
+From b5d03d5313d4cc19a7e6e9ba5fd74d1f8400cd46 Mon Sep 17 00:00:00 2001
+From: Yi Zhao <[email protected]>
+Date: Thu, 24 Apr 2025 21:28:55 +0800
+Subject: [PATCH] Remove sassc_version.h from source directory
+
+The sassc_version.h should be generated from sassc_version.h.in. If the
+build directory is out of the source directory, the sassc_version.h is
+generated in build directory and the original sassc_version.h in source
+directory is not overwritten. However, the latter is used during the
+build, resulting in a missing runtime version:
+
+$ sassc --version
+sassc: [NA]
+libsass: [NA]
+sass2scss: 1.1.1
+sass: 3.5
+
+Remove sassc_version.h from source directory to ensure that the
+sassc_version.h in build directory is used during the build.
+
+Also remove '--dirty' option from 'git describe' command line in
+version.sh to get rid of '-dirty' suffix from version number that
+was introduced with this change.
+
+Upstream-Status: Submitted [https://github.com/sass/sassc/pull/283]
+
+Signed-off-by: Yi Zhao <[email protected]>
+---
+ sassc_version.h | 8 --------
+ version.sh      | 2 +-
+ 2 files changed, 1 insertion(+), 9 deletions(-)
+ delete mode 100644 sassc_version.h
+
+diff --git a/sassc_version.h b/sassc_version.h
+deleted file mode 100644
+index 3ca12e3..0000000
+--- a/sassc_version.h
++++ /dev/null
+@@ -1,8 +0,0 @@
+-#ifndef SASSC_VERSION_H
+-#define SASSC_VERSION_H
+-
+-#ifndef SASSC_VERSION
+-#define SASSC_VERSION "[NA]"
+-#endif
+-
+-#endif
+diff --git a/version.sh b/version.sh
+index d56af99..cf97d82 100755
+--- a/version.sh
++++ b/version.sh
+@@ -1,5 +1,5 @@
+ if test "x$SASSC_VERSION" = "x"; then
+-  SASSC_VERSION=`git describe --abbrev=4 --dirty --always --tags 2>/dev/null`
++  SASSC_VERSION=`git describe --abbrev=4 --always --tags 2>/dev/null`
+ fi
+ if test "x$SASSC_VERSION" = "x"; then
+   SASSC_VERSION=`cat VERSION 2>/dev/null`
+-- 
+2.34.1
+
meta/recipes-support/sass/sassc_git.bb +3 -1
index b7f57ca244..64e92f48cf 100644
@@ -7,7 +7,9 @@ DEPENDS = "libsass"
 
 inherit autotools pkgconfig
 
-SRC_URI = "git://github.com/sass/sassc.git;branch=master;protocol=https"
+SRC_URI = "git://github.com/sass/sassc.git;branch=master;protocol=https \
+           file://0001-Remove-sassc_version.h-from-source-directory.patch"
+
 SRCREV = "66f0ef37e7f0ad3a65d2f481eff09d09408f42d0"
 S = "${WORKDIR}/git"
 PV = "3.6.2"
Signature · 1 line
2.34.1
#2 lore raw

Re: [OE-core] [PATCH 2/2 v3] sassc: fix runtime version

Thanks, v3 for both patches look good.

Can you review usage of these components in core and meta-oe? Are they optional or hard dependencies?

Alex

Quoted 124 lines · Yi Zhao via lists.openembedded.org

The sassc_version.h should be generated from sassc_version.h.in. But there is already a sassc_version.h file in source directory. When ${S} != ${B}, the sassc_version.h is generated in build directory, and the original sassc_version.h in source directory is not overwritten. However, the latter is used during the build, resulting in a missing runtime version. Remove sassc_version.h from source directory to ensure that the one in build directory is used during the build.

Before the fix:

$ sassc --version
sassc: [NA]
libsass: [NA]
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
---
 ...assc_version.h-from-source-directory.patch | 61 +++++++++++++++++++
 meta/recipes-support/sass/sassc_git.bb        |  4 +-
 2 files changed, 64 insertions(+), 1 deletion(-)
 create mode 100644 meta/recipes-support/sass/sassc/0001-Remove-sassc_version.h-from-source-directory.patch
meta/recipes-support/sass/sassc/0001-Remove-sassc_version.h-from-source-directory.patch new file +61 -0
new file mode 100644
index 0000000000..c6717995c5
@@ -0,0 +1,61 @@
+From b5d03d5313d4cc19a7e6e9ba5fd74d1f8400cd46 Mon Sep 17 00:00:00 2001
+From: Yi Zhao <[email protected]>
+Date: Thu, 24 Apr 2025 21:28:55 +0800
+Subject: [PATCH] Remove sassc_version.h from source directory
+
+The sassc_version.h should be generated from sassc_version.h.in. If the
+build directory is out of the source directory, the sassc_version.h is
+generated in build directory and the original sassc_version.h in source
+directory is not overwritten. However, the latter is used during the
+build, resulting in a missing runtime version:
+
+$ sassc --version
+sassc: [NA]
+libsass: [NA]
+sass2scss: 1.1.1
+sass: 3.5
+
+Remove sassc_version.h from source directory to ensure that the
+sassc_version.h in build directory is used during the build.
+
+Also remove '--dirty' option from 'git describe' command line in
+version.sh to get rid of '-dirty' suffix from version number that
+was introduced with this change.
+
+Upstream-Status: Submitted [https://github.com/sass/sassc/pull/283]
+
+Signed-off-by: Yi Zhao <[email protected]>
+---
+ sassc_version.h | 8 --------
+ version.sh      | 2 +-
+ 2 files changed, 1 insertion(+), 9 deletions(-)
+ delete mode 100644 sassc_version.h
+
+diff --git a/sassc_version.h b/sassc_version.h
+deleted file mode 100644
+index 3ca12e3..0000000
+--- a/sassc_version.h
++++ /dev/null
+@@ -1,8 +0,0 @@
+-#ifndef SASSC_VERSION_H
+-#define SASSC_VERSION_H
+-
+-#ifndef SASSC_VERSION
+-#define SASSC_VERSION "[NA]"
+-#endif
+-
+-#endif
+diff --git a/version.sh b/version.sh
+index d56af99..cf97d82 100755
+--- a/version.sh
++++ b/version.sh
+@@ -1,5 +1,5 @@
+ if test "x$SASSC_VERSION" = "x"; then
+-  SASSC_VERSION=`git describe --abbrev=4 --dirty --always --tags 2>/dev/null`
++  SASSC_VERSION=`git describe --abbrev=4 --always --tags 2>/dev/null`
+ fi
+ if test "x$SASSC_VERSION" = "x"; then
+   SASSC_VERSION=`cat VERSION 2>/dev/null`
+--
+2.34.1
+
meta/recipes-support/sass/sassc_git.bb +3 -2
index b7f57ca244..64e92f48cf 100644
@@ -7,7 +7,9 @@ DEPENDS = "libsass"
 
 inherit autotools pkgconfig
 
-SRC_URI = "git://github.com/sass/sassc.git;branch=master;protocol=https"
+SRC_URI = "git://github.com/sass/sassc.git;branch=master;protocol=https \
+           file://0001-Remove-sassc_version.h-from-source-directory.patch"
+
 SRCREV = "66f0ef37e7f0ad3a65d2f481eff09d09408f42d0"
 S = "${WORKDIR}/git"
 PV = "3.6.2"
--

2.34.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#215435): https://lists.openembedded.org/g/openembedded-core/message/215435
Mute This Topic: https://lists.openembedded.org/mt/112447458/1686489
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

author
#3 lore raw

Re: [OE-core] [PATCH 2/2 v3] sassc: fix runtime version

Quoted 4 lines · Alexander Kanavin

Thanks, v3 for both patches look good.

Can you review usage of these components in core and meta-oe? Are they optional or hard dependencies?

Only 2 recipes depend on it. libadwaita (in oe-core) and adw-gtk3 (in meta-oe). There is no build option to enable/disable this dependency.

For libadwata, if sassc is not found, it will try to build sassc itself.

In src/stylesheet/meson.build:

sassc = find_program('sassc', required: false)
if not sassc.found()
  subproject('sassc', default_options: ['warning_level=0', 'werror=false']) sassc = find_program('sassc')
endif

//Yi

Quoted 128 lines

Alex

Quoted 123 lines · Yi Zhao via lists.openembedded.org

The sassc_version.h should be generated from sassc_version.h.in. But there is already a sassc_version.h file in source directory. When ${S} != ${B}, the sassc_version.h is generated in build directory, and the original sassc_version.h in source directory is not overwritten. However, the latter is used during the build, resulting in a missing runtime version. Remove sassc_version.h from source directory to ensure that the one in build directory is used during the build.

Before the fix:

$ sassc --version
sassc: [NA]
libsass: [NA]
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
---
  ...assc_version.h-from-source-directory.patch | 61 +++++++++++++++++++
  meta/recipes-support/sass/sassc_git.bb        |  4 +-
  2 files changed, 64 insertions(+), 1 deletion(-)

create mode 100644 meta/recipes-support/sass/sassc/0001-Remove-sassc_version.h-from-source-directory.patch

meta/recipes-support/sass/sassc/0001-Remove-sassc_version.h-from-source-directory.patch new file +61 -0
new file mode 100644
index 0000000000..c6717995c5
@@ -0,0 +1,61 @@
+From b5d03d5313d4cc19a7e6e9ba5fd74d1f8400cd46 Mon Sep 17 00:00:00 2001
+From: Yi Zhao <[email protected]>
+Date: Thu, 24 Apr 2025 21:28:55 +0800
+Subject: [PATCH] Remove sassc_version.h from source directory
+
+The sassc_version.h should be generated from sassc_version.h.in. If the
+build directory is out of the source directory, the sassc_version.h is
+generated in build directory and the original sassc_version.h in source
+directory is not overwritten. However, the latter is used during the
+build, resulting in a missing runtime version:
+
+$ sassc --version
+sassc: [NA]
+libsass: [NA]
+sass2scss: 1.1.1
+sass: 3.5
+
+Remove sassc_version.h from source directory to ensure that the
+sassc_version.h in build directory is used during the build.
+
+Also remove '--dirty' option from 'git describe' command line in
+version.sh to get rid of '-dirty' suffix from version number that
+was introduced with this change.
+
+Upstream-Status: Submitted [https://github.com/sass/sassc/pull/283]
+
+Signed-off-by: Yi Zhao <[email protected]>
+---
+ sassc_version.h | 8 --------
+ version.sh      | 2 +-
+ 2 files changed, 1 insertion(+), 9 deletions(-)
+ delete mode 100644 sassc_version.h
+
+diff --git a/sassc_version.h b/sassc_version.h
+deleted file mode 100644
+index 3ca12e3..0000000
+--- a/sassc_version.h
++++ /dev/null
+@@ -1,8 +0,0 @@
+-#ifndef SASSC_VERSION_H
+-#define SASSC_VERSION_H
+-
+-#ifndef SASSC_VERSION
+-#define SASSC_VERSION "[NA]"
+-#endif
+-
+-#endif
+diff --git a/version.sh b/version.sh
+index d56af99..cf97d82 100755
+--- a/version.sh
++++ b/version.sh
+@@ -1,5 +1,5 @@
+ if test "x$SASSC_VERSION" = "x"; then
+-  SASSC_VERSION=`git describe --abbrev=4 --dirty --always --tags 2>/dev/null`
++  SASSC_VERSION=`git describe --abbrev=4 --always --tags 2>/dev/null`
+ fi
+ if test "x$SASSC_VERSION" = "x"; then
+   SASSC_VERSION=`cat VERSION 2>/dev/null`
+--
+2.34.1
+
meta/recipes-support/sass/sassc_git.bb +3 -2
index b7f57ca244..64e92f48cf 100644
@@ -7,7 +7,9 @@ DEPENDS = "libsass"
 
  inherit autotools pkgconfig
 
-SRC_URI = "git://github.com/sass/sassc.git;branch=master;protocol=https"
+SRC_URI = "git://github.com/sass/sassc.git;branch=master;protocol=https \
+           file://0001-Remove-sassc_version.h-from-source-directory.patch"
+
  SRCREV = "66f0ef37e7f0ad3a65d2f481eff09d09408f42d0"
  S = "${WORKDIR}/git"
  PV = "3.6.2"
--

2.34.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#215435): https://lists.openembedded.org/g/openembedded-core/message/215435
Mute This Topic: https://lists.openembedded.org/mt/112447458/1686489
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

#4 lore raw

Re: [OE-core] [PATCH 2/2 v3] sassc: fix runtime version

Yi,

We'll likely wait a week or two to see if we hear  hear from upstream before merging.

Could you open an issue with libadwaita to see if they know that sassc isn't really maintained?

Ah, there's already one opened  2 years ago but:
https://gitlab.gnome.org/GNOME/libadwaita/-/issues/484

Can (should) they  switch to: https://sass-lang.com/dart-sass/  ?
It seems that they are justifiably concerned about using dart-sass as of a few weeks ago.

Does anyone have a different solution?

../Randy

Quoted 165 lines · Yi Zhao via lists.openembedded.org
Quoted 4 lines · Alexander Kanavin

Thanks, v3 for both patches look good.

Can you review usage of these components in core and meta-oe? Are they optional or hard dependencies?

Only 2 recipes depend on it. libadwaita (in oe-core) and adw-gtk3 (in meta-oe). There is no build option to enable/disable this dependency.

For libadwata, if sassc is not found, it will try to build sassc itself.

In src/stylesheet/meson.build:

sassc = find_program('sassc', required: false)
if not sassc.found()
  subproject('sassc', default_options: ['warning_level=0', 'werror=false']) sassc = find_program('sassc')
endif

//Yi

Quoted 115 lines

Alex

Quoted 110 lines · Yi Zhao via lists.openembedded.org

The sassc_version.h should be generated from sassc_version.h.in. But there is already a sassc_version.h file in source directory. When ${S} != ${B}, the sassc_version.h is generated in build directory, and the original sassc_version.h in source directory is not overwritten. However, the latter is used during the build, resulting in a missing runtime version. Remove sassc_version.h from source directory to ensure that the one in build directory is used during the build.

Before the fix:

$ sassc --version
sassc: [NA]
libsass: [NA]
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

---
  ...assc_version.h-from-source-directory.patch | 61
+++++++++++++++++++
  meta/recipes-support/sass/sassc_git.bb        |  4 +-

  2 files changed, 64 insertions(+), 1 deletion(-)

  create mode 100644 meta/recipes-support/sass/sassc/0001-Remove-sassc_version.h-from-source-directory.patch

meta/recipes-support/sass/sassc/0001-Remove-sassc_version.h-from-source-directory.patch +0 -0

new file mode 100644
index 0000000000..c6717995c5
--- /dev/null
+++
b/meta/recipes-support/sass/sassc/0001-Remove-sassc_version.h-from-source-directory.patch

meta/recipes-support/sass/sassc/0001-Remove-sassc_version.h-from-source-directory.patch +6 -0
@@ -0,0 +1,61 @@
+From b5d03d5313d4cc19a7e6e9ba5fd74d1f8400cd46 Mon Sep 17 00:00:00 2001
+From: Yi Zhao <[email protected]>
+Date: Thu, 24 Apr 2025 21:28:55 +0800
+Subject: [PATCH] Remove sassc_version.h from source directory
+
+The sassc_version.h should be generated from sassc_version.h.in. If 

the

meta/recipes-support/sass/sassc/0001-Remove-sassc_version.h-from-source-directory.patch +2 -0
+build directory is out of the source directory, the sassc_version.h is
+generated in build directory and the original sassc_version.h in 

source

meta/recipes-support/sass/sassc/0001-Remove-sassc_version.h-from-source-directory.patch +46 -0
+directory is not overwritten. However, the latter is used during the
+build, resulting in a missing runtime version:
+
+$ sassc --version
+sassc: [NA]
+libsass: [NA]
+sass2scss: 1.1.1
+sass: 3.5
+
+Remove sassc_version.h from source directory to ensure that the
+sassc_version.h in build directory is used during the build.
+
+Also remove '--dirty' option from 'git describe' command line in
+version.sh to get rid of '-dirty' suffix from version number that
+was introduced with this change.
+
+Upstream-Status: Submitted [https://github.com/sass/sassc/pull/283]
+
+Signed-off-by: Yi Zhao <[email protected]>
+---
+ sassc_version.h | 8 --------
+ version.sh      | 2 +-
+ 2 files changed, 1 insertion(+), 9 deletions(-)
+ delete mode 100644 sassc_version.h
+
+diff --git a/sassc_version.h b/sassc_version.h
+deleted file mode 100644
+index 3ca12e3..0000000
+--- a/sassc_version.h
++++ /dev/null
+@@ -1,8 +0,0 @@
+-#ifndef SASSC_VERSION_H
+-#define SASSC_VERSION_H
+-
+-#ifndef SASSC_VERSION
+-#define SASSC_VERSION "[NA]"
+-#endif
+-
+-#endif
+diff --git a/version.sh b/version.sh
+index d56af99..cf97d82 100755
+--- a/version.sh
++++ b/version.sh
+@@ -1,5 +1,5 @@
+ if test "x$SASSC_VERSION" = "x"; then
+-  SASSC_VERSION=`git describe --abbrev=4 --dirty --always --tags 

2>/dev/null`
++  SASSC_VERSION=git describe --abbrev=4 --always --tags 2>/dev/null
+ fi
+ if test "x$SASSC_VERSION" = "x"; then
+   SASSC_VERSION=cat VERSION 2>/dev/null
+--
+2.34.1

meta/recipes-support/sass/sassc/0001-Remove-sassc_version.h-from-source-directory.patch +1 -0
+
meta/recipes-support/sass/sassc_git.bb +0 -0
index b7f57ca244..64e92f48cf 100644
@@ -7,7 +7,9 @@ DEPENDS = "libsass"
 

  inherit autotools pkgconfig

Quoted 15 lines
Quoted 15 lines

-SRC_URI = "git://github.com/sass/sassc.git;branch=master;protocol=https" +SRC_URI = "git://github.com/sass/sassc.git;branch=master;protocol=https \
+ file://0001-Remove-sassc_version.h-from-source-directory.patch" +
  SRCREV = "66f0ef37e7f0ad3a65d2f481eff09d09408f42d0"
  S = "${WORKDIR}/git"
  PV = "3.6.2"

Signature · 1 line
2.34.1

pLK@tY:ATbOf1"dW

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#215529):https://lists.openembedded.org/g/openembedded-core/message/215529 Mute This Topic:https://lists.openembedded.org/mt/112447458/3616765
Group Owner:[email protected] Unsubscribe:https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Signature · 2 lines
# Randy MacLeod
# Wind River Linux