Update bincat
more/packages/ocaml.scm
528 | 528 | (method git-fetch) | |
529 | 529 | (uri (git-reference | |
530 | 530 | (url "https://github.com/airbus-seclab/c2newspeak") | |
531 | - | (commit "6f7adf13fefb7f8d4dc668b8290226e3c6a30063"))) | |
531 | + | (commit "c97fd380111a49fa7baeb9e49c45238fca627492"))) | |
532 | 532 | (file-name (string-append name "-" version)) | |
533 | 533 | (sha256 | |
534 | 534 | (base32 | |
535 | - | "1apaz0b84865xfba0mxbskbnaq6llqsn3qhy8b0sssbdxzw5w1x4")))) | |
535 | + | "0fxh868s5jraq61mnig9ilhyjzsq4iw32f20zh3982naanp4p8r6")))) | |
536 | 536 | (build-system ocaml-build-system) | |
537 | 537 | (arguments | |
538 | 538 | `(#:test-target "check" | |
… | |||
540 | 540 | #:phases | |
541 | 541 | (modify-phases %standard-phases | |
542 | 542 | (delete 'configure) | |
543 | - | (add-before 'install 'modify-installed-file-list | |
544 | - | (lambda _ | |
545 | - | (substitute* "src/newspeak.Makefile" | |
546 | - | (("c2newspeak/typedC.cmi") | |
547 | - | "c2newspeak/typedC.cmi c2newspeak/typedC.cmx c2newspeak/typedC.o")))) | |
548 | 543 | (add-after 'install 'install-bin | |
549 | 544 | (lambda* (#:key outputs #:allow-other-keys) | |
550 | 545 | (install-file "bin/c2newspeak" (string-append (assoc-ref outputs "out") "/bin"))))))) | |
… | |||
556 | 551 | (define-public ocaml-bincat | |
557 | 552 | (package | |
558 | 553 | (name "ocaml-bincat") | |
559 | - | (version "0.6") | |
554 | + | (version "0.8.1") | |
560 | 555 | (source (origin | |
561 | 556 | (method url-fetch) | |
562 | 557 | (uri (string-append "https://github.com/airbus-seclab/bincat/archive/v" | |
… | |||
564 | 559 | (file-name (string-append name "-" version ".tar.gz")) | |
565 | 560 | (sha256 | |
566 | 561 | (base32 | |
567 | - | "1762wrvf7fv16kxfvpblj4b0pwbwny1b39263q4jnqni12474djl")))) | |
562 | + | "1ncwm1h428x1bs4sq7ql1isrkhw0angglsa9hnsvhhw2i1jsdk7j")))) | |
568 | 563 | (build-system ocaml-build-system) | |
569 | 564 | (arguments | |
570 | - | `(#:tests? #f; some failures for unknown reasons | |
565 | + | `(#:tests? #f; disabled for now | |
566 | + | #:validate-runpath? #f; disabled for now | |
571 | 567 | #:make-flags | |
572 | 568 | (list (string-append "PREFIX=" (assoc-ref %outputs "out")) | |
573 | 569 | "LDCONFIG=true" | |
… | |||
577 | 573 | (modify-phases %standard-phases | |
578 | 574 | (delete 'configure) | |
579 | 575 | (add-before 'build 'python-path | |
580 | - | (lambda _ | |
576 | + | (lambda* (#:key outputs #:allow-other-keys) | |
581 | 577 | (setenv "PYTHONPATH" (string-append (getenv "PYTHONPATH") | |
582 | - | ":../python")))) | |
583 | - | (add-before 'build 'fix-makefile | |
578 | + | ":../python:" | |
579 | + | (assoc-ref outputs "out") | |
580 | + | "/lib/python2.7/site-packages/")) | |
581 | + | #t)) | |
582 | + | (add-before 'build 'fix-makefiles | |
584 | 583 | (lambda _ | |
585 | 584 | (substitute* "ocaml/src/Makefile" | |
586 | - | (("GITVERSION:=.*") "GITVERSION:=0.6\n") | |
587 | - | ;; typedC library is embedded in newspeak.cmxa | |
588 | - | (("typedC.cmx") "")))) | |
585 | + | (("GITVERSION:=.*") "GITVERSION:=0.8.1\n")) | |
586 | + | (substitute* "python/Makefile" | |
587 | + | (("./setup.py install") "./setup.py install --prefix=$(PREFIX)")) | |
588 | + | #t)) | |
589 | 589 | (add-before 'check 'fix-test | |
590 | 590 | (lambda _ | |
591 | 591 | (setenv "PATH" (string-append (getenv "PATH") ":" (getcwd) "/ocaml/src")) | |
592 | - | (chmod "test/eggloader_x86" #o755)))))) | |
592 | + | ;; Remove tests that require an armv8 compiler | |
593 | + | (substitute* "test/Makefile" | |
594 | + | (("eggloader_armv8 eggloader_armv7 eggloader_armv7thumb") "")) | |
595 | + | (chmod "test/eggloader_x86" #o755) | |
596 | + | #t)) | |
597 | + | (add-before 'install 'install-python-dir | |
598 | + | (lambda* (#:key outputs #:allow-other-keys) | |
599 | + | (mkdir-p (string-append (assoc-ref outputs "out") | |
600 | + | "/lib/python2.7/site-packages/"))))))) | |
593 | 601 | (inputs | |
594 | 602 | `(("c2newspeak" ,ocaml-c2newspeak) | |
595 | 603 | ("zarith" ,ocaml-zarith) | |
596 | 604 | ("menhir" ,ocaml-menhir) | |
597 | 605 | ("ocamlgraph" ,ocaml-graph) | |
606 | + | ("ocaml-cppo" ,ocaml-cppo) | |
607 | + | ("ocaml-ppx-tools" ,ocaml-ppx-tools) | |
598 | 608 | ("gmp" ,gmp))) | |
599 | 609 | (native-inputs | |
600 | 610 | `(("python" ,python-2) |