|
Panu Matilainen |
a0d39e |
commit 1b41c91431d37295701281ff208f99a51f660c89
|
|
Panu Matilainen |
a0d39e |
Author: Panu Matilainen <pmatilai@redhat.com>
|
|
Panu Matilainen |
a0d39e |
Date: Mon Aug 18 15:04:23 2014 +0300
|
|
Panu Matilainen |
a0d39e |
|
|
Panu Matilainen |
a0d39e |
Populate src.rpm header with dependencies early again
|
|
Panu Matilainen |
a0d39e |
|
|
Panu Matilainen |
a0d39e |
- BuildRequire checking requires a header populated with dependencies,
|
|
Panu Matilainen |
a0d39e |
commit a357c99c58a5e1367160dfa692f26d14bd3a3df1 changed this to
|
|
Panu Matilainen |
a0d39e |
occur too late for this purpose. Move to initSourceHeader() seems
|
|
Panu Matilainen |
a0d39e |
to fix, also goes to show we dont have a test-case for buildrequires...
|
|
Panu Matilainen |
a0d39e |
|
|
Panu Matilainen |
a0d39e |
diff --git a/build/pack.c b/build/pack.c
|
|
Panu Matilainen |
a0d39e |
index 227737b..dc24fb5 100644
|
|
Panu Matilainen |
a0d39e |
--- a/build/pack.c
|
|
Panu Matilainen |
a0d39e |
+++ b/build/pack.c
|
|
Panu Matilainen |
a0d39e |
@@ -702,10 +702,6 @@ rpmRC packageSources(rpmSpec spec, char **cookie)
|
|
Panu Matilainen |
a0d39e |
headerPutString(sourcePkg->header, RPMTAG_BUILDHOST, buildHost());
|
|
Panu Matilainen |
a0d39e |
headerPutUint32(sourcePkg->header, RPMTAG_BUILDTIME, getBuildTime(), 1);
|
|
Panu Matilainen |
a0d39e |
|
|
Panu Matilainen |
a0d39e |
- for (int i=0; i
|
|
Panu Matilainen |
a0d39e |
- rpmdsPutToHeader(sourcePkg->dependencies[i], sourcePkg->header);
|
|
Panu Matilainen |
a0d39e |
- }
|
|
Panu Matilainen |
a0d39e |
-
|
|
Panu Matilainen |
a0d39e |
/* XXX this should be %_srpmdir */
|
|
Panu Matilainen |
a0d39e |
{ char *fn = rpmGetPath("%{_srcrpmdir}/", spec->sourceRpmName,NULL);
|
|
Panu Matilainen |
a0d39e |
char *pkgcheck = rpmExpand("%{?_build_pkgcheck_srpm} ", fn, NULL);
|
|
Panu Matilainen |
a0d39e |
diff --git a/build/parseSpec.c b/build/parseSpec.c
|
|
Panu Matilainen |
a0d39e |
index e38a4d9..b14c3ee 100644
|
|
Panu Matilainen |
a0d39e |
--- a/build/parseSpec.c
|
|
Panu Matilainen |
a0d39e |
+++ b/build/parseSpec.c
|
|
Panu Matilainen |
a0d39e |
@@ -466,6 +466,10 @@ static void initSourceHeader(rpmSpec spec)
|
|
Panu Matilainen |
a0d39e |
headerCopyTags(spec->packages->header, sourcePkg->header, sourceTags);
|
|
Panu Matilainen |
a0d39e |
|
|
Panu Matilainen |
a0d39e |
/* Add the build restrictions */
|
|
Panu Matilainen |
a0d39e |
+ for (int i=0; i
|
|
Panu Matilainen |
a0d39e |
+ rpmdsPutToHeader(sourcePkg->dependencies[i], sourcePkg->header);
|
|
Panu Matilainen |
a0d39e |
+ }
|
|
Panu Matilainen |
a0d39e |
+
|
|
Panu Matilainen |
a0d39e |
{
|
|
Panu Matilainen |
a0d39e |
HeaderIterator hi = headerInitIterator(spec->buildRestrictions);
|
|
Panu Matilainen |
a0d39e |
struct rpmtd_s td;
|