Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Portability problem with 'make installopt' in camlp4/lib on OpenBSD 3.3 #8329

Closed
vicuna opened this issue Oct 20, 2003 · 1 comment
Closed
Labels

Comments

@vicuna
Copy link

vicuna commented Oct 20, 2003

Original bug ID: 1885
Reporter: administrator
Status: closed
Resolution: fixed
Priority: normal
Severity: minor
Category: ~DO NOT USE (was: OCaml general)

Bug description

Full_Name: Vladimir Támara
Version: 3.07
OS: OpenBSD
Submission from: gateway1-theorie.informatik.uni-kl.de (131.246.16.250)

After compiling doing:
$ cd camlp4/lib
$ sudo make installopt
produces

cp gramlib.cmxa *.cmx "/usr/local/lib/ocaml/camlp4/."
tar cf - gramlib.$(A) | (cd "/usr/local/lib/ocaml/camlp4/."; tar xf -)
/bin/sh: A: not found
tar: Unable to access gramlib.: No such file or directory
tar: End of archive volume 1 reached
tar: Sorry, unable to determine archive format.
tar: WARNING! These file names were not selected:
gramlib.

Variable substitution $(var:old_string=new_string) in the standard make of
OpenBSD
doesn't allow variables in [new_string]. Patch (just tested in OpenBSD 3.3)

--- Makefile Fri Aug 29 14:15:15 2003
+++ Makefile.patched Mon Oct 20 13:42:46 2003
@@ -43,6 +43,6 @@

installopt:
cp $(TARGET:.cma=.cmxa) *.cmx "$(LIBDIR)/camlp4/."

  •   tar cf - $(TARGET:.cma=.$(A)) | (cd "$(LIBDIR)/camlp4/."; tar xf -)
    
  •   n=`echo "$(TARGET)" | sed -e "s/.cma/.$(A)/g"`;tar cf - $$n | (cd
    

"$(LIBDIR)/camlp4/."; tar xf -)

include .depend

@vicuna
Copy link
Author

vicuna commented May 25, 2004

Comment author: administrator

Fixed by MM, 2004-05-25.

@vicuna vicuna closed this as completed May 25, 2004
@vicuna vicuna added the bug label Mar 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant