Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Luca Ceresoli <luca@lucaceresoli.net>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 1/2] vlc: new package
Date: Mon, 27 Feb 2012 10:16:19 +0100	[thread overview]
Message-ID: <4F4B49E3.8000606@lucaceresoli.net> (raw)
In-Reply-To: <1330256732-26483-1-git-send-email-ismael.luceno@gmail.com>

Hi Ismael,
thanks for you patch submission.

Ismael Luceno wrote:
> Signed-off-by: Ismael Luceno<ismael.luceno@gmail.com>
> ---
>   package/multimedia/Config.in                  |    1 +
>   package/multimedia/vlc/Config.in              |   14 ++
>   package/multimedia/vlc/vlc-uclibc-fixes.patch |   20 +++
>   package/multimedia/vlc/vlc.mk                 |  204 +++++++++++++++++++++++++
>   4 files changed, 239 insertions(+), 0 deletions(-)
>   create mode 100644 package/multimedia/vlc/Config.in
>   create mode 100644 package/multimedia/vlc/vlc-uclibc-fixes.patch
>   create mode 100644 package/multimedia/vlc/vlc.mk
>
> diff --git a/package/multimedia/Config.in b/package/multimedia/Config.in
> index a05d1d9..fc20d74 100644
> --- a/package/multimedia/Config.in
> +++ b/package/multimedia/Config.in
> @@ -44,6 +44,7 @@ source "package/multimedia/speex/Config.in"
>   source "package/multimedia/tidsp-binaries/Config.in"
>   source "package/multimedia/taglib/Config.in"
>   source "package/multimedia/tremor/Config.in"
> +source "package/multimedia/vlc/Config.in"
>   source "package/multimedia/vorbis-tools/Config.in"
>   source "package/multimedia/wavpack/Config.in"
>   endmenu
> diff --git a/package/multimedia/vlc/Config.in b/package/multimedia/vlc/Config.in
> new file mode 100644
> index 0000000..ee8d942
> --- /dev/null
> +++ b/package/multimedia/vlc/Config.in
> @@ -0,0 +1,14 @@
> +config BR2_PACKAGE_VLC
> +	bool "vlc"
> +	help
> +	  VLC

A help text that's equal to the menu text is useless. You should provide 
a short description
(this is usually taken from the project website).

A link to the project homepage is useful as well, see other packages for 
an example.

> +
> +if BR2_PACKAGE_VLC
> +
> +config BR2_PACKAGE_VLC_VLC
> +	bool "Build and install vlc"
> +	default y
> +	help
> +	  This will install the video player.
> +
> +endif
> diff --git a/package/multimedia/vlc/vlc-uclibc-fixes.patch b/package/multimedia/vlc/vlc-uclibc-fixes.patch
> new file mode 100644
> index 0000000..3ce60b3
> --- /dev/null
> +++ b/package/multimedia/vlc/vlc-uclibc-fixes.patch
> @@ -0,0 +1,20 @@
> +diff -u a/src/posix/linux_specific.c b/src/posix/linux_specific.c
> +--- a/src/posix/linux_specific.c	2012-02-08 16:43:30.000000000 -0200
> ++++ b/src/posix/linux_specific.c	2012-02-09 03:51:20.925504594 -0200

It's better to add a few lines at the beginning of patches to clarify 
why it's needed and
the source (e.g. the URL of a website or mailng list where it came from).

> +@@ -74,14 +74,14 @@
> +     return (path != NULL) ? path : strdup (PKGLIBDIR);
> + }
> +
> +-#ifdef __GLIBC__
> ++#if defined(__GLIBC__)&&  !defined(__UCLIBC__)
> + # include<gnu/libc-version.h>
> + # include<stdlib.h>
> + #endif
> +
> + void system_Init (void)
> + {
> +-#ifdef __GLIBC__
> ++#if defined(__GLIBC__)&&  !defined(__UCLIBC__)
> +     const char *glcv = gnu_get_libc_version ();
> +
> +     /* gettext in glibc 2.5-2.7 is not thread-safe. LibVLC keeps crashing,
> diff --git a/package/multimedia/vlc/vlc.mk b/package/multimedia/vlc/vlc.mk
> new file mode 100644
> index 0000000..413dfd4
> --- /dev/null
> +++ b/package/multimedia/vlc/vlc.mk
> @@ -0,0 +1,204 @@
> +#############################################################
> +#
> +# vlc
> +#
> +#############################################################
> +VLC_VERSION = 500c190
> +# VLC_SOURCE = vlc-$(VLC_VERSION).tar.bz2
> +# VLC_SITE = http://download.videolan.org/pub/videolan/vlc/$(VLC_VERSION)
> +VLC_SITE = git://git.videolan.org/vlc.git

Why using a git checkout when there are officially released tarballs? If 
there's
a reason please add a comment explanining it, otherwise use the tarball.

Also, don't submit files with commented lines: if they are not needed, 
remove them.

Luca

  parent reply	other threads:[~2012-02-27  9:16 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-02-26 11:45 [Buildroot] [PATCH 1/2] vlc: new package Ismael Luceno
2012-02-26 11:45 ` [Buildroot] [PATCH 2/2] vlc: Patch to get it compiling with qt-embedded Ismael Luceno
2012-02-27  9:26   ` Luca Ceresoli
2012-02-28 20:49     ` Arnout Vandecappelle
2012-02-27  9:16 ` Luca Ceresoli [this message]
2012-02-27  9:34   ` [Buildroot] [PATCH 1/2] vlc: new package Peter Korsgaard
2012-02-27 13:05 ` Maxime Ripard

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=4F4B49E3.8000606@lucaceresoli.net \
    --to=luca@lucaceresoli.net \
    --cc=buildroot@busybox.net \
    /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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox