Bug#997756: python-meshplex: FTBFS: sed: no input files

2021-11-30 Thread Dan Bungert
tags 997756 patch
thanks

Hi,

I ran across this FTBFS today and investigated.  Here's a patch.
The forkme sed now appears unneeded, and the other one needs a URL update.

-Dan
diff -Nru python-meshplex-0.15.13/debian/rules python-meshplex-0.15.13/debian/rules
--- python-meshplex-0.15.13/debian/rules	2021-03-16 04:39:31.0 -0600
+++ python-meshplex-0.15.13/debian/rules	2021-11-30 15:35:13.0 -0700
@@ -4,6 +4,7 @@
 #export DH_VERBOSE = 1
 
 export PYBUILD_NAME=meshplex
+latestjs=https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js
 
 %:
 	dh $@ --with python3,sphinxdoc --buildsystem=pybuild
@@ -21,5 +22,4 @@
 
 override_dh_sphinxdoc-indep:
 	dh_sphinxdoc -i
-	grep "https://cdnjs.cloudflare.com/ajax/libs/mathjax/.*/latest.js"; debian/python-meshplex-doc/usr/share/doc/python-meshplex-doc/* -r --files-with-matches | xargs sed "s|src=\"https://cdnjs.cloudflare.com/ajax/libs/mathjax/.*/latest.js|src=\"file://usr/share/javascript/mathjax/unpacked/latest.js|g" -i
-	grep "https://s3.amazonaws.com/github/ribbons/forkme_right_darkblue_121621.png"; debian/python-meshplex-doc/usr/share/doc/python-meshplex-doc/* -r --files-with-matches | xargs sed "s|src=\"https://s3.amazonaws.com/github/ribbons/forkme_right_darkblue_121621.png|src=\"_static/forkme_right_darkblue_121621.png|g" -i
+	grep "$(latestjs)" debian/python-meshplex-doc/usr/share/doc/python-meshplex-doc/* -r --files-with-matches | xargs sed "s|src=\"$(latestjs)|src=\"file://usr/share/javascript/mathjax/unpacked/latest.js|g" -i


Bug#997756: python-meshplex: FTBFS: sed: no input files

2021-10-24 Thread Lucas Nussbaum
Source: python-meshplex
Version: 0.15.13-1
Severity: serious
Justification: FTBFS
Tags: bookworm sid ftbfs
User: lu...@debian.org
Usertags: ftbfs-20211023 ftbfs-bookworm

Hi,

During a rebuild of all packages in sid, your package failed to build
on amd64.


Relevant part (hopefully):
> make[1]: Entering directory '/<>'
> dh_sphinxdoc -i
> grep "https://cdnjs.cloudflare.com/ajax/libs/mathjax/.*/latest.js"; 
> debian/python-meshplex-doc/usr/share/doc/python-meshplex-doc/* -r 
> --files-with-matches | xargs sed 
> "s|src=\"https://cdnjs.cloudflare.com/ajax/libs/mathjax/.*/latest.js|src=\"file://usr/share/javascript/mathjax/unpacked/latest.js|g"
>  -i
> sed: no input files
> make[1]: *** [debian/rules:24: override_dh_sphinxdoc-indep] Error 123


The full build log is available from:
http://qa-logs.debian.net/2021/10/23/python-meshplex_0.15.13-1_unstable.log

A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!

If you reassign this bug to another package, please marking it as 'affects'-ing
this package. See https://www.debian.org/Bugs/server-control#affects

If you fail to reproduce this, please provide a build log and diff it with mine
so that we can identify if something relevant changed in the meantime.