[BACK]Return to patch-aa CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / databases / gnats / patches

File: [cvs.NetBSD.org] / pkgsrc / databases / gnats / patches / patch-aa (download)

Revision 1.5, Sun Apr 19 19:35:00 2015 UTC (5 years, 3 months ago) by spz
Branch: MAIN
CVS Tags: pkgsrc-2020Q2-base, pkgsrc-2020Q2, pkgsrc-2020Q1-base, pkgsrc-2020Q1, pkgsrc-2019Q4-base, pkgsrc-2019Q4, pkgsrc-2019Q3-base, pkgsrc-2019Q3, pkgsrc-2019Q2-base, pkgsrc-2019Q2, pkgsrc-2019Q1-base, pkgsrc-2019Q1, pkgsrc-2018Q4-base, pkgsrc-2018Q4, pkgsrc-2018Q3-base, pkgsrc-2018Q3, pkgsrc-2018Q2-base, pkgsrc-2018Q2, pkgsrc-2018Q1-base, pkgsrc-2018Q1, pkgsrc-2017Q4-base, pkgsrc-2017Q4, pkgsrc-2017Q3-base, pkgsrc-2017Q3, pkgsrc-2017Q2-base, pkgsrc-2017Q2, pkgsrc-2017Q1-base, pkgsrc-2017Q1, pkgsrc-2016Q4-base, pkgsrc-2016Q4, pkgsrc-2016Q3-base, pkgsrc-2016Q3, pkgsrc-2016Q2-base, pkgsrc-2016Q2, pkgsrc-2016Q1-base, pkgsrc-2016Q1, pkgsrc-2015Q4-base, pkgsrc-2015Q4, pkgsrc-2015Q3-base, pkgsrc-2015Q3, pkgsrc-2015Q2-base, pkgsrc-2015Q2, HEAD
Changes since 1.4: +107 -141 lines

update to gnats 4.2.0

upstream Changes highlights:
 - GNU v3 license update
 - Buid now uses automake, and code has been adjusted to compile
   properly in various environments (tested with gcc 2.95, 3.4, 4.8,
   4.9, clang 3.1, 3.4, and several different versions of Linux,
   FreeBSD, Solaris, OS X)
 - New --global-databases-file command-line option for gnatsd and other programs
 - New host/port/user/passwd command-line options for send-pr
 - Many bugfixes, including:
 - FreeBSD-SA-05:20.cvsbug security advisory (affected send-pr)
 - Fixed PR#484: "send-pr --request-id" sends just a template
 - Fixed PR#501: Safer open/fopen for gen-index (no longer installing as suid)
 - Fixed PR#504: gnatsd crashes when trying to lock a nonexistent PR
 - Fixed PR#508: Emacs interface gnats-change-database fails when
   gnats-port isn't set
 - Fixed PR#691: Portability problem with sed and tr
 - Fixed PR#746: install-sid is a bash script (and not /bin/sh)
 - Fixed PR#767: edit-pr returns incorect exit status
 - Fixed PR#768: make install DESTDIR=/anywhere fails
 - Fixed PR#771: "EXPR" queries with spaces sometimes fail
 - Fixed PR#773: using responsible alias as email address for edit-pr
 - "invalid query format" bug for queries that included whitespace
 - edit-pr will now correctly exit with an error if it cannot lock the PR
 - edit-pr will now use the email alias in the responsibles field
 - Solaris 7/8/10 compilation fixed

$NetBSD: patch-aa,v 1.5 2015/04/19 19:35:00 spz Exp $

pkgsrcification

--- gnats/Makefile.in.orig	2015-02-27 02:10:23.000000000 +0000
+++ gnats/Makefile.in
@@ -574,11 +574,10 @@ CLEANFILES = $(bin_SCRIPTS) $(pkglibexec
 
 
 # Data files
-dist_pkgdata_DATA = addresses categories classes gnatsd.host_access \
-	gnatsd.user_access responsible states submitters \
-	databases send-pr.conf
+dist_pkgdata_DATA = addresses categories classes dbconfig \
+	responsible states submitters
 
-pkgdata_DATA = dbconfig
+pkgdata_DATA = databases gnatsd.host_access gnatsd.user_access send-pr.conf
 all: $(BUILT_SOURCES) autoconf.h
 	$(MAKE) $(AM_MAKEFLAGS) all-recursive
 
@@ -881,18 +880,18 @@ distclean-compile:
 	$(AM_V_YACC)$(am__skipyacc) $(SHELL) $(YLWRAP) $< y.tab.c $@ y.tab.h `echo $@ | $(am__yacc_c2h)` y.output $*.output -- $(YACCCOMPILE)
 install-dist_lispDATA: $(dist_lisp_DATA)
 	@$(NORMAL_INSTALL)
-	@list='$(dist_lisp_DATA)'; test -n "$(lispdir)" || list=; \
+	@list='$(dist_lisp_DATA)'; test -n "%%GNATS_DEFAULTS%%" || list=; \
 	if test -n "$$list"; then \
-	  echo " $(MKDIR_P) '$(DESTDIR)$(lispdir)'"; \
-	  $(MKDIR_P) "$(DESTDIR)$(lispdir)" || exit 1; \
+	  echo " $(MKDIR_P) '%%GNATS_DEFAULTS%%'"; \
+	  $(MKDIR_P) "%%GNATS_DEFAULTS%%" || exit 1; \
 	fi; \
 	for p in $$list; do \
 	  if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
 	  echo "$$d$$p"; \
 	done | $(am__base_list) | \
 	while read files; do \
-	  echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(lispdir)'"; \
-	  $(INSTALL_DATA) $$files "$(DESTDIR)$(lispdir)" || exit $$?; \
+	  echo " $(INSTALL_DATA) $$files '%%GNATS_DEFAULTS%%/..'"; \
+	  $(INSTALL_DATA) $$files "%%GNATS_DEFAULTS%%/.." || exit $$?; \
 	done
 
 uninstall-dist_lispDATA:
@@ -902,18 +901,18 @@ uninstall-dist_lispDATA:
 	dir='$(DESTDIR)$(lispdir)'; $(am__uninstall_files_from_dir)
 install-dist_pkgdataDATA: $(dist_pkgdata_DATA)
 	@$(NORMAL_INSTALL)
-	@list='$(dist_pkgdata_DATA)'; test -n "$(pkgdatadir)" || list=; \
+	@list='$(dist_pkgdata_DATA)'; test -n "%%GNATS_DEFAULTS%%" || list=; \
 	if test -n "$$list"; then \
-	  echo " $(MKDIR_P) '$(DESTDIR)$(pkgdatadir)'"; \
-	  $(MKDIR_P) "$(DESTDIR)$(pkgdatadir)" || exit 1; \
+	  echo " $(MKDIR_P) '%%GNATS_DEFAULTS%%'"; \
+	  $(MKDIR_P) "%%GNATS_DEFAULTS%%" || exit 1; \
 	fi; \
 	for p in $$list; do \
 	  if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
 	  echo "$$d$$p"; \
 	done | $(am__base_list) | \
 	while read files; do \
-	  echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(pkgdatadir)'"; \
-	  $(INSTALL_DATA) $$files "$(DESTDIR)$(pkgdatadir)" || exit $$?; \
+	  echo " $(INSTALL_DATA) $$files '%%GNATS_DEFAULTS%%'"; \
+	  $(INSTALL_DATA) $$files "%%GNATS_DEFAULTS%%" || exit $$?; \
 	done
 
 uninstall-dist_pkgdataDATA:
@@ -925,16 +924,16 @@ install-pkgdataDATA: $(pkgdata_DATA)
 	@$(NORMAL_INSTALL)
 	@list='$(pkgdata_DATA)'; test -n "$(pkgdatadir)" || list=; \
 	if test -n "$$list"; then \
-	  echo " $(MKDIR_P) '$(DESTDIR)$(pkgdatadir)'"; \
-	  $(MKDIR_P) "$(DESTDIR)$(pkgdatadir)" || exit 1; \
+	  echo " $(MKDIR_P) '%%EGDIR%%"; \
+	  $(MKDIR_P) "%%EGDIR%%" || exit 1; \
 	fi; \
 	for p in $$list; do \
 	  if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
 	  echo "$$d$$p"; \
 	done | $(am__base_list) | \
 	while read files; do \
-	  echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(pkgdatadir)'"; \
-	  $(INSTALL_DATA) $$files "$(DESTDIR)$(pkgdatadir)" || exit $$?; \
+	  echo " $(INSTALL_DATA) $$files '%%EGDIR%%"; \
+	  $(INSTALL_DATA) $$files "%%EGDIR%%" || exit $$?; \
 	done
 
 uninstall-pkgdataDATA:
@@ -1304,18 +1303,9 @@ mail-query: mail-query.sh Makefile
 send-pr: send-pr.sh Makefile
 	$(do_subst) < $(srcdir)/send-pr.sh > send-pr
 
-# We need to link in defaults database config files for for mkdb
+# this gets done by the pkgsrc framework
 install-data-hook:
-	-mkdir -p $(DESTDIR)/$(sysconfdir)/$(PACKAGE)/defaults && \
-	for i in $(dist_pkgdata_DATA) $(pkgdata_DATA) ; do \
-		ln -s $(pkgdatadir)/$$i \
-			$(DESTDIR)/$(sysconfdir)/$(PACKAGE)/defaults || true; \
-	done
-	for i in databases gnatsd.user_access gnatsd.host_access send-pr.conf ; do \
-		if [ ! -e $(DESTDIR)/$(sysconfdir)/$(PACKAGE)/$$i ] ; then \
-			${INSTALL_DATA} $(DESTDIR)$(pkgdatadir)/$$i $(DESTDIR)/$(sysconfdir)/$(PACKAGE); \
-		fi; \
-	done
+	:
 
 # Tell versions [3.59,3.63) of GNU make to not export all variables.
 # Otherwise a system limit (for SysV at least) may be exceeded.