Ethereal-dev: Re: [Ethereal-dev] Another Debian patch: 09_idl2eth.dpatch

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: "W. Borgert" <debacle@xxxxxxxxxx>
Date: Sat, 13 Aug 2005 10:09:49 +0000
On Sat, Aug 13, 2005 at 09:57:23AM +0200, Joerg Mayer wrote:
> Debian contains a patch that basically replaces this file by just doing
> omniidl  -b ethereal_be $1
> without any -p path argument.
> 
> The reason for that can be found at
> http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=158909

Yes, long time ago I reported that bug...

> If I copy the files /usr/lib/python2.1/site-packages/\
> ethereal_{be,gen}.py into the current directory, everything
> works fine.  I believe, that idl2eth should find the .py
> files without the user having to set PYTHONPATH or copy
> files.

And that is really the case :-)

> Maybe we should try to catch that case by trying to run
> omniidl  -b ethereal_be $1

On Debian, the PYTHONPATH is empty by default.  All Python
programs are installed in a way, that the user is not forced to
set the PYTHONPATH, of course.  For more information, see:
http://www.debian.org/doc/packaging-manuals/python-policy/

On systems, where the ethereal_{be,gen}.py files are not on a
Python standard directory (i.e. .../python*/site-packages/),
this will not work.

Btw. please take a look at
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=314833
It advises to call

omniidl -b ethereal_be $*

instead of

omniidl -b ethereal_be $1

so that arguments such -I. are passed to the omniidl backend.
The other stuff is Debian specific.

Cheers,
-- 
W. Borgert <debacle@xxxxxxxxxx>, http://people.debian.org/~debacle/