tummy compile Mandrake 7.2

Gerhard Häring gerhard.nospam at bigfoot.de
Thu Jun 14 05:58:27 EDT 2001


On Thu, 14 Jun 2001 20:13:54 +1000, Joal Heagney wrote:
>> > 10. rpm -bb --short-circuit python-2.1.spec
>> >
>> again my ignorance probably shows, but man rpm says --short-circuit is
>> only valid w/ -bc and -bi......and another thing- after all that, couldn't
>> you find a stronger expletive than "damn"? ;-)
>
>So it does. I've always assumed that it applied. *hmmm* Maybe reading
>the man pages isn't always as useful as we'd like to believe. *grins* I
>may have to get in contact with the rpm guys and find out why.

Alas, that's true. When I tried to make an RPM package of OmniORB where the
build process takes something like 2 hours I was especially amused about
--short-circuit not working with -bb. I was surprised that I could make sense
of the RPM source and since then I modify my RPM with the following patch. It
enables --short-cuircuit for "-bb" and "-ba".

diff -r -C 3 ../rpm-3.0.6.orig/rpm.c ./rpm.c
*** ../rpm-3.0.6.orig/rpm.c	Thu Jun 14 13:05:07 2001
--- ./rpm.c	Thu Jun 14 13:05:27 2001
***************
*** 1279,1288 ****
--- 1279,1292 ----
  	  /* these fallthroughs are intentional */
  	  case 'a':
  	    ba->buildAmount |= RPMBUILD_PACKAGESOURCE;
+ 	    if ((ba->buildChar == 'a') && ba->shortCircuit)
+ 		break;
  	    /*@fallthrough@*/
  	  case 'b':
  	    ba->buildAmount |= RPMBUILD_PACKAGEBINARY;
  	    ba->buildAmount |= RPMBUILD_CLEAN;
+ 	    if ((ba->buildChar == 'b') && ba->shortCircuit)
+ 		break;
  	    /*@fallthrough@*/
  	  case 'i':
  	    ba->buildAmount |= RPMBUILD_INSTALL;

Gerhard
-- 
mail:   gerhard <at> bigfoot <dot> de       registered Linux user #64239
web:    http://highqualdev.com              public key at homepage
public key fingerprint: DEC1 1D02 5743 1159 CD20  A4B6 7B22 6575 86AB 43C0
reduce(lambda x,y:x+y,map(lambda x:chr(ord(x)^42),tuple('zS^BED\nX_FOY\x0b')))



More information about the Python-list mailing list