Bug 98698

Summary: Makefile and python compilation
Product: [Retired] Red Hat Linux Reporter: Brian Long <brilong>
Component: rhplAssignee: Jeremy Katz <katzj>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 9   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2003-12-16 18:19:58 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Brian Long 2003-07-07 17:37:42 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3) Gecko/20030314

Description of problem:
Makefile.inc defines PYTHON as python2.2, but Makefile explicitly calls
"python".  This means the byte-compiles will not work when recompiling rhpl on
an older release like RH 7.3 (since "python" is python 1.5).  A simple patch to
the Makefile fixes this problem.

Version-Release number of selected component (if applicable):
rhpl-0.93-1

How reproducible:
Always

Steps to Reproduce:
1. Extract rhpl src RPM.
2. Try to rebuild on Red Hat 7.3.
3. Compiling comps.py and other python code will fail due to "python" command
calling python 1.5 instead of 2.2.
    

Actual Results:  When I patched the Makefile, I was able to properly build the
rhpl RPM including all .pyc files.

Additional info:

--- rhpl-0.93/Makefile.orig     Mon Jul  7 10:20:18 2003
+++ rhpl-0.93/Makefile  Mon Jul  7 10:20:45 2003
@@ -25,7 +25,7 @@

        for d in $(SUBDIRS); do make -C $$d install; done

-       python -c "import compileall;
compileall.compile_dir('$(DESTDIR)/$(PYDIR)', 3, '$(PYDIR)', 1)"
+       $(PYTHON) -c "import compileall;
compileall.compile_dir('$(DESTDIR)/$(PYDIR)', 3, '$(PYDIR)', 1)"

 tag:
        cvs tag -cFR $(CVSTAG)

Comment 1 Jeremy Katz 2003-07-07 18:12:32 UTC
Fixed in CVS

Comment 2 Brian Long 2003-12-16 18:19:58 UTC
This bug can be closed.