From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kaushal Modi Newsgroups: gmane.emacs.devel Subject: Need to modify src/epaths.in for custom prefix? (Was: Cleaner way to not build the ctags..) Date: Thu, 10 Mar 2016 11:00:11 -0500 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a113cd1fa2893b5052db3eb2b X-Trace: ger.gmane.org 1457625668 27150 80.91.229.3 (10 Mar 2016 16:01:08 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 10 Mar 2016 16:01:08 +0000 (UTC) To: Emacs developers Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Mar 10 17:01:08 2016 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ae31K-0007u9-Sx for ged-emacs-devel@m.gmane.org; Thu, 10 Mar 2016 17:01:03 +0100 Original-Received: from localhost ([::1]:49309 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ae31K-0005P5-9k for ged-emacs-devel@m.gmane.org; Thu, 10 Mar 2016 11:01:02 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46293) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ae31B-0005Gk-97 for emacs-devel@gnu.org; Thu, 10 Mar 2016 11:00:59 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ae31A-0005b3-3Y for emacs-devel@gnu.org; Thu, 10 Mar 2016 11:00:53 -0500 Original-Received: from mail-oi0-x230.google.com ([2607:f8b0:4003:c06::230]:32818) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ae319-0005ay-Sz for emacs-devel@gnu.org; Thu, 10 Mar 2016 11:00:52 -0500 Original-Received: by mail-oi0-x230.google.com with SMTP id d205so64501427oia.0 for ; Thu, 10 Mar 2016 08:00:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to; bh=2hYHepmSmK4pxGb/ZjiAGBorILZkJGndVCd6tC0/tB0=; b=z/jdOW2vi072b3k99TI23+/uwGyV4MGsa/qOPvziez8wzod43HJVIjFCY8nx8SnGR0 S2wlMI80sQz4LhD5FvrTvggDY19xE4Th4kgY7VHRJ+lrg4ts/kPDG0WbLhfFSdfAv4Ly TduZXsNPqjXoVExGGxQtiZ0zw/FzyBMBBYc1IK+vWEkWACH6HdlL49583GhGPnlo5WEl 6WtfbGVSK4lRPoCqKczBmNfE/NABYgfbgKzFSnOKsh5uSxLHMPN2FSFdP/5beSMffEPU 8YjCM4fS8UHICCO840ynu0ZOjg404x7ieEkG70ZjVAMHdeJGIykaVMea0MKmcxizi5+7 lfDQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=2hYHepmSmK4pxGb/ZjiAGBorILZkJGndVCd6tC0/tB0=; b=S0WAF0BcbRDFx1r2GZpPvVYs0fxi9Uz3MHlAlEcUlHJDFG8DvNVGVlx8S3aF3Cg2vo q197wW7qdf0XvF4KFzlSPFgzEViRDueTkuB4i86mLxdy7vW0QErhlQwVRhbXOUsERxkx V9DeMSf+5SYRz/QnW5M0bxt8dY/ClyySPBEWE7WKtQoheJmHjKCB7oYDwmSiXbZJ1N2G EGjsr3CKgGmAVoKI8hDBKYJzT6CdY9z1XRmd2D48DtWixoxFXYFAs2yQ0jFb2nneoiZi i2CtP6Y5zREMPwnuIs0CHRMcx4++0TrJrOnatsCn9qgeqgFsxW4zGsADQKE5ln8E9xbN A6zA== X-Gm-Message-State: AD7BkJKmTd9LWZo/KpKh409rEBJJ8FBsuctsRjadEjaGs1Sy1dPdUsuSa/TU4oQsp/0ZeoiwI4oqC2hcocJkEQ== X-Received: by 10.202.185.214 with SMTP id j205mr2620497oif.68.1457625651252; Thu, 10 Mar 2016 08:00:51 -0800 (PST) Original-Received: by 10.202.172.198 with HTTP; Thu, 10 Mar 2016 08:00:11 -0800 (PST) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2607:f8b0:4003:c06::230 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:201397 Archived-At: --001a113cd1fa2893b5052db3eb2b Content-Type: text/plain; charset=UTF-8 Hi all, As I was reviewing my emacs build script, I realized I needed to address this another nugget I have in there for a while: sed -i 's|/usr/local|${MY_EMACS_INSTALL_DIR}|g' src/epaths.in Here ${MY_EMACS_INSTALL_DIR} is the path I set as prefix to the configure command. Here is my configure command: ./configure --prefix=${MY_EMACS_INSTALL_DIR} CPPFLAGS="-fgnu89-inline -I/home/kmodi/usr_local/6/include -I/usr/include/freetype2 -I/usr/include" CFLAGS="-O2 -march=native" LDFLAGS="-L/home/kmodi/usr_local/6/lib -L/home/kmodi/usr_local/6/lib64" I have to use this prefix as I am installing emacs in my $HOME and I don't have write access to /usr/local/. I needed to add that sed command because something about the build did not work correctly by simply adding that prefix to the configure command... I also needed to update the hard coded paths in src/epaths.in. (Unfortunately I did not document the exact reason why this file had to be manually edited; but I know for sure that it definitely needed to be.) So, I am trying to understand the exact reason why we need to manually update the src/epaths.in .. Or do we need to? In addition, as plain "./configure" does not work for me, I also have this to call my custom configure command instead of plain ./configure in GNUmakefile. So I have this too in my build script: sed -i 's|./configure|${MY_EMACS_CONFIGURE}|g' GNUmakefile The value of ${MY_EMACS_CONFIGURE} is the above mentioned custom configure command with prefix and all. The default ./configure caused Makefile build failure as it could not find the giflib automatically. -- Kaushal Modi --001a113cd1fa2893b5052db3eb2b Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi all,

As I was reviewing my emacs bui= ld script, I realized I needed to address this another nugget I have in the= re for a while:

=C2=A0 =C2=A0 sed -i 's|/usr/local|${MY_EMACS_INSTALL_DIR}|g&#= 39; src/epaths.in

Here ${MY_EMACS_INSTALL_DIR} is the path I set as prefix to the configure = command.

Here is my configure command:
<= br>
./configure --prefix=3D${MY_EMACS_INSTALL_DIR} CPPFLAGS=3D&qu= ot;-fgnu89-inline -I/home/kmodi/usr_local/6/include -I/usr/include/freetype= 2 -I/usr/include" CFLAGS=3D"-O2 -march=3Dnative" LDFLAGS=3D&= quot;-L/home/kmodi/usr_local/6/lib -L/home/kmodi/usr_local/6/lib64"

I have to use this prefix as I am installing emacs i= n my $HOME and I don't have write access to /usr/local/.

=
I needed to add that sed command because something about the bui= ld did not work correctly by simply adding that prefix to the configure com= mand... I also needed to update the hard coded paths in src/epaths.in. (Unfortunately I did not document the exact re= ason why this file had to be manually edited; but I know for sure that it d= efinitely needed to be.)

So, I am trying to unders= tand the exact reason why we need to manually update the src/epaths.in .. Or do we need to?=C2=A0

In additi= on, as plain "./configure" does not work for me, I also have this= to call my custom configure command instead of plain ./configure in GNUmak= efile. So I have this too in my build script:

=C2=A0 =C2=A0 sed -i 's|./configure|${MY_EMACS_CONF= IGURE}|g' =C2=A0GNUmakefile

The va= lue of ${MY_EMACS_CONFIGURE} is the above mentioned custom configure comman= d with prefix and all.=C2=A0

The default ./configu= re caused Makefile build failure as it could not find the giflib automatica= lly.

--
Kaushal Modi
--001a113cd1fa2893b5052db3eb2b--