pkgsrc-Bugs archive

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

pkg/28636: lang/lua does not install correctly on some systems



>Number:         28636
>Category:       pkg
>Synopsis:       lang/lua does not install correctly on some systems
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Dec 12 16:17:00 +0000 2004
>Originator:     Georg schwarz
>Release:        current pkgsrc
>Organization:
>Environment:
IRIX lorenz 5.3 08031225 IP20 mips
>Description:
lang/lua does not install on some systems for the following reasons:
- tried to strip shared libs on installation, which makes installation fail.
- uses system mkdir and instead of MKDIR and LN
>How-To-Repeat:

>Fix:
Incorporate the following patch into patches/patch-ab:

--- Makefile.orig1      2004-12-12 16:50:44.000000000 +0100
+++ Makefile    2004-12-12 16:53:05.000000000 +0100
@@ -18,7 +18,7 @@
 dirs:  bin lib
 
 bin lib:
-       mkdir -p $@
+       $(MKDIR) $@
 
 # simple test to see Lua working
 test:  all
@@ -30,7 +30,7 @@
 
 # official installation
 install: all strip
-       mkdir -p $(INSTALL_BIN) $(INSTALL_INC) $(INSTALL_LIB) $(INSTALL_MAN)
+       $(MKDIR) $(INSTALL_BIN) $(INSTALL_INC) $(INSTALL_LIB) $(INSTALL_MAN)
        $(INSTALL_EXEC) bin/* $(INSTALL_BIN)
        $(INSTALL_DATA) include/*.h $(INSTALL_INC)
        $(INSTALL_DATA) lib/*.a $(INSTALL_LIB)
@@ -40,7 +40,7 @@
 so:
        ${CC} ${LDFLAGS} -o lib/liblua.so.$V -shared src/*.o
        ${CC} ${LDFLAGS} -o lib/liblualib.so.$V -shared src/lib/*.o
-       cd lib; ln -fs liblua.so.$V liblua.so; ln -fs liblualib.so.$V 
liblualib.so
+       cd lib; $(LN) -fs liblua.so.$V liblua.so; $(LN) -fs liblualib.so.$V 
liblualib.so
 
 # binaries using shared libraries
 sobin:
@@ -50,8 +50,8 @@
 
 # install shared libraries
 soinstall:
-       $(INSTALL_EXEC) lib/*.so.* $(INSTALL_LIB)
-       cd $(INSTALL_LIB); ln -fs liblua.so.$V liblua.so; ln -fs 
liblualib.so.$V liblualib.so
+       $(INSTALL_LIBS) lib/*.so.* $(INSTALL_LIB)
+       cd $(INSTALL_LIB); $(LN) -fs liblua.so.$V liblua.so; $(LN) -fs 
liblualib.so.$V liblualib.so
 
 # clean shared libraries
 soclean:


Also, adapt the toplevel Makefile:

--- Makefile.orig       2004-12-12 16:18:47.000000000 +0100
+++ Makefile    2004-12-12 16:54:18.000000000 +0100
@@ -29,7 +29,8 @@
 CFLAGS+=       -fPIC
 LIBS.Interix+= -ldl
 LIBS.SunOS+=   -ldl
-MAKE_ENV+=     LIBS="${LIBS}"
+MAKE_ENV+=     LIBS="${LIBS}" MKDIR="${MKDIR}" LN="${LN}" \
+                       INSTALL_LIBS="${INSTALL_LIB}"
 
 post-build:
        cd ${WRKSRC}/etc && ${SETENV} ${MAKE_ENV} ${MAKE} bin2c




Home | Main Index | Thread Index | Old Index