From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-ot1-x335.google.com ([2607:f8b0:4864:20::335]) by metis.ext.pengutronix.de with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from ) id 1h3f5I-0005Un-9E for ptxdist@pengutronix.de; Tue, 12 Mar 2019 11:56:36 +0100 Received: by mail-ot1-x335.google.com with SMTP id g1so2012610otj.11 for ; Tue, 12 Mar 2019 03:56:36 -0700 (PDT) MIME-Version: 1.0 From: "Chin You Wen (WMSC-HW)" Date: Tue, 12 Mar 2019 18:56:24 +0800 Message-ID: Subject: [ptxdist] Iteratively Make & Make Install Subpackages List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ptxdist@pengutronix.de Content-Type: multipart/mixed; boundary="===============1633210861==" Errors-To: ptxdist-bounces@pengutronix.de Sender: "ptxdist" To: ptxdist@pengutronix.de --===============1633210861== Content-Type: multipart/alternative; boundary="000000000000dda40f0583e38a65" --000000000000dda40f0583e38a65 Content-Type: text/plain; charset="UTF-8" Hello, I am compiling the SELINUX userspace tools ( https://github.com/SELinuxProject/selinux) and I encountered this error. load_policy.c:15:25: fatal error: sepol/sepol.h: No such file or directory compilation terminated. The sub-package libselinux depends on libsepol, but by default the PTXDist rule file does not run makefile sections in sequential order, i.e. it executes the compile section for all sub-packages first, followed by install section. This results in the required libsepol dependencies to not be found when libselinux needs it, and thus the above error. Is there any way to accomplish this without splitting the sub-packages into separate rule files? I am thinking of calling something like this: @$(call compile, libsepol) @$(call install, libsepol) @$(call compile, libselinux) @$(call install, libselinux) but I am unsure if that is possible, or what the correct syntax is. Kindly advise. Thanks. Regards, You Wen --000000000000dda40f0583e38a65 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hello,

I am compiling the SEL= INUX userspace tools (https://github.com/SELinuxProject/selinux) and I encountered this erro= r.

load_policy.c:15:25: fatal error: sepol/sepol.h: No such file or directory=
compilation terminate= d.

The sub-package libselinux depends= on libsepol, but by default the PTXDist rule file does not run makefile se= ctions in sequential order, i.e. it executes the compile section for all su= b-packages first, followed by install section. This results in the required= libsepol dependencies to not be found when libselinux needs it, and thus t= he above error.

Is there any way to accomplish thi= s without splitting the sub-packages into separate rule files? I am thinkin= g of calling something like this:

@$(call compile,= libsepol)
@$(call install, libsepol)
@$(c= all compile, libselinux)
@$(call install, libselinux)

but I am unsure if that is possible, or what the co= rrect syntax is. Kindly advise. Thanks.


=
Regar= ds,
You Wen
=
--000000000000dda40f0583e38a65-- --===============1633210861== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KcHR4ZGlzdCBt YWlsaW5nIGxpc3QKcHR4ZGlzdEBwZW5ndXRyb25peC5kZQ== --===============1633210861==--