sylpheed: Fix includedir
PATCH v3 1/1 sylpheed: Fix includedir
The sylpheed headers are installed to $(DESTDIR)$(includedir), while DESTDIR is $(TARGET_DIR) and includedir is set to $(STAGING_DIR)/usr/include in the SYLPHEED_CONF_OPT. Thus, the full staging directory path is created in the target root filesystem, which is wrong.
The includedir was set to staging include because sylpheed incorrectly adds includedir to its include path, and does not cross-compile with the default includedir set to /usr/include.
This removes includedir setting and also removes it from include paths in Makefiles to prevent using host headers from /usr/include. The same approach is used in the OE.
--- package/sylpheed/sylpheed.mk | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-)
package/sylpheed/sylpheed.mk +11 -2
@@ -9,11 +9,20 @@ SYLPHEED_VERSION = $(SYLPHEED_VERSION_MAJOR).$(SYLPHEED_VERSION_MINOR) SYLPHEED_SOURCE = sylpheed-$(SYLPHEED_VERSION).tar.bz2 SYLPHEED_SITE = http://sylpheed.sraoss.jp/sylpheed/v$(SYLPHEED_VERSION_MAJOR) -SYLPHEED_CONF_OPT = --disable-gtkspell \ - --includedir=$(STAGING_DIR)/usr/include +SYLPHEED_CONF_OPT = --disable-gtkspell SYLPHEED_DEPENDENCIES = host-pkg-config libgtk2 +# Remove the -I$(includedir) from the Makefiles +# because it refers to the host /usr/include. +define SYLPHEED_PRECONFIGURE + for i in $$(find $(@D) -name "Makefile*"); do \ + sed -i 's:-I$$(includedir)::g' $$i; \ + done +endef + +SYLPHEED_PRE_CONFIGURE_HOOKS += SYLPHEED_PRECONFIGURE + ifeq ($(BR2_PACKAGE_OPENSSL),y) SYLPHEED_DEPENDENCIES += openssl SYLPHEED_CONF_OPT += --enable-ssl
Signature · 1 line
1.7.11.4
PATCH v3 1/1 sylpheed: Fix includedir
Quoted 11 lines · Valentine Barshak
The sylpheed headers are installed to $(DESTDIR)$(includedir), while DESTDIR is $(TARGET_DIR) and includedir is set to $(STAGING_DIR)/usr/include in the
SYLPHEED_CONF_OPT. Thus, the full staging directory path is created in the target root filesystem, which is wrong.The includedir was set to staging include because sylpheed incorrectly adds includedir to its include path, and does not cross-compile with the default includedir set to
/usr/include.
Quoted 5 lines
This removes includedir setting and also removes it from include paths in Makefiles to prevent using host headers from
/usr/include. The same approach is used in the OE.Signed-off-by Valentine Barshak<[email protected]>
(untested)
Regards,
Arnout
Signature · 6 lines
Arnout Vandecappelle arnout at mind be Senior Embedded Software Architect +32-16-286540 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: 7CB5 E4CC 6C2E EFD4 6E3D A754 F963 ECAB 2450 2F1F
PATCH v3 1/1 sylpheed: Fix includedir
In reply to Valentine BarshakDear Valentine Barshak,
Quoted 11 lines · Valentine Barshak
The sylpheed headers are installed to $(DESTDIR)$(includedir), while DESTDIR is $(TARGET_DIR) and includedir is set to $(STAGING_DIR)/usr/include in the
SYLPHEED_CONF_OPT. Thus, the full staging directory path is created in the target root filesystem, which is wrong.The includedir was set to staging include because sylpheed incorrectly adds includedir to its include path, and does not cross-compile with the default includedir set to
/usr/include.
Quoted 5 lines
This removes includedir setting and also removes it from include paths in Makefiles to prevent using host headers from
/usr/include. The same approach is used in the OE.Signed-off-by Valentine Barshak <[email protected]>
If you have the time, it would be great to submit a patch to the upstream project in order to fix this problem.
Thanks,
Thomas
Signature · 4 lines
Thomas Petazzoni, Free Electrons Kernel, drivers, real-time and embedded Linux development, consulting, training and support. http://free-electrons.com
PATCH v3 1/1 sylpheed: Fix includedir
Quoted 14 lines · Thomas Petazzoni
Dear Valentine Barshak,
Quoted 11 lines · Valentine Barshak
The sylpheed headers are installed to $(DESTDIR)$(includedir), while DESTDIR is $(TARGET_DIR) and includedir is set to $(STAGING_DIR)/usr/include in the
SYLPHEED_CONF_OPT. Thus, the full staging directory path is created in the target root filesystem, which is wrong.The includedir was set to staging include because sylpheed incorrectly adds includedir to its include path, and does not cross-compile with the default includedir set to
/usr/include.
Quoted 8 lines
Quoted 5 lines
This removes includedir setting and also removes it from include paths in Makefiles to prevent using host headers from
/usr/include. The same approach is used in the OE.Signed-off-by Valentine Barshak <[email protected]>If you have the time, it would be great to submit a patch to the upstream project in order to fix this problem.
Done.
Thanks,
Val.
Quoted 5 lines
Thanks,
Thomas
PATCH v3 1/1 sylpheed: Fix includedir
In reply to Thomas PetazzoniQuoted 14 lines · Thomas Petazzoni
Dear Valentine Barshak,
Quoted 11 lines · Valentine Barshak
The sylpheed headers are installed to $(DESTDIR)$(includedir), while DESTDIR is $(TARGET_DIR) and includedir is set to $(STAGING_DIR)/usr/include in the
SYLPHEED_CONF_OPT. Thus, the full staging directory path is created in the target root filesystem, which is wrong.The includedir was set to staging include because sylpheed incorrectly adds includedir to its include path, and does not cross-compile with the default includedir set to
/usr/include.
Quoted 8 lines
Quoted 5 lines
This removes includedir setting and also removes it from include paths in Makefiles to prevent using host headers from
/usr/include. The same approach is used in the OE.Signed-off-by Valentine Barshak <[email protected]>If you have the time, it would be great to submit a patch to the upstream project in order to fix this problem.
Applied upstream:
http://www.sraoss.jp/pipermail/sylpheed/2012-October/005424.html
Thanks,
Val.
Quoted 5 lines
Thanks,
Thomas
PATCH v3 1/1 sylpheed: Fix includedir
Quoted 4 lines
Quoted 4 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Valentine" == Valentine Barshak <[email protected]> writes:
If you have the time, it would be great to submit a patch to the upstream project in order to fix this problem.
Valentine> Applied upstream:
Valentine> http://www.sraoss.jp/pipermail/sylpheed/2012-October/005424.html
Great, thanks!
Signature · 1 line
Bye, Peter Korsgaard
PATCH v3 1/1 sylpheed: Fix includedir
In reply to Valentine BarshakQuoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Valentine" == Valentine Barshak <[email protected]> writes:
Valentine> The sylpheed headers are installed to $(DESTDIR)$(includedir), Valentine> while DESTDIR is $(TARGET_DIR) and includedir is set to Valentine> $(STAGING_DIR)/usr/include in the SYLPHEED_CONF_OPT. Valentine> Thus, the full staging directory path is created in the Valentine> target root filesystem, which is wrong.
Committed, thanks.
Signature · 1 line
Bye, Peter Korsgaard