From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ekaitz at ElenQ Technology Subject: Re: Guix packaging, dealing with pkg-config Date: Thu, 25 Jul 2019 11:19:10 +0000 Message-ID: References: <87d0hzbltm.fsf@elephly.net> <878ssnb92d.fsf@elephly.net> <87h87aa98r.fsf@elephly.net> Reply-To: Ekaitz at ElenQ Technology Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:47042) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hqbmR-0004fg-IZ for help-guix@gnu.org; Thu, 25 Jul 2019 07:19:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hqbmQ-0008Gw-BY for help-guix@gnu.org; Thu, 25 Jul 2019 07:19:27 -0400 Received: from mail2.protonmail.ch ([185.70.40.22]:59869) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hqbmP-0008F9-Sp for help-guix@gnu.org; Thu, 25 Jul 2019 07:19:26 -0400 In-Reply-To: <87h87aa98r.fsf@elephly.net> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: Ricardo Wurmus Cc: "help-guix\\@gnu.org" On Thursday, July 25, 2019 9:01 AM, Ricardo Wurmus wro= te: > > > Ekaitz at ElenQ Technologyekaitz@elenq.tech writes: > > > Yeah, there are in the original makefiles of sc-im: > > https://github.com/andmarti1424/sc-im/blob/freeze/src/Makefile#L124 > > The FreeBSD case (line 128 and following) works for me: > > $ guix environment --ad-hoc lua@5.1 pkg-config > [env] $ pkg-config --exists lua51 && echo yes || echo no > no > [env] $ pkg-config --exists lua-5.1 && echo yes || echo no > yes > [env] $ pkg-config --cflags lua-5.1 > -I/gnu/store/yl6v5ma16ya9b6npwqlrcp9pr2gqp6dc-lua-5.1.5/include > [env] $ pkg-config --libs lua-5.1 > -L/gnu/store/yl6v5ma16ya9b6npwqlrcp9pr2gqp6dc-lua-5.1.5/lib -llua -lm > > So this works just fine. > Yes, the guix environment works fine for me too! But, when I run --version in the recently built one I don't get any referen= ce to lua support. $ /gnu/store/svn5hkyckw9gmcdhybs5599mcbrkydyx-sc-im-freeze/bin/sc-im --ver= sion Sc-im - version 0.7.0 -DNCURSES -DMAXROWS 1048576 -DUNDO -DDEFAULT_COPY_TO_CLIPBOARD_CMD=3D"xclip -i -selection clipboard <" -DDEFAULT_PASTE_FROM_CLIPBOARD_CMD=3D"xclip -o -selection clipboard" -DUSELOCALE -DUSECOLORS -D_XOPEN_SOURCE_EXTENDED -D_GNU_SOURCE -DSNAME=3D"sc-im" -DHELP_PATH=3D"/gnu/store/svn5hkyckw9gmcdhybs5599mcbrkydyx-sc-im-freeze/sha= re/sc-im" -DLIBDIR=3D"/gnu/store/svn5hkyckw9gmcdhybs5599mcbrkydyx-sc-im-freeze/share/= doc/sc-im" -DDFLT_PAGER=3D"less" -DHISTORY_FILE=3D".sc-iminfo" -DINS_HISTORY_FILE=3D".sc-iminfo" -DHAVE_PTHREAD -DAUTOBACKUP When the package is building and all the commands executed by the makefile = are printed, there's no reference to any Lua flag that should be there like= -DXLUA or all of those flags added by the makefile. So, it's working but t= he makefile is somehow ignoring the package or I added it incorrectly in th= e definition. Thoughts? Thanks you, Ekaitz