Package: debconf
Version: 1.4.48
Severity: important

/usr/lib/python2.3/site-packages/debconf.py

def runFrontEnd():
    if not os.environ.has_key('DEBIAN_HAS_FRONTEND'):
        os.environ['PERL_DL_NONLAZY']='1'
        os.execv(_frontEndProgram, [_frontEndProgram, sys.executable]+sys.argv)


If my config program is called 'foo'.

The os.execv() will execute the frontend as follows:

os.execv(/usr/share/debconf/frontend,
         [/usr/share/debconf/frontend, /usr/bin/python, 'foo'])

With debug turned on, this is what I see:

$ ./foo
debconf: DbDriver "passwords" warning: could not open
/var/cache/debconf/passwords.dat: Permission denied
debconf (developer): frontend started
debconf (developer): Trying to find a templates file..
debconf (developer): Trying /usr/bin/python.templates
debconf (developer): Trying /usr/share/debconf/templates/python.templates
debconf (developer): Couldn't find a templates file.
debconf (developer): frontend running, package name is
debconf (developer): starting /usr/bin/python ./foo

I believe the proper os.execv() called should be:

os.execv(_frontEndProgram, [_frontEndProgram]+sys.argv)

Which results in the follow debug info:

$ ./foo
debconf: DbDriver "passwords" warning: could not open
/var/cache/debconf/passwords.dat: Permission denied
debconf (developer): frontend started
debconf (developer): Trying to find a templates file..
debconf (developer): Trying ./foo.templates
debconf (developer): I guess it is ./foo.templates
debconf (developer): frontend running, package name is
debconf (developer): starting ./foo
debconf (developer): <-- VERSION 2

-- System Information:
Debian Release: 3.1
  APT prefers unstable
  APT policy: (990, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.6.10-1-686
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

Versions of packages debconf depends on:
ii  debconf-i18n                  1.4.48     full internationalization support 
ii  perl-base                     5.8.4-8    The Pathologically Eclectic Rubbis

-- debconf information:
* debconf/priority: medium
* debconf/frontend: Dialog


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to