Ticket #3292: run-rpmbuild-in-strace.patch

File run-rpmbuild-in-strace.patch, 748 bytes (added by TimAllen, 5 years ago)

Getting desperate now, let's try running rpmbuild inside strace.

  • twisted/scripts/tap2rpm.py

    diff --git a/twisted/scripts/tap2rpm.py b/twisted/scripts/tap2rpm.py
    index 1132fe9..f3d2e0d 100755
    a b def run(options=None): 
    266266 
    267267    #  build rpm 
    268268    job = subprocess.Popen([ 
     269            "strace", 
     270            "-s", "1000", 
    269271            "rpmbuild", 
    270272            "-vv", 
    271273            "--define", "_topdir %s" % (tmp_dir,), 
    def run(options=None): 
    274276    stdout, _ = job.communicate() 
    275277 
    276278    # If there was a problem, show people what it was. 
    277     if job.returncode != 0: 
    278         print stdout 
     279    #if job.returncode != 0: 
     280    #    print stdout 
     281    print stdout 
    279282     
    280283    #  copy the RPMs to the local directory 
    281284    log.msg(os.listdir(tmp_dir))