problem with yum Makefiles?

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

 



If I rebuild yum-2.1.11-4 I get this error in each subdirectory:


make[1]: Entering directory `/usr/src/redhat/BUILD/yum-2.1.11/repomd'
mkdir -p /var/tmp/yum-root//usr/lib/python2.4/site-packages/repomd
for p in __init__.py mdErrors.py mdUtils.py packageObject.py packageSack.py repoMDObject.py test.py ; do \ install -m 644 $p /var/tmp/yum-root//usr/lib/python2.4/site-packages/repomd/$p; \
done
c "import compileall; compileall.compile_dir('/var/tmp/yum-root//usr/lib/python2.4/site-packages/repomd', 1, '', 1)"
/bin/sh: c: command not found
make[1]: [install] Error 127 (ignored)

I think this is because PYTHON is not defined in these Makefiles:

PACKAGE = $(shell basename `pwd`)
PYFILES = $(wildcard *.py)
PYVER := $(shell python -c 'import sys; print "%.3s" %(sys.version)')
PYSYSDIR := $(shell python -c 'import sys; print sys.prefix')
PYLIBDIR = $(PYSYSDIR)/lib/python$(PYVER)
PKGDIR = $(PYLIBDIR)/site-packages/$(PACKAGE)

all:
	echo "Nothing to do"

clean:
	rm -f *.pyc *.pyo *~

install:
	mkdir -p $(DESTDIR)/$(PKGDIR)
	for p in $(PYFILES) ; do \
		install -m 644 $$p $(DESTDIR)/$(PKGDIR)/$$p; \
	done
$(PYTHON) -c "import compileall; compileall.compile_dir('$(DESTDIR)/$(PKGDIR)', 1, '$(PYDIR)', 1)"



Adding PYTHON=python seems to do the trick.

Or this some odd fall-out from installing python-2.4?

FWIW,  this does NOT fix the HTTPResponse AttributeError.

sean



[Index of Archives]     [Fedora Desktop]     [Fedora SELinux]     [Photo Sharing]     [Yosemite Forum]     [KDE Users]