File debug2.patch of Package rpm

Index: rpm-4.14.1/build/pack.c
===================================================================
--- rpm-4.14.1.orig/build/pack.c
+++ rpm-4.14.1/build/pack.c
@@ -648,8 +648,10 @@ static rpmRC packageBinary(rpmSpec spec,
 	    }
 	    free(binRpm);
 	}
-
+  printf("~~~$#~$#~$# START: writeRPM: %d #$~#$~#$~~~\n", pkg);
 	rc = writeRPM(pkg, NULL, *filename, NULL, spec->buildTime, spec->buildHost);
+	printf("~~~$#~$#~$# END: writeRPM: %d #$~#$~#$~~~\n", pkg);
+
 	if (rc == RPMRC_OK) {
 	    /* Do check each written package if enabled */
 	    char *pkgcheck = rpmExpand("%{?_build_pkgcheck} ", *filename, NULL);
@@ -764,7 +766,10 @@ rpmRC packageSources(rpmSpec spec, char
 	char *pkgcheck = rpmExpand("%{?_build_pkgcheck_srpm} ", fn, NULL);
 
 	spec->sourcePkgId = NULL;
+
+	printf("~~~$#~$#~$# START: sourcewriteRPM: %d #$~#$~#$~~~\n", sourcePkg);
 	rc = writeRPM(sourcePkg, &spec->sourcePkgId, fn, cookie, spec->buildTime, spec->buildHost);
+	printf("~~~$#~$#~$# START: sourcewriteRPM: %d #$~#$~#$~~~\n", sourcePkg);
 
 	/* Do check SRPM package if enabled */
 	if (rc == RPMRC_OK && pkgcheck[0] != ' ') {