[pve-devel] applied: [PATCH ceph 1/2] build: add dsc target
Thomas Lamprecht
t.lamprecht at proxmox.com
Fri Nov 16 08:03:26 CET 2018
On 11/14/18 1:40 PM, Fabian Grünbichler wrote:
> to build a source package
>
applied, but...
> Signed-off-by: Fabian Grünbichler <f.gruenbichler at proxmox.com>
> ---
> Makefile | 31 +++++++++++++++++++++----------
> 1 file changed, 21 insertions(+), 10 deletions(-)
>
> diff --git a/Makefile b/Makefile
> index 94633d15c..a3a2f68e9 100644
> --- a/Makefile
> +++ b/Makefile
> @@ -66,26 +66,37 @@ rbd-mirror_${VER}-${DEBREL}_${ARCH}.deb \
> rbd-nbd_${VER}-${DEBREL}_${ARCH}.deb
> DEBS=$(MAIN_DEB) $(DEBS_REST)
>
> +DSC=ceph_${VER}-${DEBREL}.dsc
> +
> all: ${DEBS} ${DBG_DEBS}
> @echo ${DEBS}
> @echo ${DBG_DEBS}
>
> +${BUILDSRC}: ${SRCDIR} patches
> + rm -rf $@
... I'm not sure if I like the changes to $@, adds just noise to the diff and we
do not have a hardcoded or wildcard target name anyway.
But it doesn't matter I guess..
> + mkdir $@.tmp
> + rsync -ra ${SRCDIR}/ $@.tmp
> + cd $@.tmp; ln -s ../patches patches
> + cd $@.tmp; quilt push -a
> + cd $@.tmp; rm -rf .pc ./patches
> + echo "git clone git://git.proxmox.com/git/ceph.git\\ngit checkout ${GITVERSION}" > $@.tmp/debian/SOURCE
> + echo "debian/SOURCE" >> $@.tmp/debian/docs
> + echo "${GITVERSION}\\nv${VER}" > $@.tmp/src/.git_version
> + mv $@.tmp $@
> +
> .PHONY: deb
> deb: ${DEBS} ${DBG_DEBS}
> ${DEBS_REST} ${DBG_DEBS}: $(MAIN_DEB)
> -$(MAIN_DEB): patches
> - rm -rf ${BUILDSRC}
> - mkdir ${BUILDSRC}
> - rsync -ra ${SRCDIR}/ ${BUILDSRC}
> - cd ${BUILDSRC}; ln -s ../patches patches
> - cd ${BUILDSRC}; quilt push -a
> - cd ${BUILDSRC}; rm -rf .pc ./patches
> - echo "git clone git://git.proxmox.com/git/ceph.git\\ngit checkout ${GITVERSION}" > ${BUILDSRC}/debian/SOURCE
> - echo "debian/SOURCE" >> ${BUILDSRC}/debian/docs
> - echo "${GITVERSION}\\nv${VER}" > ${BUILDSRC}/src/.git_version
> +$(MAIN_DEB): ${BUILDSRC}
> cd ${BUILDSRC}; dpkg-buildpackage -b -uc -us
> @echo ${DEBS}
>
> +.PHONY: dsc
> +dsc: ${DSC}
> +${DSC}: ${BUILDSRC}
> + cd ${BUILDSRC}; dpkg-buildpackage -S -uc -us -d -nc
> + @echo ${DSC}
> +
> .PHONY: download
> download:
> rm -rf ${SRCDIR}.tmp
>
More information about the pve-devel
mailing list