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

https://piuparts.debian.org/sid/fail/python-meep-lam4_1.7.0-2.log
  Setting up python-meep-lam4 (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-lam4 (--configure):
   installed python-meep-lam4 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-lam4
  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-lam4 source package. The prerm
script also seems to suffer from a similar issue.

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



diff -Nru meep-lam4-1.7.0/debian/changelog meep-lam4-1.7.0/debian/changelog
--- meep-lam4-1.7.0/debian/changelog    2018-12-25 15:30:09.000000000 +0000
+++ meep-lam4-1.7.0/debian/changelog    2019-01-03 02:10:44.000000000 +0000
@@ -1,3 +1,9 @@
+meep-lam4 (1.7.0-2+rpi1) buster-staging; urgency=medium
+
+  * Fix postinst and prerm scripts for python-meep-mpich2 to use correct 
package name.
+
+ -- Peter Michael Green <plugw...@raspbian.org>  Thu, 03 Jan 2019 02:10:44 
+0000
+
 meep-lam4 (1.7.0-2) unstable; urgency=medium
 
   * upload to unstable
diff -Nru meep-lam4-1.7.0/debian/python-meep-lam4.postinst 
meep-lam4-1.7.0/debian/python-meep-lam4.postinst
--- meep-lam4-1.7.0/debian/python-meep-lam4.postinst    2018-12-23 
11:39:19.000000000 +0000
+++ meep-lam4-1.7.0/debian/python-meep-lam4.postinst    2019-01-03 
02:10:44.000000000 +0000
@@ -2,7 +2,7 @@
 set -e
 
 if which pycompile >/dev/null 2>&1; then
-  pycompile -p python-meep
+  pycompile -p python-meep-lam4
 fi
 
 #DEBHELPER#
diff -Nru meep-lam4-1.7.0/debian/python-meep-lam4.prerm 
meep-lam4-1.7.0/debian/python-meep-lam4.prerm
--- meep-lam4-1.7.0/debian/python-meep-lam4.prerm       2018-12-23 
11:39:19.000000000 +0000
+++ meep-lam4-1.7.0/debian/python-meep-lam4.prerm       2019-01-03 
02:10:44.000000000 +0000
@@ -2,7 +2,7 @@
 set -e
 
 if which pyclean >/dev/null 2>&1; then
-  pyclean -p python-meep 
+  pyclean -p python-meep-lam4
 else
   dpkg -L python-meep | grep \.py$ | while read file
   do  

Reply via email to