ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: Viacheslav Dubrovskyi <dubrsl@gmail.com>
To: ALT Linux Team development discussions <devel@lists.altlinux.org>
Subject: Re: [devel] GraphicsMagick-1.3.18-alt1: Sisyphus/x86_64 test rebuild failed [7]
Date: Wed, 07 Aug 2013 14:33:12 +0300
Message-ID: <52023078.2040302@gmail.com> (raw)
In-Reply-To: <web-1170803846@cgp.dol.ru>

07.08.2013 09:51, Andrey Liakhovets wrote:
> В чруте за 20130423 было так:
> -----------------------------
> $ pkg-config freetype2 --variable exec_prefix
> /usr
> из libfreetype-devel-2.4.11-alt1.1 (/usr/lib/pkgconfig/freetype2.pc)
>
> А сейчас стало так:
> -------------------
> $ pkg-config freetype2 --variable exec_prefix
> "/usr"
> из libfreetype-devel-2.4.12-alt1 (/usr/lib/pkgconfig/freetype2.pc)
>
> $ diff -Nau {g,G}/chroot/usr/lib/pkgconfig/freetype2.pc
> --- g/chroot/usr/lib/pkgconfig/freetype2.pc 2013-03-19 18:56:06.000000000 +0400
> +++ G/chroot/usr/lib/pkgconfig/freetype2.pc 2013-06-15 20:31:20.000000000 +0400
> @@ -1,11 +1,11 @@
> -prefix=/usr
> -exec_prefix=/usr
> -libdir=/usr/lib
> -includedir=/usr/include
> +prefix="/usr"
> +exec_prefix="/usr"
> +libdir="/usr/lib"
> +includedir="/usr/include"
>   
>   Name: FreeType 2
>   Description: A free, high-quality, and portable font engine.
> -Version: 16.0.10
> +Version: 16.1.10
>   Requires:
>   Libs: -lfreetype
>   Libs.private: -lz
>
> Дальше получаем:
> ----------------
> $ /usr/bin/freetype-config --exec-prefix
> "/usr"
>
> $ grep -r freetype_exec_prefix .
> ./configure: freetype_exec_prefix=`${freetype_config} --exec-prefix`
> ./configure: LDFLAGS="$LDFLAGS -L${freetype_exec_prefix}/lib"
> ./configure.ac: freetype_exec_prefix=`${freetype_config} --exec-prefix`
> ./configure.ac: LDFLAGS="$LDFLAGS -L${freetype_exec_prefix}/lib"
>
> $ grep -r GM_BUILD_LDFLAGS .
> ./config.status:D["GM_BUILD_LDFLAGS"]=" \"-L\"/usr\"/lib -L/usr/lib\""
> ./config.log:#define GM_BUILD_LDFLAGS "-L"/usr"/lib -L/usr/lib"
> ./configure:#define GM_BUILD_LDFLAGS "${LDFLAGS}"
> ./magick/magick_config.h:#define GM_BUILD_LDFLAGS "-L"/usr"/lib -L/usr/lib"
> ./magick/magick_config.h.in:#undef GM_BUILD_LDFLAGS
> ./magick/command.c:#if defined(GM_BUILD_LDFLAGS)
> ./magick/command.c: (void) fprintf(stdout," LDFLAGS = %.1024s\n", GM_BUILD_LDFLAGS);
> ./magick/command.c:#endif /* defined(GM_BUILD_LDFLAGS) */
> ./configure.ac:AC_DEFINE_UNQUOTED(GM_BUILD_LDFLAGS,"${LDFLAGS}",[LDFLAGS used for linking])
>
> С дополнительными " везде всё хорошо (вроде бы), кроме magick/command.c,
> где получаем внутри GM_BUILD_LDFLAGS вместо одной строки - деление
> строки на неизвестную переменную usr и т.д.:)
>
> Не знаю, как правильно исправлять.
> По-хорошему, в C с такими #define надо бы поаккуратнее.
> Но по-быстрому можно поправить в /usr/lib/pkgconfig/freetype2.pc .
Спасибо большое! Никогда бы сам не раскопал.

Теперь такой вопрос: Это бага в freetype2?

-- 
WBR,
Viacheslav Dubrovskyi



  reply	other threads:[~2013-08-07 11:33 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-08-07  6:51   ` Andrey Liakhovets
2013-08-07 11:33     ` Viacheslav Dubrovskyi [this message]
2013-08-07 11:37     ` Viacheslav Dubrovskyi

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=52023078.2040302@gmail.com \
    --to=dubrsl@gmail.com \
    --cc=devel@lists.altlinux.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

ALT Linux Team development discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \
		devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
	public-inbox-index devel

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.devel


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git