[SSSD] [PATCH] CONTRIB: make_srpm.sh can prepare SRPM with patches

Jakub Hrozek jhrozek at redhat.com
Wed Jul 9 16:06:48 UTC 2014


On Wed, Jul 09, 2014 at 03:05:07PM +0200, Lukas Slebodnik wrote:
> ehlo,
> 
> Creating SRPM with patches is useful for some static analysers, which can do
> two builds. The first time without patches and the second with patches.
> 
> Bash function add_patches is inspired by file rpm/add_patches.sh from project\
> 389-ds-base.
>    commit 2a92a6cccd1002f4fe976ee7a5b79d779b009f87
>    Author: Mark Reynolds
> Thanks.
> 
> 
> The seond patch is fix, which was reported on sssd-users[1] and fix problem
> git-archive on RHEL6
> 
> [1]https://lists.fedorahosted.org/pipermail/sssd-users/2013-November/001164.html
> 
> LS

> From 25a196a521613ad35419627c327ed9d83b73c62a Mon Sep 17 00:00:00 2001
> From: Lukas Slebodnik <lslebodn at redhat.com>
> Date: Wed, 9 Jul 2014 14:29:45 +0200
> Subject: [PATCH 1/2] CONTRIB: make_srpm.sh can prepare SRPM with patches
> 
> Creating SRPM with patches is useful for some static analysers, which can do
> two builds. The first time without patches and the second with patches.
> 
> Bash function add_patches is inspired by file rpm/add_patches.sh from project\
> 389-ds-base.
>    commit 2a92a6cccd1002f4fe976ee7a5b79d779b009f87
>    Author: Mark Reynolds
> Thanks.
> 
> Resolves:
> https://fedorahosted.org/sssd/ticket/2149

Could we suppress stderr from cp? Currently there is an error message
from cp if you call make_srpm without any extra arguments:

$ bash contrib/fedora/make_srpm.sh
cp: cannot stat ‘/home/remote/jhrozek/devel/sssd/contrib/*.patch’: No
such file or directory
Creating SRPM without extra patches.
Wrote: /home/remote/jhrozek/devel/sssd/rpmbuild/SRPMS/sssd-1.11.92-0.fc20.src.rpm

> From ab9916ffb24bba56e078d6b8c48c111b8ba96dee Mon Sep 17 00:00:00 2001
> From: Lukas Slebodnik <lslebodn at redhat.com>
> Date: Wed, 9 Jul 2014 14:57:17 +0200
> Subject: [PATCH 2/2] CONTRIB: Fix creation of tar.gz with old version of git

ACK



More information about the sssd-devel mailing list