From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ricardo Wurmus Subject: Re: New build-system quest (premake4 t-engine) Date: Thu, 20 Jul 2017 15:08:13 +0200 Message-ID: <878tjjfe82.fsf@elephly.net> References: <87shi6fxf0.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:51895) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dYBBr-0005Fp-B0 for guix-devel@gnu.org; Thu, 20 Jul 2017 09:08:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dYBBk-00024T-4x for guix-devel@gnu.org; Thu, 20 Jul 2017 09:08:25 -0400 Received: from sender-of-o51.zoho.com ([135.84.80.216]:21061) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dYBBj-00023m-UI for guix-devel@gnu.org; Thu, 20 Jul 2017 09:08:20 -0400 In-reply-to: <87shi6fxf0.fsf@gmail.com> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Oleg Pykhalov Cc: guix-devel@gnu.org Hi Oleg, > I try to package premake4 build-system and t-engine game. I have an > issue with "No such file or directory" "../bla/bla/bla/*.h". […] > > But building with guix build failed. Checkout patch and logs. Any > ideas appreciating :-) Have you tried using the “gnu-build-system” and replacing the configure phase with your invocation of premake4? One difference between “guix build” and “guix environment” is that the latter builds a profile first, so environment variables for libraries or headers really only have to be set to a single directory (e.g. $GUIX_ENVIRONMENT/lib or $GUIX_ENVIRONMENT/include). “guix build”, on the other hand, builds up long chains of directories as the values for these environment variables. > ./pre-inst-env guix environment -C t-engine > source ./environment-variables > cd t-engine* > make > succeeded. Did you not have to run premake4 first? If you don’t need it then it would be sufficient to use the gnu-build-system and delete the configure phase. (I don’t think we need a new build system for the case where just the configure phase differs slightly, but maybe I’m missing something.) -- Ricardo GPG: BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAC https://elephly.net