Commit cddd5152 authored by Kevin Daudt's avatar Kevin Daudt 💻 Committed by Natanael Copa
Browse files

main/rsync: prevent aports version being reported

mkgitver by default uses the version returned by `git describe`. Because
the package is built in the aports tree, it uses the aports version
rather than the version included in the archive in version.h.

Override mkgitver to only use that version, rather than the output of
`git describe`.

(cherry picked from commit e34ba444)
parent 2c1187d2
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=rsync
pkgver=3.2.3
pkgrel=2
pkgrel=3
pkgdesc="A file transfer program to keep remote files in sync"
url="https://rsync.samba.org/"
arch="all"
......@@ -25,6 +25,9 @@ source="https://download.samba.org/pub/rsync/rsync-$pkgver.tar.gz
prepare() {
default_prepare
rm testsuite/itemize.test
# Prevent the aports version being used
printf '#!/bin/sh\n\necho "#define RSYNC_GITVER RSYNC_VERSION" >git-version.h\n' >mkgitver
}
build() {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment