package/matchbox: fixes
cover package/matchbox: fixes
Hello All!
This small series brings in two fixes to the matchbox packages:
- ensure correct dependency selection
- fix the libmb.pc file
Regards,
Yann E. MORIN.
The following changes since commit f04df2d65dcdbff18cdc4a173aeef574de97f2ed
package/opencore-amr: fix license, add license hash (2017-09-29 09:05:18 +0200)
are available in the git repository at:
git://git.buildroot.org/~ymorin/git/buildroot.git
for you to fetch changes up to 73a014e628bcbf58c220a91a54d8637b792186f6
package/matchbox-lib: correctly fix the .pc file (2017-10-01 11:53:07 +0200)
----------------------------------------------------------------
Yann E. MORIN (2):
matchbox-lib: select dependency package/matchbox-lib: correctly fix the .pc file
DEVELOPERS | 1 + package/matchbox-fakekey/matchbox-fakekey.mk | 4 ++-- package/matchbox-lib/Config.in | 1 + package/matchbox-lib/matchbox-lib.mk | 7 +++++++ 4 files changed, 11 insertions(+), 2 deletions(-)
Signature · 6 lines
.-----------------.--------------------.------------------.--------------------. | Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: | | +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ | | +33 223 225 172 `------------.-------: X AGAINST | \e/ There is no | | http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. | '------------------------------^-------^------------------^--------------------'
PATCH 1/2 matchbox-lib: select dependency
Select the library we build-depend on.
Add myself to developpers for matchbos packages.
--- DEVELOPERS | 1 + package/matchbox-lib/Config.in | 1 + 2 files changed, 2 insertions(+)
DEVELOPERS +1 -0
@@ -1819,6 +1819,7 @@ F: package/libinput/ F: package/libiscsi/ F: package/libseccomp/ F: package/linux-tools/ +F: package/matchbox* F: package/mesa3d-headers/ F: package/nbd/ F: package/nut/
package/matchbox-lib/Config.in +1 -0
@@ -1,4 +1,5 @@ config BR2_PACKAGE_MATCHBOX_LIB bool "matchbox-lib" + select BR2_PACKAGE_XLIB_LIBXEXT help Matchbox common functionality library.
Signature · 1 line
2.11.0
PATCH 2/2 package/matchbox-lib: correctly fix the .pc file
In reply to Yann E. MORINFirst, the .pc file was so far fixed as a post-configure hook of the matchbox-fakekey package, by directly tweaking the installed .pc file in staging. That's uterly wrong and bad.
Second, it was incorreclty tweaking the .pc file when xlib_libXft was not enabled, because then only a path to staging was present.
Third, even when xlib_libXft was enabled, the tweaking was still wrong, because unnecessary.
Fix all that.
--- package/matchbox-fakekey/matchbox-fakekey.mk | 4 ++-- package/matchbox-lib/matchbox-lib.mk | 7 +++++++ 2 files changed, 9 insertions(+), 2 deletions(-)
package/matchbox-fakekey/matchbox-fakekey.mk +2 -2
@@ -14,8 +14,8 @@ MATCHBOX_FAKEKEY_DEPENDENCIES = matchbox-lib xlib_libXtst MATCHBOX_FAKEKEY_CONF_OPTS = --enable-expat define MATCHBOX_FAKEKEY_POST_CONFIGURE_FIXES - $(SED) 's:-I[^$$].*/usr/include/freetype2:-I/usr/include/freetype2:' $(STAGING_DIR)/usr/lib/pkgconfig/libmb.pc - $(SED) 's:^SUBDIRS = fakekey src tests.*:SUBDIRS = fakekey src:g' $(MATCHBOX_FAKEKEY_DIR)/Makefile + $(SED) 's:^SUBDIRS = fakekey src tests.*:SUBDIRS = fakekey src:g' \ + $(@D)/Makefile endef MATCHBOX_FAKEKEY_POST_CONFIGURE_HOOKS += MATCHBOX_FAKEKEY_POST_CONFIGURE_FIXES
package/matchbox-lib/matchbox-lib.mk +7 -0
@@ -55,4 +55,11 @@ else MATCHBOX_LIB_CONF_OPTS += --disable-xft endif +define MATCHBOX_LIB_FIX_PC + $(SED) 's:-I$(STAGING_DIR)/:-I/:g' \ + -e 's:-I/usr/include\( \|$$\)::g' \ + $(STAGING_DIR)/usr/lib/pkgconfig/libmb.pc +endef +MATCHBOX_LIB_POST_INSTALL_STAGING_HOOKS += MATCHBOX_LIB_FIX_PC + $(eval $(autotools-package))
Signature · 1 line
2.11.0
PATCH 1/2 matchbox-lib: select dependency
In reply to Yann E. MORINQuoted 27 lines · Yann E. MORIN
Select the library we build-depend on.
Add myself to developpers for matchbos packages.
Signed-off-by "Yann E. MORIN" <[email protected]>--- DEVELOPERS | 1 + package/matchbox-lib/Config.in | 1 + 2 files changed, 2 insertions(+)DEVELOPERS +1
-0@@ -1819,6 +1819,7 @@ F: package/libinput/ F: package/libiscsi/ F: package/libseccomp/ F: package/linux-tools/ +F: package/matchbox* F: package/mesa3d-headers/ F: package/nbd/ F: package/nut/package/matchbox-lib/Config.in +0
-0
package/matchbox-lib/Config.in line 3
Quoted 3 lines
package/matchbox-lib/Config.in +1
-0@@ -1,4 +1,5 @@ config BR2_PACKAGE_MATCHBOX_LIB bool "matchbox-lib" + select BR2_PACKAGE_XLIB_LIBXEXT
matchbox-lib also has a DEPENDENCIES on expat. expat is indeed selected by the
top-level matchbox package, but that package doesn't actually have it in its DEPENDENCIES. So perhaps move expat as well?
Otherwise:
Regards,
Arnout
Quoted 3 lines
package/matchbox-lib/Config.in +0
-0help Matchbox common functionality library.
Signature · 6 lines
Arnout Vandecappelle arnout at mind be Senior Embedded Software Architect +32-16-286500 Essensium/Mind http://www.mind.be G.Geenslaan 9, 3001 Leuven, Belgium BE 872 984 063 RPR Leuven LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle GPG fingerprint: 7493 020B C7E3 8618 8DEC 222C 82EB F404 F9AC 0DDF
PATCH 1/2 matchbox-lib: select dependency
Arnout, All,
On 2017-10-02 15:35 +0200, Arnout Vandecappelle spake thusly:
Quoted 27 lines · Yann E. MORIN
Quoted 26 lines
Select the library we build-depend on.
Add myself to developpers for matchbos packages.
Signed-off-by "Yann E. MORIN" <[email protected]>--- DEVELOPERS | 1 + package/matchbox-lib/Config.in | 1 + 2 files changed, 2 insertions(+)DEVELOPERS +1
-0@@ -1819,6 +1819,7 @@ F: package/libinput/ F: package/libiscsi/ F: package/libseccomp/ F: package/linux-tools/ +F: package/matchbox* F: package/mesa3d-headers/ F: package/nbd/ F: package/nut/package/matchbox-lib/Config.in +0
-0
Quoted 8 lines
package/matchbox-lib/Config.in line 3
Quoted 4 lines
package/matchbox-lib/Config.in +1
-0@@ -1,4 +1,5 @@ config BR2_PACKAGE_MATCHBOX_LIB bool "matchbox-lib" + select BR2_PACKAGE_XLIB_LIBXEXTmatchbox-lib also has a DEPENDENCIES on expat. expat is indeed selected by the
top-level matchbox package, but that package doesn't actually have it in its DEPENDENCIES. So perhaps move expat as well?
Hmm... I did not see the expat issue, because as you said, matchbox does select it.
I'll check whether it is needed in matchbox-lib or not, and will send an appropriate patch.
Quoted 2 lines
Otherwise:
Thanks! :-)
Regards,
Yann E. MORIN.
Quoted 14 lines
Regards,
ArnoutQuoted 3 lines
package/matchbox-lib/Config.in +0
-0help Matchbox common functionality library.Signature · 6 lines
Arnout Vandecappelle arnout at mind be Senior Embedded Software Architect +32-16-286500 Essensium/Mind http://www.mind.be G.Geenslaan 9, 3001 Leuven, Belgium BE 872 984 063 RPR Leuven LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle GPG fingerprint: 7493 020B C7E3 8618 8DEC 222C 82EB F404 F9AC 0DDF
Signature · 6 lines
.-----------------.--------------------.------------------.--------------------. | Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: | | +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ | | +33 223 225 172 `------------.-------: X AGAINST | \e/ There is no | | http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. | '------------------------------^-------^------------------^--------------------'
PATCH 2/2 package/matchbox-lib: correctly fix the .pc file
In reply to Yann E. MORINAll,
Replying to myself here...
On 2017-10-01 11:58 +0200, Yann E. MORIN spake thusly:
Quoted 38 lines
First, the .pc file was so far fixed as a post-configure hook of the matchbox-fakekey package, by directly tweaking the installed .pc file in staging. That's uterly wrong and bad.
Second, it was incorreclty tweaking the .pc file when
xlib_libXftwas not enabled, because then only a path to staging was present.Third, even when
xlib_libXftwas enabled, the tweaking was still wrong, because unnecessary.Fix all that.
Signed-off-by "Yann E. MORIN" <[email protected]>--- package/matchbox-fakekey/matchbox-fakekey.mk | 4 ++-- package/matchbox-lib/matchbox-lib.mk | 7 +++++++ 2 files changed, 9 insertions(+), 2 deletions(-)package/matchbox-fakekey/matchbox-fakekey.mk +2
-2@@ -14,8 +14,8 @@ MATCHBOX_FAKEKEY_DEPENDENCIES = matchbox-lib xlib_libXtst MATCHBOX_FAKEKEY_CONF_OPTS = --enable-expat define MATCHBOX_FAKEKEY_POST_CONFIGURE_FIXES - $(SED) 's:-I[^$$].*/usr/include/freetype2:-I/usr/include/freetype2:' $(STAGING_DIR)/usr/lib/pkgconfig/libmb.pc - $(SED) 's:^SUBDIRS = fakekey src tests.*:SUBDIRS = fakekey src:g' $(MATCHBOX_FAKEKEY_DIR)/Makefile + $(SED) 's:^SUBDIRS = fakekey src tests.*:SUBDIRS = fakekey src:g' \ + $(@D)/Makefile endef MATCHBOX_FAKEKEY_POST_CONFIGURE_HOOKS += MATCHBOX_FAKEKEY_POST_CONFIGURE_FIXESpackage/matchbox-lib/matchbox-lib.mk +0
-0
package/matchbox-lib/matchbox-lib.mk else · line 63
Quoted 9 lines
package/matchbox-lib/matchbox-lib.mk +6
-0@@ -55,4 +55,11 @@ else MATCHBOX_LIB_CONF_OPTS += --disable-xft endif +define MATCHBOX_LIB_FIX_PC + $(SED) 's:-I$(STAGING_DIR)/:-I/:g' \ + -e 's:-I/usr/include\( \|$$\)::g' \ + $(STAGING_DIR)/usr/lib/pkgconfig/libmb.pc +endef +MATCHBOX_LIB_POST_INSTALL_STAGING_HOOKS += MATCHBOX_LIB_FIX_PC
Certainly not. There is already a similar hook at the top of the file.
But it is also incorrect anyway.
Damned.
I'll fix.
Regards,
Yann E. MORIN.
Quoted 4 lines
package/matchbox-lib/matchbox-lib.mk +0
-0$(eval $(autotools-package))Signature · 1 line
2.11.0
Signature · 6 lines
.-----------------.--------------------.------------------.--------------------. | Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: | | +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ | | +33 223 225 172 `------------.-------: X AGAINST | \e/ There is no | | http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. | '------------------------------^-------^------------------^--------------------'