From: Marius Bakke <mbakke@fastmail.com>
To: David Craven <david@craven.ch>, guix-devel@gnu.org
Subject: Re: [PATCH 4/5] gnu: Add syslinux.
Date: Fri, 10 Feb 2017 02:18:05 +0100 [thread overview]
Message-ID: <87d1eqsv1u.fsf@kirby.i-did-not-set--mail-host-address--so-tickle-me> (raw)
In-Reply-To: <20170209190450.29458-7-david@craven.ch>
[-- Attachment #1: Type: text/plain, Size: 4355 bytes --]
David Craven <david@craven.ch> writes:
> * gnu/packages/grub.scm (syslinux): New variable.
> ---
> gnu/packages/grub.scm | 54 +++++++++++++++++++++++++++++++++++++++++++++++++++
> 1 file changed, 54 insertions(+)
>
> diff --git a/gnu/packages/grub.scm b/gnu/packages/grub.scm
> index 4da01ceb9..2e692a100 100644
> --- a/gnu/packages/grub.scm
> +++ b/gnu/packages/grub.scm
> @@ -36,6 +36,7 @@
> #:use-module (gnu packages gettext)
> #:use-module (gnu packages fontutils)
> #:use-module (gnu packages linux)
> + #:use-module (gnu packages perl)
> #:use-module (gnu packages python)
> #:use-module (gnu packages qemu)
> #:use-module (gnu packages man)
> @@ -270,3 +271,56 @@ use of coreboot.")
> (description "OVMF is an EDK II based project to enable UEFI support for
> Virtual Machines. OVMF contains a sample UEFI firmware for QEMU and KVM.")
> (license license:expat)))
> +
> +(define-public syslinux
> + (let ((commit "bb41e935cc83c6242de24d2271e067d76af3585c"))
> + (package
> + (name "syslinux")
> + (version (git-version "6.04-pre" "1" commit))
I think the most common convention is to use the latest upstream
release, and adding revisions on top of it. But no strong opinion.
I tried packaging 6.03 a while back and it was very difficult. Most if
the problems seems to be solved here, so thanks for doing this.
> + (source (origin
> + (method git-fetch)
> + (uri (git-reference
> + (url "https://github.com/geneC/syslinux")
> + (commit commit)))
> + (file-name (git-file-name name version))
> + (sha256
> + (base32
> + "0k8dvafd6410kqxf3kyr4y8jzmpmrih6wbjqg6gklak7945yflrc"))))
> + (build-system gnu-build-system)
> + (native-inputs
> + `(("nasm" ,nasm)
> + ("perl" ,perl)
> + ("python-2" ,python-2)))
> + (inputs
> + `(("libuuid" ,util-linux)))
> + (arguments
> + `(#:tests? #f
> + #:test-target "unittest"
This is unfortunate. The "unittest" target is applied recursively, and
fails with "no such target" in one of the folders.
However, I was able to successfully run the tests by calling the
"unittest" target "manually" for some reason, like so:
(replace 'check
(lambda _
(setenv "CC" "gcc")
(substitute* "tests/unittest/include/unittest/unittest.h"
;; Don't look up headers under /usr.
(("/usr/include/") ""))
(zero? (system* "make" "unittest"))))
> + #:parallel-build? #f
> + #:make-flags
> + (list (string-append "BINDIR=" %output "/bin")
> + (string-append "SBINDIR=" %output "/sbin")
> + (string-append "LIBDIR=" %output "/lib")
> + (string-append "INCDIR=" %output "/include")
> + (string-append "DATADIR=" %output "/share")
> + (string-append "MANDIR=" %output "/share/man")
> + "PERL=perl"
> + "bios")
> + #:phases
> + (modify-phases %standard-phases
> + (add-after 'unpack 'patch-files
> + (lambda _
> + (substitute* (find-files "." "Makefile.*|ppmtolss16")
> + (("/bin/pwd") (which "pwd"))
> + (("/bin/echo") (which "echo"))
> + (("/usr/bin/perl") (which "perl")))
> + #t))
> + (delete 'configure)
> + (add-before 'build 'set-permissions
> + (lambda _
> + ;; Is read only because it's checked out with git.
> + (zero? (system* "chmod" "a+w" "utils/isohybrid.in")))))))
> + (home-page "http://www.syslinux.org")
> + (synopsis "Lightweight Linux bootloader")
> + (description "Syslinux is a lightweight Linux bootloader.")
> + (license license:gpl2+))))
This software bundles some third-party code in the "com32" folder.
libpng@1.2, zlib, and others. Their licenses should be mentioned
here. Preferably they would be scrubbed from the source in favor of
system versions, but that looks to be difficult.
Otherwise this LGTM. Thank you!
> --
> 2.11.0
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]
next prev parent reply other threads:[~2017-02-10 1:18 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-02-09 19:04 [PATCH] enable debug symbols David Craven
2017-02-09 19:04 ` [PATCH 1/5] gnu: Use 'license:' prefix in (gnu packages grub) David Craven
2017-02-09 23:45 ` Marius Bakke
2017-02-09 19:04 ` [PATCH] update epiphany David Craven
2017-02-10 0:31 ` Mark H Weaver
2017-02-09 19:04 ` [PATCH] update libdrm David Craven
2017-02-09 19:12 ` Marius Bakke
2017-02-09 19:32 ` David Craven
2017-02-10 0:32 ` Mark H Weaver
2017-02-10 12:29 ` David Craven
2017-02-09 19:04 ` [PATCH 2/5] gnu: Add seabios David Craven
2017-02-09 23:55 ` Marius Bakke
2017-02-09 19:04 ` [PATCH 3/5] gnu: Add ovmf David Craven
2017-02-10 0:15 ` Marius Bakke
2017-02-10 13:18 ` David Craven
2017-02-09 19:04 ` [PATCH 4/5] gnu: Add syslinux David Craven
2017-02-10 1:18 ` Marius Bakke [this message]
2017-02-10 14:24 ` David Craven
2017-02-09 19:04 ` [PATCH 5/5] gnu: Move (gnu packages grub) and (gnu packages u-boot) ... to (gnu packages bootloaders) David Craven
2017-02-09 19:07 ` [PATCH] enable debug symbols David Craven
2017-02-09 19:23 ` Marius Bakke
2017-02-09 19:29 ` David Craven
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87d1eqsv1u.fsf@kirby.i-did-not-set--mail-host-address--so-tickle-me \
--to=mbakke@fastmail.com \
--cc=david@craven.ch \
--cc=guix-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.