Bug#408277: pyftpd: installation fails: file does not exist: /usr/share/pyftpd/log_simple_config.py

2007-02-25 Thread José Parrella
The problem is that pycentral tries to install the _config.py files,
which are symlinks to files in /etc/pyftpd and aren't configured yet
(that is, they're suffixed .dpkg-new)

pycentral can be called with a special -x option which excludes modules.
The exclude pattern could be 'config.py' (since 'config' excludes real
files) However this approach didn't work for me (and dh_pycentral
doesn't support excluding, for some reason)

If you change the direction of the symlinks, however, you can get an
installable package. That means you'll get real packages under
/usr/share, and symlinks in /etc. I'm not really sure if this is
Policy-compliant, but you should also state those files as conffiles.

The first approach (excluding the files from dh_pycentral) seemed the
right one, so if someone with more experience with Python than me could
check it, that'd be great. You'll find attached a brief debdiff. Thanks
for your time and work.

Jose

-- 
José Miguel Parrella Romero - Debian Sid, k2.6.18
Escuela de Computación - Facultad de Ciencias
Universidad Central de Venezuela - ucvlug.info
diff -Nru /tmp/iECTXulLpd/pyftpd-0.8.4.4/debian/links /tmp/8ERXYI1nYH/pyftpd-0.8.4.4/debian/links
--- /tmp/iECTXulLpd/pyftpd-0.8.4.4/debian/links	2001-12-02 11:36:14.0 -0400
+++ /tmp/8ERXYI1nYH/pyftpd-0.8.4.4/debian/links	2007-02-25 05:56:35.0 -0400
@@ -1,13 +1,13 @@
-/etc/pyftpd/auth_PAM_config.py /usr/share/pyftpd/auth_PAM_config.py
-/etc/pyftpd/auth_anonymous_config.py /usr/share/pyftpd/auth_anonymous_config.py
-/etc/pyftpd/ban_config.py /usr/share/pyftpd/ban_config.py
-/etc/pyftpd/cwd_config.py /usr/share/pyftpd/cwd_config.py
-/etc/pyftpd/auth_db_config.py /usr/share/pyftpd/auth_db_config.py
-/etc/pyftpd/auth_file_config.py /usr/share/pyftpd/auth_file_config.py
-/etc/pyftpd/iplimit_config.py /usr/share/pyftpd/iplimit_config.py
-/etc/pyftpd/limit_config.py /usr/share/pyftpd/limit_config.py
-/etc/pyftpd/speed_config.py /usr/share/pyftpd/speed_config.py
-/etc/pyftpd/fs_chroot_config.py /usr/share/pyftpd/fs_chroot_config.py
-/etc/pyftpd/config.py /usr/share/pyftpd/config.py
-/etc/pyftpd/perm_acl_config.py /usr/share/pyftpd/perm_acl_config.py
-/etc/pyftpd/log_simple_config.py /usr/share/pyftpd/log_simple_config.py
+/usr/share/pyftpd/auth_PAM_config.py /etc/pyftpd/auth_PAM_config.py
+/usr/share/pyftpd/auth_anonymous_config.py /etc/pyftpd/auth_anonymous_config.py
+/usr/share/pyftpd/ban_config.py /etc/pyftpd/ban_config.py
+/usr/share/pyftpd/cwd_config.py /etc/pyftpd/cwd_config.py
+/usr/share/pyftpd/auth_db_config.py /etc/pyftpd/auth_db_config.py
+/usr/share/pyftpd/auth_file_config.py /etc/pyftpd/auth_file_config.py
+/usr/share/pyftpd/iplimit_config.py /etc/pyftpd/iplimit_config.py
+/usr/share/pyftpd/limit_config.py /etc/pyftpd/limit_config.py
+/usr/share/pyftpd/speed_config.py /etc/pyftpd/speed_config.py
+/usr/share/pyftpd/fs_chroot_config.py /etc/pyftpd/fs_chroot_config.py
+/usr/share/pyftpd/config.py /etc/pyftpd/config.py
+/usr/share/pyftpd/perm_acl_config.py /etc/pyftpd/perm_acl_config.py
+/usr/share/pyftpd/log_simple_config.py /etc/pyftpd/log_simple_config.py
diff -Nru /tmp/iECTXulLpd/pyftpd-0.8.4.4/debian/rules /tmp/8ERXYI1nYH/pyftpd-0.8.4.4/debian/rules
--- /tmp/iECTXulLpd/pyftpd-0.8.4.4/debian/rules	2006-11-06 12:47:00.0 -0400
+++ /tmp/8ERXYI1nYH/pyftpd-0.8.4.4/debian/rules	2007-02-25 05:56:54.0 -0400
@@ -44,8 +44,8 @@
 	#$(MAKE) install DESTDIR=`pwd`/debian/tmp
 	mkdir -p debian/pyftpd/usr/share/pyftpd
 	cp *.py debian/pyftpd/usr/share/pyftpd/
-	mv debian/pyftpd/usr/share/pyftpd/*_config.py debian/pyftpd/etc/pyftpd/
-	mv debian/pyftpd/usr/share/pyftpd/config.py debian/pyftpd/etc/pyftpd/
+#	mv debian/pyftpd/usr/share/pyftpd/*_config.py debian/pyftpd/etc/pyftpd/
+#	mv debian/pyftpd/usr/share/pyftpd/config.py debian/pyftpd/etc/pyftpd/
 	cp debian/pyftpd.sh debian/pyftpd/usr/sbin/pyftpd
 	#cp passwd debian/tmp/etc/pyftpd/
 
@@ -77,7 +77,6 @@
 	# You may want to make some executables suid here.
 #	dh_suidregister
 	dh_pycentral
-	dh_python
 	dh_installdeb
 #	dh_perl
 	dh_gencontrol


Bug#408277: pyftpd: installation fails: file does not exist: /usr/share/pyftpd/log_simple_config.py

2007-02-25 Thread Radovan Garabik
On Sun, Feb 25, 2007 at 06:04:40AM -0400, José Parrella wrote:
 The problem is that pycentral tries to install the _config.py files,
 which are symlinks to files in /etc/pyftpd and aren't configured yet
 (that is, they're suffixed .dpkg-new)

However, I am unable to reproduce the bug - I tried with python-central
and pyftpd purged, with old pyftpd conffies left over, etc...
It manifested itself only in one case, when I experimented with symlinks in
/etc/pyftpd/ and left over the symlinks and reinstalled the package. 
I have to admit am lost at this point.

 
 pycentral can be called with a special -x option which excludes modules.
 The exclude pattern could be 'config.py' (since 'config' excludes real
 files) However this approach didn't work for me (and dh_pycentral
 doesn't support excluding, for some reason)
 
 If you change the direction of the symlinks, however, you can get an
 installable package. That means you'll get real packages under
 /usr/share, and symlinks in /etc. I'm not really sure if this is
 Policy-compliant, but you should also state those files as conffiles.

that is contrary to the Policy, section 10.7.2:
Any configuration files created or used by your package must reside in /etc
If your package creates or uses configuration files outside of /etc, and it
is not feasible to modify the package to use /etc directly, put the files in 
/etc and create symbolic links to those files from the location that the 
package requires


 
 The first approach (excluding the files from dh_pycentral) seemed the
 right one, so if someone with more experience with Python than me could
 check it, that'd be great. You'll find attached a brief debdiff. Thanks
 for your time and work.
 

What if I made pyftpd pre-depend on python-central? I think it might help.


-- 
 ---
| Radovan Garabík http://kassiopeia.juls.savba.sk/~garabik/ |
| __..--^^^--..__garabik @ kassiopeia.juls.savba.sk |
 ---
Antivirus alert: file .signature infected by signature virus.
Hi! I'm a signature virus! Copy me into your signature file to help me spread!



Bug#408277: pyftpd: installation fails: file does not exist: /usr/share/pyftpd/log_simple_config.py

2007-01-24 Thread Lucas Nussbaum
Package: pyftpd
Version: 0.8.4.4
Severity: serious
Usertags: grid5000 piuparts

Hi,

During a piuparts run over all the packages in etch, I ran into a
problem with your package:

# apt-get install pyftpd
Reading package lists... Done
Building dependency tree... Done
The following extra packages will be installed:
  mime-support python python-central python-minimal python2.4 python2.4-minimal
Suggested packages:
  python-doc python-profiler python2.4-doc
Recommended packages:
  file python-tk
The following NEW packages will be installed:
  mime-support pyftpd python python-central python-minimal python2.4 
python2.4-minimal
0 upgraded, 7 newly installed, 0 to remove and 0 not upgraded.
Need to get 4000kB of archives.
After unpacking 13.8MB of additional disk space will be used.
Do you want to continue [Y/n]? 
Get:1 http://idpot.grenoble.grid5000.fr etch/main mime-support 3.39-1 [30.9kB]
Get:2 http://idpot.grenoble.grid5000.fr etch/main python2.4-minimal 2.4.4-1 
[900kB]
Get:3 http://idpot.grenoble.grid5000.fr etch/main python2.4 2.4.4-1 [2848kB]
Get:4 http://idpot.grenoble.grid5000.fr etch/main python-minimal 2.4.4-2 
[12.2kB]
Get:5 http://idpot.grenoble.grid5000.fr etch/main python 2.4.4-2 [141kB]
Get:6 http://idpot.grenoble.grid5000.fr etch/main python-central 0.5.12 [31.9kB]
Get:7 http://idpot.grenoble.grid5000.fr etch/main pyftpd 0.8.4.4 [34.8kB]
Fetched 4000kB in 0s (7772kB/s)
Selecting previously deselected package mime-support.
(Reading database ... 12450 files and directories currently installed.)
Unpacking mime-support (from .../mime-support_3.39-1_all.deb) ...
Selecting previously deselected package python2.4-minimal.
Unpacking python2.4-minimal (from .../python2.4-minimal_2.4.4-1_i386.deb) ...
Selecting previously deselected package python2.4.
Unpacking python2.4 (from .../python2.4_2.4.4-1_i386.deb) ...
Selecting previously deselected package python-minimal.
Unpacking python-minimal (from .../python-minimal_2.4.4-2_all.deb) ...
Selecting previously deselected package python.
Unpacking python (from .../python_2.4.4-2_all.deb) ...
Selecting previously deselected package python-central.
Unpacking python-central (from .../python-central_0.5.12_all.deb) ...
Selecting previously deselected package pyftpd.
Unpacking pyftpd (from .../pyftpd_0.8.4.4_all.deb) ...
Setting up mime-support (3.39-1) ...

Setting up python2.4-minimal (2.4.4-1) ...
Linking and byte-compiling packages for runtime python2.4...
file does not exist: /usr/share/pyftpd/log_simple_config.py
file does not exist: /usr/share/pyftpd/speed_config.py
file does not exist: /usr/share/pyftpd/fs_chroot_config.py
file does not exist: /usr/share/pyftpd/config.py
file does not exist: /usr/share/pyftpd/auth_file_config.py
file does not exist: /usr/share/pyftpd/auth_PAM_config.py
file does not exist: /usr/share/pyftpd/auth_db_config.py
file does not exist: /usr/share/pyftpd/limit_config.py
file does not exist: /usr/share/pyftpd/auth_anonymous_config.py
file does not exist: /usr/share/pyftpd/perm_acl_config.py
file does not exist: /usr/share/pyftpd/iplimit_config.py
file does not exist: /usr/share/pyftpd/cwd_config.py
file does not exist: /usr/share/pyftpd/ban_config.py
pycentral: pycentral rtinstall: package pyftpd: error byte-compiling files (50)
pycentral rtinstall: package pyftpd: error byte-compiling files (50)
dpkg: error processing python2.4-minimal (--configure):
 subprocess post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of python2.4:
 python2.4 depends on python2.4-minimal (= 2.4.4-1); however:
  Package python2.4-minimal is not configured yet.
dpkg: error processing python2.4 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of python-minimal:
 python-minimal depends on python2.4-minimal (= 2.4.4); however:
  Package python2.4-minimal is not configured yet.
dpkg: error processing python-minimal (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of python:
 python depends on python2.4 (= 2.4.4); however:
  Package python2.4 is not configured yet.
 python depends on python-minimal (= 2.4.4-2); however:
  Package python-minimal is not configured yet.
dpkg: error processing python (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of python-central:
 python-central depends on python (= 2.3.5-7); however:
  Package python is not configured yet.
dpkg: error processing python-central (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of pyftpd:
 pyftpd depends on python-central (= 0.5); however:
  Package python-central is not configured yet.
 pyftpd depends on python; however:
  Package python is not configured yet.
dpkg: error processing pyftpd (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 python2.4-minimal