git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH v2] build: add default configuration

From
Felipe Contreras <felipe.contreras@gmail.com>
Date
Sep 22, 2013, 05:34 UTC
Message-ID
<523e815966074_547c41e7c16566@nysa.mail>
In-Reply-To
<46ebee31-2b4f-48c1-952c-99364aeede98@email.android.com>
David Aguilar wrote:
Show 31 quoted lines
> Felipe Contreras <felipe.contreras@gmail.com> wrote:
> >On Sat, Sep 21, 2013 at 1:58 PM, Johannes Sixt <j6t@kdbg.org> wrote:
> >> Am 21.09.2013 13:47, schrieb Felipe Contreras:
> >>> diff --git a/Makefile b/Makefile
> >>> index 3588ca1..18081bf 100644
> >>> --- a/Makefile
> >>> +++ b/Makefile
> >>> @@ -1010,7 +1010,7 @@ ifndef sysconfdir
> >>>  ifeq ($(prefix),/usr)
> >>>  sysconfdir = /etc
> >>>  else
> >>> -sysconfdir = etc
> >>> +sysconfdir = $(prefix)/etc
> >>
> >> Not good: There is a reason why this is a relative path. Please dig
> >the
> >> history, it's pretty clear.
> >
> >It's pretty clear it's *not* a relative path.
> >
> >What is relative about 'sysconfdir = /etc'?
> 
> Thanks Johannes. Felipe, the history and this comment from the makefile should shed some light on it:
> 
> # Among the variables below, these:
> #   gitexecdir
> #   template_dir
> #   sysconfdir
> # can be specified as a relative path some/where/else;
> # this is interpreted as relative to $(prefix) and "git" at
> # runtime figures out where they are based on the path to the executable.

They *can* be, but not necessarily so, and in particular sysconfig for probably 99% of the users is not relative, it's /etc.

-- 
Felipe Contreras
Previous: David AguilarNext: David Aguilar
Message 6 of 7 in “build: add default configuration”
  1. build: add default configurationFelipe Contreras, Sep 21, 2013
  2. David AguilarSep 21, 2013
  3. Johannes SixtSep 21, 2013
  4. Felipe ContrerasSep 21, 2013
  5. David AguilarSep 22, 2013
  6. Felipe ContrerasSep 22, 2013
  7. David AguilarSep 22, 2013

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.