[Pkg-javascript-devel] Bug#980291: closed by Debian FTP Masters <ftpmaster at ftp-master.debian.org> (reply to Xavier Guimard <yadd at debian.org>) (Bug#980291: fixed in flot 4.2.1+dfsg-3)

Antonio Terceiro terceiro at debian.org
Mon Jan 18 12:30:46 GMT 2021


Control: reopen -1

The minified files are now there, but they are empty because there is a
typo (f -> j) in debian/rules. I was able to fix that locally with this
patch:

----------------8<----------------8<----------------8<-----------------
diff --git a/debian/rules b/debian/rules
index dbf4bc4..4bc2f33 100755
--- a/debian/rules
+++ b/debian/rules
@@ -6,12 +6,12 @@
 override_dh_auto_build:
        gulp build
        cd source && for f in *.js; do \
-               echo "Minify soure/$$f"; \
-               uglifyjs --source-map -o $${f%%.js}.min.js $$j; \
+               echo "Minify source/$$f"; \
+               uglifyjs --source-map -o $${f%%.js}.min.js $$f; \
        done
        cd dist/es5 && for f in *.js; do \
                echo "Minify dist/es5/$$f"; \
-               uglifyjs --source-map -o $${f%%.js}.min.js $$j; \
+               uglifyjs --source-map -o $${f%%.js}.min.js $$f; \
        done

 get-orig-source:

----------------8<----------------8<----------------8<-----------------

However, after that fix, the build fails, see the attached log.

It seems there are two problems:

- there are some files where uglify reports a parse error (because those
  files contain ES6 code?)

- dh_install fails because it can't find source/*.map
-------------- next part --------------
A non-text attachment was scrubbed...
Name: flot.log.gz
Type: application/gzip
Size: 1698 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-javascript-devel/attachments/20210118/d15b5a33/attachment.gz>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-javascript-devel/attachments/20210118/d15b5a33/attachment.sig>


More information about the Pkg-javascript-devel mailing list