Paste number 324254: Firejail.scm

Paste number 324254: Firejail.scm
Pasted by: antelopeal
When:5 years, 11 months ago
Share:Tweet this! |
Paste contents:
Raw Source | XML | Display As
;; There are several problems with this package.
;; While it does indeed build, the binary does not work. Firejail looks for /bin/cp
;; so the way I got around this was by symlinking /gnu/store/../cp to /bin/cp
;; Second problem I had is that I had to make a /var/run/utmp file.
;; The third and the most hard problem was that it would just exit, and I was not able to do a --output=log.txt due to execvp saying it cant find the directory.
;; I hope someone who is better than packaging than I can fix this!

(use-modules (guix)
               (guix build-system gnu)
	       (gnu packages base)
               (guix licenses))
  (name "firejail")
  (version "0.9.42-rc1")
      (method url-fetch)
      (uri (string-append "" version "tar.bz2/download"))
  (build-system gnu-build-system)
   `(#:tests? #f 
   (modify-phases %standard-phases
         (add-before 'build 'setup-environment
           (lambda* (#:key outputs #:allow-other-keys)
             (setenv "CC" "gcc")
	     (setenv "prefix" (assoc-ref outputs "out"))
   #:make-flags (list "--environment-overrides")))
  (inputs `(("which" ,which)))
    "Namespace-based sandboxing tool for Linux")
  (description #f)
  (license gpl2+))

This paste has no annotations.

Colorize as:
Show Line Numbers

Lisppaste pastes can be made by anyone at any time. Imagine a fearsomely comprehensive disclaimer of liability. Now fear, comprehensively.