Skip to contentSkip to conversation

directfb: Do recipe maintenance

PATCH New [email protected] 1 participant 5 messages Aug 26, 2024

lore
Share & tools
lore
#0 lore raw

cover directfb: Do recipe maintenance

From: Mark Jonas <[email protected]>

This patch series for directfb will
- order PACKAGECONFIG features alphabetically
- add freetype PACKAGECONFIG feature
- add zlib PACKAGECONFIG feature
- resolve compilation warning with C++17 and later

Ricardo Simoes (4):
directfb: Order PACKAGECONFIG alphabetically
directfb: Add freetype PACKAGECONFIG
directfb: Add zlib PACKAGECONFIG
directfb: Fix C++17 build warning

 .../recipes-graphics/directfb/directfb.inc    | 19 ++++----
 ...irect-remove-use-of-keyword-register.patch | 44 +++++++++++++++++++
 2 files changed, 54 insertions(+), 9 deletions(-)
 create mode 100644 meta-oe/recipes-graphics/directfb/directfb/0001-libdirect-remove-use-of-keyword-register.patch

--
2.34.1

#1 lore raw

PATCH 1/4 directfb: Order PACKAGECONFIG alphabetically

From: Ricardo Simoes <[email protected]>

---
 meta-oe/recipes-graphics/directfb/directfb.inc | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
meta-oe/recipes-graphics/directfb/directfb.inc +5 -5
index 54aeb06aa..3fbfd9ce7 100644
@@ -41,14 +41,14 @@ BINCONFIG = "${bindir}/directfb-config"
 inherit autotools binconfig-disabled pkgconfig
 
 PACKAGECONFIG ??= "linuxinput"
-PACKAGECONFIG[jpeg2000] = "--enable-jpeg2000,--disable-jpeg2000,jasper"
 PACKAGECONFIG[drmkms] = "--enable-drmkms,--disable-drmkms,libdrm"
-PACKAGECONFIG[tiff] = "--enable-tiff,--disable-tiff,tiff"
-PACKAGECONFIG[webp] = "--enable-webp,--disable-webp,libwebp"
-PACKAGECONFIG[tslib] = "--with-inputdrivers=tslib,,tslib"
+PACKAGECONFIG[jpeg2000] = "--enable-jpeg2000,--disable-jpeg2000,jasper"
+PACKAGECONFIG[mesa] = "--enable-mesa,--disable-mesa,virtual/mesa,"
 PACKAGECONFIG[linuxinput] = "--with-inputdrivers=linuxinput,,"
 PACKAGECONFIG[noinput] = "--with-inputdrivers=none,,"
-PACKAGECONFIG[mesa] = "--enable-mesa,--disable-mesa,virtual/mesa,"
+PACKAGECONFIG[tiff] = "--enable-tiff,--disable-tiff,tiff"
+PACKAGECONFIG[tslib] = "--with-inputdrivers=tslib,,tslib"
+PACKAGECONFIG[webp] = "--enable-webp,--disable-webp,libwebp"
 PACKAGECONFIG[x11] = "--enable-x11,--disable-x11,xserver-xorg,"
 
 EXTRA_OECONF = "\
Signature · 1 line
2.34.1
#2 lore raw

PATCH 2/4 directfb: Add freetype PACKAGECONFIG

In reply to [email protected]

From: Ricardo Simoes <[email protected]>

freetype was always enabled in DEPENDS and EXTRA_OEMAKE. Now it is a PACKAGECONFIG which is enabled by default.

---
 meta-oe/recipes-graphics/directfb/directfb.inc | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
meta-oe/recipes-graphics/directfb/directfb.inc +3 -3
index 3fbfd9ce7..1f81d2ecc 100644
@@ -9,7 +9,7 @@ LICENSE = "LGPL-2.1-only"
 LIC_FILES_CHKSUM = "file://COPYING;md5=dcf3c825659e82539645da41a7908589"
 
 HOMEPAGE = "http://directfb.org"
-DEPENDS = "jpeg libpng freetype zlib sysfsutils"
+DEPENDS = "jpeg libpng zlib sysfsutils"
 
 SRC_URI = "http://downloads.yoctoproject.org/mirror/sources/DirectFB-${PV}.tar.gz \
            file://configurefix.patch \
@@ -40,8 +40,9 @@ BINCONFIG = "${bindir}/directfb-config"
 
 inherit autotools binconfig-disabled pkgconfig
 
-PACKAGECONFIG ??= "linuxinput"
+PACKAGECONFIG ??= "freetype linuxinput"
 PACKAGECONFIG[drmkms] = "--enable-drmkms,--disable-drmkms,libdrm"
+PACKAGECONFIG[freetype] = "--enable-freetype,--disable-freetype,freetype"
 PACKAGECONFIG[jpeg2000] = "--enable-jpeg2000,--disable-jpeg2000,jasper"
 PACKAGECONFIG[mesa] = "--enable-mesa,--disable-mesa,virtual/mesa,"
 PACKAGECONFIG[linuxinput] = "--with-inputdrivers=linuxinput,,"
@@ -53,7 +54,6 @@ PACKAGECONFIG[x11] = "--enable-x11,--disable-x11,xserver-xorg,"
 
 EXTRA_OECONF = "\
   --with-gfxdrivers=none \
-  --enable-freetype=yes \
   --enable-zlib \
   --disable-imlib2 \
   --disable-sdl \
Signature · 1 line
2.34.1
#3 lore raw

PATCH 3/4 directfb: Add zlib PACKAGECONFIG

In reply to [email protected]

From: Ricardo Simoes <[email protected]>

zlib was always enabled in DEPENDS and EXTRA_OEMAKE. Now it is a PACKAGECONFIG which is enabled by default.

---
 meta-oe/recipes-graphics/directfb/directfb.inc | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
meta-oe/recipes-graphics/directfb/directfb.inc +3 -3
index 1f81d2ecc..313c9d16f 100644
@@ -9,7 +9,7 @@ LICENSE = "LGPL-2.1-only"
 LIC_FILES_CHKSUM = "file://COPYING;md5=dcf3c825659e82539645da41a7908589"
 
 HOMEPAGE = "http://directfb.org"
-DEPENDS = "jpeg libpng zlib sysfsutils"
+DEPENDS = "jpeg libpng sysfsutils"
 
 SRC_URI = "http://downloads.yoctoproject.org/mirror/sources/DirectFB-${PV}.tar.gz \
            file://configurefix.patch \
@@ -40,7 +40,7 @@ BINCONFIG = "${bindir}/directfb-config"
 
 inherit autotools binconfig-disabled pkgconfig
 
-PACKAGECONFIG ??= "freetype linuxinput"
+PACKAGECONFIG ??= "freetype linuxinput zlib"
 PACKAGECONFIG[drmkms] = "--enable-drmkms,--disable-drmkms,libdrm"
 PACKAGECONFIG[freetype] = "--enable-freetype,--disable-freetype,freetype"
 PACKAGECONFIG[jpeg2000] = "--enable-jpeg2000,--disable-jpeg2000,jasper"
@@ -51,10 +51,10 @@ PACKAGECONFIG[tiff] = "--enable-tiff,--disable-tiff,tiff"
 PACKAGECONFIG[tslib] = "--with-inputdrivers=tslib,,tslib"
 PACKAGECONFIG[webp] = "--enable-webp,--disable-webp,libwebp"
 PACKAGECONFIG[x11] = "--enable-x11,--disable-x11,xserver-xorg,"
+PACKAGECONFIG[zlib] = "--enable-zlib,--disable-zlib,zlib"
 
 EXTRA_OECONF = "\
   --with-gfxdrivers=none \
-  --enable-zlib \
   --disable-imlib2 \
   --disable-sdl \
   --disable-vnc \
Signature · 1 line
2.34.1
#4 lore raw

PATCH 4/4 directfb: Fix C++17 build warning

In reply to [email protected]

From: Ricardo Simoes <[email protected]>

DirectFB explicitly supports usage of C++. With C++17 and later the below warning is given:

lib/direct/util.h:223:19:
warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
223 | register int ret = 0;
| ^~~

To address that, this commit brings in the patch proposed by PR which removes the usage of the register keyword:

https://github.com/deniskropp/DirectFB/pull/25

---
 .../recipes-graphics/directfb/directfb.inc    |  1 +
 ...irect-remove-use-of-keyword-register.patch | 44 +++++++++++++++++++
 2 files changed, 45 insertions(+)
 create mode 100644 meta-oe/recipes-graphics/directfb/directfb/0001-libdirect-remove-use-of-keyword-register.patch
meta-oe/recipes-graphics/directfb/directfb.inc +1 -0
index 313c9d16f..59796cc65 100644
@@ -25,6 +25,7 @@ SRC_URI = "http://downloads.yoctoproject.org/mirror/sources/DirectFB-${PV}.tar.g
            file://0001-os-linux-Fix-build-when-__NR_futex-is-not-available.patch \
            file://0001-include-libgen.h-for-basename.patch \
            file://0001-inputdrivers-Correct-the-signature-of-bind-call-on-m.patch \
+           file://0001-libdirect-remove-use-of-keyword-register.patch \
            "
 
 S = "${WORKDIR}/DirectFB-${PV}"
meta-oe/recipes-graphics/directfb/directfb/0001-libdirect-remove-use-of-keyword-register.patch new file +44 -0

44 lines not on this page · raw message

Signature · 1 line
2.34.1