[why] when run this PKGBUILD in centos error like: /lkp/lkp/src/pkg/sysbench/PKGBUILD: line 23: usr/local/mysql/lib/: No No such file or directory
Signed-off-by: Zhang Yu 2134782174@qq.com --- pkg/sysbench-mysql/PKGBUILD | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/pkg/sysbench-mysql/PKGBUILD b/pkg/sysbench-mysql/PKGBUILD index d9f342a5..119aea46 100644 --- a/pkg/sysbench-mysql/PKGBUILD +++ b/pkg/sysbench-mysql/PKGBUILD @@ -18,6 +18,8 @@ build() { package() { cd "$pkgname-$pkgver.$pkgrel" make DESTDIR=$pkgdir install - [[ $os == openeuler ]] && mkdir -p $pkgdir/usr/lib64 - cp -rpf /usr/local/mysql/lib/* $pkgdir/usr/lib64/ + [[ $os == openeuler ]] && { + mkdir -p $pkgdir/usr/lib64 + cp -r /usr/local/mysql/lib/* $pkgdir/usr/lib64/ + } }
On Mon, Nov 16, 2020 at 02:52:51PM +0800, Zhang Yu wrote:
[why] when run this PKGBUILD in centos error like: /lkp/lkp/src/pkg/sysbench/PKGBUILD: line 23: usr/local/mysql/lib/: No No such file or directory
Signed-off-by: Zhang Yu 2134782174@qq.com
pkg/sysbench-mysql/PKGBUILD | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/pkg/sysbench-mysql/PKGBUILD b/pkg/sysbench-mysql/PKGBUILD index d9f342a5..119aea46 100644 --- a/pkg/sysbench-mysql/PKGBUILD +++ b/pkg/sysbench-mysql/PKGBUILD @@ -18,6 +18,8 @@ build() { package() { cd "$pkgname-$pkgver.$pkgrel" make DESTDIR=$pkgdir install
- [[ $os == openeuler ]] && mkdir -p $pkgdir/usr/lib64
cp -rpf /usr/local/mysql/lib/* $pkgdir/usr/lib64/
- [[ $os == openeuler ]] && {
mkdir -p $pkgdir/usr/lib64
cp -r /usr/local/mysql/lib/* $pkgdir/usr/lib64/
- }
How can it solve the proble? Do you mean only openeuler have dir "/usr/local/mysql/lib/"? if so, pls show this info in changelog.
Thanks, Xijian
mkdir -p $pkgdir/usr/lib64
cp -r /usr/local/mysql/lib/* $pkgdir/usr/lib64/
- }
How can it solve the proble? Do you mean only openeuler have dir "/usr/local/mysql/lib/"? if so, pls show this info in changelog.
yes, i mean only openeuler have dir "/usr/local/mysql/lib/", but the error occurred in centos, so i write the error message.
Thanks, Zhangyu