Subject: pkg/32687: databases/mysql5-server install fails on SPARC Solaris 10
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <jakerosoft@gmail.com>
List: pkgsrc-bugs
Date: 02/01/2006 05:15:00
>Number:         32687
>Category:       pkg
>Synopsis:       databases/mysql5-server install fails on SPARC Solaris 10
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Feb 01 05:15:00 +0000 2006
>Originator:     Jake Kupersmith
>Release:        pkgsrc
>Organization:
>Environment:
SunOS 5.10 Generic_118822-25 sun4u sparc SUNW,Sun-Blade-100

>Description:
make install fails in mysql-test/ when /usr/ucb/install -d is called with multiple arguments.
>How-To-Repeat:
bmake install

i have included an updated patch-ac that fixes the problem.  I have seen this  problem before, is this the correct way to fix this type of issue or is it better to submit a mysql bug report?
>Fix:
# Updated patch-ac

--- mysql-test/Makefile.in.orig	Tue Jan 31 20:54:58 2006
+++ mysql-test/Makefile.in	Tue Jan 31 20:55:05 2006
@@ -383,7 +383,7 @@
 @HAVE_NDBCLUSTER_DB_FALSE@USE_NDBCLUSTER = \"\"
 @HAVE_NDBCLUSTER_DB_TRUE@USE_NDBCLUSTER = \"--ndbcluster\"
 benchdir_root = $(prefix)
-testdir = $(benchdir_root)/mysql-test
+testdir = $(benchdir_root)/share/mysql-test
 EXTRA_SCRIPTS = mysql-test-run.sh mysql-test-run.pl install_test_db.sh valgrind.supp
 EXTRA_DIST = $(EXTRA_SCRIPTS) 
 test_SCRIPTS = mysql-test-run install_test_db 
@@ -797,12 +797,11 @@
 	$(INSTALL_DATA) $(srcdir)/lib/*.pl $(distdir)/lib
 
 install-data-local:
-	$(mkinstalldirs) \
-		$(DESTDIR)$(testdir)/t \
-		$(DESTDIR)$(testdir)/r \
-		$(DESTDIR)$(testdir)/include \
-		$(DESTDIR)$(testdir)/std_data \
-		$(DESTDIR)$(testdir)/lib
+	$(mkinstalldirs) $(DESTDIR)$(testdir)/t
+	$(mkinstalldirs) $(DESTDIR)$(testdir)/r
+	$(mkinstalldirs) $(DESTDIR)$(testdir)/include
+	$(mkinstalldirs) $(DESTDIR)$(testdir)/std_data
+	$(mkinstalldirs) $(DESTDIR)$(testdir)/lib
 	$(INSTALL_DATA) $(srcdir)/README $(DESTDIR)$(testdir)
 	-$(INSTALL_DATA) $(srcdir)/t/*.def $(DESTDIR)$(testdir)/t
 	$(INSTALL_DATA) $(srcdir)/t/*.test $(DESTDIR)$(testdir)/t