Message ID | 20170316223840.23007-1-arnout@mind.be |
---|---|
State | Superseded |
Headers | show |
Hi Arnout, thanks for the patch. However, when I run it I get a acl_get_fd.c:26:24: fatal error: attr/xattr.h: No such file or directory I find this file in output/host/usr/include/attr/xattr.h but that's outside the sysroot, so probably not included, right? When I install apt-get install libattr1-dev on the host it works. But we shouldnt depend on that, should we? regards, Andreas Am 16.03.2017 um 23:38 schrieb Arnout Vandecappelle (Essensium/Mind): > We need host-acl to fix issues with fakeroot. > > Unfortunately, all the hacks have to be repeated again. > > Cc: Yegor Yefremov <yegorslists@googlemail.com> > Cc: Andreas Naumann <dev@andin.de> > Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> > --- > package/acl/acl.mk | 9 +++++++++ > 1 file changed, 9 insertions(+) > > diff --git a/package/acl/acl.mk b/package/acl/acl.mk > index cbe5e93961..b38cc4c0c3 100644 > --- a/package/acl/acl.mk > +++ b/package/acl/acl.mk > @@ -37,4 +37,13 @@ endef > > ACL_POST_INSTALL_STAGING_HOOKS += ACL_FIX_LIBTOOL_LA_LIBDIR > > +HOST_ACL_DEPENDENCIES = host-attr > +HOST_ACL_CONF_OPTS = --enable-gettext=no > +HOST_ACL_INSTALL_OPTS = \ > + prefix=$(HOST_DIR)/usr \ > + exec_prefix=$(HOST_DIR)/usr \ > + PKG_DEVLIB_DIR=$(HOST_DIR)/usr/lib \ > + install-dev install-lib > + > $(eval $(autotools-package)) > +$(eval $(host-autotools-package)) >
Hi Andreas, On Fri, Mar 17, 2017 at 09:59:24AM +0100, Andreas Naumann wrote: > However, when I run it I get a > acl_get_fd.c:26:24: fatal error: attr/xattr.h: No such file or directory > > I find this file in > output/host/usr/include/attr/xattr.h > > but that's outside the sysroot, so probably not included, right? This is the host variant of acl, so don't expect it to be in the target sysroot. > When I install > apt-get install libattr1-dev > on the host it works. > > But we shouldnt depend on that, should we? We should. Something went wrong with the host headers search path. baurch > Am 16.03.2017 um 23:38 schrieb Arnout Vandecappelle (Essensium/Mind): > > We need host-acl to fix issues with fakeroot. > > > > Unfortunately, all the hacks have to be repeated again. > > > > Cc: Yegor Yefremov <yegorslists@googlemail.com> > > Cc: Andreas Naumann <dev@andin.de> > > Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> > > --- > > package/acl/acl.mk | 9 +++++++++ > > 1 file changed, 9 insertions(+) > > > > diff --git a/package/acl/acl.mk b/package/acl/acl.mk > > index cbe5e93961..b38cc4c0c3 100644 > > --- a/package/acl/acl.mk > > +++ b/package/acl/acl.mk > > @@ -37,4 +37,13 @@ endef > > > > ACL_POST_INSTALL_STAGING_HOOKS += ACL_FIX_LIBTOOL_LA_LIBDIR > > > > +HOST_ACL_DEPENDENCIES = host-attr > > +HOST_ACL_CONF_OPTS = --enable-gettext=no > > +HOST_ACL_INSTALL_OPTS = \ > > + prefix=$(HOST_DIR)/usr \ > > + exec_prefix=$(HOST_DIR)/usr \ > > + PKG_DEVLIB_DIR=$(HOST_DIR)/usr/lib \ > > + install-dev install-lib > > + > > $(eval $(autotools-package)) > > +$(eval $(host-autotools-package))
On 17-03-17 11:51, Baruch Siach wrote: > Hi Andreas, > > On Fri, Mar 17, 2017 at 09:59:24AM +0100, Andreas Naumann wrote: >> However, when I run it I get a >> acl_get_fd.c:26:24: fatal error: attr/xattr.h: No such file or directory >> >> I find this file in >> output/host/usr/include/attr/xattr.h >> >> but that's outside the sysroot, so probably not included, right? > This is the host variant of acl, so don't expect it to be in the target > sysroot. > >> When I install >> apt-get install libattr1-dev >> on the host it works. I indeed had libattr1-dev installed while testing. >> But we shouldnt depend on that, should we? > We should. Something went wrong with the host headers search path. Yes, it seems the acl build system ignores CFLAGS. v2 follows. Regards, Arnout
diff --git a/package/acl/acl.mk b/package/acl/acl.mk index cbe5e93961..b38cc4c0c3 100644 --- a/package/acl/acl.mk +++ b/package/acl/acl.mk @@ -37,4 +37,13 @@ endef ACL_POST_INSTALL_STAGING_HOOKS += ACL_FIX_LIBTOOL_LA_LIBDIR +HOST_ACL_DEPENDENCIES = host-attr +HOST_ACL_CONF_OPTS = --enable-gettext=no +HOST_ACL_INSTALL_OPTS = \ + prefix=$(HOST_DIR)/usr \ + exec_prefix=$(HOST_DIR)/usr \ + PKG_DEVLIB_DIR=$(HOST_DIR)/usr/lib \ + install-dev install-lib + $(eval $(autotools-package)) +$(eval $(host-autotools-package))
We need host-acl to fix issues with fakeroot. Unfortunately, all the hacks have to be repeated again. Cc: Yegor Yefremov <yegorslists@googlemail.com> Cc: Andreas Naumann <dev@andin.de> Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> --- package/acl/acl.mk | 9 +++++++++ 1 file changed, 9 insertions(+)