[ python-Bugs-851020 ] Missing BuildRequires in src rpm specfile
SourceForge.net
noreply at sourceforge.net
Tue Dec 23 14:16:54 EST 2003
Bugs item #851020, was opened at 2003-11-28 22:17
Message generated for change (Comment added) made by akuchling
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=851020&group_id=5470
Category: Build
Group: Python 2.3
>Status: Closed
>Resolution: Fixed
Priority: 5
Submitted By: Michael P. Soulier (msoulier)
Assigned to: Nobody/Anonymous (nobody)
Summary: Missing BuildRequires in src rpm specfile
Initial Comment:
I'm trying to build Python 2.3.2 on Fedora Core 1. The
configure runs without errors, but I then get an odd
error about pyconfig.h during the build.
gcc -pthread -c -fno-strict-aliasing -DNDEBUG -g -O3
-Wall -Wstrict-prototypes -I. -I./Include
-DPy_BUILD_CORE -o Objects/dictobject.o
Objects/dictobject.c
In file included from Objects/dictobject.c:10:
Include/Python.h:8:22: pyconfig.h: No such file or
directory
Include/Python.h:21:2: #error "limits.h is required by
std C -- why isn't HAVE_LIMITS_H defined?"
In file included from Include/Python.h:48,
from Objects/dictobject.c:10:
Include/pyport.h:4:48: pyconfig.h: No such file or
directory
Include/pyport.h:536:2: #error "could not set LONG_MAX
in pyport.h"
Objects/dictobject.c: In function `dictresize':
Objects/dictobject.c:477: warning: implicit declaration
of function `free'
make: *** [Objects/dictobject.o] Error 1
[msoulier at tigger Python-2.3.2]$ find . -name pyconfig.h
./Mac/Include/pyconfig.h
./PC/pyconfig.h
./PC/os2emx/pyconfig.h
./PC/os2vacpp/pyconfig.h
./RISCOS/pyconfig.h
./pyconfig.h
I'm not sure what the issue is here.
----------------------------------------------------------------------
>Comment By: A.M. Kuchling (akuchling)
Date: 2003-12-23 14:16
Message:
Logged In: YES
user_id=11375
Closed per jafo's request.
----------------------------------------------------------------------
Comment By: Sean Reifschneider (jafo)
Date: 2003-12-07 20:22
Message:
Logged In: YES
user_id=81797
Please go ahead and close this.
See <a
href="http://sourceforge.net/tracker/index.php?func=detail&aid=855999&group_id=5470&atid=305470">patch
#855999</a>, which includes a patch for the .spec file which
seems to work with Fedora Core 1.
I've also uploaded a new SRPM and Fedora binaries to the FTP
site, and will be updating the web-page in a bit.
Sean
----------------------------------------------------------------------
Comment By: Sean Reifschneider (jafo)
Date: 2003-12-04 20:08
Message:
Logged In: YES
user_id=81797
I guess I can't attach files to this bug. I've uploaded the
patch and the patched .spec file to
ftp://ftp.tummy.com/pub/tummy/Python/patches/
Let me know how this looks, and I'll either fix it or submit
it as a patch.
Thanks,
Sean
----------------------------------------------------------------------
Comment By: Sean Reifschneider (jafo)
Date: 2003-12-04 20:03
Message:
Logged In: YES
user_id=81797
Ugh, sorry, I wasn't logged in. The last message was from me.
Sean
----------------------------------------------------------------------
Comment By: Nobody/Anonymous (nobody)
Date: 2003-12-04 20:02
Message:
Logged In: NO
I'm attaching a patch and a patched version of the spec-file
which adds the tcl and tk prerequesites for building if
tkinter is enabled. I'm running into a problem when
building with these on Fedora, but I'm not sure if it's an
environment problem or a .spec problem. I'd appreciate
feedback on wether this spec file works for anyone.
Sean
----------------------------------------------------------------------
Comment By: Martin v. Löwis (loewis)
Date: 2003-12-04 02:20
Message:
Logged In: YES
user_id=21627
Can you contribute a patch for the spec files (in Misc/RPM)?
----------------------------------------------------------------------
Comment By: Michael P. Soulier (msoulier)
Date: 2003-12-03 21:18
Message:
Logged In: YES
user_id=470843
> Building now...
It worked! Cool.
Changing Summary:
Was: building on Fedora Core 1
Is: Missing BuildRequires in src rpm specfile
----------------------------------------------------------------------
Comment By: Michael P. Soulier (msoulier)
Date: 2003-12-03 20:53
Message:
Logged In: YES
user_id=470843
> Make sure you have the tcl-devel and tk-devel RPMs installed.
I did not have tcl-devel installed. I'll try again now.
Note that if tk-devel and tcl-devel are required to build
this src rpm, then they should be listed in the
BuildRequires section of the specfile.
Building now...
----------------------------------------------------------------------
Comment By: Anthony Baxter (anthonybaxter)
Date: 2003-12-03 17:59
Message:
Logged In: YES
user_id=29957
Note that I build the 23-maint and HEAD on FC1 frequently,
and haven't had any problems like this at all.
Make sure you have the tcl-devel and tk-devel RPMs installed.
----------------------------------------------------------------------
Comment By: Martin v. Löwis (loewis)
Date: 2003-12-03 01:49
Message:
Logged In: YES
user_id=21627
It would be good if you could add print statements to
setup.py:detect_tkinter, to find out why it gives up.
Alternatively, you can edit Modules/Setup to force _tkinter
being built.
----------------------------------------------------------------------
Comment By: Michael P. Soulier (msoulier)
Date: 2003-12-02 20:20
Message:
Logged In: YES
user_id=470843
Well, this is quite odd, but I rebuilt and the error didn't
happen this time. I'm not sure why.
However, I'm having a problem getting Tkinter built. I'm
trying to port the src rpm currently, but when I do the
--rebuild, I get this in post-processing.
RPM build errors:
File not found by glob:
/var/tmp/python2.3-2.3.2-root/usr/lib/python2.3/lib-dynload/_tkinter.so*
Looks like it was never built.
[msoulier at tigger msoulier]$ cd rpms
[msoulier at tigger rpms]$ cd BUILD/
[msoulier at tigger BUILD]$ ls
Python-2.3.2
[msoulier at tigger BUILD]$ find Python-2.3.2/ -name "_tkinter*"
Python-2.3.2/Modules/_tkinter.c
Python-2.3.2/PC/os2vacpp/_tkinter.def
Python-2.3.2/PCbuild/_tkinter.dsp
I logged the entire build, if you'd like me to attach it.
[msoulier at tigger msoulier]$ rpm -q tk-devel
tk-devel-8.3.5-93
Thanks.
----------------------------------------------------------------------
Comment By: Martin v. Löwis (loewis)
Date: 2003-12-01 16:43
Message:
Logged In: YES
user_id=21627
Can you pleas invoke the gcc command line manually, passing
-v to gcc? This looks like a bug in the gcc installation: If
-I. is given, it should find ./pyconfig.h.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=851020&group_id=5470
More information about the Python-bugs-list
mailing list