Jelmer Kuperus edited a comment on Bug MRPM-98

As an (admittedly very crude workaround) i did this :

1) mv /opt/local/bin/rpmbuild /opt/local/bin/rpmbuild.orig

2) recreated /opt/local/bin/rpmbuild as :

#!/usr/bin/python

import subprocess
import sys

invokerArgs = ["rpmbuild.orig"]

move = False

for arg in sys.argv[1:]:
	if arg == "--target":
		invokerArgs.insert(1,arg)
		move = True
	elif move:
		invokerArgs.insert(2,arg)
		move = False
	else:
		invokerArgs.append(arg)

subprocess.call(invokerArgs)

3) chmod +x /opt/local/bin/rpmbuild

4) Created ~/.popt with the following contents

rpmbuild.orig alias --buildroot --define ".buildroot !#:+"

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira
--------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email

Reply via email to