directfb: bump version to 1.7.7 and add hash
PATCH v2 1/7 directfb: bump version to 1.7.7 and add hash
Remove 0003-remove-redefinition-of-__typeof__.patch (the only upstream committed patch).
---
Changes v1 -> v2:
- merged add hash patch (as suggested by Peter Korsgaard)
---
.../0003-remove-redefinition-of-__typeof__.patch | 28 ----------------------
...region-lock.patch => 0003-setregion-lock.patch} | 0
...-use-gcc-link.patch => 0004-use-gcc-link.patch} | 0
package/directfb/directfb.hash | 3 +++
package/directfb/directfb.mk | 4 ++--
5 files changed, 5 insertions(+), 30 deletions(-)
delete mode 100644 package/directfb/0003-remove-redefinition-of-__typeof__.patch
rename package/directfb/{0004-setregion-lock.patch => 0003-setregion-lock.patch} (100%)
rename package/directfb/{0005-use-gcc-link.patch => 0004-use-gcc-link.patch} (100%)
create mode 100644 package/directfb/directfb.hashpackage/directfb/0003-remove-redefinition-of-__typeof__.patch deleted +0 -28
@@ -1,28 +0,0 @@ -Remove definition to fix qt5 build. - -Fetch from: http://git.directfb.org/?p=core/DirectFB.git;a=patch;h=203f78a4193a8ff110dec3c860e0928af1a0a72f - -From 203f78a4193a8ff110dec3c860e0928af1a0a72f Mon Sep 17 00:00:00 2001 -From: Denis Oliver Kropp <[email protected]> -Date: Wed, 31 Jul 2013 21:56:05 +0200 -Subject: [PATCH] libdirect: Remove redefinition of __typeof__!!! - ---- - lib/direct/os/linux/glibc/types.h | 1 - - 1 file changed, 1 deletion(-) - -diff --git a/lib/direct/os/linux/glibc/types.h b/lib/direct/os/linux/glibc/types.h -index 08e94b2..80cb350 100644 ---- a/lib/direct/os/linux/glibc/types.h -+++ b/lib/direct/os/linux/glibc/types.h -@@ -81,7 +81,6 @@ typedef int64_t s64; - #define __dfb_no_instrument_function__ __attribute__((no_instrument_function)) - #define __constructor__ __attribute__((constructor)) - #define __destructor__ __attribute__((destructor)) --#define __typeof__(x) __typeof__(x) - - #ifndef __func__ - #define __func__ __FUNCTION__ --- -1.7.9.5 -
package/directfb/0003-setregion-lock.patch renamed from package/directfb/0004-setregion-lock.patch +0 -0
package/directfb/0004-use-gcc-link.patch renamed from package/directfb/0005-use-gcc-link.patch +0 -0
package/directfb/directfb.hash new file +3 -0
@@ -0,0 +1,3 @@ +# Locally computed: +sha256 b785c638dc31b8fe3a7c81be1475c89b2255ab3d67b777c747d3fbc52f8027a3 DirectFB-1.7.7.tar.gz +
package/directfb/directfb.mk +2 -2
@@ -4,8 +4,8 @@ # ################################################################################ -DIRECTFB_VERSION_MAJOR = 1.6 -DIRECTFB_VERSION = $(DIRECTFB_VERSION_MAJOR).3 +DIRECTFB_VERSION_MAJOR = 1.7 +DIRECTFB_VERSION = $(DIRECTFB_VERSION_MAJOR).7 DIRECTFB_SITE = http://www.directfb.org/downloads/Core/DirectFB-$(DIRECTFB_VERSION_MAJOR) DIRECTFB_SOURCE = DirectFB-$(DIRECTFB_VERSION).tar.gz DIRECTFB_LICENSE = LGPLv2.1+
Signature · 1 line
2.1.4
PATCH v2 2/7 directfb: erase unsupported configure options
- disable-sysfs
- disable-explicit-deps
--- package/directfb/directfb.mk | 2 -- 1 file changed, 2 deletions(-)
package/directfb/directfb.mk +0 -2
@@ -14,11 +14,9 @@ DIRECTFB_INSTALL_STAGING = YES DIRECTFB_AUTORECONF = YES DIRECTFB_CONF_OPTS = \ - --disable-explicit-deps \ --enable-zlib \ --enable-freetype \ --enable-fbdev \ - --disable-sysfs \ --disable-sdl \ --disable-vnc \ --disable-osx \
Signature · 1 line
2.1.4
PATCH v2 3/7 directfb: multi application core configure default changed
In reply to Peter Seiderer--- package/directfb/directfb.mk | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
package/directfb/directfb.mk +3 -1
@@ -33,8 +33,10 @@ DIRECTFB_CONFIG_SCRIPTS = directfb-config DIRECTFB_DEPENDENCIES = freetype zlib ifeq ($(BR2_PACKAGE_DIRECTFB_MULTI),y) -DIRECTFB_CONF_OPTS += --enable-multi --enable-fusion +DIRECTFB_CONF_OPTS += --enable-multi --enable-multi-kernel DIRECTFB_DEPENDENCIES += linux-fusion +else +DIRECTFB_CONF_OPTS += --disable-multi --disable-multi-kernel endif ifeq ($(BR2_PACKAGE_DIRECTFB_DEBUG),y)
Signature · 1 line
2.1.4
PATCH v2 4/7 directfb: add new TIFF option
In reply to Peter Seiderer--- package/directfb/Config.in | 5 +++++ package/directfb/directfb.mk | 7 +++++++ 2 files changed, 12 insertions(+)
package/directfb/Config.in +5 -0
@@ -108,6 +108,11 @@ config BR2_PACKAGE_DIRECTFB_GIF bool "enable GIF support" default y +config BR2_PACKAGE_DIRECTFB_TIFF + bool "enable TIFF support" + default y + select BR2_PACKAGE_TIFF + config BR2_PACKAGE_DIRECTFB_IMLIB2 bool "enable IMLIB2 support" select BR2_PACKAGE_IMLIB2
package/directfb/directfb.mk +7 -0
@@ -100,6 +100,13 @@ else DIRECTFB_CONF_OPTS += --disable-gif endif +ifeq ($(BR2_PACKAGE_DIRECTFB_TIFF),y) +DIRECTFB_CONF_OPTS += --enable-tiff +DIRECTFB_DEPENDENCIES += tiff +else +DIRECTFB_CONF_OPTS += --disable-tiff +endif + ifeq ($(BR2_PACKAGE_DIRECTFB_PNG),y) DIRECTFB_CONF_OPTS += --enable-png DIRECTFB_DEPENDENCIES += libpng
Signature · 1 line
2.1.4
PATCH v2 5/7 directfb: fix Blackfin.uclinux.org 2014R1 toolchain compile errors
In reply to Peter Seiderer--- .../0005-workaround-missing-va_copy-bug.patch | 34 +++ ...ion-constructor-error-for-legacy-c-compil.patch | 227 +++++++++++++++++++++ ...-missing-pthread_getattr_np-linking-error.patch | 36 ++++ 3 files changed, 297 insertions(+) create mode 100644 package/directfb/0005-workaround-missing-va_copy-bug.patch create mode 100644 package/directfb/0006-Fix-conversion-constructor-error-for-legacy-c-compil.patch create mode 100644 package/directfb/0007-Fix-missing-pthread_getattr_np-linking-error.patch
package/directfb/0005-workaround-missing-va_copy-bug.patch new file +34 -0
@@ -0,0 +1,34 @@ +From 62585b44ec5a811b4c7a8088f91b635dda1a4dbd Mon Sep 17 00:00:00 2001 +From: Peter Seiderer <[email protected]> +Date: Thu, 26 Feb 2015 22:46:59 +0100 +Subject: [PATCH] workaround missing va_copy bug + +See [1] for reference. + +[1] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=36799 + +Signed-off-by: Peter Seiderer <[email protected]> +--- + lib/direct/String.cpp | 5 ++++- + 1 file changed, 4 insertions(+), 1 deletion(-) + +diff --git a/lib/direct/String.cpp b/lib/direct/String.cpp +index a7558ba..eca4664 100644 +--- a/lib/direct/String.cpp ++++ b/lib/direct/String.cpp +@@ -117,8 +117,11 @@ String::PrintF( const char *format, va_list args, size_t stack_buffer ) + + #ifdef __GNUC__ + va_list ap2; +- ++#ifdef va_copy + va_copy( ap2, args ); ++#else ++ __va_copy( ap2, args ); ++#endif + len = direct_vsnprintf( buf, sizeof(buf), format, ap2 ); + va_end( ap2 ); + #else +-- +2.1.4 +
package/directfb/0006-Fix-conversion-constructor-error-for-legacy-c-compil.patch new file +227 -0
227 lines not on this page · raw message
package/directfb/0007-Fix-missing-pthread_getattr_np-linking-error.patch new file +36 -0
@@ -0,0 +1,36 @@ +From 246ae872f8c2e4b597b7518236b2f8abda63b69d Mon Sep 17 00:00:00 2001 +From: Peter Seiderer <[email protected]> +Date: Thu, 26 Feb 2015 23:16:16 +0100 +Subject: [PATCH] Fix missing pthread_getattr_np linking error. + +Disable thread attribute read back in case of +uclibc. + +Signed-off-by: Peter Seiderer <[email protected]> +--- + lib/direct/os/linux/glibc/thread.c | 3 +++ + 1 file changed, 3 insertions(+) + +diff --git a/lib/direct/os/linux/glibc/thread.c b/lib/direct/os/linux/glibc/thread.c +index c3cf92c..2a3df80 100644 +--- a/lib/direct/os/linux/glibc/thread.c ++++ b/lib/direct/os/linux/glibc/thread.c +@@ -152,12 +152,15 @@ direct_thread_init( DirectThread *thread ) + + pthread_attr_destroy( &attr ); + ++/* versions of uClibc 0.9.32 and below do not have pthread_getattr_np */ ++#if !defined(__UCLIBC__) + /* Read (back) value. */ + pthread_getattr_np( thread->handle.thread, &attr ); + pthread_attr_getstacksize( &attr, &thread->stack_size ); + pthread_attr_getschedparam( &attr, ¶m ); + thread->priority = param.sched_priority; + pthread_attr_destroy( &attr ); ++#endif + + return DR_OK; + } +-- +2.1.4 +
Signature · 1 line
2.1.4
PATCH v2 6/7 qt: fix directfb-1.7.7 compiler errors
In reply to Peter Seiderer--- ...ion-constructor-error-for-legacy-c-compil.patch | 163 +++++++++++++++++++++ 1 file changed, 163 insertions(+) create mode 100644 package/qt/0007-Fix-conversion-constructor-error-for-legacy-c-compil.patch
package/qt/0007-Fix-conversion-constructor-error-for-legacy-c-compil.patch new file +163 -0
@@ -0,0 +1,163 @@ +From ea46f47fb3c475ba2d7581c15185b8d43e63b8c2 Mon Sep 17 00:00:00 2001 +From: Peter Seiderer <[email protected]> +Date: Fri, 27 Feb 2015 21:30:52 +0100 +Subject: [PATCH] Fix conversion/constructor error for legacy c++ compiler. +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +Fixes the following compile error with legacy c++ compiler: + +error: in C++98 ?blitRect? must be initialized by constructor, not by ?{...}? + +Signed-off-by: Peter Seiderer <[email protected]> +--- + src/plugins/gfxdrivers/directfb/qdirectfbpaintengine.cpp | 14 +++++++------- + src/plugins/gfxdrivers/directfb/qdirectfbpixmap.cpp | 6 +++--- + src/plugins/gfxdrivers/directfb/qdirectfbscreen.cpp | 6 +++--- + src/plugins/gfxdrivers/directfb/qdirectfbwindowsurface.cpp | 2 +- + 4 files changed, 14 insertions(+), 14 deletions(-) + +diff --git a/src/plugins/gfxdrivers/directfb/qdirectfbpaintengine.cpp b/src/plugins/gfxdrivers/directfb/qdirectfbpaintengine.cpp +index 876d0c2..ed69386 100644 +--- a/src/plugins/gfxdrivers/directfb/qdirectfbpaintengine.cpp ++++ b/src/plugins/gfxdrivers/directfb/qdirectfbpaintengine.cpp +@@ -942,7 +942,7 @@ void QDirectFBPaintEngine::drawBufferSpan(const uint *buffer, int bufsize, + IDirectFBSurface *src = d->surfaceCache->getSurface(buffer, bufsize); + // ### how does this play with setDFBColor + src->SetColor(src, 0, 0, 0, const_alpha); +- const DFBRectangle rect = { 0, 0, length, 1 }; ++ const DFBRectangle rect = (DFBRectangle_C){ 0, 0, length, 1 }; + d->surface->Blit(d->surface, src, &rect, x, y); + } + +@@ -1223,14 +1223,14 @@ void QDirectFBPaintEnginePrivate::blit(const QRectF &dest, IDirectFBSurface *s, + const QRect dr = engine->state()->matrix.mapRect(dest).toRect(); + if (dr.isEmpty()) + return; +- const DFBRectangle sRect = { sr.x(), sr.y(), sr.width(), sr.height() }; ++ const DFBRectangle sRect = (DFBRectangle_C){ sr.x(), sr.y(), sr.width(), sr.height() }; + DFBResult result; + + if (dr.size() == sr.size()) { + result = surface->Blit(surface, s, &sRect, dr.x(), dr.y()); + } else { + Q_ASSERT(supportsStretchBlit()); +- const DFBRectangle dRect = { dr.x(), dr.y(), dr.width(), dr.height() }; ++ const DFBRectangle dRect = (DFBRectangle_C){ dr.x(), dr.y(), dr.width(), dr.height() }; + result = surface->StretchBlit(surface, s, &sRect, &dRect); + } + if (result != DFB_OK) +@@ -1261,7 +1261,7 @@ void QDirectFBPaintEnginePrivate::drawTiledPixmap(const QRectF &dest, const QPix + if (newClip.isNull()) + return; + +- const DFBRegion clip = { ++ const DFBRegion clip = (DFBRegion_C){ + newClip.x(), + newClip.y(), + newClip.right(), +@@ -1295,7 +1295,7 @@ void QDirectFBPaintEnginePrivate::drawTiledPixmap(const QRectF &dest, const QPix + while (y <= destinationRect.bottom()) { + qreal x = startX; + while (x <= destinationRect.right()) { +- const DFBRectangle destination = { qRound(x), qRound(y), mappedSize.width(), mappedSize.height() }; ++ const DFBRectangle destination = (DFBRectangle_C){ qRound(x), qRound(y), (int)mappedSize.width(), (int)mappedSize.height() }; + surface->StretchBlit(surface, sourceSurface, 0, &destination); + x += mappedSize.width(); + } +@@ -1337,7 +1337,7 @@ void QDirectFBPaintEnginePrivate::drawTiledPixmap(const QRectF &dest, const QPix + if (currentClip.isEmpty()) { + surface->SetClip(surface, 0); + } else { +- const DFBRegion clip = { ++ const DFBRegion clip = (DFBRegion_C){ + currentClip.x(), + currentClip.y(), + currentClip.right(), +@@ -1356,7 +1356,7 @@ void QDirectFBPaintEnginePrivate::updateClip() + surface->SetClip(surface, NULL); + clipType = NoClip; + } else if (clipData->hasRectClip) { +- const DFBRegion r = { ++ const DFBRegion r = (DFBRegion_C){ + clipData->clipRect.x(), + clipData->clipRect.y(), + clipData->clipRect.right(), +diff --git a/src/plugins/gfxdrivers/directfb/qdirectfbpixmap.cpp b/src/plugins/gfxdrivers/directfb/qdirectfbpixmap.cpp +index 412e684..c59c47d 100644 +--- a/src/plugins/gfxdrivers/directfb/qdirectfbpixmap.cpp ++++ b/src/plugins/gfxdrivers/directfb/qdirectfbpixmap.cpp +@@ -363,7 +363,7 @@ void QDirectFBPixmapData::copy(const QPixmapData *data, const QRect &rect) + } else { + dfbSurface->SetBlittingFlags(dfbSurface, DSBLIT_NOFX); + } +- const DFBRectangle blitRect = { rect.x(), rect.y(), ++ const DFBRectangle blitRect = (DFBRectangle_C){ rect.x(), rect.y(), + rect.width(), rect.height() }; + w = rect.width(); + h = rect.height(); +@@ -465,7 +465,7 @@ QPixmap QDirectFBPixmapData::transformed(const QTransform &transform, + } + data->dfbSurface->SetBlittingFlags(data->dfbSurface, flags); + +- const DFBRectangle destRect = { 0, 0, size.width(), size.height() }; ++ const DFBRectangle destRect = (DFBRectangle_C){ 0, 0, size.width(), size.height() }; + data->dfbSurface->StretchBlit(data->dfbSurface, dfbSurface, 0, &destRect); + data->w = size.width(); + data->h = size.height(); +@@ -551,7 +551,7 @@ bool QDirectFBPixmapData::scroll(int dx, int dy, const QRect &rect) + return false; + } + +- const DFBRectangle source = { rect.x(), rect.y(), rect.width(), rect.height() }; ++ const DFBRectangle source = (DFBRectangle_C){ rect.x(), rect.y(), rect.width(), rect.height() }; + result = dfbSurface->Blit(dfbSurface, dfbSurface, &source, source.x + dx, source.y + dy); + if (result != DFB_OK) { + DirectFBError("QDirectFBPixmapData::scroll", result); +diff --git a/src/plugins/gfxdrivers/directfb/qdirectfbscreen.cpp b/src/plugins/gfxdrivers/directfb/qdirectfbscreen.cpp +index eab9580..d26e5bf 100644 +--- a/src/plugins/gfxdrivers/directfb/qdirectfbscreen.cpp ++++ b/src/plugins/gfxdrivers/directfb/qdirectfbscreen.cpp +@@ -1635,7 +1635,7 @@ void QDirectFBScreen::solidFill(const QColor &color, const QRegion ®ion) + static inline void clearRect(IDirectFBSurface *surface, const QColor &color, const QRect &rect) + { + Q_ASSERT(surface); +- const DFBRegion region = { rect.left(), rect.top(), rect.right(), rect.bottom() }; ++ const DFBRegion region = (DFBRegion_C){ rect.left(), rect.top(), rect.right(), rect.bottom() }; + // could just reinterpret_cast this to a DFBRegion + surface->SetClip(surface, ®ion); + surface->Clear(surface, color.red(), color.green(), color.blue(), color.alpha()); +@@ -1716,14 +1716,14 @@ void QDirectFBScreen::flipSurface(IDirectFBSurface *surface, DFBSurfaceFlipFlags + const DFBSurfaceFlipFlags nonWaitFlags = flipFlags & ~DSFLIP_WAIT; + for (int i=0; i<rects.size(); ++i) { + const QRect &r = rects.at(i); +- const DFBRegion dfbReg = { r.x() + offset.x(), r.y() + offset.y(), ++ const DFBRegion dfbReg = (DFBRegion_C){ r.x() + offset.x(), r.y() + offset.y(), + r.right() + offset.x(), + r.bottom() + offset.y() }; + surface->Flip(surface, &dfbReg, i + 1 < rects.size() ? nonWaitFlags : flipFlags); + } + } else { + const QRect r = region.boundingRect(); +- const DFBRegion dfbReg = { r.x() + offset.x(), r.y() + offset.y(), ++ const DFBRegion dfbReg = (DFBRegion_C){ r.x() + offset.x(), r.y() + offset.y(), + r.right() + offset.x(), + r.bottom() + offset.y() }; + surface->Flip(surface, &dfbReg, flipFlags); +diff --git a/src/plugins/gfxdrivers/directfb/qdirectfbwindowsurface.cpp b/src/plugins/gfxdrivers/directfb/qdirectfbwindowsurface.cpp +index 4dff907..25ad06b 100644 +--- a/src/plugins/gfxdrivers/directfb/qdirectfbwindowsurface.cpp ++++ b/src/plugins/gfxdrivers/directfb/qdirectfbwindowsurface.cpp +@@ -333,7 +333,7 @@ bool QDirectFBWindowSurface::scroll(const QRegion ®ion, int dx, int dy) + } + dfbSurface->SetBlittingFlags(dfbSurface, DSBLIT_NOFX); + const QRect r = region.boundingRect(); +- const DFBRectangle rect = { r.x(), r.y(), r.width(), r.height() }; ++ const DFBRectangle rect = (DFBRectangle_C){ r.x(), r.y(), r.width(), r.height() }; + dfbSurface->Blit(dfbSurface, dfbSurface, &rect, r.x() + dx, r.y() + dy); + return true; + } +-- +2.1.4 +
Signature · 1 line
2.1.4
PATCH v2 7/7 directfb-examples: bump version to 1.7.0 and add hash
In reply to Peter Seiderer---
Changes v1 -> v2:
- merged add hash patch (as suggested by Peter Korsgaard)
--- package/directfb-examples/directfb-examples.hash | 2 ++ package/directfb-examples/directfb-examples.mk | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 package/directfb-examples/directfb-examples.hash
package/directfb-examples/directfb-examples.hash new file +2 -0
@@ -0,0 +1,2 @@ +# Locally computed: +sha256 9a2104cc4da8123c8371813551b66b943198979f745cbebc034bb5e10844122a DirectFB-examples-1.7.0.tar.gz
package/directfb-examples/directfb-examples.mk +1 -1
@@ -4,7 +4,7 @@ # ################################################################################ -DIRECTFB_EXAMPLES_VERSION = 1.6.0 +DIRECTFB_EXAMPLES_VERSION = 1.7.0 DIRECTFB_EXAMPLES_SITE = http://www.directfb.org/downloads/Extras DIRECTFB_EXAMPLES_SOURCE = DirectFB-examples-$(DIRECTFB_EXAMPLES_VERSION).tar.gz DIRECTFB_EXAMPLES_LICENSE = MIT
Signature · 1 line
2.1.4
PATCH v2 1/7 directfb: bump version to 1.7.7 and add hash
In reply to Peter SeidererDear Peter Seiderer,
Quoted 4 lines · Peter Seiderer
Remove 0003-remove-redefinition-of-__typeof__.patch (the only upstream committed patch).
Signed-off-by Peter Seiderer <[email protected]>
I already had a series to bump DirectFB, but I never finished testing it, so I never submitted it. I think my series has some more cleanups than your series. Do you mind if I push my series somewhere so you can have a look, and maybe pick up some additional things?
Thanks!
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com
PATCH v2 1/7 directfb: bump version to 1.7.7 and add hash
Hello,
Quoted 4 lines · Thomas Petazzoni
I already had a series to bump DirectFB, but I never finished testing it, so I never submitted it. I think my series has some more cleanups than your series. Do you mind if I push my series somewhere so you can have a look, and maybe pick up some additional things?
I've pushed my patch series at:
http://git.free-electrons.com/users/thomas-petazzoni/buildroot/log/?h=directfb-bump
The list of commits is (in reverse order) :
directfb-examples: bump to 1.7.0, add hash file
directfb-examples: do not install to staging
directfb-examples: remove options for each example
linux-fusion: use a more traditional style to define LINUX_FUSION_MAKE_OPTS
linux-fusion: bump to 9.0.3, use .tar.xz and add hash file
sawman: remove package
divine: remove package
directfb: add options for divine and sawman
directfb: remove BR2_PACKAGE_DIRECTFB_DEBUG option
directfb: remove BR2_PACKAGE_DIRECTFB_UNIQUE option
directfb: remove broken X.org support
directfb: add hash file
directfb: bump to 1.7.6
directfb: rename patches to the new naming convention
How shall we proceed to merge both of our series together? Are you willing to take care of this?
Best regards,
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com