Skip to Content.
Sympa Menu

sm-discuss - Re: [SM-Discuss] rpm spell

sm-discuss AT lists.ibiblio.org

Subject: Public SourceMage Discussion List

List archive

Chronological Thread  
  • From: Craig Dyke <grail AT westnet.com.au>
  • To: sm-discuss AT lists.ibiblio.org
  • Subject: Re: [SM-Discuss] rpm spell
  • Date: Wed, 02 Feb 2005 20:38:37 +0000


In case anyone is interested, the only way I was able to cast rpm
was to change the following in the BUILD file:

export CPPFLAGS="$CPPFLAGS -I/usr/include/python$(installed_version Python| cut -c 1-3)"

to:

export CPPFLAGS="$CPPFLAGS -I/usr/include/python2.4"

Craig

Craig Dyke wrote:

Arwed

It appears that this is set in the configure script but I am unsure as to which
piece I should change.

Any suggestions?

Craig

Arwed von Merkatz wrote:

On Thu, Jan 27, 2005 at 12:54:15AM +0000, Craig Dyke wrote:

Has anyone else had problems with the rpm spell?

It seems to always fail when compiling the python portion for me
(see attached log)

Any advice would be good?
I am using test grimoire and devel sorcery.


Seems like rpm doesn't check where python is and instead assumes its
headers are in /usr/include/python (which they aren't):
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I. -I../lib -I../rpmdb -I../rpmio -I../beecrypt -I../popt -I/usr/include/pythonauto -I../elfutils/libelf -I../zlib -I/usr/include/python -O -march=athlon -mmmx -m3dnow -pipe -DPIC -fPIC -O3 -D_GNU_SOURCE -D_REENTRANT -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wno-char-subscripts -c rpmmodule.c -MT rpmmodule.lo -MD -MP -MF .deps/rpmmodule.TPlo -fPIC -DPIC -o .libs/rpmmodule.lo
rpmmodule.c:7:20: Python.h: No such file or directory

changing the Makefile(.in) in that directory to use
/usr/include/python2.4 instead of /usr/include/python should fix it.



_______________________________________________
SM-Discuss mailing list
SM-Discuss AT lists.ibiblio.org
http://lists.ibiblio.org/mailman/listinfo/sm-discuss






Archive powered by MHonArc 2.6.24.

Top of Page