[Why] Old source "https://www.kernel.org/pub/linux/utils/rt-tests/rt-tests-1.8.tar.gz" is not available, and need build before package.
Signed-off-by: Zhang Yale zhangyale3@huawei.com --- pkg/hackbench/PKGBUILD | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-)
diff --git a/pkg/hackbench/PKGBUILD b/pkg/hackbench/PKGBUILD index 797a00e6..7e3b52e9 100644 --- a/pkg/hackbench/PKGBUILD +++ b/pkg/hackbench/PKGBUILD @@ -4,10 +4,17 @@ pkgrel=1 arch=('i386' 'x86_64') url="https://www.kernel.org/pub/linux/utils/rt-tests" license=('GPL') -source=("https://www.kernel.org/pub/linux/utils/rt-tests/rt-tests-$%7Bpkgver%7D.tar.g...") +source=("https://git.kernel.org/pub/scm/utils/rt-tests/rt-tests.git/snapshot/rt-tests...") sha256sums=('SKIP')
-package() { +build() +{ + cd "$srcdir/rt-tests-${pkgver}" + gcc -o hackbench hackbench.c -lpthread +} + +package() +{ mkdir -p "${pkgdir}/lkp/benchmarks/${pkgname}" cd "$srcdir/rt-tests-${pkgver}" make install DESTDIR="${pkgdir}/lkp/benchmarks/${pkgname}"
On Thu, Oct 29, 2020 at 07:28:34PM +0800, Zhang Yale wrote:
[Why] Old source "https://www.kernel.org/pub/linux/utils/rt-tests/rt-tests-1.8.tar.gz" is not available, and need build before package.
Signed-off-by: Zhang Yale zhangyale3@huawei.com
pkg/hackbench/PKGBUILD | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-)
diff --git a/pkg/hackbench/PKGBUILD b/pkg/hackbench/PKGBUILD index 797a00e6..7e3b52e9 100644 --- a/pkg/hackbench/PKGBUILD +++ b/pkg/hackbench/PKGBUILD @@ -4,10 +4,17 @@ pkgrel=1 arch=('i386' 'x86_64') url="https://www.kernel.org/pub/linux/utils/rt-tests" license=('GPL') -source=("https://www.kernel.org/pub/linux/utils/rt-tests/rt-tests-$%7Bpkgver%7D.tar.g...") +source=("https://git.kernel.org/pub/scm/utils/rt-tests/rt-tests.git/snapshot/rt-tests...") sha256sums=('SKIP')
-package() { +build() +{
- cd "$srcdir/rt-tests-${pkgver}"
- gcc -o hackbench hackbench.c -lpthread
+}
+package() +{ mkdir -p "${pkgdir}/lkp/benchmarks/${pkgname}" cd "$srcdir/rt-tests-${pkgver}" make install DESTDIR="${pkgdir}/lkp/benchmarks/${pkgname}"
^-- is here need a '}'?
Thanks, Chenglong
-- 2.23.0
On Thu, Oct 29, 2020 at 07:39:13PM +0800, Wang Chenglong wrote:
On Thu, Oct 29, 2020 at 07:28:34PM +0800, Zhang Yale wrote:
[Why] Old source "https://www.kernel.org/pub/linux/utils/rt-tests/rt-tests-1.8.tar.gz" is not available, and need build before package.
Signed-off-by: Zhang Yale zhangyale3@huawei.com
pkg/hackbench/PKGBUILD | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-)
diff --git a/pkg/hackbench/PKGBUILD b/pkg/hackbench/PKGBUILD index 797a00e6..7e3b52e9 100644 --- a/pkg/hackbench/PKGBUILD +++ b/pkg/hackbench/PKGBUILD @@ -4,10 +4,17 @@ pkgrel=1 arch=('i386' 'x86_64') url="https://www.kernel.org/pub/linux/utils/rt-tests" license=('GPL') -source=("https://www.kernel.org/pub/linux/utils/rt-tests/rt-tests-$%7Bpkgver%7D.tar.g...") +source=("https://git.kernel.org/pub/scm/utils/rt-tests/rt-tests.git/snapshot/rt-tests...") sha256sums=('SKIP')
-package() { +build() +{
- cd "$srcdir/rt-tests-${pkgver}"
- gcc -o hackbench hackbench.c -lpthread
+}
+package() +{ mkdir -p "${pkgdir}/lkp/benchmarks/${pkgname}" cd "$srcdir/rt-tests-${pkgver}" make install DESTDIR="${pkgdir}/lkp/benchmarks/${pkgname}"
^-- is here need a '}'?
Thanks, Chenglong
It didn't show '}'.
Thanks, Yale
-- 2.23.0
On Thu, Oct 29, 2020 at 07:28:34PM +0800, Zhang Yale wrote:
[Why] Old source "https://www.kernel.org/pub/linux/utils/rt-tests/rt-tests-1.8.tar.gz" is not available, and need build before package.
Signed-off-by: Zhang Yale zhangyale3@huawei.com
pkg/hackbench/PKGBUILD | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-)
diff --git a/pkg/hackbench/PKGBUILD b/pkg/hackbench/PKGBUILD index 797a00e6..7e3b52e9 100644 --- a/pkg/hackbench/PKGBUILD +++ b/pkg/hackbench/PKGBUILD @@ -4,10 +4,17 @@ pkgrel=1 arch=('i386' 'x86_64') url="https://www.kernel.org/pub/linux/utils/rt-tests" license=('GPL') -source=("https://www.kernel.org/pub/linux/utils/rt-tests/rt-tests-$%7Bpkgver%7D.tar.g...") +source=("https://git.kernel.org/pub/scm/utils/rt-tests/rt-tests.git/snapshot/rt-tests...") sha256sums=('SKIP')
-package() { +build() +{
- cd "$srcdir/rt-tests-${pkgver}"
cd "" || exit
- gcc -o hackbench hackbench.c -lpthread
+}
+package() +{ mkdir -p "${pkgdir}/lkp/benchmarks/${pkgname}" cd "$srcdir/rt-tests-${pkgver}"
the same as above
Thanks, Zhangyu
make install DESTDIR="${pkgdir}/lkp/benchmarks/${pkgname}"
On Thu, Oct 29, 2020 at 08:06:18PM +0800, Zhang Yu wrote:
On Thu, Oct 29, 2020 at 07:28:34PM +0800, Zhang Yale wrote:
[Why] Old source "https://www.kernel.org/pub/linux/utils/rt-tests/rt-tests-1.8.tar.gz" is not available, and need build before package.
Signed-off-by: Zhang Yale zhangyale3@huawei.com
pkg/hackbench/PKGBUILD | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-)
diff --git a/pkg/hackbench/PKGBUILD b/pkg/hackbench/PKGBUILD index 797a00e6..7e3b52e9 100644 --- a/pkg/hackbench/PKGBUILD +++ b/pkg/hackbench/PKGBUILD @@ -4,10 +4,17 @@ pkgrel=1 arch=('i386' 'x86_64') url="https://www.kernel.org/pub/linux/utils/rt-tests" license=('GPL') -source=("https://www.kernel.org/pub/linux/utils/rt-tests/rt-tests-$%7Bpkgver%7D.tar.g...") +source=("https://git.kernel.org/pub/scm/utils/rt-tests/rt-tests.git/snapshot/rt-tests...") sha256sums=('SKIP')
-package() { +build() +{
- cd "$srcdir/rt-tests-${pkgver}"
cd "" || exit
- gcc -o hackbench hackbench.c -lpthread
+}
+package() +{
i> mkdir -p "${pkgdir}/lkp/benchmarks/${pkgname}"
i>> cd "$srcdir/rt-tests-${pkgver}"
the same as above
Thanks, Zhangyu
Ok, I got it.
Thanks, Yale
make install DESTDIR="${pkgdir}/lkp/benchmarks/${pkgname}"