[PATCH lkp-tests] hackbench/PKGBUILD: fix source and build function

[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 | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pkg/hackbench/PKGBUILD b/pkg/hackbench/PKGBUILD index 797a00e6..871a26db 100644 --- a/pkg/hackbench/PKGBUILD +++ b/pkg/hackbench/PKGBUILD @@ -4,9 +4,14 @@ 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-${pkgver}.tar.gz") +source=("https://git.kernel.org/pub/scm/utils/rt-tests/rt-tests.git/snapshot/rt-tests-${pkgver}.tar.gz") sha256sums=('SKIP') +build(){ + cd "$srcdir/rt-tests-${pkgver}" + gcc -o hackbench hackbench.c -lpthread +} + package() { mkdir -p "${pkgdir}/lkp/benchmarks/${pkgname}" cd "$srcdir/rt-tests-${pkgver}" -- 2.23.0

On Thu, Oct 29, 2020 at 06:18:08PM +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 | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/pkg/hackbench/PKGBUILD b/pkg/hackbench/PKGBUILD index 797a00e6..871a26db 100644 --- a/pkg/hackbench/PKGBUILD +++ b/pkg/hackbench/PKGBUILD @@ -4,9 +4,14 @@ 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-${pkgver}.tar.gz") +source=("https://git.kernel.org/pub/scm/utils/rt-tests/rt-tests.git/snapshot/rt-tests-${pkgver}.tar.gz") sha256sums=('SKIP')
+build(){
^ add blank space here will be better Thanks, Wang Yong
+ cd "$srcdir/rt-tests-${pkgver}" + gcc -o hackbench hackbench.c -lpthread +} + package() { mkdir -p "${pkgdir}/lkp/benchmarks/${pkgname}" cd "$srcdir/rt-tests-${pkgver}" -- 2.23.0

On Thu, Oct 29, 2020 at 07:05:13PM +0800, Wang Yong wrote:
On Thu, Oct 29, 2020 at 06:18:08PM +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 | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/pkg/hackbench/PKGBUILD b/pkg/hackbench/PKGBUILD index 797a00e6..871a26db 100644 --- a/pkg/hackbench/PKGBUILD +++ b/pkg/hackbench/PKGBUILD @@ -4,9 +4,14 @@ 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-${pkgver}.tar.gz") +source=("https://git.kernel.org/pub/scm/utils/rt-tests/rt-tests.git/snapshot/rt-tests-${pkgver}.tar.gz") sha256sums=('SKIP')
+build(){
^ add blank space here will be better
Thanks, Wang Yong
Ok, I got it. Thanks, Yale
+ cd "$srcdir/rt-tests-${pkgver}" + gcc -o hackbench hackbench.c -lpthread +} + package() { mkdir -p "${pkgdir}/lkp/benchmarks/${pkgname}" cd "$srcdir/rt-tests-${pkgver}" -- 2.23.0

On Thu, Oct 29, 2020 at 06:18:08PM +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 | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/pkg/hackbench/PKGBUILD b/pkg/hackbench/PKGBUILD index 797a00e6..871a26db 100644 --- a/pkg/hackbench/PKGBUILD +++ b/pkg/hackbench/PKGBUILD @@ -4,9 +4,14 @@ 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-${pkgver}.tar.gz") +source=("https://git.kernel.org/pub/scm/utils/rt-tests/rt-tests.git/snapshot/rt-tests-${pkgver}.tar.gz") sha256sums=('SKIP')
+build(){
Who will call the function? Thanks, Xueliang
+ cd "$srcdir/rt-tests-${pkgver}" + gcc -o hackbench hackbench.c -lpthread +} + package() { mkdir -p "${pkgdir}/lkp/benchmarks/${pkgname}" cd "$srcdir/rt-tests-${pkgver}" -- 2.23.0

On Thu, Oct 29, 2020 at 07:30:54PM +0800, Cao Xueliang wrote:
On Thu, Oct 29, 2020 at 06:18:08PM +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 | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/pkg/hackbench/PKGBUILD b/pkg/hackbench/PKGBUILD index 797a00e6..871a26db 100644 --- a/pkg/hackbench/PKGBUILD +++ b/pkg/hackbench/PKGBUILD @@ -4,9 +4,14 @@ 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-${pkgver}.tar.gz") +source=("https://git.kernel.org/pub/scm/utils/rt-tests/rt-tests.git/snapshot/rt-tests-${pkgver}.tar.gz") sha256sums=('SKIP')
+build(){
Who will call the function?
~/lkp-tests/test/sbin/makepkg Thanks, Liushaofei
Thanks, Xueliang
+ cd "$srcdir/rt-tests-${pkgver}" + gcc -o hackbench hackbench.c -lpthread +} + package() { mkdir -p "${pkgdir}/lkp/benchmarks/${pkgname}" cd "$srcdir/rt-tests-${pkgver}" -- 2.23.0

On Thu, Oct 29, 2020 at 06:18:08PM +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.
The source needs to change to "https://github.com/lacombar/hackbench.git" , So pls ignore this email. Thanks, Yale
Signed-off-by: Zhang Yale <zhangyale3@huawei.com> --- pkg/hackbench/PKGBUILD | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/pkg/hackbench/PKGBUILD b/pkg/hackbench/PKGBUILD index 797a00e6..871a26db 100644 --- a/pkg/hackbench/PKGBUILD +++ b/pkg/hackbench/PKGBUILD @@ -4,9 +4,14 @@ 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-${pkgver}.tar.gz") +source=("https://git.kernel.org/pub/scm/utils/rt-tests/rt-tests.git/snapshot/rt-tests-${pkgver}.tar.gz") sha256sums=('SKIP')
+build(){ + cd "$srcdir/rt-tests-${pkgver}" + gcc -o hackbench hackbench.c -lpthread +} + package() { mkdir -p "${pkgdir}/lkp/benchmarks/${pkgname}" cd "$srcdir/rt-tests-${pkgver}" -- 2.23.0

On Thu, Oct 29, 2020 at 06:18:08PM +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 | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/pkg/hackbench/PKGBUILD b/pkg/hackbench/PKGBUILD index 797a00e6..871a26db 100644 --- a/pkg/hackbench/PKGBUILD +++ b/pkg/hackbench/PKGBUILD @@ -4,9 +4,14 @@ 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-${pkgver}.tar.gz") +source=("https://git.kernel.org/pub/scm/utils/rt-tests/rt-tests.git/snapshot/rt-tests-${pkgver}.tar.gz")
Why hackbench's pkgbuild source is rt-tests.cgz? Thanks, Zhangyu
sha256sums=('SKIP')
+build(){ + cd "$srcdir/rt-tests-${pkgver}" + gcc -o hackbench hackbench.c -lpthread +} + package() { mkdir -p "${pkgdir}/lkp/benchmarks/${pkgname}" cd "$srcdir/rt-tests-${pkgver}" -- 2.23.0

On Fri, Oct 30, 2020 at 08:48:38AM +0800, Zhang Yu wrote:
On Thu, Oct 29, 2020 at 06:18:08PM +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 | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/pkg/hackbench/PKGBUILD b/pkg/hackbench/PKGBUILD index 797a00e6..871a26db 100644 --- a/pkg/hackbench/PKGBUILD +++ b/pkg/hackbench/PKGBUILD @@ -4,9 +4,14 @@ 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-${pkgver}.tar.gz") +source=("https://git.kernel.org/pub/scm/utils/rt-tests/rt-tests.git/snapshot/rt-tests-${pkgver}.tar.gz")
Why hackbench's pkgbuild source is rt-tests.cgz?
Thanks, Zhangyu
Hackbench is one tool of rt-tests. Thanks, Yale
sha256sums=('SKIP')
+build(){ + cd "$srcdir/rt-tests-${pkgver}" + gcc -o hackbench hackbench.c -lpthread +} + package() { mkdir -p "${pkgdir}/lkp/benchmarks/${pkgname}" cd "$srcdir/rt-tests-${pkgver}" -- 2.23.0
participants (5)
-
Cao Xueliang
-
Liu Shaofei
-
Wang Yong
-
Zhang Yale
-
Zhang Yu