ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: Andrey Liakhovets <aoliakh@altlinux.org>
To: devel@lists.altlinux.org
Subject: Re: [devel] GraphicsMagick-1.3.18-alt1: Sisyphus/x86_64 test rebuild failed [7]
Date: Wed, 07 Aug 2013 10:51:14 +0400
Message-ID: <web-1170803846@cgp.dol.ru> (raw)
In-Reply-To: <520179E9.5060201@gmail.com>

On Wed, 07 Aug 2013 01:34:17 +0300 Viacheslav Dubrovskyi wrote:
>Здравствуйте.
>
>Сломалась сборка GraphicsMagick. Подскажите пожалуйста как исправить,
>т.к. не силен в С ?
>
>Спасибо.
>
>05.08.2013 15:31, ALT beekeeper пишет:
>
>> Package: GraphicsMagick-1.3.18-alt1
>> Status: Sisyphus/x86_64 test rebuild failed
 ...
>> LDFLAGS = -L"/usr"/lib -L/usr/lib
 ...
>> /bin/sh ./libtool --tag=CC --mode=compile x86_64-alt-linux-gcc
>-std=gnu99 -DHAVE_CONFIG_H -I. -I./magick -I/usr/include/libxml2
>-pipe -Wall -g -O2
>-DGRAPHICSMAGICK_DOCS_PATH=\"/usr/share/doc/GraphicsMagick-1.3.18/www/index.html\"
>-Wall -pthread -c -o magick/magick_libGraphicsMagick_la-command.lo `test
>-f 'magick/command.c' || echo './'`magick/command.c
>> libtool: compile: x86_64-alt-linux-gcc -std=gnu99 -DHAVE_CONFIG_H -I.
>-I./magick -I/usr/include/libxml2 -pipe -Wall -g -O2
>-DGRAPHICSMAGICK_DOCS_PATH=\"/usr/share/doc/GraphicsMagick-1.3.18/www/index.html\"
>-Wall -pthread -c magick/command.c -o
>magick/magick_libGraphicsMagick_la-command.o
>> magick/command.c: In function 'VersionCommand':
>> magick/command.c:16980:51: error: 'usr' undeclared (first use in this
>function)
>> magick/command.c:16980:51: note: each undeclared identifier is
>reported only once for each function it appears in
>> magick/command.c:16980:51: error: expected ')' before string constant
>> make: *** [magick/magick_libGraphicsMagick_la-command.lo] Error 1
 ...

В чруте за 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 .

Андрей Ляховец


       reply	other threads:[~2013-08-07  6:51 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-08-07  6:51   ` Andrey Liakhovets [this message]
2013-08-07 11:33     ` Viacheslav Dubrovskyi
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=web-1170803846@cgp.dol.ru \
    --to=aoliakh@altlinux.org \
    --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