Re: update: git; sets sysconfdir

2011-08-29 Thread Antoine Jacoutot
On Mon, 29 Aug 2011, Abel Abraham Camarillo Ojeda wrote:

 This patch sets sysconfdir to our default value (/etc/)
 instead of it's previous value (/usr/local/etc).
  
 This makes some utilities (like git config --system -l) work again, 
 config files were read from /etc/ some versions ago...

You shouldn't hardcode '/etc' but use ${SYSCONFDIR} instead.

 Index: Makefile
 ===
 RCS file: /cvs/ports/devel/git/Makefile,v
 retrieving revision 1.80
 diff -u -r1.80 Makefile
 --- Makefile  30 Jul 2011 05:08:05 -  1.80
 +++ Makefile  29 Aug 2011 09:06:31 -
 @@ -11,7 +11,7 @@
  PKGNAME-x11 =git-x11-${V}
  CATEGORIES = devel
  
 -REVISION =   0
 +REVISION =   1
  
  HOMEPAGE =   http://git-scm.com/
  
 Index: patches/patch-Makefile
 ===
 RCS file: /cvs/ports/devel/git/patches/patch-Makefile,v
 retrieving revision 1.32
 diff -u -r1.32 patch-Makefile
 --- patches/patch-Makefile24 Jul 2011 16:29:30 -  1.32
 +++ patches/patch-Makefile29 Aug 2011 09:24:48 -
 @@ -1,7 +1,7 @@
  $OpenBSD: patch-Makefile,v 1.32 2011/07/24 16:29:30 benoit Exp $
  Makefile.origMon Jun 27 00:26:13 2011
 -+++ Makefile Sat Jul 16 14:44:47 2011
 -@@ -271,7 +271,7 @@
 +--- Makefile.origSun Jun 26 17:26:13 2011
  Makefile Mon Aug 29 03:46:06 2011
 +@@ -271,7 +271,7 @@ endif
   
   # CFLAGS and LDFLAGS are for the users to override from the command line.
   
 @@ -10,7 +10,7 @@
   LDFLAGS =
   ALL_CFLAGS = $(CPPFLAGS) $(CFLAGS)
   ALL_LDFLAGS = $(LDFLAGS)
 -@@ -289,12 +289,12 @@
 +@@ -289,16 +289,17 @@ STRIP ?= strip
   # runtime figures out where they are based on the path to the executable.
   # This can help installing the suite in a relocatable way.
   
 @@ -26,7 +26,12 @@
   sharedir = $(prefix)/share
   gitwebdir = $(sharedir)/gitweb
   template_dir = share/git-core/templates
 -@@ -307,7 +307,7 @@
 + htmldir = share/doc/git-doc
 ++sysconfdir = /etc
 + ETC_GITCONFIG = $(sysconfdir)/gitconfig
 + ETC_GITATTRIBUTES = $(sysconfdir)/gitattributes
 + lib = lib
 +@@ -307,7 +308,7 @@ pathsep = :
   
   export prefix bindir sharedir sysconfdir gitwebdir
   
 @@ -35,7 +40,7 @@
   AR = ar
   RM = rm -f
   DIFF = diff
 -@@ -315,10 +315,10 @@
 +@@ -315,10 +316,10 @@ TAR = tar
   FIND = find
   INSTALL = install
   RPMBUILD = rpmbuild
 @@ -49,7 +54,7 @@
   PTHREAD_CFLAGS =
   GCOV = gcov
   
 -@@ -949,13 +949,14 @@
 +@@ -949,13 +950,14 @@ ifeq ($(uname_S),FreeBSD)
   HAVE_PATHS_H = YesPlease
   endif
   ifeq ($(uname_S),OpenBSD)
 @@ -67,7 +72,7 @@
   endif
   ifeq ($(uname_S),NetBSD)
   ifeq ($(shell expr $(uname_R) : '[01]\.'),2)
 -@@ -1314,7 +1315,7 @@
 +@@ -1314,7 +1316,7 @@ endif
   EXTLIBS += -lz
   
   ifndef NO_OPENSSL
 @@ -76,7 +81,7 @@
   ifdef OPENSSLDIR
   BASIC_CFLAGS += -I$(OPENSSLDIR)/include
   OPENSSL_LINK = -L$(OPENSSLDIR)/$(lib) 
 $(CC_LD_DYNPATH)$(OPENSSLDIR)/$(lib)
 -@@ -2146,7 +2147,7 @@
 +@@ -2146,7 +2148,7 @@ export NO_SVN_TESTS
   
   ### Testing rules
   
 
 --
 DISCLAIMER: http://goldmark.org/jeff/stupid-disclaimers/ 
 This message will self-destruct in 3 seconds.
 
 

-- 
Antoine



Re: update: git; sets sysconfdir

2011-08-29 Thread Abel Abraham Camarillo Ojeda
Antoine Jacoutot ajacou...@bsdfrog.org wrote:

 You shouldn't hardcode '/etc' but use ${SYSCONFDIR} instead.


 -- 
 Antoine


I'm sure I was missing something...

Reroll diff:


Index: Makefile
===
RCS file: /cvs/ports/devel/git/Makefile,v
retrieving revision 1.80
diff -u -r1.80 Makefile
--- Makefile30 Jul 2011 05:08:05 -  1.80
+++ Makefile29 Aug 2011 09:06:31 -
@@ -11,7 +11,7 @@
 PKGNAME-x11 =  git-x11-${V}
 CATEGORIES =   devel
 
-REVISION = 0
+REVISION = 1
 
 HOMEPAGE = http://git-scm.com/
 
Index: patches/patch-Makefile
===
RCS file: /cvs/ports/devel/git/patches/patch-Makefile,v
retrieving revision 1.32
diff -u -r1.32 patch-Makefile
--- patches/patch-Makefile  24 Jul 2011 16:29:30 -  1.32
+++ patches/patch-Makefile  29 Aug 2011 09:56:17 -
@@ -1,7 +1,7 @@
 $OpenBSD: patch-Makefile,v 1.32 2011/07/24 16:29:30 benoit Exp $
 Makefile.orig  Mon Jun 27 00:26:13 2011
-+++ Makefile   Sat Jul 16 14:44:47 2011
-@@ -271,7 +271,7 @@
+--- Makefile.orig  Sun Jun 26 17:26:13 2011
 Makefile   Mon Aug 29 03:46:06 2011
+@@ -271,7 +271,7 @@ endif
  
  # CFLAGS and LDFLAGS are for the users to override from the command line.
  
@@ -10,7 +10,7 @@
  LDFLAGS =
  ALL_CFLAGS = $(CPPFLAGS) $(CFLAGS)
  ALL_LDFLAGS = $(LDFLAGS)
-@@ -289,12 +289,12 @@
+@@ -289,16 +289,17 @@ STRIP ?= strip
  # runtime figures out where they are based on the path to the executable.
  # This can help installing the suite in a relocatable way.
  
@@ -26,7 +26,12 @@
  sharedir = $(prefix)/share
  gitwebdir = $(sharedir)/gitweb
  template_dir = share/git-core/templates
-@@ -307,7 +307,7 @@
+ htmldir = share/doc/git-doc
++sysconfdir = ${SYSCONFDIR}
+ ETC_GITCONFIG = $(sysconfdir)/gitconfig
+ ETC_GITATTRIBUTES = $(sysconfdir)/gitattributes
+ lib = lib
+@@ -307,7 +308,7 @@ pathsep = :
  
  export prefix bindir sharedir sysconfdir gitwebdir
  
@@ -35,7 +40,7 @@
  AR = ar
  RM = rm -f
  DIFF = diff
-@@ -315,10 +315,10 @@
+@@ -315,10 +316,10 @@ TAR = tar
  FIND = find
  INSTALL = install
  RPMBUILD = rpmbuild
@@ -49,7 +54,7 @@
  PTHREAD_CFLAGS =
  GCOV = gcov
  
-@@ -949,13 +949,14 @@
+@@ -949,13 +950,14 @@ ifeq ($(uname_S),FreeBSD)
HAVE_PATHS_H = YesPlease
  endif
  ifeq ($(uname_S),OpenBSD)
@@ -67,7 +72,7 @@
  endif
  ifeq ($(uname_S),NetBSD)
ifeq ($(shell expr $(uname_R) : '[01]\.'),2)
-@@ -1314,7 +1315,7 @@
+@@ -1314,7 +1316,7 @@ endif
  EXTLIBS += -lz
  
  ifndef NO_OPENSSL
@@ -76,7 +81,7 @@
ifdef OPENSSLDIR
BASIC_CFLAGS += -I$(OPENSSLDIR)/include
OPENSSL_LINK = -L$(OPENSSLDIR)/$(lib) 
$(CC_LD_DYNPATH)$(OPENSSLDIR)/$(lib)
-@@ -2146,7 +2147,7 @@
+@@ -2146,7 +2148,7 @@ export NO_SVN_TESTS
  
  ### Testing rules
  

--
DISCLAIMER: http://goldmark.org/jeff/stupid-disclaimers/ 
This message will self-destruct in 3 seconds.



Re: update: git; sets sysconfdir

2011-08-29 Thread Antoine Jacoutot
On Mon, 29 Aug 2011, Abel Abraham Camarillo Ojeda wrote:

 Antoine Jacoutot ajacou...@bsdfrog.org wrote:
 
  You shouldn't hardcode '/etc' but use ${SYSCONFDIR} instead.
 
 
  -- 
  Antoine
 
 
 I'm sure I was missing something...
 
 Reroll diff:

Can't the port just use CONFIGURE_STYLE=gnu so that 
--sysconfdir=${SYSCONFDIR} is passed to configure?


 Index: Makefile
 ===
 RCS file: /cvs/ports/devel/git/Makefile,v
 retrieving revision 1.80
 diff -u -r1.80 Makefile
 --- Makefile  30 Jul 2011 05:08:05 -  1.80
 +++ Makefile  29 Aug 2011 09:06:31 -
 @@ -11,7 +11,7 @@
  PKGNAME-x11 =git-x11-${V}
  CATEGORIES = devel
  
 -REVISION =   0
 +REVISION =   1
  
  HOMEPAGE =   http://git-scm.com/
  
 Index: patches/patch-Makefile
 ===
 RCS file: /cvs/ports/devel/git/patches/patch-Makefile,v
 retrieving revision 1.32
 diff -u -r1.32 patch-Makefile
 --- patches/patch-Makefile24 Jul 2011 16:29:30 -  1.32
 +++ patches/patch-Makefile29 Aug 2011 09:56:17 -
 @@ -1,7 +1,7 @@
  $OpenBSD: patch-Makefile,v 1.32 2011/07/24 16:29:30 benoit Exp $
  Makefile.origMon Jun 27 00:26:13 2011
 -+++ Makefile Sat Jul 16 14:44:47 2011
 -@@ -271,7 +271,7 @@
 +--- Makefile.origSun Jun 26 17:26:13 2011
  Makefile Mon Aug 29 03:46:06 2011
 +@@ -271,7 +271,7 @@ endif
   
   # CFLAGS and LDFLAGS are for the users to override from the command line.
   
 @@ -10,7 +10,7 @@
   LDFLAGS =
   ALL_CFLAGS = $(CPPFLAGS) $(CFLAGS)
   ALL_LDFLAGS = $(LDFLAGS)
 -@@ -289,12 +289,12 @@
 +@@ -289,16 +289,17 @@ STRIP ?= strip
   # runtime figures out where they are based on the path to the executable.
   # This can help installing the suite in a relocatable way.
   
 @@ -26,7 +26,12 @@
   sharedir = $(prefix)/share
   gitwebdir = $(sharedir)/gitweb
   template_dir = share/git-core/templates
 -@@ -307,7 +307,7 @@
 + htmldir = share/doc/git-doc
 ++sysconfdir = ${SYSCONFDIR}
 + ETC_GITCONFIG = $(sysconfdir)/gitconfig
 + ETC_GITATTRIBUTES = $(sysconfdir)/gitattributes
 + lib = lib
 +@@ -307,7 +308,7 @@ pathsep = :
   
   export prefix bindir sharedir sysconfdir gitwebdir
   
 @@ -35,7 +40,7 @@
   AR = ar
   RM = rm -f
   DIFF = diff
 -@@ -315,10 +315,10 @@
 +@@ -315,10 +316,10 @@ TAR = tar
   FIND = find
   INSTALL = install
   RPMBUILD = rpmbuild
 @@ -49,7 +54,7 @@
   PTHREAD_CFLAGS =
   GCOV = gcov
   
 -@@ -949,13 +949,14 @@
 +@@ -949,13 +950,14 @@ ifeq ($(uname_S),FreeBSD)
   HAVE_PATHS_H = YesPlease
   endif
   ifeq ($(uname_S),OpenBSD)
 @@ -67,7 +72,7 @@
   endif
   ifeq ($(uname_S),NetBSD)
   ifeq ($(shell expr $(uname_R) : '[01]\.'),2)
 -@@ -1314,7 +1315,7 @@
 +@@ -1314,7 +1316,7 @@ endif
   EXTLIBS += -lz
   
   ifndef NO_OPENSSL
 @@ -76,7 +81,7 @@
   ifdef OPENSSLDIR
   BASIC_CFLAGS += -I$(OPENSSLDIR)/include
   OPENSSL_LINK = -L$(OPENSSLDIR)/$(lib) 
 $(CC_LD_DYNPATH)$(OPENSSLDIR)/$(lib)
 -@@ -2146,7 +2147,7 @@
 +@@ -2146,7 +2148,7 @@ export NO_SVN_TESTS
   
   ### Testing rules
   
 
 --
 DISCLAIMER: http://goldmark.org/jeff/stupid-disclaimers/ 
 This message will self-destruct in 3 seconds.
 

-- 
Antoine



Re: update: git; sets sysconfdir

2011-08-29 Thread Abel Abraham Camarillo Ojeda
On Mon, Aug 29, 2011 at 5:10 AM, Antoine Jacoutot ajacou...@bsdfrog.org wrote:
 On Mon, 29 Aug 2011, Abel Abraham Camarillo Ojeda wrote:

 Antoine Jacoutot ajacou...@bsdfrog.org wrote:

  You shouldn't hardcode '/etc' but use ${SYSCONFDIR} instead.
 
 
  --
  Antoine
 

 I'm sure I was missing something...

 Reroll diff:

 Can't the port just use CONFIGURE_STYLE=gnu so that
 --sysconfdir=${SYSCONFDIR} is passed to configure?


 Index: Makefile
 ===
 RCS file: /cvs/ports/devel/git/Makefile,v
 retrieving revision 1.80
 diff -u -r1.80 Makefile
 --- Makefile  30 Jul 2011 05:08:05 -      1.80
 +++ Makefile  29 Aug 2011 09:06:31 -
 @@ -11,7 +11,7 @@
  PKGNAME-x11 =        git-x11-${V}
  CATEGORIES = devel

 -REVISION =   0
 +REVISION =   1

  HOMEPAGE =   http://git-scm.com/

 Index: patches/patch-Makefile
 ===
 RCS file: /cvs/ports/devel/git/patches/patch-Makefile,v
 retrieving revision 1.32
 diff -u -r1.32 patch-Makefile
 --- patches/patch-Makefile    24 Jul 2011 16:29:30 -      1.32
 +++ patches/patch-Makefile    29 Aug 2011 09:56:17 -
 @@ -1,7 +1,7 @@
  $OpenBSD: patch-Makefile,v 1.32 2011/07/24 16:29:30 benoit Exp $
  Makefile.orig    Mon Jun 27 00:26:13 2011
 -+++ Makefile Sat Jul 16 14:44:47 2011
 -@@ -271,7 +271,7 @@
 +--- Makefile.orig    Sun Jun 26 17:26:13 2011
  Makefile Mon Aug 29 03:46:06 2011
 +@@ -271,7 +271,7 @@ endif

   # CFLAGS and LDFLAGS are for the users to override from the command line.

 @@ -10,7 +10,7 @@
   LDFLAGS =
   ALL_CFLAGS = $(CPPFLAGS) $(CFLAGS)
   ALL_LDFLAGS = $(LDFLAGS)
 -@@ -289,12 +289,12 @@
 +@@ -289,16 +289,17 @@ STRIP ?= strip
   # runtime figures out where they are based on the path to the executable.
   # This can help installing the suite in a relocatable way.

 @@ -26,7 +26,12 @@
   sharedir = $(prefix)/share
   gitwebdir = $(sharedir)/gitweb
   template_dir = share/git-core/templates
 -@@ -307,7 +307,7 @@
 + htmldir = share/doc/git-doc
 ++sysconfdir = ${SYSCONFDIR}
 + ETC_GITCONFIG = $(sysconfdir)/gitconfig
 + ETC_GITATTRIBUTES = $(sysconfdir)/gitattributes
 + lib = lib
 +@@ -307,7 +308,7 @@ pathsep = :

   export prefix bindir sharedir sysconfdir gitwebdir

 @@ -35,7 +40,7 @@
   AR = ar
   RM = rm -f
   DIFF = diff
 -@@ -315,10 +315,10 @@
 +@@ -315,10 +316,10 @@ TAR = tar
   FIND = find
   INSTALL = install
   RPMBUILD = rpmbuild
 @@ -49,7 +54,7 @@
   PTHREAD_CFLAGS =
   GCOV = gcov

 -@@ -949,13 +949,14 @@
 +@@ -949,13 +950,14 @@ ifeq ($(uname_S),FreeBSD)
       HAVE_PATHS_H = YesPlease
   endif
   ifeq ($(uname_S),OpenBSD)
 @@ -67,7 +72,7 @@
   endif
   ifeq ($(uname_S),NetBSD)
       ifeq ($(shell expr $(uname_R) : '[01]\.'),2)
 -@@ -1314,7 +1315,7 @@
 +@@ -1314,7 +1316,7 @@ endif
   EXTLIBS += -lz

   ifndef NO_OPENSSL
 @@ -76,7 +81,7 @@
       ifdef OPENSSLDIR
               BASIC_CFLAGS += -I$(OPENSSLDIR)/include
               OPENSSL_LINK = -L$(OPENSSLDIR)/$(lib) 
 $(CC_LD_DYNPATH)$(OPENSSLDIR)/$(lib)
 -@@ -2146,7 +2147,7 @@
 +@@ -2146,7 +2148,7 @@ export NO_SVN_TESTS

   ### Testing rules


 --
 DISCLAIMER: http://goldmark.org/jeff/stupid-disclaimers/
 This message will self-destruct in 3 seconds.


 --
 Antoine


Maybe... I'm unsure why the release tarball ships with a Makefile... if there is
a reason...



Re: update: git; sets sysconfdir

2011-08-29 Thread Brad

On 29/08/11 6:10 AM, Antoine Jacoutot wrote:

On Mon, 29 Aug 2011, Abel Abraham Camarillo Ojeda wrote:


Antoine Jacoutotajacou...@bsdfrog.org  wrote:


You shouldn't hardcode '/etc' but use ${SYSCONFDIR} instead.


--
Antoine



I'm sure I was missing something...

Reroll diff:


Can't the port just use CONFIGURE_STYLE=gnu so that
--sysconfdir=${SYSCONFDIR} is passed to configure?


Not when there isn't any necessity to do so. The second diff is fine.

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.



Re: update: git; sets sysconfdir

2011-08-29 Thread Brad

On 29/08/11 6:20 AM, Abel Abraham Camarillo Ojeda wrote:

Maybe... I'm unsure why the release tarball ships with a Makefile... if there is
a reason...


There is.. try reading INSTALL.

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.



Re: update: git; sets sysconfdir

2011-08-29 Thread Antoine Jacoutot
On Mon, 29 Aug 2011, Brad wrote:

 On 29/08/11 6:10 AM, Antoine Jacoutot wrote:
  On Mon, 29 Aug 2011, Abel Abraham Camarillo Ojeda wrote:
  
   Antoine Jacoutotajacou...@bsdfrog.org  wrote:
   
You shouldn't hardcode '/etc' but use ${SYSCONFDIR} instead.


--
Antoine

   
   I'm sure I was missing something...
   
   Reroll diff:
  
  Can't the port just use CONFIGURE_STYLE=gnu so that
  --sysconfdir=${SYSCONFDIR} is passed to configure?
 
 Not when there isn't any necessity to do so. The second diff is fine.

Care to explain? Why patching when setting a variable is enough.
Please extend.

-- 
Antoine



Re: update: git; sets sysconfdir

2011-08-29 Thread Brad

On 29/08/11 6:29 AM, Antoine Jacoutot wrote:

On Mon, 29 Aug 2011, Brad wrote:


On 29/08/11 6:10 AM, Antoine Jacoutot wrote:

On Mon, 29 Aug 2011, Abel Abraham Camarillo Ojeda wrote:


Antoine Jacoutotajacou...@bsdfrog.org   wrote:


You shouldn't hardcode '/etc' but use ${SYSCONFDIR} instead.


--
Antoine



I'm sure I was missing something...

Reroll diff:


Can't the port just use CONFIGURE_STYLE=gnu so that
--sysconfdir=${SYSCONFDIR} is passed to configure?


Not when there isn't any necessity to do so. The second diff is fine.


Care to explain? Why patching when setting a variable is enough.
Please extend.


Yes. dragging in the alternative build system and thus autoconf
vs adding the one extra line to the Makefile is ridiculous. Why
add a whole run of autoconf to set ONE variable in a Makefile?


--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.



Re: update: git; sets sysconfdir

2011-08-29 Thread Antoine Jacoutot
On Mon, 29 Aug 2011, Brad wrote:

 On 29/08/11 6:20 AM, Abel Abraham Camarillo Ojeda wrote:
  Maybe... I'm unsure why the release tarball ships with a Makefile... if
  there is
  a reason...
 
 There is.. try reading INSTALL.

You mean this?


Alternatively you can use autoconf generated ./configure script to
set up install paths (via config.mak.autogen), so you can write instead

$ make configure ;# as yourself
$ ./configure --prefix=/usr ;# as yourself
$ make all doc ;# as yourself
# make install install-doc install-html;# as root


-- 
Antoine



Re: update: git; sets sysconfdir

2011-08-29 Thread Antoine Jacoutot
On Mon, 29 Aug 2011, Brad wrote:
 On 29/08/11 6:29 AM, Antoine Jacoutot wrote:
  On Mon, 29 Aug 2011, Brad wrote:
  
   On 29/08/11 6:10 AM, Antoine Jacoutot wrote:
On Mon, 29 Aug 2011, Abel Abraham Camarillo Ojeda wrote:

 Antoine Jacoutotajacou...@bsdfrog.org   wrote:
 
  You shouldn't hardcode '/etc' but use ${SYSCONFDIR} instead.
  
  
  --
  Antoine
  
 
 I'm sure I was missing something...
 
 Reroll diff:

Can't the port just use CONFIGURE_STYLE=gnu so that
--sysconfdir=${SYSCONFDIR} is passed to configure?
   
   Not when there isn't any necessity to do so. The second diff is fine.
  
  Care to explain? Why patching when setting a variable is enough.
  Please extend.
 
 Yes. dragging in the alternative build system and thus autoconf
 vs adding the one extra line to the Makefile is ridiculous. Why
 add a whole run of autoconf to set ONE variable in a Makefile?

Then why not use sysconfdir=${SYSCONFDIR} in MAKE_ENV or FLAGS instead 
of patching?

-- 
Antoine



Re: update: git; sets sysconfdir

2011-08-29 Thread Abel Abraham Camarillo Ojeda
On Mon, Aug 29, 2011 at 5:38 AM, Antoine Jacoutot ajacou...@bsdfrog.org wrote:
 On Mon, 29 Aug 2011, Brad wrote:
 On 29/08/11 6:29 AM, Antoine Jacoutot wrote:
  On Mon, 29 Aug 2011, Brad wrote:
 
   On 29/08/11 6:10 AM, Antoine Jacoutot wrote:
On Mon, 29 Aug 2011, Abel Abraham Camarillo Ojeda wrote:
   
 Antoine Jacoutotajacou...@bsdfrog.org   wrote:

  You shouldn't hardcode '/etc' but use ${SYSCONFDIR} instead.
 
 
  --
  Antoine
 

 I'm sure I was missing something...

 Reroll diff:
   
Can't the port just use CONFIGURE_STYLE=gnu so that
--sysconfdir=${SYSCONFDIR} is passed to configure?
  
   Not when there isn't any necessity to do so. The second diff is fine.
 
  Care to explain? Why patching when setting a variable is enough.
  Please extend.

 Yes. dragging in the alternative build system and thus autoconf
 vs adding the one extra line to the Makefile is ridiculous. Why
 add a whole run of autoconf to set ONE variable in a Makefile?

 Then why not use sysconfdir=${SYSCONFDIR} in MAKE_ENV or FLAGS instead
 of patching?

 --
 Antoine


There is already SYSCONFDIR=${SYSCONFDIR}, let me try it lowercased...



Re: update: git; sets sysconfdir

2011-08-29 Thread Abel Abraham Camarillo Ojeda
Antoine Jacoutot ajacou...@bsdfrog.org wrote:

 On Mon, 29 Aug 2011, Brad wrote:
  On 29/08/11 6:29 AM, Antoine Jacoutot wrote:
   On Mon, 29 Aug 2011, Brad wrote:
   
On 29/08/11 6:10 AM, Antoine Jacoutot wrote:
 On Mon, 29 Aug 2011, Abel Abraham Camarillo Ojeda wrote:
 
  Antoine Jacoutotajacou...@bsdfrog.org   wrote:
  
   You shouldn't hardcode '/etc' but use ${SYSCONFDIR} instead.
   
   
   --
   Antoine
   
  
  I'm sure I was missing something...
  
  Reroll diff:
 
 Can't the port just use CONFIGURE_STYLE=gnu so that
 --sysconfdir=${SYSCONFDIR} is passed to configure?

Not when there isn't any necessity to do so. The second diff is fine.
   
   Care to explain? Why patching when setting a variable is enough.
   Please extend.
  
  Yes. dragging in the alternative build system and thus autoconf
  vs adding the one extra line to the Makefile is ridiculous. Why
  add a whole run of autoconf to set ONE variable in a Makefile?

 Then why not use sysconfdir=${SYSCONFDIR} in MAKE_ENV or FLAGS instead 
 of patching?

 -- 
 Antoine

According to grep -R SYSCONFDIR, SYSCONFDIR is used nowhere, this works
and is tested on amd64.

Or should we patch all references of lowercase sysconfdir to uppercase
them? :P

Index: Makefile
===
RCS file: /cvs/ports/devel/git/Makefile,v
retrieving revision 1.80
diff -u -r1.80 Makefile
--- Makefile30 Jul 2011 05:08:05 -  1.80
+++ Makefile29 Aug 2011 16:49:33 -
@@ -11,7 +11,7 @@
 PKGNAME-x11 =  git-x11-${V}
 CATEGORIES =   devel

-REVISION = 0
+REVISION = 1

 HOMEPAGE = http://git-scm.com/

@@ -67,7 +67,7 @@
 PKG_ARCH-x11 = *

 MAKE_ENV = prefix=${PREFIX} CC=${CC} CFLAGS=${CFLAGS} V=1 \
-   SYSCONFDIR=${SYSCONFDIR} \
+   sysconfdir=${SYSCONFDIR} \
TCLTK_PATH=${MODTK_BIN} \
TCL_PATH=${MODTCL_BIN} \
REGRESS_SHELL=${LOCALBASE}/bin/bash

--
DISCLAIMER: http://goldmark.org/jeff/stupid-disclaimers/ 
This message will self-destruct in 3 seconds.



Re: update: git; sets sysconfdir

2011-08-29 Thread Antoine Jacoutot
On Mon, 29 Aug 2011, Abel Abraham Camarillo Ojeda wrote:

 Or should we patch all references of lowercase sysconfdir to uppercase
 them? :P

No, this looks fine as is, thanks.
I think this is the most correct solution, benoit?


 Index: Makefile
 ===
 RCS file: /cvs/ports/devel/git/Makefile,v
 retrieving revision 1.80
 diff -u -r1.80 Makefile
 --- Makefile30 Jul 2011 05:08:05 -  1.80
 +++ Makefile29 Aug 2011 16:49:33 -
 @@ -11,7 +11,7 @@
  PKGNAME-x11 =  git-x11-${V}
  CATEGORIES =   devel
 
 -REVISION = 0
 +REVISION = 1
 
  HOMEPAGE = http://git-scm.com/
 
 @@ -67,7 +67,7 @@
  PKG_ARCH-x11 = *
 
  MAKE_ENV = prefix=${PREFIX} CC=${CC} CFLAGS=${CFLAGS} V=1 \
 -   SYSCONFDIR=${SYSCONFDIR} \
 +   sysconfdir=${SYSCONFDIR} \
 TCLTK_PATH=${MODTK_BIN} \
 TCL_PATH=${MODTCL_BIN} \
 REGRESS_SHELL=${LOCALBASE}/bin/bash
 
 --
 DISCLAIMER: http://goldmark.org/jeff/stupid-disclaimers/ 
 This message will self-destruct in 3 seconds.
 

-- 
Antoine



Re: update: git; sets sysconfdir

2011-08-29 Thread Benoit Lecocq
 On Mon, 29 Aug 2011, Abel Abraham Camarillo Ojeda wrote:

 Or should we patch all references of lowercase sysconfdir to uppercase
 them? :P

 No, this looks fine as is, thanks.
 I think this is the most correct solution, benoit?


ok for me !


 Index: Makefile
 ===
 RCS file: /cvs/ports/devel/git/Makefile,v
 retrieving revision 1.80
 diff -u -r1.80 Makefile
 --- Makefile30 Jul 2011 05:08:05 -  1.80
 +++ Makefile29 Aug 2011 16:49:33 -
 @@ -11,7 +11,7 @@
  PKGNAME-x11 =  git-x11-${V}
  CATEGORIES =   devel

 -REVISION = 0
 +REVISION = 1

  HOMEPAGE = http://git-scm.com/

 @@ -67,7 +67,7 @@
  PKG_ARCH-x11 = *

  MAKE_ENV = prefix=${PREFIX} CC=${CC} CFLAGS=${CFLAGS}
 V=1 \
 -   SYSCONFDIR=${SYSCONFDIR} \
 +   sysconfdir=${SYSCONFDIR} \
 TCLTK_PATH=${MODTK_BIN} \
 TCL_PATH=${MODTCL_BIN} \
 REGRESS_SHELL=${LOCALBASE}/bin/bash

 --
 DISCLAIMER: http://goldmark.org/jeff/stupid-disclaimers/
 This message will self-destruct in 3 seconds.


 --
 Antoine