For some packages, expanded specfile is so big, it causes srpm headers to 
exceed 16 mb, which then can't be extracted by old rpms (pre 4.13) - they throw 
an error, "headerRead failed: hdr data: BAD, no. of bytes(20966277) out of 
range".

The code in question is in build/pack.c:

    /* Include spec in parsed and expanded form */
    headerPutString(sourcePkg->header, RPMTAG_SPEC, getStringBuf(spec->parsed));

For my purposes, a magic envvar would work best, a-la

   char *NO_SPEC_TAG = getenv("RPMBUILD_NO_SPEC_TAG");

   if (!NO_SPEC_TAG || atoi(NO_SPEC_TAG) != 1) {
      /* Include spec in parsed and expanded form */
      headerPutString(sourcePkg->header, RPMTAG_SPEC, 
getStringBuf(spec->parsed));
   }




-- 
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/issues/2727
You are receiving this because you are subscribed to this thread.

Message ID: <rpm-software-management/rpm/issues/2...@github.com>
_______________________________________________
Rpm-maint mailing list
Rpm-maint@lists.rpm.org
http://lists.rpm.org/mailman/listinfo/rpm-maint

Reply via email to