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: Re: Need to modify src/epaths.in for custom prefix? (Was: Cleaner way to not build the ctags..) Date: Thu, 10 Mar 2016 14:31:50 -0500 Message-ID: References: <83h9gel2ko.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a113ce6820a4342052db6e025 X-Trace: ger.gmane.org 1457638363 12915 80.91.229.3 (10 Mar 2016 19:32:43 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 10 Mar 2016 19:32:43 +0000 (UTC) Cc: Emacs developers To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Mar 10 20:32:37 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 1ae6K4-0000rM-Rc for ged-emacs-devel@m.gmane.org; Thu, 10 Mar 2016 20:32:37 +0100 Original-Received: from localhost ([::1]:50855 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ae6K4-0007Tn-2l for ged-emacs-devel@m.gmane.org; Thu, 10 Mar 2016 14:32:36 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52384) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ae6Jz-0007Sg-JF for emacs-devel@gnu.org; Thu, 10 Mar 2016 14:32:32 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ae6Jy-0002bN-DF for emacs-devel@gnu.org; Thu, 10 Mar 2016 14:32:31 -0500 Original-Received: from mail-oi0-x22f.google.com ([2607:f8b0:4003:c06::22f]:32955) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ae6Jy-0002b6-68; Thu, 10 Mar 2016 14:32:30 -0500 Original-Received: by mail-oi0-x22f.google.com with SMTP id d205so69255115oia.0; Thu, 10 Mar 2016 11:32:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=MmY+lX0Icui32EXhQiz1OA5DBLSRdh1yTze57ub31lY=; b=z+RfCFrLYYVbbol5nbSobGZJQ2lAe3xxiHHz6OWNbEZ+cUbJER6vkbnphNULKl8Voq OED5uQMyoxnwhC9bfW2+vXKcfY9QDbXq2E9wLneoyIVT9GTC/s4wOR3l03c4mSRDmF1W hYAFF1Gr9VmhudacP2hufMRxtwjTiPU00RVaufsp9mFo2Jhyv5XlW0fncC+FCs/whN0Y J4DrWWz8M9CdD8UYcYL6Rt29HDP1XW51KV+SYlLE6MwT2E9Unsa02OIeAynSmhxnuxHF ZeLOj8GrAB54DMQ+spnfd3ekrt3yt5eWK7upKaYWeP7LixZXwczzN0nF00vRwmjXk6uC 4dRg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=MmY+lX0Icui32EXhQiz1OA5DBLSRdh1yTze57ub31lY=; b=CZ3Gk1kKJs0nQNSGBK1jurNHStgktXLYNoPxPjb6k+LNW1WZx7SCk7JUe5ZHX6bbPA 7A39Lk4U7XovL38AZ7+o/E2NkDADJcPqa3vVjV9bmgl0u/9ilf2sYpUCWqZMwuaAkP4G tZxeDilQgqiOdidQcIelaNJbY5SUrumIhgoDfbektgmEPVgYM+HjKVOWBsz/HzOGSK5t 5eGDTZCHYfLUyAVJGFXuBOWkEG/2CMCbJSE5LvSl5weuTrWkWO05lLADigjCWAnJEvgZ lNfBYaxTVd9DfKk7FfKONnS/IggfBniJAp7CXbj3J3btJ5Wp5SeSkJ/fZu27S7gz2els jppg== X-Gm-Message-State: AD7BkJJsItr48VIt9RuaRWn2qiRpCYNrP474lPn0ADAugHItm+I3wqxrldkcviwjix/+li+tPWiCieTvM8tlEg== X-Received: by 10.202.235.214 with SMTP id j205mr3109047oih.23.1457638349617; Thu, 10 Mar 2016 11:32:29 -0800 (PST) Original-Received: by 10.202.172.198 with HTTP; Thu, 10 Mar 2016 11:31:50 -0800 (PST) In-Reply-To: <83h9gel2ko.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2607:f8b0:4003:c06::22f 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:201423 Archived-At: --001a113ce6820a4342052db6e025 Content-Type: text/plain; charset=UTF-8 Thanks. I reread the INSTALL document and turns out I do not need to use --datadir, etc as --prefix will set them all accordingly. 'prefix' doesn't give a path for any specific part of Emacs; instead, its value is used to determine the defaults for all the architecture-independent path variables - 'datadir', 'sharedstatedir', 'infodir', and 'mandir'. Its default value is '/usr/local'; the other variables add on 'lib' or 'man' to it by default. For example, suppose your site generally places GNU software under '/usr/users/software/gnusoft' instead of '/usr/local'. By including 'prefix=/usr/users/software/gnusoft' in the arguments to 'make', you can instruct the build process to place all of the Emacs data files in the appropriate directories under that path. So for now I have removed the below from my build script sed -i 's|/usr/local|${MY_EMACS_INSTALL_DIR}|g' src/epaths.in Emacs built just fine without that and elisp source navigation, etc. works just fine. I'm glad to take out that relic snippet from my build script. If I do need to add it again, I will revisit this thread. Can you please comment on the requirement of sed -i 's|./configure|${MY_EMACS_CONFIGURE}|g' GNUmakefile (where the value of ${MY_EMACS_CONFIGURE} is ./configure --prefix=/home/kmodi/usr_local/apps/6/emacs/emacs-25 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" ) If I don't have that sed in place, my build fails with below and no Makefile is created: checking for GifMakeMapObject in -lgif... no checking for EGifPutExtensionLast in -lgif... no checking for EGifPutExtensionLast in -lungif... no configure: error: The following required libraries were not found: libgif/libungif Maybe some development libraries/packages are missing? If you don't want to link with them give --with-gif=no as options to configure make: *** [Makefile] Error 1 build_info_fie: Undefined variable. Thanks. --001a113ce6820a4342052db6e025 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Thanks.

I reread the INSTALL document= and turns out I do not need to use --datadir, etc as --prefix will set the= m all accordingly.

'prefix' doesn't give a= path for any specific part of Emacs; instead,
its value is used to deter= mine the defaults for all the
architecture-independent path variables -= 'datadir',
'sharedstatedir', 'infodir', and '= ;mandir'.=C2=A0 Its default value is
'/usr/local'; the other = variables add on 'lib' or 'man' to it
by default.

For example, suppose your site generally = places GNU software
under '/usr/users/software/gnusoft' instead o= f '/usr/local'.
By including
=C2=A0 =C2=A0'prefix=3D/usr/u= sers/software/gnusoft'
in the arguments to 'make', you can in= struct the build process
to place all of the Emacs data files in the appr= opriate
directories under that path.

So for now = I have removed the below from my build script

=C2=A0 sed -i 's|/usr/l= ocal|${MY_EMACS_= INSTALL_DIR}|g' src/epaths.in

Emacs built just fine without that and elisp source navig= ation, etc. works just fine. I'm glad to take out that relic snippet fr= om my build script. If I do need to add it again, I will revisit this threa= d.

Can you please comment on the requirement of=C2= =A0

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

(where th= e value of ${MY_EMACS_CONFIGURE} is=C2=A0

./c= onfigure --prefix=3D/home/kmodi/usr_local/apps/6/emacs/emacs-25 CPPFLAGS=3D= "-fgnu89-inline -I/home/kmodi/usr_local/6/include -I/usr/include/freet= ype2 -I/usr/include" CFLAGS=3D"-O2 -march=3Dnative" LDFLAGS= =3D"-L/home/kmodi/usr_local/6/lib -L/home/kmodi/usr_local/6/lib64"= ; )

If I don't have that sed in pla= ce, my build fails with below and no Makefile is created:

checking for GifMakeMapObject in -lgif... no
checkin= g for EGifPutExtensionLast in -lgif... no
checking for EGifPutExt= ensionLast in -lungif... no
configure: error: The following requi= red libraries were not found:
=C2=A0 =C2=A0 =C2=A0libgif/libungif=
Maybe some development libraries/packages are missing?
If you don't want to link with them give
=C2=A0 =C2=A0 =C2= =A0--with-gif=3Dno
as options to configure
make: *** [M= akefile] Error 1
build_info_fie: Undefined variable.
<= div>

Thanks.
--001a113ce6820a4342052db6e025--