From: Jerome Glisse <j.glisse@gmail.com>
To: linux-kernel@vger.kernel.org
Cc: Michal Marek <mmarek@suse.cz>
Subject: Re: [PATCH] scripts/package: binrpm-pkg do not create source and devel package v3
Date: Thu, 4 Dec 2014 10:05:37 -0500 [thread overview]
Message-ID: <20141204150534.GA2036@gmail.com> (raw)
In-Reply-To: <1417553159-11632-1-git-send-email-j.glisse@gmail.com>
On Tue, Dec 02, 2014 at 03:45:59PM -0500, j.glisse@gmail.com wrote:
> From: Jérôme Glisse <jglisse@redhat.com>
>
> When doing make binrpm-pkg we only want to build the binary and header
> package as the documentation of binrpm-pkg target claims. Hence this
> patch avoid building the source and devel package. This makes binrpm-pkg
> target lot faster and way more usefull.
>
> Changed since v2 :
> - Avoid symlinks in /usr/src/kernel.
> - Update subject line and changelog.
>
> Changed since v1 :
> - Avoid building the devel package too.
>
> Signed-off-by: Jérôme Glisse <jglisse@redhat.com>
Drop your cc while updating commit log
> ---
> scripts/package/mkspec | 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --git a/scripts/package/mkspec b/scripts/package/mkspec
> index 1395760..010653c 100755
> --- a/scripts/package/mkspec
> +++ b/scripts/package/mkspec
> @@ -119,11 +119,13 @@ echo "%endif"
>
> echo 'rm -f $RPM_BUILD_ROOT'"/lib/modules/$KERNELRELEASE/{build,source}"
> echo "mkdir -p "'$RPM_BUILD_ROOT'"/usr/src/kernels/$KERNELRELEASE"
> +if ! $PREBUILT; then
> echo "EXCLUDES=\"$RCS_TAR_IGNORE --exclude .tmp_versions --exclude=*vmlinux* --exclude=*.o --exclude=*.ko --exclude=*.cmd --exclude=Documentation --exclude=firmware --exclude .config.old --exclude .missing-syscalls.d\""
> echo "tar "'$EXCLUDES'" -cf- . | (cd "'$RPM_BUILD_ROOT'"/usr/src/kernels/$KERNELRELEASE;tar xvf -)"
> echo 'cd $RPM_BUILD_ROOT'"/lib/modules/$KERNELRELEASE"
> echo "ln -sf /usr/src/kernels/$KERNELRELEASE build"
> echo "ln -sf /usr/src/kernels/$KERNELRELEASE source"
> +fi
>
> echo ""
> echo "%clean"
> @@ -151,9 +153,11 @@ echo "%files headers"
> echo '%defattr (-, root, root)'
> echo "/usr/include"
> echo ""
> +if ! $PREBUILT; then
> echo "%files devel"
> echo '%defattr (-, root, root)'
> echo "/usr/src/kernels/$KERNELRELEASE"
> echo "/lib/modules/$KERNELRELEASE/build"
> echo "/lib/modules/$KERNELRELEASE/source"
> echo ""
> +fi
> --
> 1.9.3
>
next prev parent reply other threads:[~2014-12-04 15:05 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-12-02 20:45 [PATCH] scripts/package: binrpm-pkg do not create source and devel package v3 j.glisse
2014-12-04 15:05 ` Jerome Glisse [this message]
2014-12-04 15:41 ` Michal Marek
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20141204150534.GA2036@gmail.com \
--to=j.glisse@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mmarek@suse.cz \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox