pkgsrc-Bugs archive

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

pkg/27000: pkgsrc/lang/ocaml does not install properly due to strip problem



>Number:         27000
>Category:       pkg
>Synopsis:       pkgsrc/lang/ocaml does not install properly due to strip 
>problem
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Sep 19 18:19:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator:     Georg Schwarz
>Release:        current pkgsrc
>Organization:
>Environment:
IRIX lorenz 5.3 08031225 IP20 mips
>Description:
...
gmake[1]: Entering directory 
`/usr/people/schwarz/pkgsrc/lang/ocaml/work/ocaml-3.06/debugger'
/usr/local/pkg/bin/install-sh -c -s -o root -g sys -m 555 ocamldebug 
/usr/local/pkg/bin/ocamldebug
strip: Error: /usr/local/pkg/bin/#inst.14812# is not an ELF object file
gmake[1]: Leaving directory 
`/usr/people/schwarz/pkgsrc/lang/ocaml/work/ocaml-3.06/debugger'

it appears that the files labltktop, ocamldoc, and ocamldebug are not 
recognized as ELF files.

lorenz 130% file ./work/ocaml-3.06/debugger/ocamldebug
./work/ocaml-3.06/debugger/ocamldebug:  /usr/local/pkg/bin/ocamlrun script text

In addition, it seems that libthreadsnat.a and threads.a are not created:

Cannot access /usr/local/pkg/lib/ocaml/libthreadsnat.a: No such file or director
y
Cannot access /usr/local/pkg/lib/ocaml/threads/threads.a: No such file or direct
ory
===> Registering installation for ocaml-3.06nb6
pkg_create: can't stat `/usr/local/pkg/lib/ocaml/libthreadsnat.a'
pkg_create: can't stat `/usr/local/pkg/lib/ocaml/threads/threads.a'


maybe this is because there are no natie threads?

>How-To-Repeat:

>Fix:
The following patches work around the first problem:

--- work/ocaml-3.06/debugger/Makefile.orig1     Sun Sep 19 16:46:20 2004
+++ work/ocaml-3.06/debugger/Makefile   Sun Sep 19 16:50:07 2004
@@ -79,7 +79,7 @@
        $(CAMLC) $(LINKFLAGS) -o ocamldebug$(EXE) $(OTHEROBJS) $(OBJS)
 
 install:
-       cp ocamldebug$(EXE) $(BINDIR)/ocamldebug$(EXE)
+       ${BSD_INSTALL_SCRIPT} ocamldebug$(EXE) $(BINDIR)/ocamldebug$(EXE)
 
 clean::
        rm -f ocamldebug$(EXE)


--- work/ocaml-3.06/ocamldoc/Makefile.orig1     Sun Sep 19 16:32:45 2004
+++ work/ocaml-3.06/ocamldoc/Makefile   Sun Sep 19 16:33:44 2004
@@ -274,7 +274,7 @@
 install: dummy
        if test -d $(INSTALL_BINDIR); then : ; else ${BSD_INSTALL_PROGRAM_DIR} 
$(INSTALL_BINDIR); fi
        if test -d $(INSTALL_LIBDIR); then : ; else ${BSD_INSTALL_DATA_DIR} 
$(INSTALL_LIBDIR); fi
-       ${BSD_INSTALL_PROGRAM} $(OCAMLDOC) $(INSTALL_BINDIR)
+       ${BSD_INSTALL_SCRIPT} $(OCAMLDOC) $(INSTALL_BINDIR)
        ${BSD_INSTALL_DATA} ocamldoc.sty ocamldoc.hva *.cmi $(GENERATORS) 
$(OCAMLDOC_LIBCMA) $(INSTALL_LIBDIR)
        ${BSD_INSTALL_DATA} $(INSTALL_MLIS) $(INSTALL_CMIS) $(INSTALL_LIBDIR)
        if test -d $(INSTALL_MANODIR); then : ; else ${BSD_INSTALL_MAN_DIR} 
$(INSTALL_MANODIR); fi

--- work/ocaml-3.06/otherlibs/labltk/lib/Makefile.orig1 Sun Sep 19 16:15:49 2004
+++ work/ocaml-3.06/otherlibs/labltk/lib/Makefile       Sun Sep 19 16:16:43 2004
@@ -60,7 +60,7 @@
 install:
        if test -d $(INSTALLDIR); then : ; else ${BSD_INSTALL_DATA_DIR} 
$(INSTALLDIR); fi
        ${BSD_INSTALL_DATA} $(LIBNAME).cma $(INSTALLDIR)
-       ${BSD_INSTALL_PROGRAM} $(LIBNAME)top$(EXE) $(INSTALLDIR)
+       ${BSD_INSTALL_SCRIPT} $(LIBNAME)top$(EXE) $(INSTALLDIR)
        @if test -d $(BINDIR); then : ; else ${BSD_INSTALL_PROGRAM_DIR} 
$(BINDIR); fi
        ${BSD_INSTALL_SCRIPT} $(LIBNAME) $(BINDIR)
 


>Release-Note:
>Audit-Trail:
>Unformatted:



Home | Main Index | Thread Index | Old Index