freetds 0.91 : Problem building with no BSD-compliant install.
| Newsgroups | gmane.comp.db.tds.freetds |
|---|---|
| Message-ID | <[email protected]> |
Hi,
I had a problem building freetds on one of our platforms (AIX 5.3) and it came down to the fact that it didn't have a suitable BSD compliant install. This meant it set the value of INSTALL_DATA to be "../../install-sh" - this was fine for most of the build but gave errors when it came to doc/images.
=============================================
find $d/doc/freetds-0.91/reference \( -type f -o -type l \) -exec \
../../install-sh -c -m 644 {} /opt/thirdparty/freetds/share/doc/freetds-0.91/reference ';'
cd ../../doc && find images -name \*.gif -exec \
../../install-sh -c -m 644 {} /opt/thirdparty/freetds/share/doc/freetds-0.91/{} ';'
find: 0652-083 Cannot execute ../../install-sh:: A file or directory in the path name does not exist.
find: 0652-083 Cannot execute ../../install-sh:: A file or directory in the path name does not exist.
...etc
============================================
The following patch changes the working directory from "../freetds/doc" to be "../freetds/doc/images" so "../../install-sh" can be found.
--- Makefile.am.safe 2011-12-22 11:04:17.000000000 +0000
+++ Makefile.am 2011-04-09 14:57:58.000000000 +0100
@@ -121,9 +121,8 @@
if test -r $(DOCDIR)/reference ; then d=.; else d="$(srcdir)"; fi; \
find $$d/$(DOCDIR)/reference \( -type f -o -type l \) -exec \
$(INSTALL_DATA) {} $(TARGET_DOCDIR)/reference ';'
- cd $(srcdir) && find images -name \*.gif -exec \
- $(INSTALL_DATA) {} $(TARGET_DOCDIR)/{} ';'
+ cd $(srcdir)/images && find . -name \*.gif -exec \
+ $(INSTALL_DATA) {} $(TARGET_DOCDIR)/images ';'
The right answer is that we should get a proper "install" but I thought I'd send you this fix in case anyone else hits the same issue.
Regards
Huw