doc_id
stringlengths 36
36
| metadata
dict | input
stringlengths 28
4.3k
| output
stringlengths 11
5.45k
|
---|---|---|---|
c0824c2a-cb29-4c4b-b52b-6e47ade797ee | {
"language": "BitBake"
} | ```bitbake
require linux.inc
require linux-dtb.inc
DESCRIPTION = "Linux kernel for the koelsch board"
COMPATIBLE_MACHINE = "koelsch"
PR = "r5"
PV_append = "+git${SRCREV}"
SRCREV = "33b4bbf492ee0cf39ea830a38a12e3c2565c12d5"
SRC_URI = "git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas-backport.git;protocol=git;branch=bsp/ltsi-3.4.25/rcar-gen2-5.3"
S = "${WORKDIR}/git"
FILESEXTRAPATHS_prepend_koelsch := "${THISDIR}/${PN}:"
KERNEL_DEFCONFIG = "koelsch_defconfig"
do_configure_prepend() {
install -m 0644 ${S}/arch/${ARCH}/configs/${KERNEL_DEFCONFIG} ${WORKDIR}/defconfig || die "No default configuration for ${MACHINE} / ${KERNEL_DEFCONFIG} available."
}
```
Enable creating bootz image and uImage with DTB | ```bitbake
require linux.inc
require linux-dtb.inc
require linux-dtb-append.inc
DESCRIPTION = "Linux kernel for the koelsch board"
COMPATIBLE_MACHINE = "koelsch"
PR = "r6"
PV_append = "+git${SRCREV}"
SRCREV = "33b4bbf492ee0cf39ea830a38a12e3c2565c12d5"
SRC_URI = "git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas-backport.git;protocol=git;branch=bsp/ltsi-3.4.25/rcar-gen2-5.3"
S = "${WORKDIR}/git"
FILESEXTRAPATHS_prepend_koelsch := "${THISDIR}/${PN}:"
KERNEL_DEFCONFIG = "koelsch_defconfig"
do_configure_prepend() {
install -m 0644 ${S}/arch/${ARCH}/configs/${KERNEL_DEFCONFIG} ${WORKDIR}/defconfig || die "No default configuration for ${MACHINE} / ${KERNEL_DEFCONFIG} available."
}
``` |
c1f2d2f5-f94a-4757-9ffd-e3ce96a5b5e3 | {
"language": "BitBake"
} | ```bitbake
DESCRIPTION = "A small image just capable of allowing a device to boot."
IMAGE_INSTALL = "packagegroup-core-boot ${ROOTFS_PKGMANAGE_BOOTSTRAP} ${CORE_IMAGE_EXTRA_INSTALL}"
IMAGE_LINGUAS = " "
LICENSE = "GPLv2"
inherit core-image
IMAGE_FSTYPES = "${INITRAMFS_TYPES}"
IMAGE_ROOTFS_SIZE = "2048"
EXTRA_IMAGECMD_append_ext2 = " -N 2000"
IMAGE_FEATURES += "package-management"
IMAGE_FEATURES += "ssh-server-dropbear"
#ROOTFS_POSTPROCESS_COMMAND += "remove_packaging_data_files ; "
IMAGE_INSTALL += "kernel-modules"
IMAGE_INSTALL += "ethtool"
IMAGE_INSTALL += "strace"
IMAGE_INSTALL += "ppp"
IMAGE_INSTALL += "linuxptp"
IMAGE_INSTALL += "libstdc++"
EXTRA_IMAGEDEPENDS = "grub-conf"
IMAGE_DEV_INSTALL += "openssh"
IMAGE_DEV_INSTALL += "wireless-tools"
IMAGE_DEV_INSTALL += "wpa-supplicant"
IMAGE_DEV_INSTALL += "linux-firmware-iwlwifi-6000g2a-6"
IMAGE_DEV_INSTALL += "linux-firmware-iwlwifi-135-6"
# uncomment to add dev packages
IMAGE_DEV_INSTALL = ""
IMAGE_INSTALL += "${IMAGE_DEV_INSTALL}"
```
Add jffs2 and ext2 support | ```bitbake
DESCRIPTION = "A small image just capable of allowing a device to boot."
IMAGE_INSTALL = "packagegroup-core-boot ${ROOTFS_PKGMANAGE_BOOTSTRAP} ${CORE_IMAGE_EXTRA_INSTALL}"
IMAGE_LINGUAS = " "
LICENSE = "GPLv2"
inherit core-image
IMAGE_FSTYPES = "${INITRAMFS_TYPES}"
IMAGE_FSTYPES += "jffs2"
IMAGE_FSTYPES += "ext2"
IMAGE_ROOTFS_SIZE = "2048"
EXTRA_IMAGECMD_append_ext2 = " -N 2000"
IMAGE_FEATURES += "package-management"
IMAGE_FEATURES += "ssh-server-dropbear"
#ROOTFS_POSTPROCESS_COMMAND += "remove_packaging_data_files ; "
IMAGE_INSTALL += "kernel-modules"
IMAGE_INSTALL += "ethtool"
IMAGE_INSTALL += "strace"
IMAGE_INSTALL += "ppp"
IMAGE_INSTALL += "linuxptp"
IMAGE_INSTALL += "libstdc++"
EXTRA_IMAGEDEPENDS = "grub-conf"
IMAGE_DEV_INSTALL += "openssh"
IMAGE_DEV_INSTALL += "wireless-tools"
IMAGE_DEV_INSTALL += "wpa-supplicant"
IMAGE_DEV_INSTALL += "linux-firmware-iwlwifi-6000g2a-6"
IMAGE_DEV_INSTALL += "linux-firmware-iwlwifi-135-6"
# uncomment to add dev packages
IMAGE_DEV_INSTALL = ""
IMAGE_INSTALL += "${IMAGE_DEV_INSTALL}"
``` |
cb501dc3-82aa-454e-9b0f-e60d9f13e0cf | {
"language": "BitBake"
} | ```bitbake
#
# Base recipe: meta/recipes-support/mpfr/mpfr_3.1.5.bb
# Base branch: master
# Base commit: d886fa118c930d0e551f2a0ed02b35d08617f746
#
SUMMARY = "C library for multiple-precision floating-point computations with exact rounding"
HOMEPAGE = "http://www.mpfr.org/"
LICENSE = "GPLv3+ & LGPLv3+"
inherit debian-package
require recipes-debian/sources/mpfr4.inc
BPN = "mpfr4"
DEBIAN_UNPACK_DIR = "${WORKDIR}/mpfr-4.0.2-rc1"
LIC_FILES_CHKSUM = " \
file://COPYING;md5=1ebbd3e34237af26da5dc08a4e440464 \
file://COPYING.LESSER;md5=3000208d539ec061b899bce1d9ce9404 \
"
inherit autotools
DEPENDS += "gmp autoconf-archive"
BBCLASSEXTEND = "native nativesdk"
```
Remove harcoded version in DEBIAN_UNPACK_DIR | ```bitbake
#
# Base recipe: meta/recipes-support/mpfr/mpfr_3.1.5.bb
# Base branch: master
# Base commit: d886fa118c930d0e551f2a0ed02b35d08617f746
#
SUMMARY = "C library for multiple-precision floating-point computations with exact rounding"
HOMEPAGE = "http://www.mpfr.org/"
LICENSE = "GPLv3+ & LGPLv3+"
inherit debian-package
require recipes-debian/sources/mpfr4.inc
BPN = "mpfr4"
DEBIAN_UNPACK_DIR = "${WORKDIR}/mpfr-${@d.getVar('PV', True).replace('~','-')}"
LIC_FILES_CHKSUM = " \
file://COPYING;md5=1ebbd3e34237af26da5dc08a4e440464 \
file://COPYING.LESSER;md5=3000208d539ec061b899bce1d9ce9404 \
"
inherit autotools
DEPENDS += "gmp autoconf-archive"
BBCLASSEXTEND = "native nativesdk"
``` |
7b284f5d-a12f-4543-bc36-22cfa0b5d490 | {
"language": "BitBake"
} | ```bitbake
DESCRIPTION = "neon is an HTTP and WebDAV client library, with a C interface."
HOMEPAGE = "http://www.webdav.org/neon"
SECTION = "libs"
LICENSE = "LGPL"
DEPENDS = "zlib libxml2 expat time gnutls"
PR = "r4"
SRC_URI = "http://www.webdav.org/${PN}/${P}.tar.gz \
file://gnutls-force-and-detect.patch \
file://gnutls-2.patch"
inherit autotools binconfig lib_package pkgconfig
EXTRA_OECONF = "--with-ssl=gnutls --with-libxml2 --with-expat --enable-shared --without-gssapi"
EXTRA_AUTORECONF=" -I ${S}/macros "
SRC_URI[md5sum] = "b5fdb71dd407f0a3de0f267d27c9ab17"
SRC_URI[sha256sum] = "b5513f88cb54c5f11e4c8348ee6c7ace9767b45c263c3a3ba8a5ce4e2b40a07a"
```
Update LICENSE field version to LGPLv2 | ```bitbake
DESCRIPTION = "neon is an HTTP and WebDAV client library, with a C interface."
HOMEPAGE = "http://www.webdav.org/neon"
SECTION = "libs"
LICENSE = "LGPLv2+"
DEPENDS = "zlib libxml2 expat time gnutls"
PR = "r5"
SRC_URI = "http://www.webdav.org/${PN}/${P}.tar.gz \
file://gnutls-force-and-detect.patch \
file://gnutls-2.patch"
inherit autotools binconfig lib_package pkgconfig
EXTRA_OECONF = "--with-ssl=gnutls --with-libxml2 --with-expat --enable-shared --without-gssapi"
EXTRA_AUTORECONF=" -I ${S}/macros "
SRC_URI[md5sum] = "b5fdb71dd407f0a3de0f267d27c9ab17"
SRC_URI[sha256sum] = "b5513f88cb54c5f11e4c8348ee6c7ace9767b45c263c3a3ba8a5ce4e2b40a07a"
``` |
4d649ca6-ee8f-45d8-a794-ced15fbe87dc | {
"language": "BitBake"
} | ```bitbake
SECTION = "base"
require gnu-config_${PV}.bb
inherit native
FILESDIR = "${@os.path.dirname(bb.data.getVar('FILE',d,1))}/gnu-config"
do_stage () {
install -d ${STAGING_DATADIR}/gnu-config
cat ${WORKDIR}/gnu-configize.in | \
sed -e 's,@gnu-configdir@,${STAGING_DATADIR}/gnu-config,' \
-e 's,@autom4te_perllibdir@,${STAGING_DATADIR}/autoconf,' > ${STAGING_BINDIR}/gnu-configize
chmod 755 ${STAGING_BINDIR}/gnu-configize
install -m 0644 config.guess config.sub ${STAGING_DATADIR}/gnu-config/
}
```
Add missing install -d (from packaged-staging) | ```bitbake
SECTION = "base"
require gnu-config_${PV}.bb
inherit native
FILESDIR = "${@os.path.dirname(bb.data.getVar('FILE',d,1))}/gnu-config"
do_stage () {
install -d ${STAGING_DATADIR}/gnu-config/
install -d ${STAGING_BINDIR}/
cat ${WORKDIR}/gnu-configize.in | \
sed -e 's,@gnu-configdir@,${STAGING_DATADIR}/gnu-config,' \
-e 's,@autom4te_perllibdir@,${STAGING_DATADIR}/autoconf,' > ${STAGING_BINDIR}/gnu-configize
chmod 755 ${STAGING_BINDIR}/gnu-configize
install -m 0644 config.guess config.sub ${STAGING_DATADIR}/gnu-config/
}
``` |
e97a6548-0a38-483c-8a7b-26716202edb0 | {
"language": "BitBake"
} | ```bitbake
DESCRIPTION = "ACPI data gathering library."
SECTION = "base"
HOMEPAGE = "http://www.ngolde.de/libacpi.html"
LICENSE = "MIT"
PR = "r1"
SRC_URI = "http://www.ngolde.de/download/libacpi-${PV}.tar.gz \
file://makefile-fix.patch;patch=1 "
PACKAGES += "${PN}-bin"
FILES_${PN} = "${libdir}/libacpi.so.*"
FILES_${PN}-bin = "${bindir}"
COMPATIBLE_HOST = '(x86_64|i.86.*)-(linux|freebsd.*)'
do_stage() {
install -m 0644 libacpi.h ${STAGING_INCDIR}
oe_libinstall -so libacpi ${STAGING_LIBDIR}
}
do_install() {
oe_runmake install DESTDIR=${D} PREFIX=${exec_prefix}
}
```
Drop undeeded custom staging function | ```bitbake
DESCRIPTION = "ACPI data gathering library."
SECTION = "base"
HOMEPAGE = "http://www.ngolde.de/libacpi.html"
LICENSE = "MIT"
PR = "r1"
SRC_URI = "http://www.ngolde.de/download/libacpi-${PV}.tar.gz \
file://makefile-fix.patch;patch=1 "
PACKAGES += "${PN}-bin"
FILES_${PN} = "${libdir}/libacpi.so.*"
FILES_${PN}-bin = "${bindir}"
COMPATIBLE_HOST = '(x86_64|i.86.*)-(linux|freebsd.*)'
do_install() {
oe_runmake install DESTDIR=${D} PREFIX=${exec_prefix}
}
``` |
ee7cbdee-09e0-44ba-93fc-6e3d5b322292 | {
"language": "BitBake"
} | ```bitbake
LICENSE = "GPL/LGPL"
DEPENDS = "librsvg libwnck totem-pl-parser libgtop gnome-panel gnome-desktop eds-dbus python-pygtk"
PR = "r1"
inherit gnome distutils-base
SRC_URI += "file://acinclude.m4"
EXTRA_OECONF += "--with-python-includes=${STAGING_INCDIR}/../"
do_configure_prepend() {
install -m 0644 ${WORKDIR}/acinclude.m4 ${S}/
}
do_configure_prepend() {
sed -i -e s:'`$PKG_CONFIG --variable=defsdir pygtk-2.0`':\"${STAGING_DATADIR}/pygtk/2.0/defs\":g ${S}/configure.ac
}
AUTOTOOLS_STAGE_PKGCONFIG = "1"
do_stage() {
autotools_stage_all
}
FILES_${PN}-dev += "${datadir}/pygtk"
```
Add DEPENDS for gnome-python and libgnomeprint*, needed for gnome-games. | ```bitbake
LICENSE = "GPL/LGPL"
DEPENDS = "librsvg libwnck totem-pl-parser libgtop gnome-panel gnome-desktop eds-dbus python-pygtk gnome-python libgnomeprint libgnomeprintui"
PR = "r2"
inherit gnome distutils-base
SRC_URI += "file://acinclude.m4"
EXTRA_OECONF += "--with-python-includes=${STAGING_INCDIR}/../"
do_configure_prepend() {
install -m 0644 ${WORKDIR}/acinclude.m4 ${S}/
}
do_configure_prepend() {
sed -i -e s:'`$PKG_CONFIG --variable=defsdir pygtk-2.0`':\"${STAGING_DATADIR}/pygtk/2.0/defs\":g ${S}/configure.ac
}
AUTOTOOLS_STAGE_PKGCONFIG = "1"
do_stage() {
autotools_stage_all
}
FILES_${PN}-dev += "${datadir}/pygtk"
``` |
1e7b1fb8-3abb-44aa-a6a8-337fc513bbf2 | {
"language": "BitBake"
} | ```bitbake
require gst-plugins.inc
SRC_URI = "http://gstreamer.freedesktop.org/src/${PN}/pre/${PN}-${PV}.tar.bz2;name=archive"
#SRC_URI_append_sifteam = " file://dvdsubdec-addproperty-singlebuffer.patch"
PR = "${INC_PR}.0"
DEPENDS += "gst-plugins-base libsidplay"
DEPENDS_sifteam += "gst-plugins-base libsidplay opencore-amr"
python() {
# Don't build, if we are building an ENTERPRISE distro
enterprise = bb.data.getVar("ENTERPRISE_DISTRO", d, 1)
if enterprise == "1":
raise bb.parse.SkipPackage("gst-plugins-ugly will only build if ENTERPRISE_DISTRO != 1")
}
PACKAGES_DYNAMIC = "\
gst-plugin-a52dec.* \
gst-plugin-asf.* \
gst-plugin-cdio.* \
gst-plugin-dvdlpcmdec.* \
gst-plugin-dvdread.* \
gst-plugin-dvdsub.* \
gst-plugin-iec958.* \
gst-plugin-lame.* \
gst-plugin-mad.* \
gst-plugin-mpeg2dec.* \
gst-plugin-mpegaudioparse.* \
gst-plugin-mpegstream.* \
gst-plugin-rmdemux.* \
gst-plugin-sid.* \
gst-plugin-x264.* \
"
```
Fix gst-plugins-ugly for amr coded | ```bitbake
require gst-plugins.inc
SRC_URI = "http://gstreamer.freedesktop.org/src/${PN}/pre/${PN}-${PV}.tar.bz2;name=archive"
#SRC_URI_append_sifteam = " file://dvdsubdec-addproperty-singlebuffer.patch"
PR = "${INC_PR}.0"
DEPENDS += "gst-plugins-base libsidplay"
DEPENDS_sifteam += "gst-plugins-base libsidplay opencore-amr"
python() {
# Don't build, if we are building an ENTERPRISE distro
enterprise = bb.data.getVar("ENTERPRISE_DISTRO", d, 1)
if enterprise == "1":
raise bb.parse.SkipPackage("gst-plugins-ugly will only build if ENTERPRISE_DISTRO != 1")
}
PACKAGES_DYNAMIC = "\
gst-plugin-a52dec.* \
gst-plugin-asf.* \
gst-plugin-cdio.* \
gst-plugin-dvdlpcmdec.* \
gst-plugin-dvdread.* \
gst-plugin-dvdsub.* \
gst-plugin-iec958.* \
gst-plugin-lame.* \
gst-plugin-mad.* \
gst-plugin-mpeg2dec.* \
gst-plugin-mpegaudioparse.* \
gst-plugin-mpegstream.* \
gst-plugin-rmdemux.* \
gst-plugin-sid.* \
gst-plugin-x264.* \
gst-plugin-amrnb.* \
gst-plugin-amrwbdec.* \
"
``` |
220fde49-0a9b-4ef8-8d05-31f48e232a9f | {
"language": "BitBake"
} | ```bitbake
DESCRIPTION = "This package contains the Parser.pm module with friends."
SECTION = "libs"
LICENSE = "Artistic-1.0 | GPL-1.0+"
LIC_FILES_CHKSUM = "file://README;md5=b0459e4426b94753b9a9b8a15f1223b8"
DEPENDS += "perl"
SRC_URI = "http://search.cpan.org/CPAN/authors/id/G/GA/GAAS/HTML-Parser-${PV}.tar.gz"
SRC_URI[md5sum] = "eb7505e5f626913350df9dd4a03d54a8"
SRC_URI[sha256sum] = "ec28c7e1d9e67c45eca197077f7cdc41ead1bb4c538c7f02a3296a4bb92f608b"
S = "${WORKDIR}/HTML-Parser-${PV}"
EXTRA_CPANFLAGS = "EXPATLIBPATH=${STAGING_LIBDIR} EXPATINCPATH=${STAGING_INCDIR}"
inherit cpan
do_compile() {
export LIBC="$(find ${STAGING_DIR_TARGET}/${base_libdir}/ -name 'libc-*.so')"
cpan_do_compile
}
BBCLASSEXTEND = "native"
```
Add HOMEPAGE info into recipe file. | ```bitbake
DESCRIPTION = "This package contains the Parser.pm module with friends."
HOMEPAGE = "https://metacpan.org/release/HTML-Parser"
SECTION = "libs"
LICENSE = "Artistic-1.0 | GPL-1.0+"
LIC_FILES_CHKSUM = "file://README;md5=b0459e4426b94753b9a9b8a15f1223b8"
DEPENDS += "perl"
SRC_URI = "http://search.cpan.org/CPAN/authors/id/G/GA/GAAS/HTML-Parser-${PV}.tar.gz"
SRC_URI[md5sum] = "eb7505e5f626913350df9dd4a03d54a8"
SRC_URI[sha256sum] = "ec28c7e1d9e67c45eca197077f7cdc41ead1bb4c538c7f02a3296a4bb92f608b"
S = "${WORKDIR}/HTML-Parser-${PV}"
EXTRA_CPANFLAGS = "EXPATLIBPATH=${STAGING_LIBDIR} EXPATINCPATH=${STAGING_INCDIR}"
inherit cpan
do_compile() {
export LIBC="$(find ${STAGING_DIR_TARGET}/${base_libdir}/ -name 'libc-*.so')"
cpan_do_compile
}
BBCLASSEXTEND = "native"
``` |
51a21109-4c9c-4387-b5fd-07274537c86f | {
"language": "BitBake"
} | ```bitbake
require xorg-data-common.inc
DESCRIPTION = "Common X11 Bitmaps"
LICENSE = "MIT"
DEPENDS += "libxmu"
SRC_URI[archive.md5sum] = "7444bbbd999b53bec6a60608a5301f4c"
SRC_URI[archive.sha256sum] = "3671b034356bbc4d32d052808cf646c940ec8b2d1913adac51b1453e41aa1e9d"
#PR = "${INC_PR}.0"
#
# Meta-debian
#
PR = "r0"
LIC_FILES_CHKSUM = "file://COPYING;md5=dbd075aaffa4a60a8d00696f2e4b9a8f"
FILES_${PN} = "${includedir}/X11"
DEBIAN_PATCH_TYPE = "nopatch"
```
Fix error can not install xbitmaps | ```bitbake
require xorg-data-common.inc
DESCRIPTION = "Common X11 Bitmaps"
LICENSE = "MIT"
DEPENDS += "libxmu"
SRC_URI[archive.md5sum] = "7444bbbd999b53bec6a60608a5301f4c"
SRC_URI[archive.sha256sum] = "3671b034356bbc4d32d052808cf646c940ec8b2d1913adac51b1453e41aa1e9d"
#PR = "${INC_PR}.0"
#
# Meta-debian
#
PR = "r0"
LIC_FILES_CHKSUM = "file://COPYING;md5=dbd075aaffa4a60a8d00696f2e4b9a8f"
FILES_${PN} = "\
${includedir}/X11 \
/usr/share/"
DEBIAN_PATCH_TYPE = "nopatch"
PACKAGES = "${PN}"
``` |
0ab1e918-0616-4f9a-8a57-0e20e7a878d4 | {
"language": "BitBake"
} | ```bitbake
```
Include the /usr/bin/awk symlink in the gawk package. Should probably use update-alternatives for that at some point. | ```bitbake
LICENSE = "GPL"
SECTION = "interpreters"
DESCRIPTION = "A program that you can use to select particular records in a \
file and perform operations upon them."
PR = "r1"
PACKAGES += "gawk-common pgawk"
FILES_${PN} = "${bindir}/gawk* ${bindir}/igawk ${bindir}/awk*"
FILES_gawk-common += "${datadir}/awk ${libexecdir}/awk"
FILES_pgawk = "${bindir}/pgawk*"
RDEPENDS_gawk += "gawk-common"
RDEPENDS_pgawk += "gawk-common"
SRC_URI = "${GNU_MIRROR}/gawk/gawk-${PV}.tar.gz"
inherit autotools
do_configure_prepend () {
grep -E '^AC_DEFUN' m4/*.m4|grep -E '\(\[?(AM|AC)_'|xargs rm -f
}
``` |
3d87c7d7-c5a5-430f-95ae-7dcc200ae018 | {
"language": "BitBake"
} | ```bitbake
DESCRIPTION = "Firmware loader for m-audio devices"
LICENSE = "GPL"
PR = "r1"
SRC_URI = "http://heanet.dl.sourceforge.net/sourceforge/usb-midi-fw/madfuload-1.2.tar.gz \
file://autofoo.patch;patch=1"
inherit autotools
S = ${WORKDIR}/madfuload-1.2
#EXTRA_OECONF = "--without-udev"
FILES_${PN} += "${libdir}/firmware/"
do_configure() {
oe_runconf
}
do_compile() {
oe_runmake
}
do_install() {
install -d ${D}/${sbindir}
install -m 755 ${S}/madfuload ${D}/${sbindir}
install -d ${D}/${libdir}/firmware
install -m 644 ${S}/*.bin ${D}/${libdir}/firmware
install -d ${D}/${sysconfdir}/udev/rules
install -m 644 ${S}/42-madfuload.rules ${D}/${sysconfdir}/udev/rules
}
```
Clean up so it matches oe style guide | ```bitbake
DESCRIPTION = "Firmware loader for m-audio devices"
LICENSE = "GPL"
PR = "r1"
SRC_URI = "http://heanet.dl.sourceforge.net/sourceforge/usb-midi-fw/madfuload-1.2.tar.gz \
file://autofoo.patch;patch=1"
S = "${WORKDIR}/madfuload-1.2"
inherit autotools
do_configure() {
oe_runconf
}
do_compile() {
oe_runmake
}
do_install() {
install -d ${D}/${sbindir}
install -m 755 ${S}/madfuload ${D}/${sbindir}
install -d ${D}/${libdir}/firmware
install -m 644 ${S}/*.bin ${D}/${libdir}/firmware
install -d ${D}/${sysconfdir}/udev/rules
install -m 644 ${S}/42-madfuload.rules ${D}/${sysconfdir}/udev/rules
}
FILES_${PN} += "${libdir}/firmware/"
``` |
90d49cc4-1b67-4255-afb4-f32bf0ad2d6c | {
"language": "BitBake"
} | ```bitbake
LICENSE = "LGPL"
SECTION = "x11"
DEPENDS = "glib-2.0 gtk+ libglade eds-dbus"
MAINTAINER = "Chris Lord <[email protected]>"
DESCRIPTION = "Dates is a calendar application."
PR = "r4"
PV = "0.0+svn${SRCDATE}"
S = "${WORKDIR}/${PN}"
SRC_URI = "svn://svn.o-hand.com/repos/;module=${PN};proto=http"
inherit autotools pkgconfig
CFLAGS_prepend = " -DFRAMES=5 "
```
Update SRC_URI (Sync from poky) | ```bitbake
LICENSE = "LGPL"
SECTION = "x11"
DEPENDS = "glib-2.0 gtk+ libglade eds-dbus"
MAINTAINER = "Chris Lord <[email protected]>"
DESCRIPTION = "Dates is a calendar application."
PR = "r5"
PV = "0.0+svn${SRCDATE}"
S = "${WORKDIR}/trunk"
SRC_URI = "svn://svn.o-hand.com/repos/${PN};module=trunk;proto=http"
inherit autotools pkgconfig
CFLAGS_prepend = " -DFRAMES=3 "
``` |
0848819d-9472-4350-ae57-5001bb704a45 | {
"language": "BitBake"
} | ```bitbake
require recipes-core/images/core-image-minimal.bb
SUMMARY = "A console-only image that fully supports the target device \
hardware."
LICENSE = "MIT"
IMAGE_INSTALL += "python"
```
Use python3 and install pyliblo by defaut for future needs | ```bitbake
require recipes-core/images/core-image-minimal.bb
SUMMARY = "A console-only image that fully supports the target device \
hardware."
LICENSE = "MIT"
IMAGE_INSTALL += "\
python3 \
python3-pyliblo \
"
``` |
e57e04c2-be76-4f4e-900c-90ff4b468782 | {
"language": "BitBake"
} | ```bitbake
require linux-ti-staging_5.10.bb
# Look in the generic major.minor directory for files
# This will have priority over generic non-rt path
FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}-5.10:"
BRANCH = "ti-rt-linux-5.10.y"
SRCREV = "bee192299392dc41c94f4603968b7a3c02f17a1d"
PV = "5.10.41+git${SRCPV}"
```
Update linux rt to 08.00.00.004 release | ```bitbake
require linux-ti-staging_5.10.bb
# Look in the generic major.minor directory for files
# This will have priority over generic non-rt path
FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}-5.10:"
BRANCH = "ti-rt-linux-5.10.y"
SRCREV = "0701a5b58c943909a38be9df38a3b4bdd8234340"
PV = "5.10.41+git${SRCPV}"
``` |
0eb39ae8-a330-49cc-889a-c5788f4e3ae0 | {
"language": "BitBake"
} | ```bitbake
require qt5.inc
require qt5-git.inc
LICENSE = "GFDL-1.3 & BSD & ( GPL-3.0 & The-Qt-Company-GPL-Exception-1.0 | The-Qt-Company-Commercial ) & ( GPL-2.0+ | LGPL-3.0 | The-Qt-Company-Commercial )"
LIC_FILES_CHKSUM = " \
file://LICENSE.LGPLv21;md5=4bfd28363f541b10d9f024181b8df516 \
file://LICENSE.LGPLv3;md5=e0459b45c5c4840b353141a8bbed91f0 \
file://LICENSE.GPLv3;md5=88e2b9117e6be406b5ed6ee4ca99a705 \
file://LGPL_EXCEPTION.txt;md5=9625233da42f9e0ce9d63651a9d97654 \
file://LICENSE.FDL;md5=6d9f2a9af4c8b8c3c769f6cc1b6aaf7e \
"
DEPENDS += "qtbase"
SRCREV = "0fcd0160662941a9ba800b36671e88d82790bd95"
```
Add HOMEPAGE info into recipe file. | ```bitbake
require qt5.inc
require qt5-git.inc
HOMEPAGE = "http://www.qt.io"
LICENSE = "GFDL-1.3 & BSD & ( GPL-3.0 & The-Qt-Company-GPL-Exception-1.0 | The-Qt-Company-Commercial ) & ( GPL-2.0+ | LGPL-3.0 | The-Qt-Company-Commercial )"
LIC_FILES_CHKSUM = " \
file://LICENSE.LGPLv21;md5=4bfd28363f541b10d9f024181b8df516 \
file://LICENSE.LGPLv3;md5=e0459b45c5c4840b353141a8bbed91f0 \
file://LICENSE.GPLv3;md5=88e2b9117e6be406b5ed6ee4ca99a705 \
file://LGPL_EXCEPTION.txt;md5=9625233da42f9e0ce9d63651a9d97654 \
file://LICENSE.FDL;md5=6d9f2a9af4c8b8c3c769f6cc1b6aaf7e \
"
DEPENDS += "qtbase"
SRCREV = "0fcd0160662941a9ba800b36671e88d82790bd95"
``` |
a2014dbe-b717-4990-888f-83263d2052da | {
"language": "BitBake"
} | ```bitbake
DESCRIPTION = "Debug Sub-System (DebugSS) driver for Keystone and DRA7xx devices"
LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://COPYING.txt;md5=9d4316fe434ba450dca4da25348ca5a3"
# This package builds a kernel module, use kernel PR as base and append a local
MACHINE_KERNEL_PR_append = "a"
PR = "${MACHINE_KERNEL_PR}"
PV_append = "+git${SRCPV}"
S = "${WORKDIR}/git/debugss_module/debugss-mod"
inherit module
PLATFORM = ""
PLATFORM_dra7xx = "DRA7xx_PLATFORM"
PLATFORM_keystone = "KEYSTONE_PLATFORM"
EXTRA_OEMAKE = "'PLATFORM=${PLATFORM}'"
COMPATIBLE_MACHINE = "dra7xx|keystone"
PACKAGE_ARCH = "${MACHINE_ARCH}"
include dsptop.inc
```
Fix build issue with fido | ```bitbake
DESCRIPTION = "Debug Sub-System (DebugSS) driver for Keystone and DRA7xx devices"
LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://COPYING.txt;md5=9d4316fe434ba450dca4da25348ca5a3"
# This package builds a kernel module, use kernel PR as base and append a local
MACHINE_KERNEL_PR_append = "b"
PR = "${MACHINE_KERNEL_PR}"
PV_append = "+git${SRCPV}"
S = "${WORKDIR}/git/debugss_module/debugss-mod"
inherit module
PLATFORM = ""
PLATFORM_dra7xx = "DRA7xx_PLATFORM"
PLATFORM_keystone = "KEYSTONE_PLATFORM"
EXTRA_OEMAKE = "'PLATFORM=${PLATFORM}' KVERSION=${KERNEL_VERSION} KERNEL_SRC=${STAGING_KERNEL_DIR}"
COMPATIBLE_MACHINE = "dra7xx|keystone"
PACKAGE_ARCH = "${MACHINE_ARCH}"
include dsptop.inc
``` |
dc83cad8-45be-47f7-8690-9df2df392350 | {
"language": "BitBake"
} | ```bitbake
#
# base recipe: meta/recipes-extended/logrotate/logrotate_3.8.7.bb
# base branch: daisy
#
PR = "r0"
inherit debian-package
LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://COPYING;md5=18810669f13b87348459e611d31ab760"
DEPENDS="coreutils popt"
# Avoid error:
# "logrotate.c:2180:40: error: 'VERSION' undeclared (first use in this function)"
# "-e" from EXTRA_OEMAKE makes the CFLAGS from the env overrides CFLAGS from logrotate/Makefile.
EXTRA_OEMAKE = ""
do_install(){
oe_runmake PREFIX=${D} MANDIR=${mandir} install
install -d ${D}${sysconfdir}/cron.daily
install -m 0644 ${S}/debian/logrotate.conf ${D}${sysconfdir}
install -m 0644 ${S}/debian/cron.daily ${D}${sysconfdir}/cron.daily/logrotate
}
```
Create local state directory create /var/lib/logrotate directory to storage information state of logrotate | ```bitbake
#
# base recipe: meta/recipes-extended/logrotate/logrotate_3.8.7.bb
# base branch: daisy
#
PR = "r0"
inherit debian-package
LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://COPYING;md5=18810669f13b87348459e611d31ab760"
DEPENDS="coreutils popt"
# Avoid error:
# "logrotate.c:2180:40: error: 'VERSION' undeclared (first use in this function)"
# "-e" from EXTRA_OEMAKE makes the CFLAGS from the env overrides CFLAGS from logrotate/Makefile.
EXTRA_OEMAKE = ""
do_install(){
oe_runmake PREFIX=${D} MANDIR=${mandir} install
install -d ${D}${sysconfdir}/cron.daily
install -m 0644 ${S}/debian/logrotate.conf ${D}${sysconfdir}
install -m 0644 ${S}/debian/cron.daily ${D}${sysconfdir}/cron.daily/logrotate
install -d ${D}${localstatedir}/lib/logrotate
}
``` |
700ef7c9-6a03-40d7-84ac-d626f3600640 | {
"language": "BitBake"
} | ```bitbake
SUMMARY = "Resin Package Groups"
LICENSE = "Apache-2.0"
PR = "r1"
inherit packagegroup
RESIN_INIT_PACKAGE ?= "resin-init"
RDEPENDS_${PN} = "\
${@bb.utils.contains('DISTRO_FEATURES', 'resin-staging', 'nano', '', d)} \
${RESIN_INIT_PACKAGE} \
linux-firmware-ath9k \
linux-firmware-ralink \
linux-firmware-rtl8192cu \
kernel-modules \
wireless-tools \
parted \
lvm2 \
openssl \
dosfstools \
e2fsprogs \
connman \
connman-client \
btrfs-tools \
apt \
rce \
tar \
util-linux \
socat \
jq curl \
resin-device-register \
resin-device-progress \
resin-device-update \
resin-btrfs-balance \
supervisor-init \
vpn-init \
bridge-utils \
"
```
Add iozone to staging build | ```bitbake
SUMMARY = "Resin Package Groups"
LICENSE = "Apache-2.0"
PR = "r1"
inherit packagegroup
RESIN_INIT_PACKAGE ?= "resin-init"
RESIN_STAGING_ADDONS = "iozone3 nano"
RDEPENDS_${PN} = "\
${@bb.utils.contains('DISTRO_FEATURES', 'resin-staging', '${RESIN_STAGING_ADDONS}', '', d)} \
${RESIN_INIT_PACKAGE} \
linux-firmware-ath9k \
linux-firmware-ralink \
linux-firmware-rtl8192cu \
kernel-modules \
wireless-tools \
parted \
lvm2 \
openssl \
dosfstools \
e2fsprogs \
connman \
connman-client \
btrfs-tools \
apt \
rce \
tar \
util-linux \
socat \
jq curl \
resin-device-register \
resin-device-progress \
resin-device-update \
resin-btrfs-balance \
supervisor-init \
vpn-init \
bridge-utils \
"
``` |
fdb7a949-9edd-45a0-a149-06cf61468bb7 | {
"language": "BitBake"
} | ```bitbake
require recipes-devtools/bison/${PN}_2.7.1.bb
FILESEXTRAPATHS_prepend = "${THISDIR}/files:${COREBASE}/meta/recipes-devtools/bison/bison:"
inherit debian-package
DEBIAN_SECTION = "devel"
DPR = "0"
LICENSE = "GPL-3.0"
LIC_FILES_CHKSUM = " \
file://COPYING;md5=d32239bcb673463ab874e80d47fae504 \
"
# Exclude following patches because they were tried to apply on
# doc/Makefile.am but there is no such file:
# fix_cross_manpage_building.patch
# dont-depend-on-help2man.patch
# FIXME: file doc/bison.texi is missing, temporarily build without document
# and examples for minimal implementation with
# remove-document-examples-target.patch
BASE_SRC_URI = " \
file://m4.patch \
file://remove-document-examples-target.patch \
"
SRC_URI_class-native = " \
${DEBIAN_SRC_URI} \
${BASE_SRC_URI} \
"
SRC_URI += " \
${BASE_SRC_URI} \
"
# avoid a parallel build problem in src/yacc
PARALLEL_MAKE = ""
```
Fix error gettext infrastructure mismatch | ```bitbake
require recipes-devtools/bison/${PN}_2.7.1.bb
FILESEXTRAPATHS_prepend = "${THISDIR}/files:${COREBASE}/meta/recipes-devtools/bison/bison:"
inherit debian-package
DEBIAN_SECTION = "devel"
DPR = "0"
LICENSE = "GPL-3.0"
LIC_FILES_CHKSUM = " \
file://COPYING;md5=d32239bcb673463ab874e80d47fae504 \
"
# Exclude following patches because they were tried to apply on
# doc/Makefile.am but there is no such file:
# fix_cross_manpage_building.patch
# dont-depend-on-help2man.patch
# FIXME: file doc/bison.texi is missing, temporarily build without document
# and examples for minimal implementation with
# remove-document-examples-target.patch
BASE_SRC_URI = " \
file://m4.patch \
file://remove-document-examples-target.patch \
"
SRC_URI_class-native = " \
${DEBIAN_SRC_URI} \
${BASE_SRC_URI} \
"
SRC_URI += " \
${BASE_SRC_URI} \
"
# avoid a parallel build problem in src/yacc
PARALLEL_MAKE = ""
do_configure_prepend(){
# Fix error gettext infrastructure mismatch
cp ${STAGING_DATADIR_NATIVE}/gettext/po/Makefile.in.in ${S}/runtime-po/
}
``` |
d39e41d1-1d6f-45c2-b497-d6a57a843684 | {
"language": "BitBake"
} | ```bitbake
SUMMARY = "A multi-platform support library with a focus on asynchronous I/O"
HOMEPAGE = "https://github.com/libuv/libuv"
BUGTRACKER = "https://github.com/libuv/libuv/issues"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://LICENSE;md5=a68902a430e32200263d182d44924d47"
SRC_URI = "https://github.com/libuv/libuv/archive/v${PV}.tar.gz"
SRC_URI[md5sum] = "cc2cf259442fbe85404e75691e8244e1"
SRC_URI[sha256sum] = "4afcdc84cd315b77c8e532e7b3fde43d536af0e2e835eafbd0e75518ed26dbed"
inherit autotools
do_configure() {
${S}/autogen.sh || bbnote "${PN} failed to autogen.sh"
oe_runconf
}
BBCLASSEXTEND = "native"
```
Switch to using git fetcher | ```bitbake
SUMMARY = "A multi-platform support library with a focus on asynchronous I/O"
HOMEPAGE = "https://github.com/libuv/libuv"
BUGTRACKER = "https://github.com/libuv/libuv/issues"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://LICENSE;md5=a68902a430e32200263d182d44924d47"
SRCREV = "a4fc9a66cc35256dbc4dcd67c910174f05b6daa6"
SRC_URI = "git://github.com/libuv/libuv"
S = "${WORKDIR}/git"
inherit autotools
do_configure() {
${S}/autogen.sh || bbnote "${PN} failed to autogen.sh"
oe_runconf
}
BBCLASSEXTEND = "native"
``` |
a8d3fe05-4781-4328-8409-6788f0fb9049 | {
"language": "BitBake"
} | ```bitbake
#
# base recipe: meta/recipes-devtools/chrpath/chrpath_0.16.bb
# base branch: daisy
#
PR = "r0"
inherit debian-package
LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://COPYING;md5=59530bdf33659b29e73d4adb9f9f6552"
SRC_URI += " \
file://standarddoc.patch \
"
inherit autotools
DEBIAN_PATCH_TYPE = "nopatch"
# We don't have a staged chrpath-native for ensuring our binary is
# relocatable, so use the one we've just built
CHRPATH_BIN_class-native = "${B}/chrpath"
PROVIDES_append_class-native = " chrpath-replacement-native"
NATIVE_PACKAGE_PATH_SUFFIX = "/${PN}"
BBCLASSEXTEND = "native nativesdk"
```
Update recipe for chrpath package | ```bitbake
#
# base recipe: meta/recipes-devtools/chrpath/chrpath_0.16.bb
# base branch: daisy
#
PR = "r0"
inherit debian-package
LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://COPYING;md5=59530bdf33659b29e73d4adb9f9f6552"
SRC_URI += " \
file://standarddoc.patch \
"
inherit autotools
# There is no debian patch
DEBIAN_PATCH_TYPE = "nopatch"
# We don't have a staged chrpath-native for ensuring our binary is
# relocatable, so use the one we've just built
CHRPATH_BIN_class-native = "${B}/chrpath"
PROVIDES_append_class-native = " chrpath-replacement-native"
NATIVE_PACKAGE_PATH_SUFFIX = "/${PN}"
BBCLASSEXTEND = "native nativesdk"
``` |
80fe2556-77e3-491f-b4eb-eb21e3b6434b | {
"language": "BitBake"
} | ```bitbake
require recipes-browser/wpewebkit/wpewebkit.inc
FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:../meta-webkit/recipes-browser/wpewebkit/wpewebkit:"
SRC_URI = "https://wpewebkit.org/releases/${PN}-${PV}.tar.xz \
file://0001-REGRESSION-r217927-WPE-2.22-GSTREAMER_GL-Video-appea.patch \
"
SRC_URI[md5sum] = "7b768bfae1295ebbc9a9038bf8fb6e6c"
SRC_URI[sha256sum] = "d5e7b23e4f9e9f1b9d369faa4d527cdb59aef56b3e6a50a16dad243df5f699f3"
DEPENDS += " libwpe"
RCONFLICTS_${PN} = "wpebackend (< 1.0) wpebackend-fdo (< 1.0)"
```
Fix relative patch to meta-webkit | ```bitbake
require recipes-browser/wpewebkit/wpewebkit.inc
FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:${THISDIR}/../../../meta-webkit/recipes-browser/wpewebkit/wpewebkit:"
SRC_URI = "https://wpewebkit.org/releases/${PN}-${PV}.tar.xz \
file://0001-REGRESSION-r217927-WPE-2.22-GSTREAMER_GL-Video-appea.patch \
"
SRC_URI[md5sum] = "7b768bfae1295ebbc9a9038bf8fb6e6c"
SRC_URI[sha256sum] = "d5e7b23e4f9e9f1b9d369faa4d527cdb59aef56b3e6a50a16dad243df5f699f3"
DEPENDS += " libwpe"
RCONFLICTS_${PN} = "wpebackend (< 1.0) wpebackend-fdo (< 1.0)"
``` |
4f61ea73-b287-46f7-9200-5ad1b165282a | {
"language": "BitBake"
} | ```bitbake
require pidgin.inc
PR = "${INC_PR}.0"
DEPENDS += "farsight2"
SRC_URI = "\
${SOURCEFORGE_MIRROR}/pidgin/pidgin-${PV}.tar.bz2 \
file://sanitize-configure.ac.patch;patch=1 \
file://pidgin.desktop-set-icon.patch;patch=1 \
file://purple-OE-branding-25.patch;patch=1 \
file://pidgin-cross-python.patch;patch=1 \
file://status-icon-theme-crash.patch;patch=1 \
"
EXTRA_OECONF += "\
--disable-gtkspell \
--disable-meanwhile \
--disable-nm \
--disable-screensaver \
"
```
Add libidn to DEPENDS, bump INC_PR | ```bitbake
require pidgin.inc
PR = "${INC_PR}.1"
DEPENDS += "farsight2 libidn"
SRC_URI = "\
${SOURCEFORGE_MIRROR}/pidgin/pidgin-${PV}.tar.bz2 \
file://sanitize-configure.ac.patch;patch=1 \
file://pidgin.desktop-set-icon.patch;patch=1 \
file://purple-OE-branding-25.patch;patch=1 \
file://pidgin-cross-python.patch;patch=1 \
file://status-icon-theme-crash.patch;patch=1 \
"
EXTRA_OECONF += "\
--disable-gtkspell \
--disable-meanwhile \
--disable-nm \
--disable-screensaver \
"
``` |
f1a94010-ad37-49ad-9b8f-8da2716ec224 | {
"language": "BitBake"
} | ```bitbake
DESCRIPTION = "Library to implement a well-behaved Unix daemon process"
HOMEPAGE = "http://pypi.python.org/pypi/python-daemon/"
SECTION = "devel/python"
PRIORITY = "optional"
LICENSE = "PSF"
SRCNAME = "daemon"
PR = "ml1"
SRC_URI = "http://pypi.python.org/packages/source/p/python-daemon/python-daemon-${PV}.tar.gz"
S = "${WORKDIR}/python-daemon-${PV}"
inherit setuptools
RDEPENDS_${PN} = "\
python-core \
"
SRC_URI[md5sum] = "1f6cd41473c2e201021a0aeef395b2b1"
SRC_URI[sha256sum] = "1406962e48ce03642c6057f40f9ffd49493792a7b34357fe9e264708748c83c0"
```
Fix rev on Python daemon recipe | ```bitbake
DESCRIPTION = "Library to implement a well-behaved Unix daemon process"
HOMEPAGE = "http://pypi.python.org/pypi/python-daemon/"
SECTION = "devel/python"
PRIORITY = "optional"
LICENSE = "PSF"
SRCNAME = "daemon"
PR = "r0"
SRC_URI = "http://pypi.python.org/packages/source/p/python-daemon/python-daemon-${PV}.tar.gz"
S = "${WORKDIR}/python-daemon-${PV}"
inherit setuptools
RDEPENDS_${PN} = "\
python-core \
"
SRC_URI[md5sum] = "1f6cd41473c2e201021a0aeef395b2b1"
SRC_URI[sha256sum] = "1406962e48ce03642c6057f40f9ffd49493792a7b34357fe9e264708748c83c0"
``` |
696d4ef8-d8e8-4fde-afc0-fcbcfffa178a | {
"language": "BitBake"
} | ```bitbake
PR = "r3"
MAINTAINER = "Oyvind Repvik <[email protected]"
DEPENDS = "libol-native"
SRC_URI = "http://www.balabit.com/downloads/libol/0.3/${PN}-${PV}.tar.gz"
S = "${WORKDIR}/${PN}-${PV}"
inherit autotools
do_stage() {
install -d ${STAGING_INCDIR}/libol
install -m 0644 ${S}/libol-config ${STAGING_BINDIR}
install -m 0644 ${S}/src/.libs/libol.so.0.0.0 ${STAGING_LIBDIR}
ln -fs ${STAGING_LIBDIR}/libol.so.0.0.0 ${STAGING_LIBDIR}/libol.so.0
install ${S}/src/*.h ${STAGING_INCDIR}/libol/
}
```
Remove libol-native dependency, since it's not needed (and don't exist either) | ```bitbake
PR = "r3"
MAINTAINER = "Oyvind Repvik <[email protected]"
SRC_URI = "http://www.balabit.com/downloads/libol/0.3/${PN}-${PV}.tar.gz"
S = "${WORKDIR}/${PN}-${PV}"
inherit autotools
do_stage() {
install -d ${STAGING_INCDIR}/libol
install -m 0644 ${S}/libol-config ${STAGING_BINDIR}
install -m 0644 ${S}/src/.libs/libol.so.0.0.0 ${STAGING_LIBDIR}
ln -fs ${STAGING_LIBDIR}/libol.so.0.0.0 ${STAGING_LIBDIR}/libol.so.0
install ${S}/src/*.h ${STAGING_INCDIR}/libol/
}
``` |
bb69c1d1-b64f-457e-97fc-0734557149a4 | {
"language": "BitBake"
} | ```bitbake
DESCRIPTION = "mpg321 is a Free replacement for mpg123, a very popular command-line mp3 player."
SECTION = "console/multimedia"
DEPENDS = "libmad libao"
LICENSE = "GPL"
AUTHOR = "Joe Drew <[email protected]>"
HOMEPAGE = "http://mpg321.sourceforge.net/"
SRC_URI = "${SOURCEFORGE_MIRROR}/mpg321/mpg321-0.2.10.tar.gz \
file://libao.m4.patch;patch=1"
inherit autotools
```
Add --with-ao-includes and --with-ao-libraries to avoid CROSS COMPILE gcc failure | ```bitbake
DESCRIPTION = "mpg321 is a Free replacement for mpg123, a very popular command-line mp3 player."
SECTION = "console/multimedia"
DEPENDS = "libmad libao"
LICENSE = "GPL"
AUTHOR = "Joe Drew <[email protected]>"
HOMEPAGE = "http://mpg321.sourceforge.net/"
SRC_URI = "${SOURCEFORGE_MIRROR}/mpg321/mpg321-0.2.10.tar.gz \
file://libao.m4.patch;patch=1"
inherit autotools
EXTRA_OECONF="--with-ao-includes=${STAGING_INCDIR} --with-ao-libraries=${STAGING_LIBDIR}"
``` |
06c632e4-11a4-42cc-9800-035bb595ed79 | {
"language": "BitBake"
} | ```bitbake
DESCRIPTION = "GNU roff"
SECTION = "base"
LICENSE = "GPL"
PR = "r2"
SRC_URI = "http://ftp.gnu.org/gnu/groff/groff-${PV}.tar.gz \
"
SRC_URI[md5sum] = "48fa768dd6fdeb7968041dd5ae8e2b02"
SRC_URI[sha256sum] = "b645878135cb620c6c417c5601bfe96172245af12045540d7344938b4c2cd805"
inherit autotools
PARALLEL_MAKE = ""
do_configure_prepend(){
if [ "${BUILD_SYS}" != "${HOST_SYS}" ]; then
sed -i \
-e '/^GROFFBIN=/s:=.*:=echo:' \
-e '/^TROFFBIN=/s:=.*:=echo:' \
-e '/^GROFF_BIN_PATH=/s:=.*:=:' \
-e '/^GROFF_BIN_DIR=/s:=.*:=:' \
${S}/contrib/*/Makefile.sub \
${S}/doc/Makefile.in \
${S}/doc/Makefile.sub
fi
}
BBCLASSEXTEND = "native"
```
Fix do_install in certain cases, along with DEPENDS | ```bitbake
DESCRIPTION = "GNU roff"
SECTION = "base"
LICENSE = "GPL"
PR = "r3"
SRC_URI = "${GNU_MIRROR}/groff/groff-${PV}.tar.gz"
SRC_URI[md5sum] = "48fa768dd6fdeb7968041dd5ae8e2b02"
SRC_URI[sha256sum] = "b645878135cb620c6c417c5601bfe96172245af12045540d7344938b4c2cd805"
DEPENDS = "groff-native"
DEPENDS_virtclass-native = ""
inherit autotools
PARALLEL_MAKE = ""
do_configure_prepend(){
if [ "${BUILD_SYS}" != "${HOST_SYS}" ]; then
sed -i \
-e '/^GROFFBIN=/s:=.*:=${STAGING_BINDIR_NATIVE}/groff:' \
-e '/^TROFFBIN=/s:=.*:=${STAGING_BINDIR_NATIVE}/troff:' \
-e '/^GROFF_BIN_PATH=/s:=.*:=${STAGING_BINDIR_NATIVE}:' \
-e '/^GROFF_BIN_DIR=/s:=.*:=${STAGING_BINDIR_NATIVE}:' \
${S}/contrib/*/Makefile.sub \
${S}/doc/Makefile.in \
${S}/doc/Makefile.sub
fi
}
BBCLASSEXTEND = "native"
``` |
448ae719-5126-4ca6-bad7-e7ea7d4bd26a | {
"language": "BitBake"
} | ```bitbake
DESCRIPTION = "Phalanx is a chess playing engine."
SECTION = "opie/libs"
PRIORITY = "optional"
PR = "r3"
LICENSE = "GPL"
SRC_URI = "ftp://ftp.math.muni.cz/pub/math/people/Dobes/phalanx-22.tar.gz \
file://gcc3.patch;patch=1 \
file://capabilities \
file://description"
S = "${WORKDIR}/Phalanx-XXII"
do_compile() {
oe_runmake CC="${CC}" CFLAGS="${CFLAGS}" STRIP=echo LD="${CC}"
}
do_install() {
install -d ${D}${palmtopdir}/chess/engines/Phalanx
install -D -m 755 phalanx ${D}${palmtopdir}/chess/engines/Phalanx/phalanx
install -D -m 755 pbook.phalanx ${D}${palmtopdir}/chess/engines/Phalanx/pbook.phalanx
>${D}${palmtopdir}/chess/engines/Phalanx/sbook.phalanx
>${D}${palmtopdir}/chess/engines/Phalanx/learn.phalanx
install -D -m 755 ${WORKDIR}/capabilities ${D}${palmtopdir}/chess/engines/Phalanx/capabilities
install -D -m 755 ${WORKDIR}/description ${D}${palmtopdir}/chess/engines/Phalanx/description
}
FILES_${PN} = "${palmtopdir}/chess"
```
Fix SRC_URI and .debug QA error. | ```bitbake
DESCRIPTION = "Phalanx is a chess playing engine."
SECTION = "opie/libs"
PRIORITY = "optional"
PR = "r4"
LICENSE = "GPL"
SRC_URI = "http://ftp.debian.org/debian/pool/main/p/phalanx/phalanx_22.orig.tar.gz \
file://gcc3.patch;patch=1 \
file://capabilities \
file://description"
S = "${WORKDIR}/phalanx-22.orig"
do_compile() {
oe_runmake CC="${CC}" CFLAGS="${CFLAGS}" STRIP=echo LD="${CC}"
}
do_install() {
install -d ${D}${palmtopdir}/chess/engines/Phalanx
install -D -m 755 phalanx ${D}${palmtopdir}/chess/engines/Phalanx/phalanx
install -D -m 755 pbook.phalanx ${D}${palmtopdir}/chess/engines/Phalanx/pbook.phalanx
>${D}${palmtopdir}/chess/engines/Phalanx/sbook.phalanx
>${D}${palmtopdir}/chess/engines/Phalanx/learn.phalanx
install -D -m 755 ${WORKDIR}/capabilities ${D}${palmtopdir}/chess/engines/Phalanx/capabilities
install -D -m 755 ${WORKDIR}/description ${D}${palmtopdir}/chess/engines/Phalanx/description
}
FILES_${PN} = "${palmtopdir}/chess"
FILES_${PN}-dbg += "${palmtopdir}/chess/engines/Phalanx/.debug"
``` |
bc0bf43e-fbec-4cd6-ac86-c0ffd0929002 | {
"language": "BitBake"
} | ```bitbake
require osb-nrcore.inc
DEFAULT_PREFERENCE = "-1"
PV = "0.5.2+svn${SRCDATE}"
PR = "r0"
SRC_URI = "svn://gtk-webcore.svn.sourceforge.net/svnroot/gtk-webcore/trunk;module=NRCore;proto=https \
file://gcc4-fno-threadsafe-statics-NRCore.patch;patch=1 \
file://build_silence.patch;patch=0;maxdate=20070401"
S = "${WORKDIR}/NRCore"
```
Update to build latest svn trunk. | ```bitbake
require osb-nrcore.inc
DEFAULT_PREFERENCE = "-1"
PV = "0.5.2+svn${SRCDATE}"
PR = "r0"
SRC_URI = "svn://gtk-webcore.svn.sourceforge.net/svnroot/gtk-webcore/trunk;module=NRCore;proto=https \
file://gcc4-fno-threadsafe-statics-NRCore.patch;patch=1 \
file://build_silence.patch;patch=0;maxdate=20070401"
S = "${WORKDIR}/NRCore"
do_stage () {
oe_libinstall -so libgtk_webcore_nrcore ${STAGING_LIBDIR}
oe_libinstall -so -C kwiq libgtk_webcore_nrcore_kwiq_gtk ${STAGING_LIBDIR}
autotools_stage_includes
install -d ${STAGING_INCDIR}/osb/NRCore
for i in ${S}/kwiq/WebCore*.h ${S}/kwiq/KWIQ*.h; do
install -m 0644 $i ${STAGING_INCDIR}/osb/NRCore
done
}
``` |
fa44a564-b3a4-4b6c-bccc-c6832cc82cc4 | {
"language": "BitBake"
} | ```bitbake
SUMMARY = "Building and installing bootgen"
DESCRIPTION = "Building and installing bootgen, a Xilinx tool that lets you stitch binary files together and generate device boot images"
LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://LICENSE;md5=d526b6d0807bf263b97da1da876f39b1"
S = "${WORKDIR}/git"
DEPENDS += "openssl"
RDEPENDS:${PN} += "openssl"
REPO ?= "git://github.com/Xilinx/bootgen.git;protocol=https"
BRANCH ?= "xlnx_rel_v2022.2"
SRCREV = "8c303a5f9c1db67a9f8b7643678740d007bf567c"
BRANCHARG = "${@['nobranch=1', 'branch=${BRANCH}'][d.getVar('BRANCH', True) != '']}"
SRC_URI = "${REPO};${BRANCHARG}"
EXTRA_OEMAKE += 'CROSS_COMPILER="${CXX}" -C ${S}'
CXXFLAGS:append = " -std=c++0x"
TARGET_CC_ARCH += "${LDFLAGS}"
do_install() {
install -d ${D}${bindir}
install -Dm 0755 ${S}/bootgen ${D}${bindir}
}
FILES:${PN} = "${bindir}/bootgen"
BBCLASSEXTEND = "native nativesdk"
```
Update to bootgen SRCREV to point to latest commit | ```bitbake
SUMMARY = "Building and installing bootgen"
DESCRIPTION = "Building and installing bootgen, a Xilinx tool that lets you stitch binary files together and generate device boot images"
LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://LICENSE;md5=d526b6d0807bf263b97da1da876f39b1"
S = "${WORKDIR}/git"
DEPENDS += "openssl"
RDEPENDS:${PN} += "openssl"
REPO ?= "git://github.com/Xilinx/bootgen.git;protocol=https"
BRANCH ?= "xlnx_rel_v2022.2"
SRCREV = "cf4ba93b99644dc4429ef633471a639e1382f0e7"
BRANCHARG = "${@['nobranch=1', 'branch=${BRANCH}'][d.getVar('BRANCH', True) != '']}"
SRC_URI = "${REPO};${BRANCHARG}"
EXTRA_OEMAKE += 'CROSS_COMPILER="${CXX}" -C ${S}'
CXXFLAGS:append = " -std=c++0x"
TARGET_CC_ARCH += "${LDFLAGS}"
do_install() {
install -d ${D}${bindir}
install -Dm 0755 ${S}/bootgen ${D}${bindir}
}
FILES:${PN} = "${bindir}/bootgen"
BBCLASSEXTEND = "native nativesdk"
``` |
d539d0a0-64cf-4c0e-b22d-55e47289312e | {
"language": "BitBake"
} | ```bitbake
require ttf.inc
SUMMARY = "Hunky fonts - TTF Version"
HOMEPAGE = "http://sourceforge.net/projects/hunkyfonts"
LICENSE = "LGPL"
LIC_FILES_CHKSUM = "file://../LICENSE;md5=7fbc338309ac38fefcd64b04bb903e34"
PR = "r7"
SRC_URI = "${SOURCEFORGE_MIRROR}/hunkyfonts/hunkyfonts-${PV}.tar.bz2"
S = "${WORKDIR}/hunkyfonts-${PV}/TTF/"
PACKAGES = "ttf-hunky-sans ttf-hunky-serif"
FONT_PACKAGES = "ttf-hunky-sans ttf-hunky-serif"
FILES_ttf-hunky-sans = "${datadir}/fonts/truetype/HunkySans*.ttf"
FILES_ttf-hunky-serif = "${datadir}/fonts/truetype/HunkySerif*.ttf"
SRC_URI[md5sum] = "36444795a356fb8a56c63b2840729bab"
SRC_URI[sha256sum] = "e0b1849c545b6af276407d93025c73094dd74fc259b07c1d91594fdbb9a0b829"
```
Use LGPL-2.1 which is correct version from LICENSE file | ```bitbake
require ttf.inc
SUMMARY = "Hunky fonts - TTF Version"
HOMEPAGE = "http://sourceforge.net/projects/hunkyfonts"
LICENSE = "LGPL-2.1+"
LIC_FILES_CHKSUM = "file://../LICENSE;md5=7fbc338309ac38fefcd64b04bb903e34"
PR = "r7"
SRC_URI = "${SOURCEFORGE_MIRROR}/hunkyfonts/hunkyfonts-${PV}.tar.bz2"
S = "${WORKDIR}/hunkyfonts-${PV}/TTF/"
PACKAGES = "ttf-hunky-sans ttf-hunky-serif"
FONT_PACKAGES = "ttf-hunky-sans ttf-hunky-serif"
FILES_ttf-hunky-sans = "${datadir}/fonts/truetype/HunkySans*.ttf"
FILES_ttf-hunky-serif = "${datadir}/fonts/truetype/HunkySerif*.ttf"
SRC_URI[md5sum] = "36444795a356fb8a56c63b2840729bab"
SRC_URI[sha256sum] = "e0b1849c545b6af276407d93025c73094dd74fc259b07c1d91594fdbb9a0b829"
``` |
71adaf2d-3767-4f19-b505-ee07e81a000e | {
"language": "BitBake"
} | ```bitbake
include libnfnetlink.inc
PR = "${INC_PR}.0"
SRC_URI[libnfnetlink-1.0.0.md5sum] = "016fdec8389242615024c529acc1adb8"
SRC_URI[libnfnetlink-1.0.0.sha256sum] = "3752b03a4c09821ee9a2528d69289423a01e7171f1a22dfdd11d5459e03972fb"
```
Update LICENSE field version to GPLv2 | ```bitbake
include libnfnetlink.inc
LICENSE = "GPLv2+"
PR = "${INC_PR}.1"
SRC_URI[libnfnetlink-1.0.0.md5sum] = "016fdec8389242615024c529acc1adb8"
SRC_URI[libnfnetlink-1.0.0.sha256sum] = "3752b03a4c09821ee9a2528d69289423a01e7171f1a22dfdd11d5459e03972fb"
``` |
f92e73fa-3b94-46e5-86fc-74343b8e499b | {
"language": "BitBake"
} | ```bitbake
DESCRIPTION = "The Audio File Library provides a uniform and elegant \
API for accessing a variety of audio file formats, such as AIFF/AIFF-C, \
WAVE, NeXT/Sun .snd/.au, Berkeley/IRCAM/CARL Sound File, Audio Visual \
Research, Amiga IFF/8SVX, and NIST SPHERE."
HOMEPAGE = "http://www.68k.org/~michael/audiofile/"
SECTION = "libs"
LICENSE = "LGPLv2 & GPLv2"
LIC_FILES_CHKSUM = "file://COPYING;md5=3bf50002aefd002f49e7bb854063f7e7 \
file://COPYING.GPL;md5=0636e73ff0215e8d672dc4c32c317bb3"
SRC_URI = "http://www.68k.org/~michael/audiofile/${BP}.tar.gz"
SRC_URI[md5sum] = "a39be317a7b1971b408805dc5e371862"
SRC_URI[sha256sum] = "a61c4036c2600a645843f16bec4be166093a9df5f15b02c85291213aa9cf15a2"
inherit autotools lib_package binconfig
```
Use gnome mirrors for SRC_URI | ```bitbake
DESCRIPTION = "The Audio File Library provides a uniform and elegant \
API for accessing a variety of audio file formats, such as AIFF/AIFF-C, \
WAVE, NeXT/Sun .snd/.au, Berkeley/IRCAM/CARL Sound File, Audio Visual \
Research, Amiga IFF/8SVX, and NIST SPHERE."
HOMEPAGE = "http://www.68k.org/~michael/audiofile/"
SECTION = "libs"
LICENSE = "LGPLv2 & GPLv2"
LIC_FILES_CHKSUM = "file://COPYING;md5=3bf50002aefd002f49e7bb854063f7e7 \
file://COPYING.GPL;md5=0636e73ff0215e8d672dc4c32c317bb3"
SRC_URI = "${GNOME_MIRROR}/audiofile/0.2/${BP}.tar.gz"
SRC_URI[md5sum] = "a39be317a7b1971b408805dc5e371862"
SRC_URI[sha256sum] = "a61c4036c2600a645843f16bec4be166093a9df5f15b02c85291213aa9cf15a2"
inherit autotools lib_package binconfig
``` |
d257a895-4518-4279-a46f-fcb4fa4a389b | {
"language": "BitBake"
} | ```bitbake
DESCRIPTION = "Base package set for Jlime GUI images."
SECTION = "x11/wm"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
PR = "r1"
inherit task
PROVIDES = "${PACKAGES}"
PACKAGES = "\
${PN}-cli \
${PN}-gui \
"
RDEPENDS_${PN}-cli = " \
htop \
file \
vim \
"
RDEPENDS_${PN}-gui = " \
leafpad \
gcalctool \
epdfview \
midori \
claws-mail \
"
```
Add some more usefull apps. | ```bitbake
DESCRIPTION = "Base package set for Jlime GUI images."
SECTION = "x11/wm"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
PR = "r2"
inherit task
PROVIDES = "${PACKAGES}"
PACKAGES = "\
${PN}-cli \
${PN}-gui \
"
RDEPENDS_${PN}-cli = " \
htop \
lsof \
file \
vim \
"
RDEPENDS_${PN}-gui = " \
leafpad \
gcalctool \
epdfview \
midori \
claws-mail \
pidgin \
"
``` |
ff4924c3-ceaa-4d95-9126-ad58c6bec308 | {
"language": "BitBake"
} | ```bitbake
# Bitbake recipe for the madwifi-ng driver
DEFAULT_PREFERENCE = "-1"
# Disable stripping of kernel modules, since this action strips too
# much out, and the resulting module won't load.
INHIBIT_PACKAGE_STRIP = "1"
require madwifi-ng_r.inc
# PR set after the include, to override what's set in the included file.
# PR = "r1"
```
Enable latest version for ixp4xx | ```bitbake
# Bitbake recipe for the madwifi-ng driver
DEFAULT_PREFERENCE = "-1"
DEFAULT_PREFERENCE_ixp4xx = "1"
# Disable stripping of kernel modules, since this action strips too
# much out, and the resulting module won't load.
INHIBIT_PACKAGE_STRIP = "1"
require madwifi-ng_r.inc
# PR set after the include, to override what's set in the included file.
# PR = "r1"
``` |
86057f84-aa0a-4829-9553-8a50a49796fe | {
"language": "BitBake"
} | ```bitbake
DESCRIPTION = "Doxygen is the de facto standard tool for generating documentation from annotated C++ sources."
HOMEPAGE = "http://www.doxygen.org/"
LICENSE = "GPL-2.0"
LIC_FILES_CHKSUM = "file://LICENSE;md5=b234ee4d69f5fce4486a80fdaf4a4263"
inherit cmake python3native
DEPENDS = "flex-native bison-native"
SRC_URI = "${SOURCEFORGE_MIRROR}/${BPN}/${BP}.src.tar.gz \
file://0001-build-don-t-look-for-Iconv.patch"
SRC_URI[md5sum] = "2c98c73eba392d334f5bbaf15e09bae3"
SRC_URI[sha256sum] = "bd9c0ec462b6a9b5b41ede97bede5458e0d7bb40d4cfa27f6f622eb33c59245d"
BBCLASSEXTEND = "native"
```
Make it build with ninja 1.9.0 | ```bitbake
DESCRIPTION = "Doxygen is the de facto standard tool for generating documentation from annotated C++ sources."
HOMEPAGE = "http://www.doxygen.org/"
LICENSE = "GPL-2.0"
LIC_FILES_CHKSUM = "file://LICENSE;md5=b234ee4d69f5fce4486a80fdaf4a4263"
DEPENDS = "flex-native bison-native"
SRC_URI = "${SOURCEFORGE_MIRROR}/${BPN}/${BP}.src.tar.gz \
file://0001-build-don-t-look-for-Iconv.patch"
SRC_URI[md5sum] = "2c98c73eba392d334f5bbaf15e09bae3"
SRC_URI[sha256sum] = "bd9c0ec462b6a9b5b41ede97bede5458e0d7bb40d4cfa27f6f622eb33c59245d"
inherit cmake python3native
# Avoid the following error:
# ninja: error: build.ninja:1948: multiple rules generate
# generated_src/configvalues.h [-w dupbuild=err]
EXTRA_OECMAKE_BUILD += "-w dupbuild=warn"
BBCLASSEXTEND = "native"
``` |
ec50949c-d86e-4705-a43a-82fdc5dd5152 | {
"language": "BitBake"
} | ```bitbake
DESCRIPTION = "microcom is a small minicom-like serial terminal emulator with \
scripting support."
LICENSE = "GPL"
# http://microcom.port5.com/m102.tar.gz is no longer available
#NOTE: this should probably be converted to pull from sourceforge
# CVS, because openwrt is just another mirror of a file which no
# longer seems to exist outside mirrors. mirror magic.
SRC_URI = "http://downloads.openwrt.org/sources/m102.tar.gz \
file://make.patch"
S = "${WORKDIR}"
do_install () {
install -d ${D}${bindir}
install -m 0755 microcom ${D}${bindir}/
}
SRC_URI[md5sum] = "c7817035dc41cb02e7cfb565cf9b7401"
SRC_URI[sha256sum] = "d7ee2e668455f9a092418e5475f32676eb0b37c54ae38a7fcdf2d14e0fb80c91"
```
Switch to subdir= in SRC_URI | ```bitbake
DESCRIPTION = "microcom is a small minicom-like serial terminal emulator with \
scripting support."
LICENSE = "GPL"
# http://microcom.port5.com/m102.tar.gz is no longer available
#NOTE: this should probably be converted to pull from sourceforge
# CVS, because openwrt is just another mirror of a file which no
# longer seems to exist outside mirrors. mirror magic.
SRC_URI = "http://downloads.openwrt.org/sources/m102.tar.gz;subdir=${BPN}-${PV} \
file://make.patch"
do_install () {
install -d ${D}${bindir}
install -m 0755 microcom ${D}${bindir}/
}
SRC_URI[md5sum] = "c7817035dc41cb02e7cfb565cf9b7401"
SRC_URI[sha256sum] = "d7ee2e668455f9a092418e5475f32676eb0b37c54ae38a7fcdf2d14e0fb80c91"
``` |
551c9954-179e-400b-8041-5998b524051f | {
"language": "BitBake"
} | ```bitbake
require swupdate.inc
require swupdate_tools.inc
DEFAULT_PREFERENCE = "-1"
# If a recipe sets SRCREV to ${AUTOREV}, bitbake tries
# a git ls-remote. This breaks when a mirror is built
# and BB_NO_NETWORK is set.
# To work-around the issue, sets the revision for the git
# version to a fix commit (not relevant)
# In casethe _git version is chosen, sets the revision
# to TOT to test with last commit-id.
def version_git(d):
version = d.getVar("PREFERRED_VERSION_%s" % d.getVar('PN', False), False)
if version is not None and "git" in version:
return d.getVar('AUTOREV', False)
else:
return "c0fec16b3fc82b0db12d8ac58be7055ed1b8d439"
SRCREV ?= '${@version_git(d)}'
```
Revert "Use backward compatible syntax for `getVar()`" | ```bitbake
require swupdate.inc
require swupdate_tools.inc
DEFAULT_PREFERENCE = "-1"
# If a recipe sets SRCREV to ${AUTOREV}, bitbake tries
# a git ls-remote. This breaks when a mirror is built
# and BB_NO_NETWORK is set.
# To work-around the issue, sets the revision for the git
# version to a fix commit (not relevant)
# In casethe _git version is chosen, sets the revision
# to TOT to test with last commit-id.
def version_git(d):
version = d.getVar("PREFERRED_VERSION_%s" % d.getVar('PN'))
if version is not None and "git" in version:
return d.getVar("AUTOREV")
else:
return "c0fec16b3fc82b0db12d8ac58be7055ed1b8d439"
SRCREV ?= '${@version_git(d)}'
``` |
e426451f-4fb1-4416-a621-1c8c7d20d867 | {
"language": "BitBake"
} | ```bitbake
inherit setuptools
require python-pycodestyle.inc
RDEPENDS_${PN} += "${PYTHON_PN}-lang"
```
Fix conflict error with python3-pycodestyle during do_rootfs | ```bitbake
inherit setuptools
require python-pycodestyle.inc
RDEPENDS_${PN} += "${PYTHON_PN}-lang"
do_install_append () {
if [ -f ${D}${bindir}/pycodestyle ]; then
mv ${D}${bindir}/pycodestyle ${D}${bindir}/pycodestyle-2
fi
}
``` |
fb235251-d1ae-499d-a54b-f4266b8b5473 | {
"language": "BitBake"
} | ```bitbake
SUMMARY = "GNOME Shell Extensions"
LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://COPYING;md5=4cb3a392cbf81a9e685ec13b88c4c101"
GNOMEBASEBUILDCLASS = "meson"
inherit gnomebase gettext gsettings features_check
REQUIRED_DISTRO_FEATURES = "x11 polkit systemd pam gobject-introspection-data"
SRC_URI[archive.sha256sum] = "d0e6f2273f08d52d925fc2bb66b47b28e5ef50d1b8a14020877c662423d507d3"
DEPENDS += " \
sassc-native \
"
EXTRA_OEMESON += " \
-Dextension_set=all \
-Dclassic_mode=true \
"
RDEPENDS:${PN} += "gnome-shell"
FILES:${PN} += " \
${datadir}/gnome-shell \
${datadir}/gnome-session \
${datadir}/xsessions \
"
```
Enable gnome-classic session for wayland | ```bitbake
SUMMARY = "GNOME Shell Extensions"
LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://COPYING;md5=4cb3a392cbf81a9e685ec13b88c4c101"
GNOMEBASEBUILDCLASS = "meson"
inherit gnomebase gettext gsettings features_check
REQUIRED_DISTRO_FEATURES = "x11 polkit systemd pam gobject-introspection-data"
SRC_URI[archive.sha256sum] = "d0e6f2273f08d52d925fc2bb66b47b28e5ef50d1b8a14020877c662423d507d3"
DEPENDS += " \
sassc-native \
"
EXTRA_OEMESON += " \
-Dextension_set=all \
-Dclassic_mode=true \
"
do_install:append() {
# enable gnome-classic session for wayland
install -d ${D}${datadir}/wayland-sessions
install -m644 ${D}${datadir}/xsessions/gnome-classic.desktop ${D}${datadir}/wayland-sessions/
}
RDEPENDS:${PN} += "gnome-shell"
FILES:${PN} += " \
${datadir}/gnome-shell \
${datadir}/gnome-session \
${datadir}/wayland-sessions \
${datadir}/xsessions \
"
``` |
6617862d-0fe5-4723-9e6d-e796bd669af9 | {
"language": "BitBake"
} | ```bitbake
SUMMARY = "Building and installing bootgen"
DESCRIPTION = "Building and installing bootgen, a Xilinx tool that lets you stitch binary files together and generate device boot images"
LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://LICENSE;md5=d526b6d0807bf263b97da1da876f39b1"
S = "${WORKDIR}/git"
DEPENDS += "openssl"
RDEPENDS:${PN} += "openssl"
REPO ?= "git://github.com/Xilinx/bootgen.git;protocol=https"
BRANCH ?= "xlnx_rel_v2022.1"
SRCREV = "0a6c53b6a057879c236e7194e5f818d146cf3461"
BRANCHARG = "${@['nobranch=1', 'branch=${BRANCH}'][d.getVar('BRANCH', True) != '']}"
SRC_URI = "${REPO};${BRANCHARG}"
EXTRA_OEMAKE += 'CROSS_COMPILER="${CXX}" -C ${S}'
CXXFLAGS:append = " -std=c++0x"
TARGET_CC_ARCH += "${LDFLAGS}"
do_install() {
install -d ${D}${bindir}
install -Dm 0755 ${S}/bootgen ${D}${bindir}
}
FILES:${PN} = "${bindir}/bootgen"
BBCLASSEXTEND = "native nativesdk"
```
Update to bootgen SRCREV to point to latest commit. | ```bitbake
SUMMARY = "Building and installing bootgen"
DESCRIPTION = "Building and installing bootgen, a Xilinx tool that lets you stitch binary files together and generate device boot images"
LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://LICENSE;md5=d526b6d0807bf263b97da1da876f39b1"
S = "${WORKDIR}/git"
DEPENDS += "openssl"
RDEPENDS:${PN} += "openssl"
REPO ?= "git://github.com/Xilinx/bootgen.git;protocol=https"
BRANCH ?= "xlnx_rel_v2022.1"
SRCREV = "2b8859218defc9983b6d312c8be48d0c08070ca1"
BRANCHARG = "${@['nobranch=1', 'branch=${BRANCH}'][d.getVar('BRANCH', True) != '']}"
SRC_URI = "${REPO};${BRANCHARG}"
EXTRA_OEMAKE += 'CROSS_COMPILER="${CXX}" -C ${S}'
CXXFLAGS:append = " -std=c++0x"
TARGET_CC_ARCH += "${LDFLAGS}"
do_install() {
install -d ${D}${bindir}
install -Dm 0755 ${S}/bootgen ${D}${bindir}
}
FILES:${PN} = "${bindir}/bootgen"
BBCLASSEXTEND = "native nativesdk"
``` |
94ae9621-1ab5-4f3f-ae27-699ec779d4f1 | {
"language": "BitBake"
} | ```bitbake
DESCRIPTION = "Demo application to showcase 3D graphics on SGX using kms and gbm"
HOMEPAGE = "http://git.ti.com"
LICENSE = "BSD"
LIC_FILES_CHKSUM = "file://kmscube.c;beginline=1;endline=23;md5=e760965096e52da8f3969dd53b6bf158"
DEPENDS = "libdrm libgbm ti-sgx-ddk-um"
COMPATIBLE_MACHINE = "ti33x|ti43x|omap-a15"
PACKAGE_ARCH = "${MACHINE_ARCH}"
inherit autotools pkgconfig
PR = "r8"
SRCREV = "24e94f583119896b3ab8ecc7b35c7de3160dcb1f"
SRC_URI = "git://git.ti.com/glsdk/kmscube.git;protocol=git"
SRC_URI_append = " \
"
S = "${WORKDIR}/git"
INSANE_SKIP_kmscube += "dev-deps"
```
Update SRCREV for jitter fix | ```bitbake
DESCRIPTION = "Demo application to showcase 3D graphics on SGX using kms and gbm"
HOMEPAGE = "http://git.ti.com"
LICENSE = "BSD"
LIC_FILES_CHKSUM = "file://kmscube.c;beginline=1;endline=23;md5=e760965096e52da8f3969dd53b6bf158"
DEPENDS = "libdrm libgbm ti-sgx-ddk-um"
COMPATIBLE_MACHINE = "ti33x|ti43x|omap-a15"
PACKAGE_ARCH = "${MACHINE_ARCH}"
inherit autotools pkgconfig
PR = "r9"
SRCREV = "3e9807ddcf2b4e8ccf711cdaf851752ec40d7904"
SRC_URI = "git://git.ti.com/glsdk/kmscube.git;protocol=git"
SRC_URI_append = " \
"
S = "${WORKDIR}/git"
INSANE_SKIP_kmscube += "dev-deps"
``` |
f315384e-8f12-49cf-843c-a4e0ba0f8892 | {
"language": "BitBake"
} | ```bitbake
LICENSE = "NCSA"
LIC_FILES_CHKSUM = "file://LICENSE.TXT;md5=47e311aa9caedd1b3abf098bd7814d1d"
BRANCH = "master"
SRC_URI = "git://github.com/KhronosGroup/SPIRV-LLVM-Translator/;protocol=https;branch=${BRANCH} \
"
PV = "13.0.0"
SRCREV = "76c76efeb8bcb3414dcd26ef938de43eb1beb516"
S = "${WORKDIR}/git"
DEPENDS = "spirv-tools clang"
inherit cmake pkgconfig python3native
OECMAKE_GENERATOR = "Unix Makefiles"
# Specify any options you want to pass to cmake using EXTRA_OECMAKE:
EXTRA_OECMAKE = "\
-DBUILD_SHARED_LIBS=ON \
-DLLVM_SPIRV_BUILD_EXTERNAL=YES \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_POSITION_INDEPENDENT_CODE=ON \
-DCMAKE_SKIP_RPATH=ON \
-DLLVM_EXTERNAL_LIT=lit \
-DLLVM_INCLUDE_TESTS=ON \
-Wno-dev \
-DCCACHE_ALLOWED=FALSE \
"
do_compile_append() {
oe_runmake llvm-spirv
}
do_install_append() {
install -Dm755 ${B}/tools/llvm-spirv/llvm-spirv ${D}${bindir}/llvm-spirv
}
BBCLASSEXTEND = "native nativesdk"
```
Remove a trailing slash from SRC_URI | ```bitbake
LICENSE = "NCSA"
LIC_FILES_CHKSUM = "file://LICENSE.TXT;md5=47e311aa9caedd1b3abf098bd7814d1d"
BRANCH = "master"
SRC_URI = "git://github.com/KhronosGroup/SPIRV-LLVM-Translator;protocol=https;branch=${BRANCH} \
"
PV = "13.0.0"
SRCREV = "76c76efeb8bcb3414dcd26ef938de43eb1beb516"
S = "${WORKDIR}/git"
DEPENDS = "spirv-tools clang"
inherit cmake pkgconfig python3native
OECMAKE_GENERATOR = "Unix Makefiles"
# Specify any options you want to pass to cmake using EXTRA_OECMAKE:
EXTRA_OECMAKE = "\
-DBUILD_SHARED_LIBS=ON \
-DLLVM_SPIRV_BUILD_EXTERNAL=YES \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_POSITION_INDEPENDENT_CODE=ON \
-DCMAKE_SKIP_RPATH=ON \
-DLLVM_EXTERNAL_LIT=lit \
-DLLVM_INCLUDE_TESTS=ON \
-Wno-dev \
-DCCACHE_ALLOWED=FALSE \
"
do_compile_append() {
oe_runmake llvm-spirv
}
do_install_append() {
install -Dm755 ${B}/tools/llvm-spirv/llvm-spirv ${D}${bindir}/llvm-spirv
}
BBCLASSEXTEND = "native nativesdk"
``` |
d96a13ea-1f8b-4950-8df1-42028ad26fb7 | {
"language": "BitBake"
} | ```bitbake
SUMMARY = "Xfce4 Vala provides bindings for the Xfce framework"
LICENSE = "LGPLv2.1"
LIC_FILES_CHKSUM = "file://COPYING;md5=243b725d71bb5df4a1e5920b344b86ad"
DEPENDS = "libxfce4util garcon xfconf libxfce4ui xfce4-panel exo vala xfce4-dev-tools-native"
inherit xfce pkgconfig distro_features_check
REQUIRED_DISTRO_FEATURES = "x11"
SRC_URI = "http://archive.xfce.org/src/bindings/${BPN}/${@xfce_verdir("${PV}")}/${BPN}-${PV}.tar.bz2"
SRC_URI[md5sum] = "0bbb1d6e473e0fe9b335b7b1b49d8a71"
SRC_URI[sha256sum] = "07a8f2b7c09fcdd3d86e0c52adea3c58ca011d0142a93997a01b4af77260ae7b"
EXTRA_OECONF = "-with-vala-api=0.38"
FILES_${PN} += "${datadir}/vala-*/vapi"
RDEPENDS_${PN} = "vala"
```
Build with 0.40.x vala APIs | ```bitbake
SUMMARY = "Xfce4 Vala provides bindings for the Xfce framework"
LICENSE = "LGPLv2.1"
LIC_FILES_CHKSUM = "file://COPYING;md5=243b725d71bb5df4a1e5920b344b86ad"
DEPENDS = "libxfce4util garcon xfconf libxfce4ui xfce4-panel exo vala xfce4-dev-tools-native"
inherit xfce pkgconfig distro_features_check
REQUIRED_DISTRO_FEATURES = "x11"
SRC_URI = "http://archive.xfce.org/src/bindings/${BPN}/${@xfce_verdir("${PV}")}/${BPN}-${PV}.tar.bz2"
SRC_URI[md5sum] = "0bbb1d6e473e0fe9b335b7b1b49d8a71"
SRC_URI[sha256sum] = "07a8f2b7c09fcdd3d86e0c52adea3c58ca011d0142a93997a01b4af77260ae7b"
EXTRA_OECONF = "-with-vala-api=0.40"
FILES_${PN} += "${datadir}/vala-*/vapi"
RDEPENDS_${PN} = "vala"
``` |
06f35472-12b3-4bfa-8852-f12395440a57 | {
"language": "BitBake"
} | ```bitbake
SUMMARY = "QCA provides a straightforward and cross-platform crypto API"
LICENSE = "LGPLv2.1"
LIC_FILES_CHKSUM = "file://COPYING;md5=fbc093901857fcd118f065f900982c24"
inherit kde-base cmake_lib
# TBD: PACKAGECONFIG
DEPENDS += " \
qtsvg \
nss \
cyrus-sasl \
libgcrypt \
pkcs11-helper \
"
SRC_URI = " \
git://github.com/KDE/qca.git \
file://0001-use-pkg-config-to-find-libgcrypt.patch \
"
SRCREV = "db5f82be2ad72658f7b575ebd1e97f4748033d04"
S = "${WORKDIR}/git"
PV = "2.2.1+git${SRCPV}"
EXTRA_OECMAKE += " \
-DQCA_FEATURE_INSTALL_DIR=${libdir}${QT_DIR_NAME}/mkspecs/features \
-DLIB_SUFFIX=${@d.getVar('baselib').replace('lib', '')} \
"
FILES_${PN} += "${libdir}/qca-qt5/crypto"
CMAKE_ALIGN_SYSROOT[1] = "Qca-qt5, -S${prefix}, -s${_IMPORT_PREFIX}"
```
Undo recent cmak_lib changes - they broke consumers | ```bitbake
SUMMARY = "QCA provides a straightforward and cross-platform crypto API"
LICENSE = "LGPLv2.1"
LIC_FILES_CHKSUM = "file://COPYING;md5=fbc093901857fcd118f065f900982c24"
inherit kde-base cmake_lib
# TBD: PACKAGECONFIG
DEPENDS += " \
qtsvg \
nss \
cyrus-sasl \
libgcrypt \
pkcs11-helper \
"
SRC_URI = " \
git://github.com/KDE/qca.git \
file://0001-use-pkg-config-to-find-libgcrypt.patch \
"
SRCREV = "db5f82be2ad72658f7b575ebd1e97f4748033d04"
S = "${WORKDIR}/git"
PV = "2.2.1+git${SRCPV}"
EXTRA_OECMAKE += " \
-DQCA_FEATURE_INSTALL_DIR=${libdir}${QT_DIR_NAME}/mkspecs/features \
-DLIB_SUFFIX=${@d.getVar('baselib').replace('lib', '')} \
"
FILES_${PN} += "${libdir}/qca-qt5/crypto"
CMAKE_ALIGN_SYSROOT[1] = "Qca-qt5, -S${libdir}/lib, -s${OE_QMAKE_PATH_HOST_LIBS}/lib"
CMAKE_ALIGN_SYSROOT[2] = "Qca-qt5, -S${includedir}, -s${CMAKE_QT5_EX_PATH_HOST_HEADERS}"
``` |
54e70caf-d9b9-4e60-b43a-73e1f775c652 | {
"language": "BitBake"
} | ```bitbake
PV = "0.0cvs${CVSDATE}"
LICENSE = "MIT"
DEPENDS = "x11 xext"
DESCRIPTION = "X display information utility"
MAINTAINER = "Phil Blundell <[email protected]>"
SECTION = "x11/base"
SRC_URI = "cvs://anoncvs:[email protected]/cvs/xapps;module=xdpyinfo"
S = "${WORKDIR}/xdpyinfo"
inherit autotools pkgconfig
```
Add missing dependency to xtst. | ```bitbake
PV = "0.0cvs${CVSDATE}"
LICENSE = "MIT"
DEPENDS = "x11 xext xtst"
DESCRIPTION = "X display information utility"
MAINTAINER = "Phil Blundell <[email protected]>"
SECTION = "x11/base"
PR = "r1"
SRC_URI = "cvs://anoncvs:[email protected]/cvs/xapps;module=xdpyinfo"
S = "${WORKDIR}/xdpyinfo"
inherit autotools pkgconfig
``` |
6857992a-7059-42cf-890f-62ce9fd971a3 | {
"language": "BitBake"
} | ```bitbake
SUMMARY = "versatile resource statics tool"
DESCRIPTION = "Dstat is a versatile replacement for vmstat, iostat, netstat and ifstat. \
Dstat overcomes some of their limitations and adds some extra features, more counters \
and flexibility. Dstat is handy for monitoring systems during performance tuning tests, \
benchmarks or troubleshooting."
HOMEPAGE = "http://dag.wiee.rs/home-made/dstat"
LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"
DEPENDS += "asciidoc-native xmlto-native"
SRC_URI = "git://github.com/dagwieers/dstat.git \
file://0001-change-dstat-to-python3.patch \
"
SRCREV = "6f5db0aed26bf8cf2700d4ffe90a9bd3436ac728"
S = "${WORKDIR}/git"
do_install() {
oe_runmake 'DESTDIR=${D}' install
}
RDEPENDS:${PN} += "python3-core python3-misc python3-resource python3-shell python3-unixadmin"
```
Add missing python-six runtime dependency | ```bitbake
SUMMARY = "versatile resource statics tool"
DESCRIPTION = "Dstat is a versatile replacement for vmstat, iostat, netstat and ifstat. \
Dstat overcomes some of their limitations and adds some extra features, more counters \
and flexibility. Dstat is handy for monitoring systems during performance tuning tests, \
benchmarks or troubleshooting."
HOMEPAGE = "http://dag.wiee.rs/home-made/dstat"
LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"
DEPENDS += "asciidoc-native xmlto-native"
SRC_URI = "git://github.com/dagwieers/dstat.git \
file://0001-change-dstat-to-python3.patch \
"
SRCREV = "6f5db0aed26bf8cf2700d4ffe90a9bd3436ac728"
S = "${WORKDIR}/git"
do_install() {
oe_runmake 'DESTDIR=${D}' install
}
RDEPENDS:${PN} += "python3-core python3-misc python3-resource python3-shell python3-six python3-unixadmin"
``` |
34ebc2d4-bd6d-4729-8657-1e771235faec | {
"language": "BitBake"
} | ```bitbake
DESCRIPTION = "Plugins for a virtual keyboard for touch-screen based user interfaces"
HOMEPAGE = "https://wiki.maliit.org/Main_Page"
LICENSE = "BSD"
LIC_FILES_CHKSUM = "file://LICENSE;md5=f29b21caa8e460097bfad9c026a33621"
inherit autotools qt4x11
DEPENDS = "maliit-framework"
SRC_URI = "git://gitorious.org/maliit/maliit-plugins.git;branch=master"
SRCREV = "0760e585df494b394df1b887e5138ffef19c481f"
PV = "0.92.3+git${SRCPV}"
EXTRA_QMAKEVARS_PRE = "\
PREFIX=${prefix} \
LIBDIR=${libdir} \
"
FILES_${PN} += "\
${libdir}/maliit \
${datadir} \
"
FILES_${PN}-dbg += "\
${libdir}/maliit/plugins-*/.debug \
"
S= "${WORKDIR}/git"
do_install() {
cd ${S} && (INSTALL_ROOT=${D} oe_runmake install)
}
```
Clean up recipe and add missing RDEPENDS | ```bitbake
DESCRIPTION = "Plugins for a virtual keyboard for touch-screen based user interfaces"
HOMEPAGE = "https://wiki.maliit.org/Main_Page"
LICENSE = "BSD"
LIC_FILES_CHKSUM = "file://LICENSE;md5=f29b21caa8e460097bfad9c026a33621"
inherit autotools qt4x11
DEPENDS = "maliit-framework"
RDEPENDS_${PN} += "qt4-plugin-iconengine-svgicon qt4-plugin-imageformat-svg"
SRC_URI = "git://gitorious.org/maliit/maliit-plugins.git;branch=master"
SRCREV = "0760e585df494b394df1b887e5138ffef19c481f"
PV = "0.92.3+git${SRCPV}"
EXTRA_QMAKEVARS_PRE = "\
PREFIX=${prefix} \
LIBDIR=${libdir} \
"
FILES_${PN} += "\
${libdir}/maliit \
${datadir} \
"
FILES_${PN}-dbg += "${libdir}/maliit/plugins-*/.debug"
S= "${WORKDIR}/git"
EXTRA_OEMAKE += "INSTALL_ROOT=${D}"
``` |
aad85437-6d17-4e60-bce7-a424c43d5c3e | {
"language": "BitBake"
} | ```bitbake
SUMMARY = "The GPS Toolkit"
DESCRIPTION = "Libraries and applications to facilitate working with GPS data for research and high accuracy uses."
AUTHOR = "ARL:UT"
HOMEPAGE = "https://github.com/SGL-UT/GPSTk/"
PR = "r2"
LICENSE = "LGPL-3.0-only"
LIC_FILES_CHKSUM = "file://COPYING.md;md5=d32239bcb673463ab874e80d47fae504"
GIT_BRANCH = "main"
SRC_URI = "git://github.com/SGL-UT/GPSTk.git;branch=${GIT_BRANCH};protocol=https"
SRCREV = "7f4c840d21c7bac40c5d554bdaab386ba2ee59ef"
S = "${WORKDIR}/git"
inherit cmake
EXTRA_OECMAKE += " -DCMAKE_SKIP_INSTALL_RPATH=ON -DCMAKE_SKIP_RPATH=ON -DUSE_RPATH=OFF -DBUILD_EXT=ON -DBUILD_PYTHON=OFF"
PACKAGES = "gpstk gpstk-dev gpstk-dbg"
FILES:${PN} += " ${bindir}/* "
FILES:${PN}-dev += " ${includedir}/* ${libdir}/* /usr/share/cmake/*"
FILES:${PN}-dbg += " \
${prefix}/src/debug/gpstk/* \
${bindir}/.debug/* \
"
```
Update GPSTk repository (now renamed to gnsstk) | ```bitbake
SUMMARY = "The GPS Toolkit"
DESCRIPTION = "Libraries and applications to facilitate working with GPS data for research and high accuracy uses."
AUTHOR = "ARL:UT"
HOMEPAGE = "https://github.com/SGL-UT/gnsstk/"
PR = "r3"
LICENSE = "LGPL-3.0-only"
LIC_FILES_CHKSUM = "file://COPYING.md;md5=d32239bcb673463ab874e80d47fae504"
GIT_BRANCH = "stable"
SRC_URI = "git://github.com/SGL-UT/gnsstk.git;branch=${GIT_BRANCH};protocol=https"
SRCREV = "7f4c840d21c7bac40c5d554bdaab386ba2ee59ef"
S = "${WORKDIR}/git"
inherit cmake
EXTRA_OECMAKE += " -DCMAKE_SKIP_INSTALL_RPATH=ON -DCMAKE_SKIP_RPATH=ON -DUSE_RPATH=OFF -DBUILD_EXT=ON -DBUILD_PYTHON=OFF"
PACKAGES = "gpstk gpstk-dev gpstk-dbg"
FILES:${PN} += " ${bindir}/* "
FILES:${PN}-dev += " ${includedir}/* ${libdir}/* /usr/share/cmake/*"
FILES:${PN}-dbg += " \
${prefix}/src/debug/gpstk/* \
${bindir}/.debug/* \
"
``` |
ac8caa0f-3207-4106-8c58-31f4e9cce498 | {
"language": "BitBake"
} | ```bitbake
DESCRIPTION = "vnStat is a console-based network traffic monitor for Linux and BSD that keeps a log of network traffic for the selected interface(s)."
HOMEPAGE = "https://humdi.net/vnstat/"
LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"
SECTION = "net"
DEPENDS = "gd sqlite3"
SRC_URI = "https://github.com/vergoh/vnstat/releases/download/v${PV}/${BPN}-${PV}.tar.gz"
SRC_URI[md5sum] = "fe2928a81243cc8a532a357f97221736"
SRC_URI[sha256sum] = "89276e0a7281943edb554b874078278ad947dc312938a2451e03eb80679f7ff7"
inherit autotools pkgconfig systemd
EXTRA_OECONF = "--disable-extra-paths"
do_install_append() {
install -Dm644 ${S}/examples/systemd/vnstat.service "${D}${systemd_system_unitdir}/vnstat.service"
}
SYSTEMD_SERVICE_${PN} = "vnstat.service"
```
Disable install parallism to fix a potential install race | ```bitbake
DESCRIPTION = "vnStat is a console-based network traffic monitor for Linux and BSD that keeps a log of network traffic for the selected interface(s)."
HOMEPAGE = "https://humdi.net/vnstat/"
LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"
SECTION = "net"
DEPENDS = "gd sqlite3"
SRC_URI = "https://github.com/vergoh/vnstat/releases/download/v${PV}/${BPN}-${PV}.tar.gz"
SRC_URI[md5sum] = "fe2928a81243cc8a532a357f97221736"
SRC_URI[sha256sum] = "89276e0a7281943edb554b874078278ad947dc312938a2451e03eb80679f7ff7"
inherit autotools pkgconfig systemd
EXTRA_OECONF = "--disable-extra-paths"
do_install_append() {
install -Dm644 ${S}/examples/systemd/vnstat.service "${D}${systemd_system_unitdir}/vnstat.service"
}
PARALLEL_MAKEINST = ""
SYSTEMD_SERVICE_${PN} = "vnstat.service"
``` |
a97aee66-76e2-4bd3-9a8d-70b03c161b0b | {
"language": "BitBake"
} | ```bitbake
#
# base recipe: meta/recipes-devtools/dmidecode/dmidecode_2.12.bb
# base branch: daisy
#
PR = "r0"
inherit debian-package
PV = "2.12"
SUMMARY = "DMI (Desktop Management Interface) table related utilities"
HOMEPAGE = "http://www.nongnu.org/dmidecode/"
LICENSE = "GPLv2+"
LIC_FILES_CHKSUM = "file://LICENSE;md5=393a5ca445f6965873eca0259a17f833"
COMPATIBLE_HOST = "(i.86|x86_64|aarch64|arm|powerpc).*-linux"
do_install() {
oe_runmake DESTDIR="${D}" install
}
do_unpack_extra() {
sed -i -e '/^prefix/s:/usr/local:${exec_prefix}:' Makefile
}
addtask unpack_extra after do_unpack before do_patch
```
Correct the path to Makefile in do_unpack_extra function | ```bitbake
#
# base recipe: meta/recipes-devtools/dmidecode/dmidecode_2.12.bb
# base branch: daisy
#
PR = "r0"
inherit debian-package
PV = "2.12"
SUMMARY = "DMI (Desktop Management Interface) table related utilities"
HOMEPAGE = "http://www.nongnu.org/dmidecode/"
LICENSE = "GPLv2+"
LIC_FILES_CHKSUM = "file://LICENSE;md5=393a5ca445f6965873eca0259a17f833"
COMPATIBLE_HOST = "(i.86|x86_64|aarch64|arm|powerpc).*-linux"
do_install() {
oe_runmake DESTDIR="${D}" install
}
do_unpack_extra() {
sed -i -e '/^prefix/s:/usr/local:${exec_prefix}:' ${S}/Makefile
}
addtask unpack_extra after do_unpack before do_patch
``` |
7183f0d1-93f0-4827-b81f-be388d0d73c9 | {
"language": "BitBake"
} | ```bitbake
require libglade.inc
inherit gnome
SRC_URI += "file://glade-cruft.patch file://no-xml2.patch"
EXTRA_OECONF += "--without-libxml2"
LDFLAGS += "-lz"
SRC_URI[archive.md5sum] = "d1776b40f4e166b5e9c107f1c8fe4139"
SRC_URI[archive.sha256sum] = "64361e7647839d36ed8336d992fd210d3e8139882269bed47dc4674980165dec"
```
Update LICENSE field version to LGPLv2 | ```bitbake
require libglade.inc
LICENSE = "LGPLv2 LGPLv2+"
PR = "r1"
inherit gnome
SRC_URI += "file://glade-cruft.patch file://no-xml2.patch"
EXTRA_OECONF += "--without-libxml2"
LDFLAGS += "-lz"
SRC_URI[archive.md5sum] = "d1776b40f4e166b5e9c107f1c8fe4139"
SRC_URI[archive.sha256sum] = "64361e7647839d36ed8336d992fd210d3e8139882269bed47dc4674980165dec"
``` |
ee7860f5-e69a-403d-bd20-21e9751f3d6e | {
"language": "BitBake"
} | ```bitbake
# Copyright (C) 2015 Khem Raj <[email protected]>
# Released under the MIT license (see COPYING.MIT for the terms)
DESCRIPTION = "OpenWrt LuCI web user interface"
HOMEPAGE = "https://github.com/openwrt/luci"
LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://LICENSE;md5=2b42edef8fa55315f34f2370b4715ca9"
SECTION = "base"
DEPENDS = "json-c libubox libnl lua5.1 iwinfo openssl"
RDEPENDS_${PN} = "lua5.1"
SRCREV = "ff21f2f0a38dbac7411118377d3300a668db7146"
SRC_URI = "git://github.com/openwrt/luci.git;branch=lede-17.01"
SRC_URI += "file://cmake.patch"
inherit cmake openwrt pkgconfig
prefix=""
includedir="/usr/include"
bindir="/usr/bin"
libdir="/usr/lib"
OECMAKE_C_FLAGS += "-I${STAGING_INCDIR}/libnl3 -DDESTDIR=${D}"
FILES_${PN} += "/www /lib /usr/share/acl.d ${bindir} ${libdir}"
S = "${WORKDIR}/git/"
```
Add missing build time dependency | ```bitbake
# Copyright (C) 2015 Khem Raj <[email protected]>
# Released under the MIT license (see COPYING.MIT for the terms)
DESCRIPTION = "OpenWrt LuCI web user interface"
HOMEPAGE = "https://github.com/openwrt/luci"
LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://LICENSE;md5=2b42edef8fa55315f34f2370b4715ca9"
SECTION = "base"
DEPENDS = "json-c libubox libnl lua5.1 iwinfo openssl libxcrypt"
RDEPENDS_${PN} = "lua5.1"
SRCREV = "ff21f2f0a38dbac7411118377d3300a668db7146"
SRC_URI = "git://github.com/openwrt/luci.git;branch=lede-17.01"
SRC_URI += "file://cmake.patch"
inherit cmake openwrt pkgconfig
prefix=""
includedir="/usr/include"
bindir="/usr/bin"
libdir="/usr/lib"
OECMAKE_C_FLAGS += "-I${STAGING_INCDIR}/libnl3 -DDESTDIR=${D}"
FILES_${PN} += "/www /lib /usr/share/acl.d ${bindir} ${libdir}"
S = "${WORKDIR}/git/"
``` |
bc9549ca-68db-4d47-8a1f-026135a6bb41 | {
"language": "BitBake"
} | ```bitbake
SUMMARY = "Test suite for Linux framebuffer"
PV = "1.1.0"
LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://COPYING;md5=eb723b61539feef013de476e68b5c50a"
SRCREV = "063ec650960c2d79ac51f5c5f026cb05343a33e2"
SRC_URI = "git://github.com/prpplague/fb-test-app.git"
S = "${WORKDIR}/git"
do_install() {
install -d ${D}${bindir}
for prog in perf rect fb-test offset ; do
install -m 0755 $prog ${D}${bindir}
done
}
```
Prepend fb- to the binaries | ```bitbake
SUMMARY = "Test suite for Linux framebuffer"
PV = "1.1.0"
LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://COPYING;md5=eb723b61539feef013de476e68b5c50a"
SRCREV = "063ec650960c2d79ac51f5c5f026cb05343a33e2"
SRC_URI = "git://github.com/prpplague/fb-test-app.git"
S = "${WORKDIR}/git"
do_install() {
install -d ${D}${bindir}
install -m 0755 fb-test ${D}${bindir}
# avoid collisions with perf (perf) and mesa-demos (offset)
for prog in perf rect offset ; do
install -m 0755 $prog ${D}${bindir}/fb-$prog
done
}
``` |
86d36849-1659-4340-94e5-c2aa9b8ee8bc | {
"language": "BitBake"
} | ```bitbake
DESCRIPTION = "Phone input method helper module"
SECTION = "gpephone"
PRIORITY = "optional"
LICENSE = "LiPS"
DEPENDS = "gtk+ ptim-headers"
PV = "0.1+svn-${SRCDATE}"
PR = "r1"
DEFAULT_PREFERENCE = "-1"
inherit gpephone pkgconfig autotools
SRC_URI = "svn://projects.linuxtogo.org/svn/gpephone/trunk/source/ptim;module=imhelper"
S = "${WORKDIR}/imhelper"
FILES_${PN} += " ${libdir}/gtk-2.0/*/immodules/ptim/helper/*.so ${libdir}/gtk-2.0/*/immodules/ptim/pixmaps"
FILES_${PN}-dbg += "${libdir}/gtk-2.0/*/immodules/ptim/helper/.debug/*.so"
FILES_${PN}-dev += "${libdir}/gtk-2.0/*/immodules/ptim/helper/*.la"
do_stage () {
autotools_stage_all
}```
Add missing files to package. | ```bitbake
DESCRIPTION = "Phone input method helper module"
SECTION = "gpephone"
PRIORITY = "optional"
LICENSE = "LiPS"
DEPENDS = "gtk+ ptim-headers"
PV = "0.1+svn-${SRCDATE}"
PR = "r1"
DEFAULT_PREFERENCE = "-1"
inherit gpephone pkgconfig autotools
SRC_URI = "svn://projects.linuxtogo.org/svn/gpephone/trunk/source/ptim;module=imhelper"
S = "${WORKDIR}/imhelper"
FILES_${PN} += " ${libdir}/gtk-2.0/*/immodules/ptim/helper/*.so ${libdir}/gtk-2.0/*/immodules/ptim/pixmaps/*"
FILES_${PN}-dbg += "${libdir}/gtk-2.0/*/immodules/ptim/helper/.debug/*.so"
FILES_${PN}-dev += "${libdir}/gtk-2.0/*/immodules/ptim/helper/*.la"
do_stage () {
autotools_stage_all
}``` |
5156d2d0-be53-4e54-8df1-e663453ef8b2 | {
"language": "BitBake"
} | ```bitbake
DESCRIPTION = "Patcher is a perl script for managing patches."
HOMEPAGE = "http://www.holgerschurig.de/patcher.html"
LICENSE = "Perl"
DEPENDS = ""
SECTION = "base"
PRIORITY = "optional"
MAINTAINER = "Holger Schurig <[email protected]>"
INHIBIT_DEFAULT_DEPS = "1"
SRC_URI = "http://www.holgerschurig.de/files/linux/patcher-${PV}.tar.bz2"
S="${WORKDIR}/patcher"
do_install() {
install -d ${D}${bindir}
install -m 0755 patcher.py ${D}${bindir}/patcher
}
DEPENDS_prepend_delete = "patcher "
```
Remove language construct no longer being used/available | ```bitbake
DESCRIPTION = "Patcher is a perl script for managing patches."
HOMEPAGE = "http://www.holgerschurig.de/patcher.html"
LICENSE = "Perl"
DEPENDS = ""
SECTION = "base"
PRIORITY = "optional"
MAINTAINER = "Holger Schurig <[email protected]>"
INHIBIT_DEFAULT_DEPS = "1"
SRC_URI = "http://www.holgerschurig.de/files/linux/patcher-${PV}.tar.bz2"
S="${WORKDIR}/patcher"
do_install() {
install -d ${D}${bindir}
install -m 0755 patcher.py ${D}${bindir}/patcher
}
``` |
36e7e908-ffa9-4eb2-b404-803d71cc17d0 | {
"language": "BitBake"
} | ```bitbake
python () {
if d.getVar("PREFERRED_PROVIDER_qemu-helper-native") != d.getVar("PN"):
raise bb.parse.SkipRecipe("Set qemu-helper-native provider to use this recipe")
}
# TODO: improve this, since it is very hacky that this recipe need to build tunctl.
# include the existing qemu-helper-native
require recipes-devtools/qemu/qemu-helper-native_1.0.bb
# get the path to tunctl.c (from oe-core!)
FILESEXTRAPATHS:prepend := "${COREBASE}/meta/recipes-devtools/qemu/qemu-helper:"
# provide it, to replace the existing
PROVIDES += "qemu-helper-native"
# replace qemu with qemu-xilinx
DEPENDS:remove = "qemu-system-native"
DEPENDS:append = " \
qemu-xilinx-system-native \
qemu-xilinx-multiarch-helper-native \
"
RDEPENDS:${PN}:remove = "qemu-system-native"
RDEPENDS:${PN}:append = " qemu-xilinx-system-native"
```
Break the dependency on qemu-helper-nativee qemu-xilinx-helper-native: Break dependecy on qemu-helper-native | ```bitbake
FILESEXTRAPATHS:prepend := "${COREBASE}/meta/recipes-devtools/qemu/qemu-helper:"
# provide it, to replace the existing
PROVIDES = "qemu-helper-native"
LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://${WORKDIR}/tunctl.c;endline=4;md5=ff3a09996bc5fff6bc5d4e0b4c28f999"
SRC_URI = "\
file://tunctl.c \
"
S = "${WORKDIR}"
inherit native
do_compile() {
${CC} ${CFLAGS} ${LDFLAGS} -Wall tunctl.c -o tunctl
}
# replace qemu with qemu-xilinx
DEPENDS:remove = "qemu-system-native"
DEPENDS:append = " \
qemu-xilinx-system-native \
qemu-xilinx-multiarch-helper-native \
"
RDEPENDS:${PN}:remove = "qemu-system-native"
RDEPENDS:${PN}:append = " qemu-xilinx-system-native"
do_install() {
install -d ${STAGING_BINDIR_NATIVE}
install tunctl ${STAGING_BINDIR_NATIVE}
}
``` |
9429d70a-76cb-47a2-a35f-1a1d95c72fc1 | {
"language": "BitBake"
} | ```bitbake
require kernel-module-mali-utgard.inc
LIC_FILES_CHKSUM = "file://driver/src/devicedrv/mali/readme.txt;md5=92d15b487d204ace57072c48697b4a89"
SRC_URI = "git://github.com/superna9999/meson_gx_mali_450.git;protocol=git;branch=DX910-SW-99002-r7p0-00rel1_meson_gx"
SRCREV = "8be0f308ce73e0f7666226503b12dbb508b3b880"
S = "${WORKDIR}/git"
MALI_KCONFIG = "MALI_PLATFORM_FILES=platform/meson/meson.c \
CONFIG_MALI_DMA_BUF_MAP_ON_ATTACH=y \
CONFIG_MALI_QUIET=y \
"
MALI_FLAGS = "-DMALI_FAKE_PLATFORM_DEVICE=1 \
-DCONFIG_MALI_DMA_BUF_MAP_ON_ATTACH \
-DCONFIG_MALI_QUIET \
"
```
Update to fix build error | ```bitbake
require kernel-module-mali-utgard.inc
LIC_FILES_CHKSUM = "file://driver/src/devicedrv/mali/readme.txt;md5=92d15b487d204ace57072c48697b4a89"
SRC_URI = "git://github.com/superna9999/meson_gx_mali_450.git;protocol=git;branch=DX910-SW-99002-r7p0-00rel1_meson_gx"
SRCREV = "adf7fa6ca220075e2a98c1dd50e38c64b20694ef"
S = "${WORKDIR}/git"
MALI_KCONFIG = "MALI_PLATFORM_FILES=platform/meson/meson.c \
CONFIG_MALI_DMA_BUF_MAP_ON_ATTACH=y \
CONFIG_MALI_QUIET=y \
"
MALI_FLAGS = "-DMALI_FAKE_PLATFORM_DEVICE=1 \
-DCONFIG_MALI_DMA_BUF_MAP_ON_ATTACH \
-DCONFIG_MALI_QUIET \
"
``` |
46ff32c8-4c2c-4dcb-ab02-af35de7659bf | {
"language": "BitBake"
} | ```bitbake
DESCRIPTION = "Alternative system logger daemon"
DEPENDS = "libol flex eventlog"
PR = "r1"
SRC_URI = "http://www.balabit.com/downloads/files/syslog-ng/sources/stable/src/${P}.tar.gz \
file://syslog-ng.conf \
file://initscript"
S = "${WORKDIR}/${PN}-${PV}"
inherit autotools update-rc.d
EXTRA_OECONF = "--with-libol=${STAGING_BINDIR_CROSS}/ --enable-dynamic-linking"
do_install_append() {
install -d ${D}/${sysconfdir}/${PN}
install ${WORKDIR}/syslog-ng.conf ${D}${sysconfdir}/syslog-ng.conf
install -d ${D}/${sysconfdir}/init.d
install -m 755 ${WORKDIR}/initscript ${D}/${sysconfdir}/init.d/syslog-ng
}
pkg_postinst() {
update-rc.d -f syslog remove
}
pkg_postrm() {
update-rc.d syslog add 5
}
CONFFILES_${PN} = "${sysconfdir}/syslog-ng.conf"
INITSCRIPT_NAME = "syslog-ng"
#INITSCRIPT_PARAMS = "defaults 05"
INITSCRIPT_PARAMS = "remove"
```
Add missing dependency on glib-2.0 | ```bitbake
DESCRIPTION = "Alternative system logger daemon"
DEPENDS = "libol flex eventlog glib-2.0"
PR = "r2"
SRC_URI = "http://www.balabit.com/downloads/files/syslog-ng/sources/stable/src/${P}.tar.gz \
file://syslog-ng.conf \
file://initscript"
S = "${WORKDIR}/${PN}-${PV}"
inherit autotools update-rc.d
EXTRA_OECONF = "--with-libol=${STAGING_BINDIR_CROSS}/ --enable-dynamic-linking"
do_install_append() {
install -d ${D}/${sysconfdir}/${PN}
install ${WORKDIR}/syslog-ng.conf ${D}${sysconfdir}/syslog-ng.conf
install -d ${D}/${sysconfdir}/init.d
install -m 755 ${WORKDIR}/initscript ${D}/${sysconfdir}/init.d/syslog-ng
}
pkg_postinst() {
update-rc.d -f syslog remove
}
pkg_postrm() {
update-rc.d syslog add 5
}
CONFFILES_${PN} = "${sysconfdir}/syslog-ng.conf"
INITSCRIPT_NAME = "syslog-ng"
#INITSCRIPT_PARAMS = "defaults 05"
INITSCRIPT_PARAMS = "remove"
``` |
b44e9d2b-1968-4541-a5c0-3825a1ec375e | {
"language": "BitBake"
} | ```bitbake
DESCRIPTION = "GPE user login screen"
SECTION = "gpe"
PRIORITY = "optional"
LICENSE = "GPL"
DEPENDS = "gtk+ libgpewidget gpe-ownerinfo xkbd"
RDEPENDS = "xkbd gpe-theme-clearlooks"
RPROVIDES_${PN} = "gpe-session-starter"
PR = "r0"
SRC_URI_OVERRIDES_PACKAGE_ARCH = "1"
GPE_TARBALL_SUFFIX = "bz2"
inherit gpe autotools pkgconfig
SRC_URI += "file://removeblue-fontsize8.patch;patch=1"
SRC_URI += " file://chvt-keylaunch.patch;patch=1 "
SRC_URI += " file://gpe-xcalibrate-rises-from-dead.patch;patch=1 "
SRC_URI += " file://size-autolock-properly.patch;patch=1 "
SRC_URI += " file://c-locale.patch;patch=1 "
SRC_URI_append_spitz = "file://brightness-adjust-keyluanchrc.patch;patch=1"
SRC_URI_append_akita = "file://brightness-adjust-keyluanchrc.patch;patch=1"
SRC_URI_append_c7x0 = "file://brightness-adjust-keyluanchrc.patch;patch=1"
```
Remove some patches applied upstream. | ```bitbake
DESCRIPTION = "GPE user login screen"
SECTION = "gpe"
PRIORITY = "optional"
LICENSE = "GPL"
DEPENDS = "gtk+ libgpewidget gpe-ownerinfo xkbd"
RDEPENDS = "xkbd gpe-theme-clearlooks"
RPROVIDES_${PN} = "gpe-session-starter"
PR = "r0"
SRC_URI_OVERRIDES_PACKAGE_ARCH = "1"
GPE_TARBALL_SUFFIX = "bz2"
inherit gpe autotools pkgconfig
SRC_URI += "file://removeblue-fontsize8.patch;patch=1"
SRC_URI += " file://chvt-keylaunch.patch;patch=1 "
SRC_URI += " file://c-locale.patch;patch=1 "
SRC_URI_append_spitz = "file://brightness-adjust-keyluanchrc.patch;patch=1"
SRC_URI_append_akita = "file://brightness-adjust-keyluanchrc.patch;patch=1"
SRC_URI_append_c7x0 = "file://brightness-adjust-keyluanchrc.patch;patch=1"
``` |
f0c1920c-5e79-445a-a4e5-b9d753e6a727 | {
"language": "BitBake"
} | ```bitbake
# A minimal console image with some C/C++ dev tools
require core-image-minimal.bb
DEV_SDK_INSTALL = " \
binutils \
binutils-symlinks \
coreutils \
cpp \
cpp-symlinks \
diffutils \
gcc \
gcc-symlinks \
g++ \
g++-symlinks \
make \
libstdc++ \
libstdc++-dev \
libtool \
pkgconfig \
findutils \
less \
ldd \
file \
"
DEV_EXTRA_TOOLS_INSTALL = " \
task-core-ssh-openssh \
devmem2 \
git \
"
IMAGE_INSTALL += " \
kernel-modules \
rpm \
${DEV_SDK_INSTALL} \
${DEV_EXTRA_TOOLS_INSTALL} \
"
```
Add vim-tiny, remove rpm and kernel-modules | ```bitbake
# A minimal console image with some C/C++ dev tools
#LICENSE = "MIT"
#LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=3f40d7994397109285ec7b81fdeb3b58"
require core-image-minimal.bb
DEV_SDK_INSTALL = " \
binutils \
binutils-symlinks \
coreutils \
cpp \
cpp-symlinks \
diffutils \
gcc \
gcc-symlinks \
g++ \
g++-symlinks \
gettext \
make \
libstdc++ \
libstdc++-dev \
libtool \
pkgconfig \
findutils \
less \
ldd \
file \
"
DEV_EXTRA_TOOLS_INSTALL = " \
task-core-ssh-openssh \
devmem2 \
git \
vim-tiny \
"
IMAGE_INSTALL += " \
${DEV_SDK_INSTALL} \
${DEV_EXTRA_TOOLS_INSTALL} \
"
``` |
d8e12007-29bd-4e7b-8ff7-a222bad5932d | {
"language": "BitBake"
} | ```bitbake
DESCRIPTION = "The GIMP is the GNU Image Manipulation Program."
HOMEPAGE = "http://www.gimp.org"
LICENSE = "GPL"
MAINTAINER = "Koen Kooi <[email protected]>"
SRC_URI = "ftp://ftp.gimp.org/pub/gimp/v2.3/gimp-${PV}.tar.bz2"
DEPENDS = "sed-native gtk+ jpeg libpng libexif tiff"
inherit autotools pkgconfig
#Don't laugh, this just builds a threaded gimp
EXTRA_OECONF = " --disable-gtktest \
--disable-print \
--disable-python \
--enable-mp"
do_configure_append() {
find ${S} -name Makefile | xargs sed -i s:'-I$(includedir)':'-I.':g
}
```
Add libart-lgpl to gimp DEPENDS | ```bitbake
DESCRIPTION = "The GIMP is the GNU Image Manipulation Program."
HOMEPAGE = "http://www.gimp.org"
LICENSE = "GPL"
MAINTAINER = "Koen Kooi <[email protected]>"
SRC_URI = "ftp://ftp.gimp.org/pub/gimp/v2.3/gimp-${PV}.tar.bz2"
DEPENDS = "sed-native libart-lgpl gtk+ jpeg libpng libexif tiff"
inherit autotools pkgconfig
#Don't laugh, this just builds a threaded gimp
EXTRA_OECONF = " --disable-gtktest \
--disable-print \
--disable-python \
--enable-mp"
do_configure_append() {
find ${S} -name Makefile | xargs sed -i s:'-I$(includedir)':'-I.':g
}
``` |
03c0973e-91d5-44ae-8137-d3dd66f37149 | {
"language": "BitBake"
} | ```bitbake
COMPATIBLE_MACHINE = "raspberrypi"
require linux.inc
DESCRIPTION = "Linux kernel for the RaspberryPi board"
PR = "r1"
# Bump MACHINE_KERNEL_PR in the machine config if you update the kernel.
# This is on the rpi-patches branch
SRCREV = "0ec4154d64ebba48ca2446cde60a90546311defc"
SRC_URI = "git://github.com/raspberrypi/linux.git;protocol=git;branch=rpi-patches \
"
LINUX_VERSION ?= "3.1.9-rpi"
PV = "${LINUX_VERSION}+${PR}+git${SRCREV}"
S = "${WORKDIR}/git"
# NOTE: For now we pull in the default config from the RPi kernel GIT tree.
KERNEL_DEFCONFIG = "bcmrpi_defconfig"
PARALLEL_MAKEINST = ""
do_configure_prepend() {
install -m 0644 ${S}/arch/${ARCH}/configs/${KERNEL_DEFCONFIG} ${WORKDIR}/defconfig || die "No default configuration for ${MACHINE} / ${KERNEL_DEFCONFIG} available."
}
do_install_prepend() {
install -d ${D}/lib/firmware
}
```
Update kernel to latest upstream | ```bitbake
COMPATIBLE_MACHINE = "raspberrypi"
require linux.inc
DESCRIPTION = "Linux kernel for the RaspberryPi board"
PR = "r2"
# Bump MACHINE_KERNEL_PR in the machine config if you update the kernel.
# This is on the rpi-patches branch
SRCREV = "14ad68cf4afc7acf14076f895b539d81cd9f32ab"
SRC_URI = "git://github.com/raspberrypi/linux.git;protocol=git;branch=rpi-patches \
"
LINUX_VERSION ?= "3.1.9-rpi"
PV = "${LINUX_VERSION}+${PR}+git${SRCREV}"
S = "${WORKDIR}/git"
# NOTE: For now we pull in the default config from the RPi kernel GIT tree.
KERNEL_DEFCONFIG = "bcmrpi_defconfig"
PARALLEL_MAKEINST = ""
do_configure_prepend() {
install -m 0644 ${S}/arch/${ARCH}/configs/${KERNEL_DEFCONFIG} ${WORKDIR}/defconfig || die "No default configuration for ${MACHINE} / ${KERNEL_DEFCONFIG} available."
}
do_install_prepend() {
install -d ${D}/lib/firmware
}
``` |
f3c02406-dfdf-40f6-beee-bfac2b8e7b09 | {
"language": "BitBake"
} | ```bitbake
#
# base recipe: http://cgit.openembedded.org/openembedded-core/tree/meta/recipes-support/nettle/nettle_2.7.1.bb
# base branch: master
#
PR = "r0"
inherit debian-package
LICENSE = "LGPLv2.1 & GPLv2"
LIC_FILES_CHKSUM = "file://COPYING.LIB;md5=2d5025d4aa3495befef8f17206a5b0a1"
DEPENDS += "gmp"
SRC_URI[md5sum] = "003d5147911317931dd453520eb234a5"
SRC_URI[sha256sum] = "bc71ebd43435537d767799e414fce88e521b7278d48c860651216e1fc6555b40"
EXTRA_OECONF = "--disable-openssl"
do_configure_prepend() {
if [ ! -e ${S}/acinclude.m4 -a -e ${S}/aclocal.m4 ]; then
cp ${S}/aclocal.m4 ${S}/acinclude.m4
fi
}
inherit autotools
BBCLASSEXTEND = "native nativesdk"
```
Update LIC_FILES_CHKSUM in recipe for nettle package | ```bitbake
#
# base recipe: http://cgit.openembedded.org/openembedded-core/tree/meta/recipes-support/nettle/nettle_2.7.1.bb
# base branch: master
#
PR = "r0"
inherit debian-package
LICENSE = "LGPLv2.1 & GPLv2"
LIC_FILES_CHKSUM = " \
file://COPYING.LIB;md5=2d5025d4aa3495befef8f17206a5b0a1 \
file://debian/copyright;md5=b5f458d64602d4f35b2bf7c57dd76d73 \
"
DEPENDS += "gmp"
SRC_URI[md5sum] = "003d5147911317931dd453520eb234a5"
SRC_URI[sha256sum] = "bc71ebd43435537d767799e414fce88e521b7278d48c860651216e1fc6555b40"
EXTRA_OECONF = "--disable-openssl"
do_configure_prepend() {
if [ ! -e ${S}/acinclude.m4 -a -e ${S}/aclocal.m4 ]; then
cp ${S}/aclocal.m4 ${S}/acinclude.m4
fi
}
inherit autotools
BBCLASSEXTEND = "native nativesdk"
``` |
0444ca0c-0ceb-4d71-ae65-0ceebbe14500 | {
"language": "BitBake"
} | ```bitbake
require recipes/images/minimal-image.bb
IMAGE_INSTALL += "\
ack \
avahi-autoipd \
avahi-daemon \
binutils \
control-freak \
cpp \
cpp-symlinks \
curl \
gcc \
gcc-symlinks \
git \
htop \
i2c-tools \
iotop \
iperf \
libgcc-dev \
libxml2 \
make \
mtr \
nano \
nginx \
ntpdate \
openssh \
perl \
perl-modules \
python \
python-daemon \
python-flask \
python-jinja2 \
python-misc \
python-modules \
python-pyserial \
python-pytronics \
python-werkzeug \
ruby \
sysstat \
usbutils \
usb-gadget-mode \
uwsgi \
vim \
vim-vimrc \
"
export IMAGE_BASENAME = "rascal-image"
```
Add SFTP server to default build | ```bitbake
require recipes/images/minimal-image.bb
IMAGE_INSTALL += "\
ack \
avahi-autoipd \
avahi-daemon \
binutils \
control-freak \
cpp \
cpp-symlinks \
curl \
gcc \
gcc-symlinks \
git \
htop \
i2c-tools \
iotop \
iperf \
libgcc-dev \
libxml2 \
make \
mtr \
nano \
nginx \
ntpdate \
openssh \
openssh-sftp-server \
perl \
perl-modules \
python \
python-daemon \
python-flask \
python-jinja2 \
python-misc \
python-modules \
python-pyserial \
python-pytronics \
python-werkzeug \
ruby \
sysstat \
usbutils \
usb-gadget-mode \
uwsgi \
vim \
vim-vimrc \
"
export IMAGE_BASENAME = "rascal-image"
``` |
8c4839aa-699c-49a1-af8d-f4c80969a304 | {
"language": "BitBake"
} | ```bitbake
DESCRIPTION = "Kernel drivers for the PowerVR SGX chipset found in the omap5 SoCs"
HOMEPAGE = "http://git.ti.com"
LICENSE = "MIT | GPLv2"
LIC_FILES_CHKSUM = "file://eurasia_km/README;beginline=13;endline=22;md5=2b841bfc03386bb4d8d9381b79d33898"
inherit module
MACHINE_KERNEL_PR_append = "d"
PR = "${MACHINE_KERNEL_PR}"
BRANCH = "next"
SRC_URI = "git://git.ti.com/graphics/omap5-sgx-ddk-linux.git;protocol=git;branch=${BRANCH}"
S = "${WORKDIR}/git"
SRCREV = "872aa64b227cadbc97755a4192919dd5ca637971"
EXTRA_OEMAKE += 'KERNELDIR="${STAGING_KERNEL_DIR}"'
do_compile_prepend() {
cd ${S}/eurasia_km/eurasiacon/build/linux2/omap5430_linux
}
do_install() {
mkdir -p ${D}/lib/modules/${KERNEL_VERSION}/extra/
cp ${S}/eurasia_km/eurasiacon/binary2_omap5430_linux_release/target/kbuild/omapdrm_pvr.ko \
${D}/lib/modules/${KERNEL_VERSION}/extra/
}
```
Use kernel mechanism for module installation. | ```bitbake
DESCRIPTION = "Kernel drivers for the PowerVR SGX chipset found in the omap5 SoCs"
HOMEPAGE = "http://git.ti.com"
LICENSE = "MIT | GPLv2"
LIC_FILES_CHKSUM = "file://eurasia_km/README;beginline=13;endline=22;md5=2b841bfc03386bb4d8d9381b79d33898"
inherit module
MACHINE_KERNEL_PR_append = "e"
PR = "${MACHINE_KERNEL_PR}"
BRANCH = "next"
SRC_URI = "git://git.ti.com/graphics/omap5-sgx-ddk-linux.git;protocol=git;branch=${BRANCH}"
S = "${WORKDIR}/git"
SRCREV = "872aa64b227cadbc97755a4192919dd5ca637971"
EXTRA_OEMAKE += 'KERNELDIR="${STAGING_KERNEL_DIR}"'
do_compile_prepend() {
cd ${S}/eurasia_km/eurasiacon/build/linux2/omap5430_linux
}
do_install() {
make -C ${STAGING_KERNEL_DIR} SUBDIRS=${B}/eurasia_km/eurasiacon/binary2_omap5430_linux_release/target/kbuild INSTALL_MOD_PATH=${D} PREFIX=${STAGING_DIR_HOST} modules_install
}
``` |
11368bee-2d3f-4b37-a23b-402b4b723f51 | {
"language": "BitBake"
} | ```bitbake
SUMMARY = "RTMP Dump"
DESCRIPTION = "rtmpdump is a toolkit for RTMP streams. All forms of RTMP are \
supported, including rtmp://, rtmpt://, rtmpe://, rtmpte://, and rtmps://."
HOMEPAGE = "http://rtmpdump.mplayerhq.hu/"
LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe"
DEPENDS = "openssl10 zlib"
SRCREV = "fa8646daeb19dfd12c181f7d19de708d623704c0"
SRC_URI = " \
git://git.ffmpeg.org/rtmpdump \
file://fix-racing-build-issue.patch"
S = "${WORKDIR}/git"
inherit autotools-brokensep
EXTRA_OEMAKE = " \
CC='${CC}' LD='${LD} ${STAGING_LIBDIR}' XCFLAGS='${CFLAGS}' XLDFLAGS='${LDFLAGS}' \
SYS=posix INC=-I=/usr/include DESTDIR=${D} \
prefix=${prefix} libdir=${libdir} incdir=${includedir}/librtmp bindir=${bindir} mandir=${mandir}"
```
Switch to using GNU TLS instead of openssl10 | ```bitbake
SUMMARY = "RTMP Dump"
DESCRIPTION = "rtmpdump is a toolkit for RTMP streams. All forms of RTMP are \
supported, including rtmp://, rtmpt://, rtmpe://, rtmpte://, and rtmps://."
HOMEPAGE = "http://rtmpdump.mplayerhq.hu/"
LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe"
DEPENDS = "gnutls zlib"
SRCREV = "fa8646daeb19dfd12c181f7d19de708d623704c0"
SRC_URI = " \
git://git.ffmpeg.org/rtmpdump \
file://fix-racing-build-issue.patch"
S = "${WORKDIR}/git"
inherit autotools-brokensep
EXTRA_OEMAKE = " \
CC='${CC}' LD='${LD} ${STAGING_LIBDIR}' XCFLAGS='${CFLAGS}' XLDFLAGS='${LDFLAGS}' \
SYS=posix INC=-I=/usr/include DESTDIR=${D} CRYPTO=GNUTLS \
prefix=${prefix} libdir=${libdir} incdir=${includedir}/librtmp bindir=${bindir} mandir=${mandir}"
``` |
14ba1925-48ed-4b04-9ef7-9f0c98a57116 | {
"language": "BitBake"
} | ```bitbake
SUMMARY = "PIP is a tool for installing and managing Python packages"
LICENSE = "MIT & LGPL-2.1"
LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=25fba45109565f87de20bae85bc39452"
SRC_URI[md5sum] = "35f01da33009719497f01a4ba69d63c9"
SRC_URI[sha256sum] = "09f243e1a7b461f654c26a725fa373211bb7ff17a9300058b205c61658ca940d"
inherit pypi setuptools
# Since PIP is like CPAN for PERL we need to drag in all python modules to ensure everything works
RDEPENDS_${PN}_class-target = "python-modules python-distribute"
BBCLASSEXTEND = "native nativesdk"
```
Add HOMEPAGE info into recipe file. | ```bitbake
SUMMARY = "PIP is a tool for installing and managing Python packages"
HOMEPAGE = "https://pip.pypa.io/"
LICENSE = "MIT & LGPL-2.1"
LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=25fba45109565f87de20bae85bc39452"
SRC_URI[md5sum] = "35f01da33009719497f01a4ba69d63c9"
SRC_URI[sha256sum] = "09f243e1a7b461f654c26a725fa373211bb7ff17a9300058b205c61658ca940d"
inherit pypi setuptools
# Since PIP is like CPAN for PERL we need to drag in all python modules to ensure everything works
RDEPENDS_${PN}_class-target = "python-modules python-distribute"
BBCLASSEXTEND = "native nativesdk"
``` |
a94e5abd-fdaf-49bf-a5e3-5cf5e674afb8 | {
"language": "BitBake"
} | ```bitbake
SUMMARY = "A fast lightweight Text-to-speech engine"
DESCRIPTION = "Mimic is a fast, lightweight Text-to-speech engine developed by Mycroft A.I. and VocaliD, based on Carnegie Mellon University’s Flite (Festival-Lite) software. Mimic takes in text and reads it out loud to create a high quality voice."
HOMEPAGE = "https://mimic.mycroft.ai/"
SECTION = "multimedia"
# "Mimic is available under permissive BSD-like licenses"
LICENSE = "MIT-X & \
PD & \
CMU-Tex & \
BSD & \
BSD-2-Clause & \
BSD-3-Clause & \
flite & \
(flite & Sun) & \
BellBird & \
Apache-2.0 \
"
LIC_FILES_CHKSUM = "file://COPYING;md5=416ef1ca5167707fe381d7be33664a33"
DEPENDS = "curl-native icu"
SRCREV = "67e43bf0fa56008276b878ec3790aa5f32eb2a16"
SRC_URI = "git://github.com/MycroftAI/mimic.git"
inherit autotools
S = "${WORKDIR}/git"
```
Fix the build with -Os | ```bitbake
SUMMARY = "A fast lightweight Text-to-speech engine"
DESCRIPTION = "Mimic is a fast, lightweight Text-to-speech engine developed by Mycroft A.I. and VocaliD, based on Carnegie Mellon University’s Flite (Festival-Lite) software. Mimic takes in text and reads it out loud to create a high quality voice."
HOMEPAGE = "https://mimic.mycroft.ai/"
SECTION = "multimedia"
# "Mimic is available under permissive BSD-like licenses"
LICENSE = "MIT-X & \
PD & \
CMU-Tex & \
BSD & \
BSD-2-Clause & \
BSD-3-Clause & \
flite & \
(flite & Sun) & \
BellBird & \
Apache-2.0 \
"
LIC_FILES_CHKSUM = "file://COPYING;md5=416ef1ca5167707fe381d7be33664a33"
DEPENDS = "curl-native icu"
SRCREV = "67e43bf0fa56008276b878ec3790aa5f32eb2a16"
SRC_URI = "git://github.com/MycroftAI/mimic.git"
inherit autotools
S = "${WORKDIR}/git"
CPPFLAGS_append = " -Wno-error"
``` |
01aed104-1007-479f-ad6c-2348398acb22 | {
"language": "BitBake"
} | ```bitbake
SECTION = "libs"
LICENSE = "Artistic"
PR = "r3"
SRC_URI = "http://www.cpan.org/modules/by-module/XML/XML-Parser-${PV}.tar.gz"
S = "${WORKDIR}/XML-Parser-${PV}"
inherit cpan
FILES_${PN} = "${PERLLIBDIRS}/auto/XML/Parser/Expat/* \
${PERLLIBDIRS}/auto/XML/Parser/.packlist \
${PERLLIBDIRS}/XML"
FILES_${PN}-dbg += "${PERLLIBDIRS}/auto/XML/Parser/Expat/.debug"
```
Add a dependency on expat-native and pass in the appropriate libarary and include directories for exapt to the makefile. NOTE: This still doesn't work since it tries to use the host headers when linking to perl. Fixing this properly will need "perl" to be installed in the staging area (currently we stage perl-native only). | ```bitbake
SECTION = "libs"
LICENSE = "Artistic"
DEPENDS += "expat-native"
PR = "r4"
SRC_URI = "http://www.cpan.org/modules/by-module/XML/XML-Parser-${PV}.tar.gz"
S = "${WORKDIR}/XML-Parser-${PV}"
EXTRA_CPANFLAGS = "EXPATLIBPATH=${STAGING_LIBDIR} EXPATINCPATH=${STAGING_INCDIR}"
inherit cpan
FILES_${PN} = "${PERLLIBDIRS}/auto/XML/Parser/Expat/* \
${PERLLIBDIRS}/auto/XML/Parser/.packlist \
${PERLLIBDIRS}/XML"
FILES_${PN}-dbg += "${PERLLIBDIRS}/auto/XML/Parser/Expat/.debug"
``` |
0b4dd15e-3a04-45ae-9fcf-d8c7bbb0154e | {
"language": "BitBake"
} | ```bitbake
require swupdate.inc
DEFAULT_PREFERENCE = "-1"
do_compile() {
unset LDFLAGS
oe_runmake
cp swupdate_unstripped swupdate
cp tools/progress_unstripped progress
}
```
Install tools from recent SWUpdate | ```bitbake
require swupdate.inc
DEFAULT_PREFERENCE = "-1"
do_compile() {
unset LDFLAGS
oe_runmake
cp swupdate_unstripped swupdate
cp tools/progress_unstripped progress
}
do_install_append () {
install -m 0755 tools/client_unstripped ${D}${bindir}/client
install -m 0755 tools/progress_unstripped ${D}${bindir}/progress
install -m 0755 tools/hawkbitcfg_unstripped ${D}${bindir}/hawkbitcfg
install -m 0755 tools/sendtohawkbit_unstripped ${D}${bindir}/sendtohawkbit
}
``` |
e4de5276-3548-44c6-8733-22aa116430cd | {
"language": "BitBake"
} | ```bitbake
SUMMARY = "Simple Python wrapper around the OpenSSL library"
SECTION = "devel/python"
LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57"
SRCNAME = "pyOpenSSL"
DEPENDS = "openssl python-cryptography"
PE = "1"
SRC_URI = "http://pypi.python.org/packages/source/p/pyOpenSSL/pyOpenSSL-${PV}.tar.gz"
SRC_URI[md5sum] = "f447644afcbd5f0a1f47350fec63a4c6"
SRC_URI[sha256sum] = "f0a26070d6db0881de8bcc7846934b7c3c930d8f9c79d45883ee48984bc0d672"
S = "${WORKDIR}/${SRCNAME}-${PV}"
inherit setuptools
PACKAGES =+ "${PN}-tests"
FILES_${PN}-tests = "${libdir}/${PYTHON_DIR}/site-packages/OpenSSL/test"
RDEPENDS_${PN} = "python-threading"
RDEPENDS_${PN}-tests = "${PN}"
```
Add missing RDEPENDS on "six" and "cryptography" | ```bitbake
SUMMARY = "Simple Python wrapper around the OpenSSL library"
SECTION = "devel/python"
LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57"
SRCNAME = "pyOpenSSL"
DEPENDS = "openssl python-cryptography"
PE = "1"
SRC_URI = "http://pypi.python.org/packages/source/p/pyOpenSSL/pyOpenSSL-${PV}.tar.gz"
SRC_URI[md5sum] = "f447644afcbd5f0a1f47350fec63a4c6"
SRC_URI[sha256sum] = "f0a26070d6db0881de8bcc7846934b7c3c930d8f9c79d45883ee48984bc0d672"
S = "${WORKDIR}/${SRCNAME}-${PV}"
inherit setuptools
PACKAGES =+ "${PN}-tests"
FILES_${PN}-tests = "${libdir}/${PYTHON_DIR}/site-packages/OpenSSL/test"
RDEPENDS_${PN} = "python-threading python-six python-cryptography"
RDEPENDS_${PN}-tests = "${PN}"
``` |
9ed64cff-130f-4e09-bcb0-d1e029bf21f7 | {
"language": "BitBake"
} | ```bitbake
VIMVER = "72"
# vim-tiny sets that too
VIMFEATURES ?= "big"
# GUI type - gvim recipe sets "gtk2"
VIMGUI ?= "no"
# gvim recipes uses "--with-x"
VIMX ?= "--without-x"
require vim.inc
PR = "${INC_PR}.3"
# 001-411.diff contains 411 patches fetched from upstream
SRC_URI += "file://001-411.diff;apply=no"
SRC_URI += "file://configure.in_remove_CC_quotes.patch;apply=no"
SRC_URI += "file://vimrc"
# we need to apply patches in other dir then ${S}
do_patch() {
cd ${WORKDIR}/vim${VIMVER}
patch -p1 <${WORKDIR}/001-411.diff
patch -p1 <${WORKDIR}/configure.in_remove_CC_quotes.patch
}
do_install_append() {
install -m 0644 ${WORKDIR}/vimrc ${D}/${datadir}/vim
}
RCONFLICTS_${PN} = "gvim vim-tiny"
PACKAGES =+ "${PN}-vimrc"
FILES_${PN}-vimrc = "${datadir}/vim/vimrc"
```
Switch to patchdir rather than applying in do_configure | ```bitbake
VIMVER = "72"
# vim-tiny sets that too
VIMFEATURES ?= "big"
# GUI type - gvim recipe sets "gtk2"
VIMGUI ?= "no"
# gvim recipes uses "--with-x"
VIMX ?= "--without-x"
require vim.inc
PR = "${INC_PR}.3"
# 001-411.diff contains 411 patches fetched from upstream
SRC_URI += "file://001-411.diff;patchdir=.."
SRC_URI += "file://configure.in_remove_CC_quotes.patch;patchdir=.."
SRC_URI += "file://vimrc"
do_install_append() {
install -m 0644 ${WORKDIR}/vimrc ${D}/${datadir}/vim
}
RCONFLICTS_${PN} = "gvim vim-tiny"
PACKAGES =+ "${PN}-vimrc"
FILES_${PN}-vimrc = "${datadir}/vim/vimrc"
``` |
067e4bed-5feb-4d7a-b1b1-31c7725d1577 | {
"language": "BitBake"
} | ```bitbake
include recipes-core/images/core-image-minimal.bb
IMAGE_FSTYPES = "tar.gz"
IMAGE_INSTALL_append += " \
fbcp \
fontconfig \
fontconfig-utils \
tslib-calibrate \
tslib-tests \
ttf-bitstream-vera \
gstreamer1.0-plugins-base-alsa \
wpebackend-rdk \
wpewebkit \
cog \
"
VIRTUAL-RUNTIME_init_manager="busybox"
```
Add tzdata for all timezones | ```bitbake
include recipes-core/images/core-image-minimal.bb
IMAGE_FSTYPES = "tar.gz"
IMAGE_INSTALL_append += " \
fbcp \
fontconfig \
fontconfig-utils \
tslib-calibrate \
tslib-tests \
ttf-bitstream-vera \
gstreamer1.0-plugins-base-alsa \
wpebackend-rdk \
wpewebkit \
cog \
tzdata tzdata-misc tzdata-posix tzdata-right tzdata-africa \
tzdata-americas tzdata-antarctica tzdata-arctic tzdata-asia \
tzdata-atlantic tzdata-australia tzdata-europe tzdata-pacific \
"
VIRTUAL-RUNTIME_init_manager="busybox"
``` |
a18fcf34-6ed8-4988-8404-f0f063e8ef7c | {
"language": "BitBake"
} | ```bitbake
SUMMARY = "Library to process JSON-RPC requests"
HOMEPAGE = "https://github.com/bcb/jsonrpcserver"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://LICENSE;md5=c89120516900f96f4c60d35fdc4c3f15"
SRC_URI[md5sum] = "c1cc652bdeb04b8ce3ad962fbab34daf"
SRC_URI[sha256sum] = "3a35c0ef21174ca98f995f99688cebadda97053785833fbb31ec862d6b157f6d"
inherit pypi setuptools3
RDEPENDS_${PN} += "\
python3-apply-defaults \
python3-asyncio \
python3-core \
python3-json \
python3-jsonschema \
python3-logging \
python3-netclient \
python3-pkgutil \
python3-typing \
"
BBCLASSEXTEND = "native nativesdk"
do_install_append() {
chmod 0644 ${D}${PYTHON_SITEPACKAGES_DIR}/jsonrpcserver-4.1.0-py3.7.egg-info/*
}
```
Use PYTHON_BASEVERSION instead of hardcoding py version | ```bitbake
SUMMARY = "Library to process JSON-RPC requests"
HOMEPAGE = "https://github.com/bcb/jsonrpcserver"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://LICENSE;md5=c89120516900f96f4c60d35fdc4c3f15"
SRC_URI[md5sum] = "c1cc652bdeb04b8ce3ad962fbab34daf"
SRC_URI[sha256sum] = "3a35c0ef21174ca98f995f99688cebadda97053785833fbb31ec862d6b157f6d"
inherit pypi setuptools3
RDEPENDS_${PN} += "\
python3-apply-defaults \
python3-asyncio \
python3-core \
python3-json \
python3-jsonschema \
python3-logging \
python3-netclient \
python3-pkgutil \
python3-typing \
"
BBCLASSEXTEND = "native nativesdk"
do_install_append() {
chmod 0644 ${D}${PYTHON_SITEPACKAGES_DIR}/jsonrpcserver-4.1.0-py${PYTHON_BASEVERSION}.egg-info/*
}
``` |
20f763c6-c83a-49a8-9286-ca529c47c160 | {
"language": "BitBake"
} | ```bitbake
require u-boot.inc
# This is needs to be validated among supported BSP's before we can
# make it default
DEFAULT_PREFERENCE = "-1"
# To build u-boot for your machine, provide the following lines in
# your machine config, replacing the assignments as appropriate for
# your machine.
# UBOOT_MACHINE = "omap3_beagle_config"
# UBOOT_ENTRYPOINT = "0x80008000"
# UBOOT_LOADADDRESS = "0x80008000"
LICENSE = "GPLv2+"
LIC_FILES_CHKSUM = "file://COPYING;md5=1707d6db1d42237583f50183a5651ecb"
PV = "v2013.01.01+git${SRCPV}"
PR = "r4"
SRCREV = "b6af5fcc8dfcc9240c158e5d0f07716245d67a56"
SRC_URI = "git://git.denx.de/u-boot-sh.git;branch=renesas/bsp/rcar-gen2-5;protocol=git"
S = "${WORKDIR}/git"
PACKAGE_ARCH = "${MACHINE_ARCH}"
```
Update BSP to version 0.5.3 | ```bitbake
require u-boot.inc
# This is needs to be validated among supported BSP's before we can
# make it default
DEFAULT_PREFERENCE = "-1"
# To build u-boot for your machine, provide the following lines in
# your machine config, replacing the assignments as appropriate for
# your machine.
# UBOOT_MACHINE = "omap3_beagle_config"
# UBOOT_ENTRYPOINT = "0x80008000"
# UBOOT_LOADADDRESS = "0x80008000"
LICENSE = "GPLv2+"
LIC_FILES_CHKSUM = "file://COPYING;md5=1707d6db1d42237583f50183a5651ecb"
PV = "v2013.01.01+git${SRCPV}"
PR = "r5"
SRCREV = "14c8f0753662a7b4802340279e62e4e6b9a6d612"
SRC_URI = "git://git.denx.de/u-boot-sh.git;branch=renesas/bsp/rcar-gen2-5.3;protocol=git"
S = "${WORKDIR}/git"
PACKAGE_ARCH = "${MACHINE_ARCH}"
``` |
cb702bb1-16f1-470a-a26c-3a81af1fb2c2 | {
"language": "BitBake"
} | ```bitbake
require u-boot-ti.inc
DESCRIPTION = "u-boot bootloader for ARM MPU devices"
COMPATIBLE_MACHINE = "ti33x"
DEFAULT_PREFERENCE = "-1"
PR = "r5+gitr${SRCPV}"
SRC_URI = "git://git.ti.com/ti-u-boot/ti-u-boot.git;protocol=git;branch=${BRANCH}"
# This version of u-boot is meant for 3.2 kernel which doesn't support device tree.
BRANCH = "ti-u-boot-2013.01.01-amsdk-05.07.00.00"
# Commit corresponds to tag "v2013.01.01_amsdk-05.07.00.00"
SRCREV = "8eb15a787c558fee98b0fa2a66ff0849c732edcc"
# Set the name of the SPL that will built so that it is also packaged with u-boot.
SPL_BINARY = "MLO"
```
Update am335x to use latest u-boot for 3.2 kernel | ```bitbake
require u-boot-ti.inc
DESCRIPTION = "u-boot bootloader for ARM MPU devices"
COMPATIBLE_MACHINE = "ti33x"
DEFAULT_PREFERENCE = "-1"
PR = "r6+gitr${SRCPV}"
SRC_URI = "git://git.ti.com/ti-u-boot/ti-u-boot.git;protocol=git;branch=${BRANCH}"
# This version of u-boot is meant for 3.2 kernel which doesn't support device tree.
BRANCH = "ti-u-boot-2013.01.01-amsdk-06.00.00.00"
SRCREV = "540aa6fbb0c9274bda598f7e8819ed28259cad6b"
# Set the name of the SPL that will built so that it is also packaged with u-boot.
SPL_BINARY = "MLO"
``` |
0f38c0b8-b0dc-4f5b-aae1-05fe89a92ad0 | {
"language": "BitBake"
} | ```bitbake
LICENSE = "GPL"
PR = "r0"
inherit gpe pkgconfig
DESCRIPTION = "A package manager GUI for GPE"
DEPENDS = "ipkg libgpewidget"
RDEPENDS = "gpe-icons"
SECTION = "gpe"
PRIORITY = "optional"
```
Apply patch by Erik Hovland to make sure gpe-package is suid. | ```bitbake
LICENSE = "GPL"
PR = "r1"
inherit gpe pkgconfig
DESCRIPTION = "A package manager GUI for GPE"
DEPENDS = "ipkg libgpewidget"
RDEPENDS = "gpe-icons"
SECTION = "gpe"
PRIORITY = "optional"
pkg_postinst () {
#!/bin/sh
chmod u+s /usr/bin/gpe-package
}
``` |
9cae91af-a64b-4aaa-94de-d4be84efc31a | {
"language": "BitBake"
} | ```bitbake
SUMMARY = "Checksec tool"
DESCRIPTION = "The checksec.sh script is designed to test what standard Linux OS and PaX security features are being used."
SECTION = "security"
LICENSE = "BSD-3-Clause"
HOMEPAGE="http://www.trapkit.de/tools/checksec.html"
LIC_FILES_CHKSUM = "file://checksec.sh;beginline=3;endline=34;md5=c1bd90129ce3bb5519cfcaea794ab515"
SRC_URI = "file://checksec.sh"
S = "${WORKDIR}"
do_install() {
install -d ${D}${bindir}
install -m 0755 ${WORKDIR}/checksec.sh ${D}${bindir}
}
RDEPENDS_${PN} = "bash"
BBCLASSEXTEND = "native"
```
Add explicit runtime dependency on binutils | ```bitbake
SUMMARY = "Checksec tool"
DESCRIPTION = "The checksec.sh script is designed to test what standard Linux OS and PaX security features are being used."
SECTION = "security"
LICENSE = "BSD-3-Clause"
HOMEPAGE="http://www.trapkit.de/tools/checksec.html"
LIC_FILES_CHKSUM = "file://checksec.sh;beginline=3;endline=34;md5=c1bd90129ce3bb5519cfcaea794ab515"
SRC_URI = "file://checksec.sh"
S = "${WORKDIR}"
do_install() {
install -d ${D}${bindir}
install -m 0755 ${WORKDIR}/checksec.sh ${D}${bindir}
}
RDEPENDS_${PN} = "bash binutils"
BBCLASSEXTEND = "native"
``` |
35f584ad-c64f-41d4-ab74-67701c7ffe26 | {
"language": "BitBake"
} | ```bitbake
SUMMARY = "Terminal multiplexer"
HOMEPAGE = "http://tmux.sourceforge.net"
SECTION = "console/utils"
LICENSE = "ISC"
LIC_FILES_CHKSUM = "file://tmux.c;beginline=3;endline=17;md5=f256b76d52e7b4d02bf19144bdaca107"
DEPENDS = "ncurses libevent"
SRC_URI = "https://github.com/tmux/tmux/releases/download/${PV}/tmux-${PV}.tar.gz"
SRC_URI[md5sum] = "2cdacbf06ac4980d3f5312ad23b37f9b"
SRC_URI[sha256sum] = "d93f351d50af05a75fe6681085670c786d9504a5da2608e481c47cf5e1486db9"
UPSTREAM_CHECK_URI = "https://github.com/tmux/tmux/releases"
inherit autotools pkgconfig
PACKAGECONFIG ??= ""
PACKAGECONFIG[utempter] = "ac_cv_header_utempter_h=yes,ac_cv_header_utempter_h=no,libutempter,"
do_configure_prepend() {
# The 'compat' directory is needed for output during the build but it's
# not automatically created when building outside the source directory.
mkdir ${B}/compat
}
```
Add -p option to mkdir | ```bitbake
SUMMARY = "Terminal multiplexer"
HOMEPAGE = "http://tmux.sourceforge.net"
SECTION = "console/utils"
LICENSE = "ISC"
LIC_FILES_CHKSUM = "file://tmux.c;beginline=3;endline=17;md5=f256b76d52e7b4d02bf19144bdaca107"
DEPENDS = "ncurses libevent"
SRC_URI = "https://github.com/tmux/tmux/releases/download/${PV}/tmux-${PV}.tar.gz"
SRC_URI[md5sum] = "2cdacbf06ac4980d3f5312ad23b37f9b"
SRC_URI[sha256sum] = "d93f351d50af05a75fe6681085670c786d9504a5da2608e481c47cf5e1486db9"
UPSTREAM_CHECK_URI = "https://github.com/tmux/tmux/releases"
inherit autotools pkgconfig
PACKAGECONFIG ??= ""
PACKAGECONFIG[utempter] = "ac_cv_header_utempter_h=yes,ac_cv_header_utempter_h=no,libutempter,"
do_configure_prepend() {
# The 'compat' directory is needed for output during the build but it's
# not automatically created when building outside the source directory.
mkdir -p ${B}/compat
}
``` |
6b0b788a-7bdd-47b8-8a86-ce43bd1f0a2a | {
"language": "BitBake"
} | ```bitbake
require recipes/images/minimal-image.bb
IMAGE_INSTALL += "\
ack \
avahi-autoipd \
avahi-daemon \
binutils \
control-freak \
cpp \
cpp-symlinks \
curl \
gcc \
gcc-symlinks \
git \
htop \
i2c-tools \
iotop \
iperf \
ipython \
libgcc-dev \
libxml2 \
logrotate \
make \
mtr \
nano \
nginx \
ntpdate \
openssh \
openssh-sftp-server \
perl \
perl-modules \
python \
python-daemon \
python-dev \
python-flask \
python-flask-login \
python-imaging \
python-jinja2 \
python-matplotlib \
python-misc \
python-modules \
python-numpy \
python-pip \
python-pyserial \
python-pytronics \
python-simplejson \
python-sqlalchemy \
python-werkzeug \
ruby \
sysstat \
usbutils \
usb-gadget-mode \
uwsgi \
vim \
vim-syntax \
vim-vimrc \
"
export IMAGE_BASENAME = "rascal-image"
```
Add packages: blinkm, ffmpeg, g++, gfortran, wireless-tools | ```bitbake
require recipes/images/minimal-image.bb
IMAGE_INSTALL += "\
ack \
avahi-autoipd \
avahi-daemon \
binutils \
blinkm \
control-freak \
cpp \
cpp-symlinks \
curl \
ffmpeg \
g++ \
g++-symlinks \
gcc \
gcc-symlinks \
gfortran \
gfortran-symlinks \
git \
htop \
i2c-tools \
iotop \
iperf \
ipython \
libgcc-dev \
libxml2 \
logrotate \
make \
mtr \
nano \
nginx \
ntpdate \
openssh \
openssh-sftp-server \
perl \
perl-modules \
python \
python-daemon \
python-dev \
python-flask \
python-flask-login \
python-imaging \
python-jinja2 \
python-matplotlib \
python-misc \
python-modules \
python-numpy \
python-pip \
python-pyserial \
python-pytronics \
python-simplejson \
python-sqlalchemy \
python-werkzeug \
ruby \
sysstat \
usbutils \
usb-gadget-mode \
uwsgi \
vim \
vim-syntax \
vim-vimrc \
wireless-tools \
"
export IMAGE_BASENAME = "rascal-image"
``` |
86fb6892-681a-4e5b-8b7c-7d23d7a4099c | {
"language": "BitBake"
} | ```bitbake
SUMMARY = "Security oriented static analyser for python code."
LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://LICENSE;md5=1dece7821bf3fd70fe1309eaa37d52a2"
SRC_URI[md5sum] = "f74155cb9921be857693b32d2531e857"
SRC_URI[sha256sum] = "cb977045497f83ec3a02616973ab845c829cdab8144ce2e757fe031104a9abd4"
DEPENDS = "python3-pyyaml python3-six python3-stevedore"
inherit setuptools3 pypi
BBCLASSEXTEND = "native"
```
Add missing dependency on pbr native | ```bitbake
SUMMARY = "Security oriented static analyser for python code."
LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://LICENSE;md5=1dece7821bf3fd70fe1309eaa37d52a2"
SRC_URI[md5sum] = "f74155cb9921be857693b32d2531e857"
SRC_URI[sha256sum] = "cb977045497f83ec3a02616973ab845c829cdab8144ce2e757fe031104a9abd4"
DEPENDS = "python3-pyyaml python3-six python3-stevedore python3-pbr-native"
inherit setuptools3 pypi
BBCLASSEXTEND = "native"
``` |
2d12e976-29c0-4d65-93b5-b54b34d2b1c6 | {
"language": "BitBake"
} | ```bitbake
SECTION = "base"
PACKAGES = ""
LICENSE = "GPL"
INHIBIT_DEFAULT_DEPS = "1"
PR = "r2"
SRC_URI = "http://nslu.sf.net/downloads/${PN}-${PV}.tar.bz2"
S = "${WORKDIR}/${PN}-${PV}"
COMPATIBLE_MACHINE = "nslu2"
do_compile () {
install -d ${STAGING_LIBDIR}/nslu2-binaries
install -m 0755 ${S}/RedBoot ${STAGING_LIBDIR}/nslu2-binaries/
install -m 0755 ${S}/SysConf ${STAGING_LIBDIR}/nslu2-binaries/
install -m 0755 ${S}/vmlinuz ${STAGING_LIBDIR}/nslu2-binaries/
install -m 0755 ${S}/Trailer ${STAGING_LIBDIR}/nslu2-binaries/
}
```
Enable for ixp4xx machines too. | ```bitbake
SECTION = "base"
PACKAGES = ""
LICENSE = "GPL"
INHIBIT_DEFAULT_DEPS = "1"
PR = "r3"
SRC_URI = "http://nslu.sf.net/downloads/${PN}-${PV}.tar.bz2"
S = "${WORKDIR}/${PN}-${PV}"
COMPATIBLE_MACHINE = "(nslu2|ixp4xx)"
do_compile () {
install -d ${STAGING_LIBDIR}/nslu2-binaries
install -m 0755 ${S}/RedBoot ${STAGING_LIBDIR}/nslu2-binaries/
install -m 0755 ${S}/SysConf ${STAGING_LIBDIR}/nslu2-binaries/
install -m 0755 ${S}/vmlinuz ${STAGING_LIBDIR}/nslu2-binaries/
install -m 0755 ${S}/Trailer ${STAGING_LIBDIR}/nslu2-binaries/
}
``` |
6b993061-3f8d-4c75-8149-c67b97c7bc0a | {
"language": "BitBake"
} | ```bitbake
SRCBRANCH ?= "master-rel-2021.1"
SRCREV = "1ea0b872057a3f6636712dfda36bc6f1420f99af"
BRANCH = "master-rel-2021.1"
LIC_FILES_CHKSUM ?= "file://LICENSE.md;md5=1ff609e96fc79b87da48a837cbe5db33"
PV = "${SRCBRANCH}+git${SRCPV}"
include libmetal.inc
```
Update commit ids for 2021 release | ```bitbake
SRCBRANCH ?= "master-rel-2021.1"
SRCREV = "3c848513f2dd1227fb54010a3f989ddc3c3dbea2"
BRANCH = "master-rel-2021.1"
LIC_FILES_CHKSUM ?= "file://LICENSE.md;md5=1ff609e96fc79b87da48a837cbe5db33"
PV = "${SRCBRANCH}+git${SRCPV}"
include libmetal.inc
``` |
9fafc0c2-6640-4739-b2f3-0401a0670668 | {
"language": "BitBake"
} | ```bitbake
PR = "r0"
inherit gpe
DESCRIPTION = "GPE infrared communication applet"
DEPENDS = "gtk+ libgpewidget libmimedir libgpevtype openobex irda-utils dbus"
RDEPENDS = "libopenobex-1.0-1 irda-utils"
SECTION = "gpe"
PRIORITY = "optional"
MAINTAINER = "Florian Boor <[email protected]>"
LICENSE = "GPL"
SRC_URI += "file://dbus-new-api.patch;patch=1"
```
Remove libopenobex dependency as shlibs will handle this more correctly | ```bitbake
PR = "r0"
inherit gpe
DESCRIPTION = "GPE infrared communication applet"
DEPENDS = "gtk+ libgpewidget libmimedir libgpevtype openobex irda-utils dbus"
RDEPENDS = "irda-utils"
SECTION = "gpe"
PRIORITY = "optional"
MAINTAINER = "Florian Boor <[email protected]>"
LICENSE = "GPL"
SRC_URI += "file://dbus-new-api.patch;patch=1"
``` |
56d7df43-3c63-4395-9274-fe58ad507e9e | {
"language": "BitBake"
} | ```bitbake
DESCRIPTION = "GNU dbm is a set of database routines that use extensible hashing."
HOMEPAGE = "http://www.gnu.org/software/gdbm/gdbm.html"
SECTION = "libs"
PRIORITY = "optional"
LICENSE = "GPL"
PR = "r5"
SRC_URI = "${GNU_MIRROR}/gdbm/gdbm-${PV}.tar.gz \
file://makefile.patch \
file://libtool-mode.patch \
file://chmod.patch"
inherit autotools
TARGET_CC_ARCH += "${LDFLAGS}"
SRC_URI[md5sum] = "1d1b1d5c0245b1c00aff92da751e9aa1"
SRC_URI[sha256sum] = "cc340338a2e28b40058ab9eb5354a21d53f88a1582ea21ba0bb185c37a281dc9"
BBCLASSEXTEND = "native"
```
Update LICENSE field version to GPLv2 | ```bitbake
DESCRIPTION = "GNU dbm is a set of database routines that use extensible hashing."
HOMEPAGE = "http://www.gnu.org/software/gdbm/gdbm.html"
SECTION = "libs"
PRIORITY = "optional"
LICENSE = "GPLv2+"
PR = "r6"
SRC_URI = "${GNU_MIRROR}/gdbm/gdbm-${PV}.tar.gz \
file://makefile.patch \
file://libtool-mode.patch \
file://chmod.patch"
inherit autotools
TARGET_CC_ARCH += "${LDFLAGS}"
SRC_URI[md5sum] = "1d1b1d5c0245b1c00aff92da751e9aa1"
SRC_URI[sha256sum] = "cc340338a2e28b40058ab9eb5354a21d53f88a1582ea21ba0bb185c37a281dc9"
BBCLASSEXTEND = "native"
``` |
98bc85d5-a7be-45b3-870e-9c61b1de6923 | {
"language": "BitBake"
} | ```bitbake
require u-boot-ti.inc
PR = "r31"
BRANCH = "ti-u-boot-2020.01"
SRCREV = "9e7410ef108d77c2801afbe8fb1879c475aed6ff"
```
Update to the latest commit | ```bitbake
require u-boot-ti.inc
PR = "r32"
BRANCH = "ti-u-boot-2020.01"
SRCREV = "3352297ed065254b1a615fb16a7e4eefb07f9728"
``` |
3a897bf1-09cd-475d-8473-8ec241623aa3 | {
"language": "BitBake"
} | ```bitbake
DESCRIPTION = "An audio Sample Rate Conversion library"
SECTION = "libs"
LICENSE = "GPL libsamplerate"
PR = "r2"
SRC_URI = "http://www.mega-nerd.com/SRC/libsamplerate-${PV}.tar.gz \
file://libsamplerate-0.1.7-macro-quoting.patch;striplevel=0 \
file://libsamplerate-0.1.7-tests.patch "
S = "${WORKDIR}/libsamplerate-${PV}"
inherit autotools pkgconfig
SRC_URI[md5sum] = "6731a81cb0c622c483b28c0d7f90867d"
SRC_URI[sha256sum] = "78ed5d9ff1bf162c4a078f6a3e7432a537dd2f22dc58872b081fb01156027fcc"
```
Update LICENSE field version to GPLv2 | ```bitbake
DESCRIPTION = "An audio Sample Rate Conversion library"
SECTION = "libs"
LICENSE = "GPLv2+"
PR = "r3"
SRC_URI = "http://www.mega-nerd.com/SRC/libsamplerate-${PV}.tar.gz \
file://libsamplerate-0.1.7-macro-quoting.patch;striplevel=0 \
file://libsamplerate-0.1.7-tests.patch "
S = "${WORKDIR}/libsamplerate-${PV}"
inherit autotools pkgconfig
SRC_URI[md5sum] = "6731a81cb0c622c483b28c0d7f90867d"
SRC_URI[sha256sum] = "78ed5d9ff1bf162c4a078f6a3e7432a537dd2f22dc58872b081fb01156027fcc"
``` |
ea0be866-b598-42b1-b18a-f45234c5cedd | {
"language": "BitBake"
} | ```bitbake
SUMMARY = "A top utility for I/O"
LICENSE = "GPLv2+"
LIC_FILES_CHKSUM = "file://LICENSE;md5=48e7be78bd2671d08c9c3bad71f1cfaa"
DEPENDS = "ncurses"
SRC_URI = "https://github.com/Tomas-M/iotop/releases/download/v1.20/iotop-1.20.tar.xz"
SRC_URI[sha256sum] = "e0227dd4b71ce3ffe50225b85cf9abb38a99c1d2dff69e3f1db7d059d7490d51"
UPSTREAM_CHECK_URI = "https://github.com/Tomas-M/iotop/releases"
inherit pkgconfig
EXTRA_OEMAKE = "V=1 STRIP=true"
# Fixes llvm-bc70b5.o: can't link soft-float modules with double-float modules
EXTRA_OEMAKE:append:toolchain-clang:riscv64 = " NO_FLTO=1"
# Workaround BFD linker crash with clang on arm
# revisit when upgrading binutils and see if its fixed
LDFLAGS:append:toolchain-clang:arm = " -fuse-ld=lld"
do_install() {
oe_runmake install DESTDIR=${D}
}
```
Disable lto with clang for rv32 | ```bitbake
SUMMARY = "A top utility for I/O"
LICENSE = "GPLv2+"
LIC_FILES_CHKSUM = "file://LICENSE;md5=48e7be78bd2671d08c9c3bad71f1cfaa"
DEPENDS = "ncurses"
SRC_URI = "https://github.com/Tomas-M/iotop/releases/download/v1.20/iotop-1.20.tar.xz"
SRC_URI[sha256sum] = "e0227dd4b71ce3ffe50225b85cf9abb38a99c1d2dff69e3f1db7d059d7490d51"
UPSTREAM_CHECK_URI = "https://github.com/Tomas-M/iotop/releases"
inherit pkgconfig
EXTRA_OEMAKE = "V=1 STRIP=true"
# Fixes llvm-bc70b5.o: can't link soft-float modules with double-float modules
EXTRA_OEMAKE:append:toolchain-clang:riscv64 = " NO_FLTO=1"
EXTRA_OEMAKE:append:toolchain-clang:riscv32 = " NO_FLTO=1"
# Workaround BFD linker crash with clang on arm
# revisit when upgrading binutils and see if its fixed
LDFLAGS:append:toolchain-clang:arm = " -fuse-ld=lld"
do_install() {
oe_runmake install DESTDIR=${D}
}
``` |
ed452ad3-2d02-4a44-9bbe-f05a2a852852 | {
"language": "BitBake"
} | ```bitbake
SRCBRANCH ?= "master-rel-2021.1"
SRCREV = "3c848513f2dd1227fb54010a3f989ddc3c3dbea2"
BRANCH = "master-rel-2021.1"
LIC_FILES_CHKSUM ?= "file://LICENSE.md;md5=1ff609e96fc79b87da48a837cbe5db33"
PV = "${SRCBRANCH}+git${SRCPV}"
include libmetal.inc
```
Update branch for 2021.1 release | ```bitbake
SRCBRANCH ?= "xlnx_rel_v2021.1"
SRCREV = "3c848513f2dd1227fb54010a3f989ddc3c3dbea2"
BRANCH = "xlnx_rel_v2021.1"
LIC_FILES_CHKSUM ?= "file://LICENSE.md;md5=1ff609e96fc79b87da48a837cbe5db33"
PV = "${SRCBRANCH}+git${SRCPV}"
include libmetal.inc
``` |
486a2433-8fd9-474d-adbe-247e983fd18f | {
"language": "BitBake"
} | ```bitbake
require libglade.inc
inherit gnome
SRC_URI += "file://glade-cruft.patch file://no-xml2.patch"
EXTRA_OECONF += "--without-libxml2"
LDFLAGS += "-lz"
SRC_URI[archive.md5sum] = "d1776b40f4e166b5e9c107f1c8fe4139"
SRC_URI[archive.sha256sum] = "64361e7647839d36ed8336d992fd210d3e8139882269bed47dc4674980165dec"
```
Update LICENSE field version to LGPLv2 | ```bitbake
require libglade.inc
LICENSE = "LGPLv2 LGPLv2+"
PR = "r1"
inherit gnome
SRC_URI += "file://glade-cruft.patch file://no-xml2.patch"
EXTRA_OECONF += "--without-libxml2"
LDFLAGS += "-lz"
SRC_URI[archive.md5sum] = "d1776b40f4e166b5e9c107f1c8fe4139"
SRC_URI[archive.sha256sum] = "64361e7647839d36ed8336d992fd210d3e8139882269bed47dc4674980165dec"
``` |
4d812687-f3c0-4714-b970-5f9da6f5c54d | {
"language": "BitBake"
} | ```bitbake
DESCRIPTION = "Algorithm::Diff - Compute intelligent differences between two files / lists"
SECTION = "libs"
MAINTAINER = "Jamie Lenehan <[email protected]>"
LICENSE = "Artistic|GPL"
RDEPENDS += "perl-module-exporter perl-module-strict perl-module-vars \
"perl-module-exporter perl-module-strict perl-module-vars"
PR = "r0"
SRC_URI = "http://search.cpan.org/CPAN/authors/id/T/TY/TYEMQ/Algorithm-Diff-${PV}.tar.gz"
S = "${WORKDIR}/Algorithm-Diff-${PV}"
inherit cpan
```
Fix up RDEPENDS, there was one " too many and one dependency listed twice. | ```bitbake
DESCRIPTION = "Algorithm::Diff - Compute intelligent differences between two files / lists"
SECTION = "libs"
MAINTAINER = "Jamie Lenehan <[email protected]>"
LICENSE = "Artistic|GPL"
RDEPENDS += "perl-module-exporter perl-module-strict perl-module-vars \
perl-module-strict perl-module-vars"
PR = "r0"
SRC_URI = "http://search.cpan.org/CPAN/authors/id/T/TY/TYEMQ/Algorithm-Diff-${PV}.tar.gz"
S = "${WORKDIR}/Algorithm-Diff-${PV}"
inherit cpan
``` |
94507122-d02e-473f-b0e4-8b6990548217 | {
"language": "BitBake"
} | ```bitbake
DESCRIPTION = "GStreamer elements to use the Video Processing Engine (VPE) found on some TI devices"
LICENSE = "LGPLv2"
LIC_FILES_CHKSUM = "file://COPYING;md5=fbc093901857fcd118f065f900982c24"
require gstreamer1.0-plugins-ti.inc
PR = "${INC_PR}.15"
SRCREV = "3c44b9f4769d8a2b1e3b3441d789a62047c7f940"
SRC_URI = "git://git.ti.com/glsdk/gst-plugin-vpe.git;protocol=git \
file://ti-video.conf \
"
do_install_append() {
install -d ${D}/etc/modprobe.d
install -m 644 ${WORKDIR}/ti-video.conf ${D}/etc/modprobe.d
}
```
Update SRCREV and PR to pick bug fix | ```bitbake
DESCRIPTION = "GStreamer elements to use the Video Processing Engine (VPE) found on some TI devices"
LICENSE = "LGPLv2"
LIC_FILES_CHKSUM = "file://COPYING;md5=fbc093901857fcd118f065f900982c24"
require gstreamer1.0-plugins-ti.inc
PR = "${INC_PR}.16"
SRCREV = "4fe4beaa1498e27878bf04020aef0099c17f2262"
SRC_URI = "git://git.ti.com/glsdk/gst-plugin-vpe.git;protocol=git \
file://ti-video.conf \
"
do_install_append() {
install -d ${D}/etc/modprobe.d
install -m 644 ${WORKDIR}/ti-video.conf ${D}/etc/modprobe.d
}
``` |
f7d3a1d0-11c0-4a3f-8d39-cc344609237f | {
"language": "BitBake"
} | ```bitbake
DESCRIPTION = "GStreamer elements to use the multimedia accelerators available on some TI parts"
LICENSE = "LGPLv2"
LIC_FILES_CHKSUM = "file://COPYING;md5=fbc093901857fcd118f065f900982c24"
require gstreamer1.0-plugins-ti.inc
PR = "${INC_PR}.26"
SRCREV = "c8f6051ac3dff629aa00c22667fcc33cb1cfd074"
BRANCH ?= "master"
SRC_URI = "git://git.ti.com/glsdk/gst-plugin-ducati.git;protocol=git;branch=${BRANCH} \
"
FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
```
Update SRCREV with memory leak fix | ```bitbake
DESCRIPTION = "GStreamer elements to use the multimedia accelerators available on some TI parts"
LICENSE = "LGPLv2"
LIC_FILES_CHKSUM = "file://COPYING;md5=fbc093901857fcd118f065f900982c24"
require gstreamer1.0-plugins-ti.inc
PR = "${INC_PR}.27"
SRCREV = "7205d7cb75944e816622d5daca88804819ff16d3"
BRANCH ?= "master"
SRC_URI = "git://git.ti.com/glsdk/gst-plugin-ducati.git;protocol=git;branch=${BRANCH} \
"
FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
``` |
c9b7fb91-302c-4203-8c26-e6a20c7834be | {
"language": "BitBake"
} | ```bitbake
require u-boot-ti.inc
PR = "r35"
BRANCH = "ti-u-boot-2020.01"
SRCREV = "654d73f8725db340ccb470d5d130df3fcf7ce482"
```
Update to the latest commit | ```bitbake
require u-boot-ti.inc
PR = "r36"
BRANCH = "ti-u-boot-2020.01"
SRCREV = "2781231a33c3d779e32445f4fe55164c45d6d7c1"
``` |
e234cfc1-6c87-4213-a829-c9b43534cc8f | {
"language": "BitBake"
} | ```bitbake
# Build of xserver-kdrive is not possible with xextproto >= 7.1.
# This package allows to install old 7.0 includes in parallel.
FILESPATH = "${@os.path.dirname(bb.data.getVar('FILE',d,1))}/xextproto-7.0:${@os.path.dirname(bb.data.getVar('FILE',d,1))}/xextproto:${@os.path.dirname(bb.data.getVar('FILE',d,1))}/files"
PR_append = ".1"
BPN = "xextproto"
require xextproto_7.0.5.bb
XORG_PN = "xextproto"
EXTRA_OECONF += "--includedir=${includedir}/xextproto-70"
do_install_append() {
rm -r ${D}${libdir}
}
# xorg-proto-common.inc would stage all. We need to overwrite it.
do_stage() {
autotools_stage_includes
}
# No, we really do not want to install .pc file and overwrite newer one:
pkgconfig_sysroot_preprocess() {
}
```
Drop unnecessary FILESPATH (what was added doesn't exist) | ```bitbake
# Build of xserver-kdrive is not possible with xextproto >= 7.1.
# This package allows to install old 7.0 includes in parallel.
PR_append = ".1"
BPN = "xextproto"
require xextproto_7.0.5.bb
XORG_PN = "xextproto"
EXTRA_OECONF += "--includedir=${includedir}/xextproto-70"
do_install_append() {
rm -r ${D}${libdir}
}
# xorg-proto-common.inc would stage all. We need to overwrite it.
do_stage() {
autotools_stage_includes
}
# No, we really do not want to install .pc file and overwrite newer one:
pkgconfig_sysroot_preprocess() {
}
``` |
4e1b0e68-9859-4840-b45c-7d7a4d2c22b8 | {
"language": "BitBake"
} | ```bitbake
SUMMARY = "Video Decode and Presentation API for UNIX"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://COPYING;md5=83af8811a28727a13f04132cc33b7f58"
DEPENDS = "virtual/libx11 libxext dri2proto"
PV = "1.1.1+git${SRCPV}"
SRCREV = "a21bf7aa438f5dd40d0a300a3167aa3d6f26dccc"
SRC_URI = "git://anongit.freedesktop.org/vdpau/libvdpau"
S = "${WORKDIR}/git"
inherit distro_features_check autotools pkgconfig
REQUIRED_DISTRO_FEATURES = "x11"
do_install_append() {
rm -f ${D}${libdir}/*/*.la
}
FILES_${PN}-dbg += "${libdir}/vdpau/.debug"
FILES_${PN}-dev += "${libdir}/vdpau/lib*${SOLIBSDEV}"
FILES_${PN} += "${libdir}/vdpau/lib*${SOLIBS}"
```
Rename dep dri2proto -> xorgproto | ```bitbake
SUMMARY = "Video Decode and Presentation API for UNIX"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://COPYING;md5=83af8811a28727a13f04132cc33b7f58"
DEPENDS = "virtual/libx11 libxext xorgproto"
PV = "1.1.1+git${SRCPV}"
SRCREV = "a21bf7aa438f5dd40d0a300a3167aa3d6f26dccc"
SRC_URI = "git://anongit.freedesktop.org/vdpau/libvdpau"
S = "${WORKDIR}/git"
inherit distro_features_check autotools pkgconfig
REQUIRED_DISTRO_FEATURES = "x11"
do_install_append() {
rm -f ${D}${libdir}/*/*.la
}
FILES_${PN}-dbg += "${libdir}/vdpau/.debug"
FILES_${PN}-dev += "${libdir}/vdpau/lib*${SOLIBSDEV}"
FILES_${PN} += "${libdir}/vdpau/lib*${SOLIBS}"
``` |
d34a6d06-6a2e-4e4d-a527-636853ed2e74 | {
"language": "BitBake"
} | ```bitbake
DESCRIPTION = "\
IPC::Run allows you run and interact with child processes \
using files, pipes, and pseudo-ttys. Both system()-style and scripted \
usages are supported and may be mixed. Likewise, functional and OO API \
styles are both supported and may be mixed."
SECTION = "libs"
LICENSE = "Artistic-1.0 | GPL-1.0+"
LIC_FILES_CHKSUM = "file://LICENSE;md5=0ebd37caf53781e8b7223e6b99b63f4e"
DEPENDS = "perl"
SRC_URI = "git://github.com/toddr/IPC-Run.git"
SRCREV = "6bdf41e276e06d23e140783b13a6eaef4745c216"
S = "${WORKDIR}/git"
inherit cpan
EXTRA_CPANFLAGS = "EXPATLIBPATH=${STAGING_LIBDIR} EXPATINCPATH=${STAGING_INCDIR}"
do_compile() {
export LIBC="$(find ${STAGING_DIR_TARGET}/${base_libdir}/ -name 'libc-*.so')"
cpan_do_compile
}
```
Add HOMEPAGE info into recipe file. | ```bitbake
DESCRIPTION = "\
IPC::Run allows you run and interact with child processes \
using files, pipes, and pseudo-ttys. Both system()-style and scripted \
usages are supported and may be mixed. Likewise, functional and OO API \
styles are both supported and may be mixed."
HOMEPAGE = "https://metacpan.org/release/IPC-Run"
SECTION = "libs"
LICENSE = "Artistic-1.0 | GPL-1.0+"
LIC_FILES_CHKSUM = "file://LICENSE;md5=0ebd37caf53781e8b7223e6b99b63f4e"
DEPENDS = "perl"
SRC_URI = "git://github.com/toddr/IPC-Run.git"
SRCREV = "6bdf41e276e06d23e140783b13a6eaef4745c216"
S = "${WORKDIR}/git"
inherit cpan
EXTRA_CPANFLAGS = "EXPATLIBPATH=${STAGING_LIBDIR} EXPATINCPATH=${STAGING_INCDIR}"
do_compile() {
export LIBC="$(find ${STAGING_DIR_TARGET}/${base_libdir}/ -name 'libc-*.so')"
cpan_do_compile
}
``` |
3092b432-7cf1-42b0-bce4-58c8e16d219f | {
"language": "BitBake"
} | ```bitbake
LICENSE= "MIT"
SUMMARY = "X Server Nokia 770 extensions library"
SECTION = "x11/libs"
DEPENDS = "virtual/libx11 libxext"
LIC_FILES_CHKSUM = "file://COPYING;md5=db043791349ba57ad1169e1c92477cb6"
SRC_URI = "http://repository.maemo.org/pool/maemo/ossw/source/x/${PN}/${PN}_${PV}.tar.gz \
file://auxdir.patch;striplevel=0"
S = "${WORKDIR}/xpext-1.0"
inherit autotools pkgconfig
do_configure_prepend () {
cd ${B}
chmod +x ${S}/autogen.sh
${S}/autogen.sh
}
SRC_URI[md5sum] = "1b0cb67b6f2bd7c4abef17648b062896"
SRC_URI[sha256sum] = "a3b06f5188fd9effd0799ae31352b3cd65cb913b964e2c1a923ffa9d3c08abbe"
```
Drop uneeded custom do_configure to fix B!=S builds | ```bitbake
LICENSE= "MIT"
SUMMARY = "X Server Nokia 770 extensions library"
SECTION = "x11/libs"
DEPENDS = "virtual/libx11 libxext"
LIC_FILES_CHKSUM = "file://COPYING;md5=db043791349ba57ad1169e1c92477cb6"
SRC_URI = "http://repository.maemo.org/pool/maemo/ossw/source/x/${PN}/${PN}_${PV}.tar.gz \
file://auxdir.patch;striplevel=0"
S = "${WORKDIR}/xpext-1.0"
inherit autotools pkgconfig
SRC_URI[md5sum] = "1b0cb67b6f2bd7c4abef17648b062896"
SRC_URI[sha256sum] = "a3b06f5188fd9effd0799ae31352b3cd65cb913b964e2c1a923ffa9d3c08abbe"
``` |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.