From abbebcae5ebf05ec6094e6344d0bd4b9d8329df8 Mon Sep 17 00:00:00 2001 From: Paul Menzel Date: Wed, 14 Aug 2019 12:46:42 +0200 Subject: [PATCH 1/2] crash: Add version 7.2.6 [Description][1]: > The core analysis suite is a self-contained tool that can be used to > investigate either live systems, kernel core dumps created from dump > creation facilities such as kdump, kvmdump, xendump, the netdump and > diskdump packages offered by Red Hat, the LKCD kernel patch, the mcore > kernel patch created by Mission Critical Linux, as well as other formats > created by manufacturer-specific firmware. [1]: https://github.com/crash-utility/crash --- crash.be0 | 79 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 79 insertions(+) create mode 100755 crash.be0 diff --git a/crash.be0 b/crash.be0 new file mode 100755 index 000000000..4e08b0dce --- /dev/null +++ b/crash.be0 @@ -0,0 +1,79 @@ +#!/usr/bin/env beesh + +# BEE_VERSION crash-7.2.6-0 + +## this file was created by bee init and should be executed to build a +## bee-package. (Additional hints are located at the end of this file.) + +############################################################################### +## The source URL(s) define the location of the sources that will be +## downloaded. Version variables may be used to simplify reuse of this bee-file. + +SRCURL[0]="https://github.com/crash-utility/crash/archive/${PKGVERSION}.tar.gz crash-${PKGVERSION}.tar.gz" + +############################################################################### +## Add URLs/pathes to patch files to the PATCHURL array. +## The sources will be patched in the order of the array. + +# PATCHURL+=() + +############################################################################### +## Uncomment the next statement, if the software may not be able to be built +## outside the source directory and needs to be built inside the source +## directory. + +# build_in_sourcedir + +############################################################################### +## bee cannot detect buildtypes specified in subdirectories. +## Sometimes packages "hide" the real sources in a subdirectory named +## 'src' or 'cmake' or .. +## use 'sourcesubdir_append' to specify this directory if known. + +# sourcesubdir_append src + + +############################################################################### +## Change the default (auto-detected) steps to +## extract, patch, configure/setup, build and install the software. +## Make sure the mee_install function does install everything to the +## image directory "${D}" + +#mee_extract() { +# bee_extract "${@}" +#} + +#mee_patch() { +# bee_patch "${@}" +#} + +#mee_configure() { +# bee_configure +#} + +#mee_build() { +# bee_build +#} + +#mee_install() { +# bee_install +#} +## by default this may be 'make install DESTDIR="${D}"' + +############################################################################### +## +## Additional hints: +## +## The name of this bee-file should follow the following naming convention: +## pkgname-pkgversion-pkgrevision.bee +## +## You may remove all comments as long as SRCURL[0] is set. +## +## Everything in this file will be executed in a bash environment. +## +## Build the package by executing +## './pkg-version-N.bee' or +## 'beesh ./pkg-version-N.bee' +## +## see http://beezinga.org/ +## From d5e4bb3e6f13952a136fce8c3d34273f4e7ba49b Mon Sep 17 00:00:00 2001 From: Paul Menzel Date: Wed, 14 Aug 2019 12:55:25 +0200 Subject: [PATCH 2/2] crash: Create install directories Fix the [error][1] below. [BEE] make -j120 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/crash DESTDIR=/dev/shm/bee-root/crash/crash-7.2.6-0/image /usr/bin/install crash /dev/shm/bee-root/crash/crash-7.2.6-0/image/usr/bin /usr/bin/install: cannot create regular file '/dev/shm/bee-root/crash/crash-7.2.6-0/image/usr/bin': No such file or directory make: *** [Makefile:306: install] Error 1 Command exited with non-zero status 2 [1]: https://github.com/crash-utility/crash/pull/37 --- crash.be0 | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/crash.be0 b/crash.be0 index 4e08b0dce..55ca5aca3 100755 --- a/crash.be0 +++ b/crash.be0 @@ -55,9 +55,10 @@ SRCURL[0]="https://github.com/crash-utility/crash/archive/${PKGVERSION}.tar.gz c # bee_build #} -#mee_install() { -# bee_install -#} +mee_install() { + mkdir -p ${D}/${BINDIR} + bee_install +} ## by default this may be 'make install DESTDIR="${D}"' ###############################################################################