[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: can't patch rpm.c



On Tue, 3 Aug 2004, Enrique Perez-Terron wrote:

> On Tue, 2004-08-03 at 00:04, turhan mehmet wrote:
> > Hi people,
> > 
> > + system("/path/to/mysmallpythonapp.py");       #// my small patch
> 
> First question is, does execution reach this point? If puts() does not
> output anything most likely execution does not reach that spot.
> 
> Try placing a fprintf(stderr, "Hello there\n"); near the beginning of
> main(). Then move it gradually toward where you want it.
> 
> Next, have you done chmod a+x /path/to/mysmallpythonapp.py ?
> What about system("python /path/to/pythonapp.py"); ?

Another possible gotcha (been there... :) is that after rebuilding it with
your modification, you need to be sure you're calling the new binary and
not the one already installed on the system - the newly built binary is
not going to be on your path so you'll have to launch it with './rpm'
instead of just 'rpm'.

	- Panu -



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]