* [PATCH 1/2] libsass: fix runtime version
@ 2025-04-21 9:06 Yi Zhao
2025-04-21 9:06 ` [PATCH 2/2] sassc: " Yi Zhao
2025-04-22 15:45 ` [OE-core] [PATCH 1/2] libsass: " Alexander Kanavin
0 siblings, 2 replies; 7+ messages in thread
From: Yi Zhao @ 2025-04-21 9:06 UTC (permalink / raw)
To: openembedded-core
Fix libsass runtime version shown in 'sassc --version'.
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
Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
---
meta/recipes-support/sass/libsass_git.bb | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/meta/recipes-support/sass/libsass_git.bb b/meta/recipes-support/sass/libsass_git.bb
index f0824944b9..52ee5e47f9 100644
--- a/meta/recipes-support/sass/libsass_git.bb
+++ b/meta/recipes-support/sass/libsass_git.bb
@@ -11,4 +11,8 @@ PV = "3.6.6"
S = "${WORKDIR}/git"
+do_configure:append() {
+ sed -i -e 's/\[NA\]/${PV}/g' ${S}/include/sass/version.h
+}
+
BBCLASSEXTEND = "native"
--
2.34.1
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [PATCH 2/2] sassc: fix runtime version
2025-04-21 9:06 [PATCH 1/2] libsass: fix runtime version Yi Zhao
@ 2025-04-21 9:06 ` Yi Zhao
2025-04-22 15:44 ` [OE-core] " Alexander Kanavin
2025-04-22 15:45 ` [OE-core] [PATCH 1/2] libsass: " Alexander Kanavin
1 sibling, 1 reply; 7+ messages in thread
From: Yi Zhao @ 2025-04-21 9:06 UTC (permalink / raw)
To: openembedded-core
Fix sassc runtime version shown in 'sassc --version'.
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
Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
---
meta/recipes-support/sass/sassc_git.bb | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/meta/recipes-support/sass/sassc_git.bb b/meta/recipes-support/sass/sassc_git.bb
index b7f57ca244..dfc5ee5857 100644
--- a/meta/recipes-support/sass/sassc_git.bb
+++ b/meta/recipes-support/sass/sassc_git.bb
@@ -12,6 +12,10 @@ SRCREV = "66f0ef37e7f0ad3a65d2f481eff09d09408f42d0"
S = "${WORKDIR}/git"
PV = "3.6.2"
+do_configure:append() {
+ sed -i -e 's/\[NA\]/${PV}/g' ${S}/sassc_version.h
+}
+
CVE_STATUS[CVE-2022-43357] = "cpe-incorrect: this is CVE for libsass, not sassc wrapper"
BBCLASSEXTEND = "native"
--
2.34.1
^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: [OE-core] [PATCH 2/2] sassc: fix runtime version
2025-04-21 9:06 ` [PATCH 2/2] sassc: " Yi Zhao
@ 2025-04-22 15:44 ` Alexander Kanavin
2025-04-23 12:50 ` Yi Zhao
0 siblings, 1 reply; 7+ messages in thread
From: Alexander Kanavin @ 2025-04-22 15:44 UTC (permalink / raw)
To: yi.zhao; +Cc: openembedded-core
On Mon, 21 Apr 2025 at 11:06, Yi Zhao via lists.openembedded.org
<yi.zhao=eng.windriver.com@lists.openembedded.org> wrote:
> +do_configure:append() {
> + sed -i -e 's/\[NA\]/${PV}/g' ${S}/sassc_version.h
> +}
This is a generated file (from sassc_version.h.in), so why is it not
generated correctly? Should we rather do that?
Alex
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [OE-core] [PATCH 1/2] libsass: fix runtime version
2025-04-21 9:06 [PATCH 1/2] libsass: fix runtime version Yi Zhao
2025-04-21 9:06 ` [PATCH 2/2] sassc: " Yi Zhao
@ 2025-04-22 15:45 ` Alexander Kanavin
1 sibling, 0 replies; 7+ messages in thread
From: Alexander Kanavin @ 2025-04-22 15:45 UTC (permalink / raw)
To: yi.zhao; +Cc: openembedded-core
On Mon, 21 Apr 2025 at 11:06, Yi Zhao via lists.openembedded.org
<yi.zhao=eng.windriver.com@lists.openembedded.org> wrote:
> +do_configure:append() {
> + sed -i -e 's/\[NA\]/${PV}/g' ${S}/include/sass/version.h
> +}
Same question as the other patch in the serie.
Alex
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [OE-core] [PATCH 2/2] sassc: fix runtime version
2025-04-22 15:44 ` [OE-core] " Alexander Kanavin
@ 2025-04-23 12:50 ` Yi Zhao
2025-04-23 14:59 ` Alexander Kanavin
0 siblings, 1 reply; 7+ messages in thread
From: Yi Zhao @ 2025-04-23 12:50 UTC (permalink / raw)
To: alex.kanavin, yi.zhao; +Cc: openembedded-core
On 4/22/25 23:44, Alexander Kanavin via lists.openembedded.org wrote:
> On Mon, 21 Apr 2025 at 11:06, Yi Zhao via lists.openembedded.org
> <yi.zhao=eng.windriver.com@lists.openembedded.org> wrote:
>
>> +do_configure:append() {
>> + sed -i -e 's/\[NA\]/${PV}/g' ${S}/sassc_version.h
>> +}
> This is a generated file (from sassc_version.h.in), so why is it not
> generated correctly? Should we rather do that?
There is already a sassc_version.h file with version number [NA] in the
source directory. When ${S} != ${B}, the generated sassc_version.h is
located in the build directory, and the same file in the source
directory is not overwritten. However, the latter is used during build,
resulting in version [NA]. Can it be fixed by inheriting
autotools-brokensep? Or copy the generated sassc_version.h from ${B} to
${S}after do_configure?
//Yi
>
> Alex
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#215234): https://lists.openembedded.org/g/openembedded-core/message/215234
> Mute This Topic: https://lists.openembedded.org/mt/112372256/7283133
> Group Owner: openembedded-core+owner@lists.openembedded.org
> Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [yi.zhao@eng.windriver.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [OE-core] [PATCH 2/2] sassc: fix runtime version
2025-04-23 12:50 ` Yi Zhao
@ 2025-04-23 14:59 ` Alexander Kanavin
2025-04-24 4:29 ` Yi Zhao
0 siblings, 1 reply; 7+ messages in thread
From: Alexander Kanavin @ 2025-04-23 14:59 UTC (permalink / raw)
To: Yi Zhao; +Cc: yi.zhao, openembedded-core
On Wed, 23 Apr 2025 at 14:50, Yi Zhao <yi.zhao@windriver.com> wrote:
> There is already a sassc_version.h file with version number [NA] in the
> source directory. When ${S} != ${B}, the generated sassc_version.h is
> located in the build directory, and the same file in the source
> directory is not overwritten. However, the latter is used during build,
> resulting in version [NA]. Can it be fixed by inheriting
> autotools-brokensep? Or copy the generated sassc_version.h from ${B} to
> ${S}after do_configure?
I think a better fix is to make a patch that deletes the bogus
generated sassc_version.h from the source tree. Normally this patch
would be offered upstream, but it looks like this upstream is
inactive, so you can mark the patch as Inactive-Upstream [last commit
X years ago].
Alex
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [OE-core] [PATCH 2/2] sassc: fix runtime version
2025-04-23 14:59 ` Alexander Kanavin
@ 2025-04-24 4:29 ` Yi Zhao
0 siblings, 0 replies; 7+ messages in thread
From: Yi Zhao @ 2025-04-24 4:29 UTC (permalink / raw)
To: Alexander Kanavin; +Cc: openembedded-core
On 4/23/25 22:59, Alexander Kanavin wrote:
> On Wed, 23 Apr 2025 at 14:50, Yi Zhao <yi.zhao@windriver.com> wrote:
>> There is already a sassc_version.h file with version number [NA] in the
>> source directory. When ${S} != ${B}, the generated sassc_version.h is
>> located in the build directory, and the same file in the source
>> directory is not overwritten. However, the latter is used during build,
>> resulting in version [NA]. Can it be fixed by inheriting
>> autotools-brokensep? Or copy the generated sassc_version.h from ${B} to
>> ${S}after do_configure?
> I think a better fix is to make a patch that deletes the bogus
> generated sassc_version.h from the source tree. Normally this patch
> would be offered upstream, but it looks like this upstream is
> inactive, so you can mark the patch as Inactive-Upstream [last commit
> X years ago].
Thanks. I will send v2.
//Yi
>
> Alex
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2025-04-24 4:29 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-04-21 9:06 [PATCH 1/2] libsass: fix runtime version Yi Zhao
2025-04-21 9:06 ` [PATCH 2/2] sassc: " Yi Zhao
2025-04-22 15:44 ` [OE-core] " Alexander Kanavin
2025-04-23 12:50 ` Yi Zhao
2025-04-23 14:59 ` Alexander Kanavin
2025-04-24 4:29 ` Yi Zhao
2025-04-22 15:45 ` [OE-core] [PATCH 1/2] libsass: " Alexander Kanavin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox