pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/29163: databases/db3 does not honor $CP



>Number:         29163
>Category:       pkg
>Synopsis:       databases/db3 does not honor $CP
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Jan 30 20:29:00 +0000 2005
>Originator:     Georg Schwarz
>Release:        current pkgsrc
>Organization:
>Environment:
IRIX lorenz 5.3 08031225 IP20 mips
>Description:
databases/db3 does not honor $CP but instead uses the cp from the shell path. 
On systems with inferior system cp this leads to a failure in the install stage 
due to incompatible options.

As another issue: pkg/28819 applies to db3 as well.
>How-To-Repeat:

>Fix:
First, make sure the pkgsrc settings are honored (I in fact only needed cp, but 
the others might be necessary on other systems:

--- Makefile.orig1      2005-01-30 14:48:07.000000000 +0100
+++ Makefile    2005-01-30 14:52:30.000000000 +0100
@@ -39,6 +39,12 @@
 CONFIGURE_ENV+=                ac_cv_header_inttypes_h=no
 .endif
 
+CONFIGURE_ENV+=                ac_cv_prog_db_cv_path_cp="${CP}"
+CONFIGURE_ENV+=                ac_cv_prog_db_cv_path_chmod="${CHMOD}"
+CONFIGURE_ENV+=                ac_cv_prog_db_cv_path_ln="${LN}"
+CONFIGURE_ENV+=                ac_cv_prog_db_cv_path_mkdir="${MKDIR}"
+CONFIGURE_ENV+=                ac_cv_prog_db_cv_path_rm="${RM}"
+
 post-install:
        ${CHOWN} -R ${BINOWN}:${BINGRP} ${PREFIX}/share/doc/html/db3



I'm not sure, maybe these configure envs (or some better suited ones) should be 
set globally. I am not sure whether these variables are generally honored by 
configure scripts.

In addition, dist/configure needs the following change:

-INSTALLER="\$(LIBTOOL) --mode=install cp"
+INSTALLER="\$(LIBTOOL) --mode=install \$(cp)"



A different approach might be to add appropriate links or wrappers for these 
tools so they're envoked when scripts call a simple cp, chmod, ln, mkdir, or 
rm, respectively.




Home | Main Index | Thread Index | Old Index