| Summary: | Blindly assume there's ${PYTHONVERS}-config command | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | yegle <cnyegle> |
| Component: | newt | Assignee: | Miroslav Lichvar <mlichvar> |
| Status: | CLOSED UPSTREAM | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | rawhide | CC: | mlichvar |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2013-03-20 14:46:52 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
Thanks for the report. This should be now fixed in git, it looks for python-config if $ver-config is not found. http://git.fedorahosted.org/cgit/newt.git/commit/?id=2da168987a799b2eb141e3b53afe542b26db6e8c |
During configure, newt will blindly assume there's ${PYTHONVERS}-config command without testing. version: newt-0.52.14 In Makefile.in, about line 79: _snackmodule.so: snackmodule.c $(LIBNEWTSH) [ -n "$(PYTHONVERS)" ] && for ver in $(PYTHONVERS) ; do \ mkdir -p $$ver ;\ PCFLAGS=`$$ver-config --cflags`; \ PIFLAGS=`$$ver-config --includes`; \ PLDFLAGS=`$$ver-config --ldflags`; \ PLFLAGS=`$$ver-config --libs`; \ $(CC) $(CPPFLAGS) $$PIFLAGS $$PCFLAGS -c -o $$ver/snackmodule.o snackmodule.c ;\ $(CC) --shared $$PLDFLAGS $$PLFLAGS $(LDFLAGS) -o $$ver/_snackmodule.so $$ver/snackmodule.o -L. -lnewt $(LIBS);\ done || : touch $@ The Python version recognized by the configure script is `python2.7`, but there's only `python-config-2.7` command in my system (Gentoo Linux), no `python2.7-config` available. In this situation, I suggest we should test if `python2.7-config` exists. If not, we should provide a warning information and use `python-config` instead.