#1149563 libmojolicious-plugin-assetpack-perl: does not work with `sass` binary from dart-sass #1149563
- Package:
- libmojolicious-plugin-assetpack-perl
- Submitter:
- Antonio Terceiro
- Date:
- 2026-10-05 21:07:04 UTC
- Severity:
- normal
- Tags:
Dear Maintainer, Mojolicious::Plugin-AssetPack is used by openqa to compile its assets, including SASS files. The current implementation provising a `sass` binary up to a few days ago was ruby-sass, which is deprecated and reached EOL in 2019 as you can read here: https://sass-lang.com/ruby-sass/ dart-sass is the currently maintained implementation, and it entered Debian recently. ruby-sass has been uploaded dropping any command line tools, to open space for the new `sass` binary provided by dart-sass. This caused a regression in openqa, due to the missing command line tool, as its tests fail when compiling sass assets. I tried patching openqa to depend on dart-sass instead of ruby-sass, but it then failed anyway. I then I tracked this down to this package, and could represent a similar failure by running the tests with TEST_SASS=1: ----------------8<----------------8<----------------8<----------------- $ dpkg-query --show ruby-sass dart-sass dart-sass 1.105.0-5 ruby-sass $ TEST_SASS=1 prove -Ilib t/sass-bin.t t/sass-bin.t .. 1/? [Pipe::Sass] Could not compile "sass.sass" with opts={"include_paths" => [bless( do{\(my $o = "/home/terceiro/src/debian/libmojolicious-plugin-assetpack-perl/t/assets")}, 'Mojo::Home' )],"source_map_file" => "__Mojolicious_Plugin_AssetPack_Pipe_Sass__","source_map_file_urls" => 1}: at /home/terceiro/src/debian/libmojolicious-plugin-assetpack-perl/lib/Mojolicious/Plugin/AssetPack/Pipe/Sass.pm line 70. # Tests were run but no plan was declared and done_testing() was not seen. # Looks like your test exited with 64 just after 1. t/sass-bin.t .. Dubious, test returned 64 (wstat 16384, 0x4000) All 1 subtests passed Test Summary Report ------------------- t/sass-bin.t (Wstat: 16384 (exited 64) Tests: 1 Failed: 0) Non-zero exit status: 64 Parse errors: No plan found in TAP output Files=1, Tests=1, 0 wallclock secs ( 0.03 usr 0.00 sys + 0.40 cusr 0.02 csys = 0.45 CPU) Result: FAIL ----------------8<----------------8<----------------8<----------------- If I remove dart-sass and revert ruby-sass to the version in testing, then those tests pass:----------------8<----------------8<----------------8<----------------- [1]$ sudo apt -qy install ruby-sass/testing dart-sass- [...] $ TEST_SASS=1 prove -Ilib t/sass-bin.t t/sass-bin.t .. ok All tests successful. Files=1, Tests=18, 2 wallclock secs ( 0.03 usr 0.00 sys + 2.04 cusr 0.24 csys = 2.31 CPU) Result: PASS ----------------8<----------------8<----------------8<----------------- Looking at the code, Mojolicious::Plugin::AssetPack::Pipe::Sass seems to depend on the exact command line options provided by sass from ruby-sass, but dart-sass does not really support the same options. It's also valid to point out that these tests are not running by default, because they need TEST_SASS=1. There are also a few other tests that get skipped due to missing environment variables, it would be great if the test coverage could be improved to actually test the usage of the texternal tools used for handling assets.
Hi Antonio,
I maintain dart-sass in Debian.
The failure is in the command line options. AssetPack runs
sass -s --trace -I <path> [--scss] [-t compressed]
but in dart-sass `-s` is short for --style and takes a value, so
`-s --trace` is parsed as -s=--trace:
$ sass -s --trace -I . -t compressed < in.scss
"--trace" is not an allowed value for option "-s". (exit 64)
which is the exit status in your report. dart-sass also dropped --scss
(SCSS is the default, the indented syntax is --indented) and -t (use
--style=compressed).
dart-sass implements the current upstream Sass command line, so I would
rather not add a ruby-sass compatibility mode to it. The attached patch
fixes the command line branch instead: with it, TEST_SASS=1 on 2.15-1
passes (Files=1, Tests=18) against dart-sass 1.105, where it currently
exits 64 as in your report. The CSS::Sass path is untouched.
Regards,
Emfox
Hello, Bug #1149563 in libmojolicious-plugin-assetpack-perl reported by you has been fixed in the Git repository and is awaiting an upload. You can see the commit message below and you can check the diff of the fix at: https://salsa.debian.org/perl-team/modules/packages/libmojolicious-plugin-assetpack-perl/-/commit/22d6c4b7c4f889a94a093384da4f389b4508d82a ------------------------------------------------------------------------ Adapt Mojolicious::Please::AssetPack::Pipe::Sass to dart-sass Signed-off-by: Antonio Terceiro <terceiro@debian.org> Closes: #1149563 ------------------------------------------------------------------------ (this message was generated automatically) -- Greetings https://bugs.debian.org/1149563
Control: tag -1 + patch Control: forwarded -1 https://salsa.debian.org/perl-team/modules/packages/libmojolicious-plugin-assetpack-perl/-/merge_requests/1 Thanks, confirmed that this fixes it for me. I created a MR with your patch that should be ready for consumption the the maintainers.
Hello, Bug #1149563 in libmojolicious-plugin-assetpack-perl reported by you has been fixed in the Git repository and is awaiting an upload. You can see the commit message below and you can check the diff of the fix at: https://salsa.debian.org/perl-team/modules/packages/libmojolicious-plugin-assetpack-perl/-/commit/22d6c4b7c4f889a94a093384da4f389b4508d82a ------------------------------------------------------------------------ Adapt Mojolicious::Please::AssetPack::Pipe::Sass to dart-sass Signed-off-by: Antonio Terceiro <terceiro@debian.org> Closes: #1149563 ------------------------------------------------------------------------ (this message was generated automatically) -- Greetings https://bugs.debian.org/1149563
We believe that the bug you reported is fixed in the latest version of
libmojolicious-plugin-assetpack-perl, which is due to be installed in the Debian FTP archive.
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to 1149563@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
gregor herrmann <gregoa@debian.org> (supplier of updated libmojolicious-plugin-assetpack-perl package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Mon, 05 Oct 2026 21:42:08 +0200
Source: libmojolicious-plugin-assetpack-perl
Architecture: source
Version: 2.15-2
Distribution: unstable
Urgency: medium
Maintainer: Debian Perl Group <pkg-perl-maintainers@lists.alioth.debian.org>
Changed-By: gregor herrmann <gregoa@debian.org>
Closes: 1149563
Changes:
libmojolicious-plugin-assetpack-perl (2.15-2) unstable; urgency=medium
.
* Team upload.
.
[ Antonio Terceiro ]
* autopkgtest: add a sass test.
.
[ Emfox Zhou ]
* Adapt Mojolicious::Please::AssetPack::Pipe::Sass to dart-sass.
(Closes: #1149563)
.
[ gregor herrmann ]
* Declare compliance with Debian Policy 4.7.4.
* Remove «Rules-Requires-Root: no», which is the current default.
* Remove «Priority: optional», which is the current default.
* Convert debian/watch to version 5.
Checksums-Sha1:
8cbd2600fc90bdde756224432238f77846509014 2764 libmojolicious-plugin-assetpack-perl_2.15-2.dsc
701302f969d61179b1d71186b8b487f2e7934e47 7012 libmojolicious-plugin-assetpack-perl_2.15-2.debian.tar.xz
2ed9027cf01b379c13f5023dfce6387bcbe997a7 1461764 libmojolicious-plugin-assetpack-perl_2.15-2.git.tar.xz
0283a58e23c9e055e0b8a5ba6021726dc1c86a78 17836 libmojolicious-plugin-assetpack-perl_2.15-2_source.buildinfo
Checksums-Sha256:
7c4d7e9af55c7ca15f7cb526fbc19e21c60609252c8aa0a77b33b022d9ed49e1 2764 libmojolicious-plugin-assetpack-perl_2.15-2.dsc
74770135ffb264417a6aa4994da0fcb594753b7a12b1f4bb6b96d58b2c06efd1 7012 libmojolicious-plugin-assetpack-perl_2.15-2.debian.tar.xz
f7224310285a8dc8dd6c8f7224bc1c10dff525e26a900047de4c94d08a197be2 1461764 libmojolicious-plugin-assetpack-perl_2.15-2.git.tar.xz
7414c69f040013f336bd6d347480b3acea0450795db9cfc5547193bdbb963dc9 17836 libmojolicious-plugin-assetpack-perl_2.15-2_source.buildinfo
Files:
3e68e76daa5ac8695f0421957ef8ba42 2764 perl optional libmojolicious-plugin-assetpack-perl_2.15-2.dsc
8f91f544fc13eade5bf60e277ebbf227 7012 perl optional libmojolicious-plugin-assetpack-perl_2.15-2.debian.tar.xz
ccfbe47a72b1912aa0773555fa9a12ea 1461764 perl None libmojolicious-plugin-assetpack-perl_2.15-2.git.tar.xz
0ea6534eee0ec42d72985beb2bcf07f3 17836 perl optional libmojolicious-plugin-assetpack-perl_2.15-2_source.buildinfo
Git-Tag-Info: tag=91ce5231ac2f23f65788b75d89455da164462949 fp=d1e1316e93a760a8104d85fabb3a68018649aa06
Git-Tag-Tagger: gregor herrmann <gregoa@debian.org>
-----BEGIN PGP SIGNATURE-----
iQIzBAEBCgAdFiEEN02M5NuW6cvUwJcqYG0ITkaDwHkFAmrD/qAACgkQYG0ITkaD
wHm+1xAA5fUJpcGtyE+/0O2ChXoGb4IoBJT0wEsh3LxydO7scn/nBdZV4SIBhtY+
1inmTubkTniAGiMplYPiM8Ch6y3yhEQvQ0LmrOMOjDe19oh/SL6KjuvTt57XDqZ3
cfq1+DaKDXrZAW9GnN8Ilj5nNcXwnGJXkkYb61VQknrGMxylt3nl7Rp9ofD1yP2L
xgEGnmO+IJU+kIhdhiRW7X417qt6bST9ZvXh9Eywuw/LmDinTng33wOOmDhoQVtx
wM+1gTCZ9zDJog4zp1Delbkw/I+OhRcseWa0Cxeq+a0/bBljaPgNnJgupsigeuam
zMYk13rtvtPp95cVctJmdhlmtzshmEf/zJ4XjbDFQjB0VndoqeiTCGCl0rUbAXB9
5vk1LmFeCwlldsYPWRgxVVZcLzdcg/HVBOTq/MOQG4qH0HFNLwDRFZ83OzQizeK+
y/QnooBq8kF0FtfnJ5arNP/8MQR896YHO8vXlJwRGcdWwecduiUX+nVm/u/C+1Mg
ZwL303A9qxKOkKBZN2mjwpUXuK15XYc7YX4b1RLGOWt3JOm/DmiVleOFI7Buj7cI
VAVn5heFc+sZEkfXOSrZaHrD8hZra1bayPGAxOKL5/Nfgx7B9/ZxUvabea2/zRzV
hYtdaoRsP4sLbJbX0L2wmQDnzVeV8qEv6CmLh4tTTfmvNn0HR+w=
=yGhi
-----END PGP SIGNATURE-----