From cd22214e0ea38c28cdcd4984116b132a61f194c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Forsman?= Date: Fri, 2 Oct 2015 19:09:52 +0200 Subject: [PATCH] build-fhs-chrootenv: add missing /usr/include This patch brings the include/ directories of all specified packages to appear under /usr/include in the FHS chroot. As per spec[1]. [1] http://www.pathname.com/fhs/pub/fhs-2.3.html#USRINCLUDEDIRECTORYFORSTANDARDINCLU --- pkgs/build-support/build-fhs-chrootenv/env.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pkgs/build-support/build-fhs-chrootenv/env.nix b/pkgs/build-support/build-fhs-chrootenv/env.nix index b659655f74b..a2ac8288e8e 100644 --- a/pkgs/build-support/build-fhs-chrootenv/env.nix +++ b/pkgs/build-support/build-fhs-chrootenv/env.nix @@ -182,6 +182,12 @@ let setupLibDirs = if isTargetBuild then setupLibDirs_target else setupLibDirs_multi; + setupIncludeDir = '' + if [ -x "${staticUsrProfileTarget}/include" ] + then + ln -s "${staticUsrProfileTarget}/include" + fi + ''; # the target profile is the actual profile that will be used for the chroot setupTargetProfile = '' @@ -192,6 +198,7 @@ let cd usr ${linkProfile staticUsrProfileTarget} ${setupLibDirs} + ${setupIncludeDir} cd .. rm -rf usr/etc usr/var '';