From e62b8e4f40e50006ffebbdc7547e217b0061bd3d Mon Sep 17 00:00:00 2001 From: Paul Menzel Date: Fri, 6 Aug 2021 10:18:26 +0200 Subject: [PATCH 1/2] clinfo: Add version 3.0.21.02.21 [Description][1]: > clinfo is a simple command-line application that enumerates all > possible (known) properties of the OpenCL platform and devices > available on the system. > > Inspired by AMD's program of the same name, it is coded in pure C and > it tries to output all possible information, including those provided > by platform-specific extensions, trying not to crash on unsupported > properties (e.g. 1.2 properties on 1.1 platforms). [1]: https://github.com/Oblomov/clinfo --- clinfo.be0 | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100755 clinfo.be0 diff --git a/clinfo.be0 b/clinfo.be0 new file mode 100755 index 000000000..8142b68a0 --- /dev/null +++ b/clinfo.be0 @@ -0,0 +1,35 @@ +#!/usr/bin/env beesh + +# BEE_VERSION clinfo-3.0.21.02.21-0 + +SRCURL[0]="https://github.com/Oblomov/clinfo/archive/refs/tags/${PKGVERSION}.tar.gz clinfo-${PKGVERSION}.tar.gz" + +# PATCHURL+=() + +# build_in_sourcedir + +# sourcesubdir_append src + +#mee_extract() { +# bee_extract "${@}" +#} + +#mee_patch() { +# bee_patch "${@}" +#} + +#mee_configure() { +# bee_configure +#} + +#mee_build() { +# bee_build +#} + +#mee_install() { +# bee_install +#} + +#mee_install_post() { +# exit +#} From 37023a9f1f022ebe21cf15a8b2e432665afee928 Mon Sep 17 00:00:00 2001 From: Paul Menzel Date: Tue, 17 Aug 2021 06:44:55 +0200 Subject: [PATCH 2/2] clinfo: Manually install files due to upstream Makefile lacking DESTDIR support [BEE] make -j80 install PREFIX=/usr EPREFIX=/usr BINDIR=/usr/bin SBINDIR=/usr/sbin LIBEXECDIR=/usr/libexec SYSCONFDIR=/etc SHAREDSTATEDIR=/var LOCALSTATEDIR=/var LIBDIR=/usr/lib INCLUDEDIR=/usr/include DATAROOTDIR=/usr/share DATADIR=/usr/share INFODIR=/usr/share/info LOCALEDIR=/usr/share/locale MANDIR=/usr/share/man DOCDIR=/usr/share/doc/clinfo DESTDIR=/dev/shm/bee-pmenzel/clinfo/clinfo-3.0.21.02.21-0/image install -p -m 555 clinfo /usr/bin/clinfo install -p -m 444 man1/clinfo.1 /usr/share/man/man1/clinfo.1 install: cannot create regular file '/usr/bin/clinfo': Permission denied make: *** [Makefile:120: /usr/bin/clinfo] Error 1 --- clinfo.be0 | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/clinfo.be0 b/clinfo.be0 index 8142b68a0..27eaf13b9 100755 --- a/clinfo.be0 +++ b/clinfo.be0 @@ -26,9 +26,14 @@ SRCURL[0]="https://github.com/Oblomov/clinfo/archive/refs/tags/${PKGVERSION}.tar # bee_build #} -#mee_install() { -# bee_install -#} +mee_install() { + # upstream Makefile does not support DESTDIR + # Use modes 755 over 555 and 644 and 444 + mkdir -p ${D}${BINDIR} + mkdir -p ${D}${MANDIR}/man1 + start_cmd install -p -m 555 clinfo ${D}${BINDIR}/clinfo + start_cmd install -p -m 444 man1/clinfo.1 ${D}${MANDIR}/man1/clinfo.1 +} #mee_install_post() { # exit