Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Yann E. MORIN <yann.morin.1998@free.fr>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 2/4] perl-gd: new package
Date: Sat, 19 Jul 2014 21:58:16 +0200	[thread overview]
Message-ID: <20140719195816.GK3593@free.fr> (raw)
In-Reply-To: <1405691019-10397-2-git-send-email-francois.perrad@gadz.org>

Fran?ois, All,

On 2014-07-18 15:43 +0200, Francois Perrad spake thusly:
[--SNIP--]
> diff --git a/package/perl-gd/Config.in b/package/perl-gd/Config.in
> new file mode 100644
> index 0000000..7c85cfc
> --- /dev/null
> +++ b/package/perl-gd/Config.in
> @@ -0,0 +1,14 @@
> +config BR2_PACKAGE_PERL_GD
> +	bool "perl-gd"
> +	depends on !BR2_PREFER_STATIC_LIB
> +	select BR2_PACKAGE_ZLIB
> +	select BR2_PACKAGE_LIBPNG
> +	select BR2_PACKAGE_FREETYPE
> +	select BR2_PACKAGE_GD

It looks like there are still issues with search paths, which include
path to the host system libraries:
    http://autobuild.buildroot.org/results/336/33633a683227ebce620cb4b4561cfe7d7cbf4ba8/build-end.log

Extract of a failed build log:

    LD_RUN_PATH="/scratch/peko/host/usr/arm-buildroot-linux-uclibcgnueabi/sysroot/usr/lib"
    /scratch/peko/host/usr/bin/arm-buildroot-linux-uclibcgnueabi-gcc
    -shared  GD.o  -o blib/arch/auto/GD/GD.so       \
    -L/scratch/peko/host/usr/arm-buildroot-linux-uclibcgnueabi/sysroot/usr/lib
    -L/scratch/peko/host/usr/arm-buildroot-linux-uclibcgnueabi/sysroot/usr/lib
    -L/scratch/peko/host/usr/arm-buildroot-linux-uclibcgnueabi/sysroot/usr/lib
    -L/usr/lib -L/usr/lib -lXpm -lX11 -ljpeg -lfontconfig -lfreetype -lpng12
    -lz -lm -lgd

    /usr/lib/libXpm.so: file not recognized: File format not recognized

Notice how it is looking for libs in -L/usr/lib -L/usr/lib.

Since xlib_libXpm and xlib_libX11, as well as fontconfig and jpeg are
not enabled in this build, and that we do not package libpng-1.2, it
will try to link with all these libs: -lXpm -lX11 -ljpeg -lfontconfig
-lpng12 using the host ones.

Maybe we should explicitly idsable those deps if the corresponding
packages are not enabled, no?

I'll be looking at it, but if I can't find anything obvious, I'll let
you, Fran?ois, look into that.

Well, I already found that Makefile.PL has hardcoded paths to the host
system, but they all seem conditional to something; I'll see if we can
trigger (or not trigger) those conditions.

Regards,
Yann E. MORIN.

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 223 225 172 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'

  parent reply	other threads:[~2014-07-19 19:58 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-07-18 13:43 [Buildroot] [PATCH 1/4] support/scripts/scancpan: automatically populates LICENSE_FILES Francois Perrad
2014-07-18 13:43 ` [Buildroot] [PATCH 2/4] perl-gd: new package Francois Perrad
2014-07-18 17:51   ` Thomas Petazzoni
2014-07-19 19:58   ` Yann E. MORIN [this message]
2014-07-19 23:16     ` Yann E. MORIN
2014-07-20  6:00       ` François Perrad
2014-07-20 14:10         ` Yann E. MORIN
2014-07-18 13:43 ` [Buildroot] [PATCH 3/4] perl-gdtextutil: " Francois Perrad
2014-07-18 13:43 ` [Buildroot] [PATCH 4/4] perl-gdgraph: " Francois Perrad
2014-07-19 17:10   ` Thomas Petazzoni
2014-07-19 20:28     ` François Perrad
2014-07-19 22:35       ` Yann E. MORIN
2014-07-19 22:44         ` Bernd Kuhls
2014-07-20  7:52         ` François Perrad
2014-07-29 21:29         ` Gustavo Zacarias
2014-07-30 18:27           ` [Buildroot] [UNSURE]Re: " François Perrad
2014-07-18 17:47 ` [Buildroot] [PATCH 1/4] support/scripts/scancpan: automatically populates LICENSE_FILES Thomas Petazzoni

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=20140719195816.GK3593@free.fr \
    --to=yann.morin.1998@free.fr \
    --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