From: Alex Vong <alexvong1995@gmail.com>
To: KAction@gnu.org
Cc: guix-devel@gnu.org
Subject: Re: [PATCH] NON-WORKING: new package: sent -- simple presentation tool
Date: Mon, 14 Dec 2015 00:07:53 +0800 [thread overview]
Message-ID: <CADrxHD84rOJABnvmhvSVUsYDEo2MCP=tips_o1GAXnMMoW4qEw@mail.gmail.com> (raw)
In-Reply-To: <1449956691-11833-1-git-send-email-KAction@gnu.org>
Hi,
I haven't really look into the source but perhaps the build log has
answered your question :) (or not?)
In the build log, there are three suspicious lines:
CFLAGS = -g -std=c99 -pedantic -Wall -I. -I/usr/include
-I/usr/include/freetype2 -I/usr/X11R6/include -DVERSION="0.2"
-D_XOPEN_SOURCE=600
LDFLAGS = -g -L/usr/lib -lc -lm -L/usr/X11R6/lib -lXft -lfontconfig -lX11 -lpng
CC = gcc
It seems the paths are hard-coded (It is my guess), so it works in
Debian only because of luck. I suppose if the libraries were installed
into `/usr/local', which is permitted by the FHS, then the build
system won't able to find it. I think the way to fix it is to add an
additional phase to patch the build system.
Cheers,
Alex
On 13/12/2015, KAction@gnu.org <KAction@gnu.org> wrote:
> From: Dmitry Bogatov <KAction@gnu.org>
>
> This patch does not work. I did my best during 1.5 hours, but I failed
> to actually build this package.
>
> Here is information I can provide:
>
> - package builds and runs flawlessly on my main Debian system
> - guix build dies on #include <ft2build.h> on
> X11/Xft/Xft.h:39
> - this file (`ft2build.h`) belongs to `freetype` and should
> be propagated with `libxft'.
> - package `st', which also uses `libxft' build find for me.
>
> It would be very kind of anyone to finish my work.
>
> ---
> gnu/packages/suckless.scm | 36 ++++++++++++++++++++++++++++++++++++
> 1 file changed, 36 insertions(+)
>
> diff --git a/gnu/packages/suckless.scm b/gnu/packages/suckless.scm
> index c921f8e..ad23798 100644
> --- a/gnu/packages/suckless.scm
> +++ b/gnu/packages/suckless.scm
> @@ -25,6 +25,7 @@
> #:use-module (gnu packages)
> #:use-module (gnu packages xorg)
> #:use-module (gnu packages fonts)
> + #:use-module (gnu packages image)
> #:use-module (gnu packages pkg-config)
> #:use-module (gnu packages fontutils))
>
> @@ -144,6 +145,41 @@ numbers of user-defined menu items efficiently.")
> "Simple X session lock with trivial feedback on password entry.")
> (license license:x11)))
>
> +(define-public sent
> + (package
> + (name "sent")
> + (version "0.2")
> + (source (origin
> + (method url-fetch)
> + (uri (string-append "http://dl.suckless.org/tools/sent-"
> + version ".tar.gz"))
> + (sha256
> + (base32
> +
> "0xhh752hwaa26k4q6wvrb9jnpbnylss2aw6z11j7l9rav7wn3fak"))))
> + (build-system gnu-build-system)
> + (arguments
> + '(#:tests? #f
> + #:make-flags '("CC=gcc")
> + #:phases
> + (modify-phases %standard-phases
> + (delete 'configure))))
> + (inputs
> + `(("libx11" ,libx11)
> + ("libxft" ,libxft)
> + ("libpng" ,libpng)))
> + (home-page "http://tools.suckless.org/sent/")
> + (synopsis "Simple plain-text presentation tool")
> + (description
> + "sent does not need latex, libreoffice or any other fancy file
> format,
> +it uses plaintext files and png images. Every paragraph represents a slide
> in
> +the presentation.
> +
> +The presentation is displayed in a simple X11 window colored black on
> white
> +for maximum contrast. The content of each slide is automatically scaled to
> fit
> +the window so you don’t have to worry about alignment. Instead you can
> really
> +concentrate on the content.")
> + (license (license:x11-style "file://LICENSE"))))
> +
> (define-public st
> (package
> (name "st")
> --
> I may be not subscribed. Please, keep me in carbon copy.
>
>
>
next prev parent reply other threads:[~2015-12-13 16:07 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-12-12 21:44 [PATCH] NON-WORKING: new package: sent -- simple presentation tool KAction
2015-12-13 16:07 ` Alex Vong [this message]
2015-12-13 16:47 ` Dmitry Bogatov
2015-12-13 18:48 ` Leo Famulari
2015-12-14 11:14 ` Alex Vong
2016-08-13 9:35 ` ng0
2016-08-14 6:52 ` Eric Bavier
2016-08-14 8:04 ` Dmitry Bogatov
2016-08-16 19:26 ` Eric Bavier
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='CADrxHD84rOJABnvmhvSVUsYDEo2MCP=tips_o1GAXnMMoW4qEw@mail.gmail.com' \
--to=alexvong1995@gmail.com \
--cc=KAction@gnu.org \
--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.