[Debian-science-sagemath] Help needed to backport jupyter-notebook (Was: Help needed for backporting node-esprima (Was: Backporting sagemath))

Andreas Tille tille at debian.org
Fri Mar 24 13:13:55 UTC 2017


Hi Tobias,

On Fri, Mar 24, 2017 at 12:37:58AM +0000, Tobias Hansen wrote:
> maybe try jquery from stretch? It's one of the few unversioned
> Build-Depends and it seems to be an important dependency. And the
> version is quite different.

I tried a local backport of jquery and added versioned dependencies
like this:

python-modules/jupyter-notebook(debian/jessie-backports) $ git diff
diff --git a/debian/control b/debian/control
index 64705aa..5c3f5b5 100644
--- a/debian/control
+++ b/debian/control
@@ -46,7 +46,7 @@ Build-Depends: debhelper (>= 10),
                libjs-codemirror,
                libjs-es6-promise (>= 1.0),
                fonts-font-awesome (>= 4.2),
-               libjs-jquery,
+               libjs-jquery (>= 3.1.1-2~),
                libjs-jquery-ui (>= 1.12),
                libjs-marked (>= 0.3),
                libjs-mathjax (>= 2.5),
@@ -75,7 +75,7 @@ Depends: ${misc:Depends},
          libjs-codemirror,
          libjs-es6-promise (>= 1.0),
          fonts-font-awesome (>= 4.2),
-         libjs-jquery,
+         libjs-jquery (>= 3.1.1-2~),
          libjs-jquery-ui (>= 1.12),
          libjs-marked (>= 0.3),
          libjs-mathjax (>= 2.5),
@@ -111,7 +111,7 @@ Depends: ${misc:Depends},
          libjs-codemirror,
          libjs-es6-promise (>= 1.0),
          fonts-font-awesome (>= 4.2),
-         libjs-jquery,
+         libjs-jquery (>= 3.1.1-2~),
          libjs-jquery-ui (>= 1.12),
          libjs-marked (>= 0.3),
          libjs-mathjax (>= 2.5),


Unfortunately the problem below persists. :-(  Any other ideas?

 
> That orig tarballs are different from what's in pristine-tar branches
> may be related to the fact that gbp does not use existing pristine-tar
> branches by default but creates a new tarball from the upstream branch
> unless specified otherwise in a gbp.conf file.

Hmmm, IMHO each developer should make really sure that the *used*
tarball is commited as pristine-tar.  To make sure Debian Med policy
specifies explicitly

    gbp import-orig --pristine-tar your_upstream_tarball

I wished all team member would respect this since it saves a lot of
useless work for others.

Kind regards

      Andreas.

PS: Could we please agree upon inline quoting on this list?  Thanks. :-)
 
> On 03/23/2017 12:05 PM, Andreas Tille wrote:
> > Hi,
> > 
> > On Fri, Mar 17, 2017 at 02:34:59PM +0000, Tobias Hansen wrote:
> >> I guess that means it requires nodejs >= 4. At least it's something you
> >> could try.
> > 
> > I confirm that using nodejs >=4 solved the issue in node-esprima.
> >  
> >> On 03/08/2017 02:49 PM, Andreas Tille wrote:
> >>> in my sagemath backporting effort im struck with one leaf of the
> >>> dependency tree which is
> >>>
> >>>    python-sagenb-export
> >>>     -> jupyter-notebook
> > 
> > Now I'm down here.  The build fails with:
> > 
> > ...
> > running jsdeps
> > bower dependencies up to date
> >> lessc --source-map --source-map-basepath=/build/jupyter-notebook-4.2.3 --include-path=/build/jupyter-notebook-4.2.3/notebook/static /build/jupyter-notebook-4.2.3/notebook/static/style/ipython.less notebook/static/style/ipython.min.css
> > FileError: '../../components/codemirror/lib/codemirror.css' wasn't found in /build/jupyter-notebook-4.2.3/notebook/static/notebook/less/highlight-refs.less on line 5, column 1:
> > 4 */
> > 5 @import (less) "../../components/codemirror/lib/codemirror.css";
> > 6 
> > 
> > rebuilding js and css failed. The following required files are missing: ['notebook/static/notebook/js/main.min.js', 'notebook/static/tree/js/main.min.js', 'notebook/static/edit/js/main.min.js', 'notebook/static/terminal/js/main.min.js', 'notebook/static/auth/js/main.min.js', 'notebook/static/style/ipython.min.css', 'notebook/static/style/style.min.css']
> > Traceback (most recent call last):
> >   File "setup.py", line 200, in <module>
> >     main()
> >   File "setup.py", line 197, in main
> >     setup(**setup_args)
> >   File "/usr/lib/python2.7/distutils/core.py", line 151, in setup
> >     dist.run_commands()
> >   File "/usr/lib/python2.7/distutils/dist.py", line 953, in run_commands
> >     self.run_command(cmd)
> >   File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
> >     cmd_obj.run()
> >   File "/usr/lib/python2.7/distutils/command/build.py", line 128, in run
> >     self.run_command(cmd_name)
> >   File "/usr/lib/python2.7/distutils/cmd.py", line 326, in run_command
> >     self.distribution.run_command(command)
> >   File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
> >     cmd_obj.run()
> >   File "/build/jupyter-notebook-4.2.3/setupbase.py", line 549, in run
> >     raise e
> > subprocess.CalledProcessError: Command '['lessc', '--source-map', '--source-map-basepath=/build/jupyter-notebook-4.2.3', '--include-path=/build/jupyter-notebook-4.2.3/notebook/static', '/build/jupyter-notebook-4.2.3/notebook/static/style/ipython.less', 'notebook/static/style/ipython.min.css']' returned non-zero exit status 1
> > E: pybuild pybuild:283: build: plugin distutils failed with: exit code=1: /usr/bin/python setup.py build 
> > dh_auto_build: pybuild --build --test-nose -i python{version} -p 2.7 returned exit code 13
> > 
> > 
> >>> I admit I do not have the slightest idea how to fix this and thus any
> >>> help is welcome.
> > 
> > Same as before.  Any idea how to get the minimized versions of the
> > existing files ... or rather why it builds in stretch but not in Jessie.
> > 
> > Most of its Build-Depends are just in backports.  prompt-toolkit is
> > missing yet since I was trapped by finding a wrong pristine-tar inside
> > the Git archive.  Since this was happening from time to time I really
> > wonder how that can happen more frequently than I expected ...
> > 
> > Kind regards
> > 
> >       Andreas.
> > 
> 
> 

-- 
http://fam-tille.de



More information about the Debian-science-sagemath mailing list