[Rpm-maint] Patch: fix strange code leading to gcc warnings

2010-04-09 Thread Michael Schroeder
New gcc versions comlpain about undefined behaviour... --- luaext/modemuncher.c.orig 2010-03-26 09:43:45.0 + +++ luaext/modemuncher.c2010-03-26 09:44:54.0 + @@ -245,11 +245,11 @@ printf(modemuncher: doneflag = %u\n, d if (ch_mode) switch (op)

[Rpm-maint] Patch: rpmdb_svc seems to be gone

2010-04-09 Thread Michael Schroeder
Adapt the Makefile as rpmdb_svc can no longer be built. --- lib/Makefile.am.orig2010-03-26 09:34:16.0 + +++ lib/Makefile.am 2010-03-26 09:34:39.0 + @@ -148,16 +148,6 @@ rpmdb_stat_LDADD = \ $(top_builddir)/db3/util_sig.o \ librpm.la

[Rpm-maint] Patch: fix segfault in spec file parser

2010-04-09 Thread Michael Schroeder
readLineFromOFI may modify the fileStack, thus we have to re-set ofi after calling it --- build/parseSpec.c.orig 2010-02-15 11:49:29.0 + +++ build/parseSpec.c 2010-02-24 10:38:25.0 + @@ -283,6 +283,7 @@ int readLine(rpmSpec spec, int strip) retry: if

[Rpm-maint] Patch: correct defattr logic

2010-04-09 Thread Michael Schroeder
Seems like a change was made to make %attr(-) go back to the defattr setting. Unfortunatelly this broke %defattr(-). --- ./build/files.c.orig2010-04-07 14:27:54.0 + +++ ./build/files.c 2010-04-07 14:51:11.0 + @@ -561,8 +561,13 @@ static rpmRC parseForAttr(const

[Rpm-maint] Patch: work around spurious tar messages

2010-04-09 Thread Michael Schroeder
Gnu tar sometimes prints a tar: Record size = 16 message, breaking rpmbuild -ta. --- ./build.c.orig 2010-04-07 14:56:36.0 + +++ ./build.c 2010-04-07 14:58:52.0 + @@ -126,7 +126,13 @@ static char * getTarSpec(const char *arg if (!(fp = popen(cmd, r))) {

[Rpm-maint] Patch: repair nosource/nopatch tag insertion

2010-04-09 Thread Michael Schroeder
rpm does not allow headerPutUint32 on internal tags, so use headerPut instead. Maybe NOSOURCE/NOPATCH should not be internal at all, though. They are useful to check if a rpm is src or nosrc, there is no other way to detect this. Also fixes a copypaste error, the code used RPMTAG_NOSOURCE instead

Re: [Rpm-maint] Patch: repair nosource/nopatch tag insertion

2010-04-09 Thread Ville Skyttä
On Friday 09 April 2010, Michael Schroeder wrote: Maybe NOSOURCE/NOPATCH should not be internal at all, though. They are useful to check if a rpm is src or nosrc, there is no other way to detect this. I don't know if it's correct, but in rpmlint we decide that based on whether the source rpm