all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Danny Milosavljevic <dannym@scratchpost.org>
To: "Echedey López Romero" <citoplasma50@gmail.com>
Cc: guix-devel@gnu.org
Subject: Re: BOA
Date: Mon, 19 Dec 2016 10:25:41 +0100	[thread overview]
Message-ID: <20161219102541.3facba32@scratchpost.org> (raw)
In-Reply-To: <1482075020.3954.6.camel@echedey-500-500ns>

Hi,

On Sun, 18 Dec 2016 15:30:20 +0000
Echedey López Romero <citoplasma50@gmail.com> wrote:

> I would like know when you are going to add this program 

Heh. Well I had some spare time so I tried to package boa 0.94.13. Unfortunately I get a compilation error:

util.c: In function ‘get_commonlog_time’:
util.c:100:39: error: pasting "t" and "->" does not give a valid preprocessing token
         time_offset = TIMEZONE_OFFSET(t);
                                       ^
compat.h:120:30: note: in definition of macro ‘TIMEZONE_OFFSET’
 #define TIMEZONE_OFFSET(foo) foo##->tm_gmtoff
                              ^
make: *** [<builtin>: util.o] Error 1

Would you have time to bring that to the attention of the Boa people?

I don't think foo##->tm_gmtoff makes any sense.

They probably wanted (foo)->tm_gmtoff

The Guix package definition is:

(define-public boa
  (package
    (name "boa")
    (version "0.94.13")
    (source
     (origin
       (method url-fetch)
       (uri (string-append "http://www.boa.org/" name "-" version ".tar.gz"))
       (sha256
        (base32
         "0rkkv3s9bahlw2aa4kz3zfhniz78h9p9f4y9mzr3disrp07ba2z0"))))
    (build-system gnu-build-system)
    (native-inputs
     `(("flex" ,flex)
       ("bison" ,bison)))
    (arguments
     `(#:phases
       (modify-phases %standard-phases
         (add-before 'configure 'chdir
           (lambda _
             (chdir "src")
             #t))
         ;; "configure" has a problem with "CONFIG_SHELL"
         (replace 'configure
           (lambda* (#:key outputs #:allow-other-keys)
             (let ((out (assoc-ref outputs "out")))
               (setenv "CONFIG_SHELL" (which "sh"))
               (zero? (system* "./configure" (string-append "--prefix=" out)))))))))
    (home-page "http://www.boa.org/")
    (synopsis "Extremely tiny webserver")
    (description "This package provides an extremely tiny webserver.")
    (license l:gpl1+)))

Cheers,
   Danny

      reply	other threads:[~2016-12-19  9:25 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-12-18 15:30 BOA Echedey López Romero
2016-12-19  9:25 ` Danny Milosavljevic [this message]

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=20161219102541.3facba32@scratchpost.org \
    --to=dannym@scratchpost.org \
    --cc=citoplasma50@gmail.com \
    --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.