[PATCH] spec: fix hardlink usage with RHEL
Adam Jackson
ajax at redhat.com
Mon Jun 8 18:48:54 UTC 2009
On Mon, 2009-06-08 at 14:43 -0400, Aristeu Rozanski wrote:
> Currently, the spec has *fc* hardcoded to the hardlink command. Not sure if
> it wouldn't be better just use /usr/src/kernels/*.
>
> ---
> kernel.spec | 7 ++++++-
> 1 file changed, 6 insertions(+), 1 deletion(-)
>
> --- spec-diffs.orig/kernel.spec 2009-06-08 12:35:34.000000000 -0400
> +++ spec-diffs/kernel.spec 2009-06-08 14:36:12.000000000 -0400
> @@ -1630,7 +1630,12 @@ if [ "$HARDLINK" != "no" -a -x /usr/sbin
> then\
> (cd /usr/src/kernels/%{KVERREL}%{?1:.%{1}} &&\
> /usr/bin/find . -type f | while read f; do\
> - hardlink -c /usr/src/kernels/*.fc*.*/$f $f\
> + if [ -n "%{?rhel}" ]\
> + then\
> + hardlink -c /usr/src/kernels/*.el*.*/$f $f\
> + else\
> + hardlink -c /usr/src/kernels/*.fc*.*/$f $f\
> + fi\
> done)\
> fi\
> %{nil}
Could just do %{dist} instead of .fc* and .el* I suspect.
- ajax
More information about the Fedora-kernel-list
mailing list