Bug#383177: wrong symlink after changing current python

2006-08-15 Thread Piotr Ozarowski
Package: fetchmailconf
Version: 6.3.4-4
Severity: important
Tags: patch

I've made a mistake in my previous patch: fetchmailconf will not work
after changing current (default) python version because of hard coded
python version in /usr/bin/fetchmailconf link.

With attached patch applied there will be no need to binNMU after such
changes.

Sorry for my mistake.

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.17.4-grsec
Locale: LANG=pl_PL, LC_CTYPE=pl_PL (charmap=ISO-8859-2)

Versions of packages fetchmailconf depends on:
ii  fetchmail 6.3.4-4SSL enabled POP3, APOP, IMAP mail 
ii  python2.4.3-11   An interactive high-level object-o
ii  python-central0.5.5  register and build utility for Pyt
ii  python-tk 2.4.3-3Tkinter - Writing Tk applications 

fetchmailconf recommends no packages.

-- no debconf information
diff -u fetchmail-6.3.4/debian/patches/00list 
fetchmail-6.3.4/debian/patches/00list
--- fetchmail-6.3.4/debian/patches/00list
+++ fetchmail-6.3.4/debian/patches/00list
@@ -1,2 +1,3 @@
+01_fetchmailconf
 03_imap_experimental
 04_eof_fix
diff -u fetchmail-6.3.4/debian/rules fetchmail-6.3.4/debian/rules
--- fetchmail-6.3.4/debian/rules
+++ fetchmail-6.3.4/debian/rules
@@ -160,8 +160,6 @@
dh_installman -i 
dh_installchangelogs -i
dh_link -i usr/share/man/man1/fetchmail.1.gz 
usr/share/man/man1/fetchmailconf.1.gz
-   dh_link -i -pfetchmailconf 
usr/lib/python$(PYVER)/site-packages/fetchmailconf.py /usr/bin/fetchmailconf
-   chmod +x 
debian/fetchmailconf/usr/lib/python$(PYVER)/site-packages/fetchmailconf.py
dh_pycentral -i
dh_python -i
dh_compress -i
only in patch2:
unchanged:
--- fetchmail-6.3.4.orig/debian/patches/01_fetchmailconf.dpatch
+++ fetchmail-6.3.4/debian/patches/01_fetchmailconf.dpatch
@@ -0,0 +1,40 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 03.fetchmailconf.dpatch by  Hector Garcia [EMAIL PROTECTED]
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: No description.
+
[EMAIL PROTECTED]@
+diff -urNad trunk~/Makefile.am trunk/Makefile.am
+--- trunk~/Makefile.am 2006-04-02 12:19:27.0 +0200
 trunk/Makefile.am  2006-08-15 12:58:31.0 +0200
+@@ -121,7 +121,7 @@
+   dist-tools/manServer.pl
+ 
+ fetchmailconf:
+-  ( echo '#! /bin/sh'  echo 'exec @PYTHON@ @pythondir@/fetchmailconf.py 
$$@' ) $@ || { rm -f $@ ; exit 1; }
++  ( echo '#! /bin/sh'  echo 'exec @PYTHON@ /usr/lib/`pyversions 
-d`/site-packages/fetchmailconf.py $$@' ) $@ || { rm -f $@ ; exit 1; }
+ 
+ FAQ: fetchmail-FAQ.html $(srcdir)/dist-tools/html2txt
+   AWK=$(AWK) $(SHELL) $(srcdir)/dist-tools/html2txt 
$(srcdir)/fetchmail-FAQ.html $@ || { rm -f $@ ; exit 1 ; }
+diff -urNad trunk~/Makefile.in trunk/Makefile.in
+--- trunk~/Makefile.in 2006-04-14 17:42:56.0 +0200
 trunk/Makefile.in  2006-08-15 12:58:53.0 +0200
+@@ -1422,7 +1422,7 @@
+   $(srcdir)/specgen.sh $(VERSION) fetchmail.spec
+ 
+ fetchmailconf:
+-  ( echo '#! /bin/sh'  echo 'exec @PYTHON@ @pythondir@/fetchmailconf.py 
$$@' ) $@ || { rm -f $@ ; exit 1; }
++  ( echo '#! /bin/sh'  echo 'exec @PYTHON@ /usr/lib/`pyversions 
-d`/site-packages/fetchmailconf.py $$@' ) $@ || { rm -f $@ ; exit 1; }
+ 
+ FAQ: fetchmail-FAQ.html $(srcdir)/dist-tools/html2txt
+   AWK=$(AWK) $(SHELL) $(srcdir)/dist-tools/html2txt 
$(srcdir)/fetchmail-FAQ.html $@ || { rm -f $@ ; exit 1 ; }
+diff -urNad trunk~/fetchmailconf.py trunk/fetchmailconf.py
+--- trunk~/fetchmailconf.py2006-03-14 17:10:10.0 +0100
 trunk/fetchmailconf.py 2006-08-15 12:57:27.0 +0200
+@@ -1,5 +1,3 @@
+-#!/usr/bin/env python
+-#
+ # A GUI configurator for generating fetchmail configuration files.
+ # by Eric S. Raymond, [EMAIL PROTECTED],
+ # Matthias Andree [EMAIL PROTECTED]


Bug#383177: [pkg-fetchmail-maint] Bug#383177: wrong symlink after changing current python

2006-08-15 Thread Nico Golde
tags 383177 + pending confirmed
Heyho Piotr,

* Piotr Ozarowski [EMAIL PROTECTED] [2006-08-15 14:33]:
 Package: fetchmailconf
 Version: 6.3.4-4
 Severity: important
 Tags: patch
 
 I've made a mistake in my previous patch: fetchmailconf will not work
 after changing current (default) python version because of hard coded
 python version in /usr/bin/fetchmailconf link.
 
 With attached patch applied there will be no need to binNMU after such
 changes.

Thanks very much!
Hector can you upload as soon as possible?

 Sorry for my mistake.

We all do mistakes :)
Kind regards and thanks very much
Nico
-- 
Nico Golde - JAB: [EMAIL PROTECTED] | GPG: 0x73647CFF
http://www.ngolde.de | http://nion.modprobe.de/blog/
Forget about that mouse with 3/4/5 buttons -
gimme a keyboard with 103/104/105 keys!


pgpHfSn1Qr7cl.pgp
Description: PGP signature