Package: python-meep-mpich2
Version: 1.7.0-2
Severity: serious

https://piuparts.debian.org/sid/fail/python-meep-mpich2_1.7.0-2.log

Setting up python-meep-mpich2 (1.7.0-2) ...
   dpkg-query: package 'python-meep' is not installed
   Use dpkg --contents (= dpkg-deb --contents) to list archive files contents.
   Traceback (most recent call last):
     File "/usr/bin/pycompile", line 289, in <module>
       main()
     File "/usr/bin/pycompile", line 262, in main
       options.force, options.optimize, e_patterns)
     File "/usr/bin/pycompile", line 154, in compile
       for fn, versions_to_compile in filter_files(files, e_patterns, versions):
     File "/usr/bin/pycompile", line 109, in filter_files
       for fn in files:
     File "/usr/share/python/debpython/files.py", line 77, in filter_out_ext
       for fn in files:
     File "/usr/share/python/debpython/namespace.py", line 77, in 
add_namespace_files
       for fn in files:
     File "/usr/share/python/debpython/files.py", line 69, in filter_public
       for fn in files:
     File "/usr/share/python/debpython/files.py", line 53, in from_package
       raise Exception("cannot get content of %s" % package_name)
   Exception: cannot get content of python-meep
   dpkg: error processing package python-meep-mpich2 (--configure):
    installed python-meep-mpich2 package post-installation script subprocess 
returned error exit status 1
   Processing triggers for libc-bin (2.28-4) ...
   Errors were encountered while processing:
    python-meep-mpich2
   E: Sub-process /usr/bin/dpkg returned an error code (1)
After some investigating it looks like this was caused by failing to update the 
package name in the postinst script when copying the python changes from the 
plain meep source package to the meep-mpich2 source package. The prerm script 
also seems to suffer from a similar issue.

While working on the above issues I also discovered that the clean target did 
not clean up properly, so I fixed that too.

A debdiff fixing that is attatched, no intent to NMU.


diff -Nru meep-mpich2-1.7.0/debian/changelog meep-mpich2-1.7.0/debian/changelog
--- meep-mpich2-1.7.0/debian/changelog  2018-12-25 15:29:02.000000000 +0000
+++ meep-mpich2-1.7.0/debian/changelog  2019-01-03 01:21:28.000000000 +0000
@@ -1,3 +1,9 @@
+meep-mpich2 (1.7.0-2+rpi1) buster-staging; urgency=medium
+
+  * Fix postinst script for python-meep-mpich2 to use correct package name.
+
+ -- Peter Michael Green <plugw...@raspbian.org>  Thu, 03 Jan 2019 01:21:28 
+0000
+
 meep-mpich2 (1.7.0-2) unstable; urgency=medium
 
   * upload to unstable
diff -Nru meep-mpich2-1.7.0/debian/python-meep-mpich2.postinst 
meep-mpich2-1.7.0/debian/python-meep-mpich2.postinst
--- meep-mpich2-1.7.0/debian/python-meep-mpich2.postinst        2018-12-23 
11:41:15.000000000 +0000
+++ meep-mpich2-1.7.0/debian/python-meep-mpich2.postinst        2019-01-03 
01:19:17.000000000 +0000
@@ -2,7 +2,7 @@
 set -e
 
 if which pycompile >/dev/null 2>&1; then
-  pycompile -p python-meep
+  pycompile -p python-meep-mpich2
 fi
 
 #DEBHELPER#
diff -Nru meep-mpich2-1.7.0/debian/python-meep-mpich2.prerm 
meep-mpich2-1.7.0/debian/python-meep-mpich2.prerm
--- meep-mpich2-1.7.0/debian/python-meep-mpich2.prerm   2018-12-23 
11:41:15.000000000 +0000
+++ meep-mpich2-1.7.0/debian/python-meep-mpich2.prerm   2019-01-03 
01:21:28.000000000 +0000
@@ -2,7 +2,7 @@
 set -e
 
 if which pyclean >/dev/null 2>&1; then
-  pyclean -p python-meep 
+  pyclean -p python-meep-mpich2
 else
   dpkg -L python-meep | grep \.py$ | while read file
   do  
diff -Nru meep-mpich2-1.7.0/debian/rules meep-mpich2-1.7.0/debian/rules
--- meep-mpich2-1.7.0/debian/rules      2018-12-23 15:24:08.000000000 +0000
+++ meep-mpich2-1.7.0/debian/rules      2019-01-03 01:21:28.000000000 +0000
@@ -50,6 +50,7 @@
        rm -f meep_mpi.pc
        rm -f src/libmeep_mpi.la
        dh_clean
+       rm -f scheme/meep_enum_renames.i scheme/meep_renames.i 
scheme/meep_swig_bug_workaround.i scheme/meep_wrap.cxx src/sphere-quad.h 
src/step_generic_stride1.cpp
 
 override_dh_auto_test:
        echo ${arch}

Reply via email to