rendered paste body#
# Copyright (c) 2007-2008 rPath, Inc.
# This file is distributed under the terms of the MIT License.
# A copy is available at http://www.rpath.com/permanent/mit-license.html
#
class PINEntry(AutoPackageRecipe):
name = 'pinentry'
version = '0.7.2'
buildRequires = [ 'atk:devel', 'cairo:devel', 'expat:devel',
'fontconfig:devel', 'freetype:devel', 'glib:devel', 'gtk:devel',
'install-info:runtime', 'libcap:devel', 'libX11:devel',
'libXrender:devel', 'libpng:devel', 'libxcb:devel', 'ncurses:devel',
'pango:devel', 'pixman:devel', 'pkgconfig:devel', 'xcb-util:devel',
'zlib:devel' ]
def unpack(r):
# FIXME: enable key verification
r.addArchive('ftp://ftp.gnupg.org/gcrypt/%(name)s/') #, keyid='57548DCD')
def configure(r):
# Ensure minimal deps--specifically, no X deps.
r.Configure('--disable-pinentry-qt')
[elake@ronin pinentry]$ cvc cook pinentry.recipe
+ Loaded PackageRecipe from package:recipe=/conary.rpath.com@rpl:devel//2-qa/1-1-0.1
+ Loaded BuildPackageRecipe from buildpackage:recipe=/conary.rpath.com@rpl:devel//2-qa/1-2.2-1
+ Loaded CPackageRecipe from cpackage:recipe=/conary.rpath.com@rpl:devel//2-qa/1-2-0.1
+ Loaded AutoPackageRecipe from autopackage:recipe=/conary.rpath.com@rpl:devel//2-qa/1-1-0.1
+ Methods called:
AutoPackageRecipe.setup
PINEntry.unpack
PINEntry.configure
AutoPackageRecipe.make
AutoPackageRecipe.makeinstall
AutoPackageRecipe.policy
+ Building pinentry=conary.rpath.com@rpl:2-qa[]
+ Cleaning your old build tree
+ found pinentry-0.7.2.tar.gz in repository
+ cd '/home/elake/conary/builds/pinentry/pinentry-0.7.2/'; CLASSPATH="" CFLAGS="-O2 -march=i686 -g -D_FORTIFY_SOURCE=2 -fstack-protector" CXXFLAGS="-O2 -march=i686 -g -D_FORTIFY_SOURCE=2 -fstack-protector " CPPFLAGS="" LDFLAGS="-g -O1 " CC=gcc CXX=g++ ./configure --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/usr/com --mandir=/usr/share/man --infodir=/usr/share/info --disable-pinentry-qt
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking for a BSD-compatible install... /usr/bin/install -c
checking for ranlib... ranlib
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking whether ln -s works... yes
checking for windres... :
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for string.h... (cached) yes
checking for unistd.h... (cached) yes
checking langinfo.h usability... yes
checking langinfo.h presence... yes
checking for langinfo.h... yes
checking termio.h usability... yes
checking termio.h presence... yes
checking for termio.h... yes
checking locale.h usability... yes
checking locale.h presence... yes
checking for locale.h... yes
checking for seteuid... yes
checking for stpcpy... yes
checking for mmap... yes
checking for mlock... yes
checking whether mlock is broken... no
checking for byte typedef... no
checking for ulong typedef... yes
checking for setcap... :
checking for cap_set_proc in -lcap... yes
checking for initscr in -lncurses... yes
checking for ncurses include dir... /usr/include/ncurses
checking for glib-config... no
checking for GLIB - version >= 1.2.0... no
*** The glib-config script installed by GLIB could not be found
*** If GLIB was installed in PREFIX, make sure PREFIX/bin is in
*** your path, or set the GLIB_CONFIG environment variable to the
*** full path to glib-config.
checking for ld used by GCC... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for shared library run path origin... /bin/sh: ./config.rpath: No such file or directory
done
checking for iconv... yes
checking for iconv declaration...
extern size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
checking for pkg-config... yes
checking for gtk+-2... yes
checking gtk+-2 version >= 2.4.0... 2.12.8
configure: creating ./config.status
config.status: creating assuan/Makefile
config.status: creating secmem/Makefile
config.status: creating pinentry/Makefile
config.status: creating curses/Makefile
config.status: creating gtk/Makefile
config.status: creating gtk+-2/Makefile
config.status: creating qt/Makefile
config.status: creating w32/Makefile
config.status: creating doc/Makefile
config.status: creating Makefile
config.status: creating config.h
config.status: executing depfiles commands
configure:
Pinentry v0.7.2 has been configured as follows:
Curses Pinentry: yes
GTK+ Pinentry: no
GTK+-2 Pinentry: yes
Qt Pinentry: no
W32 Pinentry: no
Fallback to Curses: yes
Default Pinentry: pinentry-gtk-2
+ cd '/home/elake/conary/builds/pinentry/pinentry-0.7.2/'; CFLAGS="-O2 -march=i686 -g -D_FORTIFY_SOURCE=2 -fstack-protector" CXXFLAGS="-O2 -march=i686 -g -D_FORTIFY_SOURCE=2 -fstack-protector " CPPFLAGS="" CLASSPATH="" LDFLAGS="-g -O1 " CC=gcc CXX=g++ make
make all-recursive
make[1]: Entering directory `/home/elake/conary/builds/pinentry/pinentry-0.7.2'
Making all in assuan
make[2]: Entering directory `/home/elake/conary/builds/pinentry/pinentry-0.7.2/assuan'
make all-am
make[3]: Entering directory `/home/elake/conary/builds/pinentry/pinentry-0.7.2/assuan'
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../include -Wall -O2 -march=i686 -g -D_FORTIFY_SOURCE=2 -fstack-protector -Wall -Wcast-align -Wshadow -Wstrict-prototypes -MT assuan-util.o -MD -MP -MF ".deps/assuan-util.Tpo" -c -o assuan-util.o assuan-util.c; \
then mv -f ".deps/assuan-util.Tpo" ".deps/assuan-util.Po"; else rm -f ".deps/assuan-util.Tpo"; exit 1; fi
assuan-util.c: In function ‘_assuan_log_print_buffer’:
assuan-util.c:147: warning: ignoring return value of ‘fwrite’, declared with attribute warn_unused_result
assuan-util.c: In function ‘_assuan_log_sanitized_string’:
assuan-util.c:164: warning: pointer targets in initialization differ in signedness
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../include -Wall -O2 -march=i686 -g -D_FORTIFY_SOURCE=2 -fstack-protector -Wall -Wcast-align -Wshadow -Wstrict-prototypes -MT assuan-errors.o -MD -MP -MF ".deps/assuan-errors.Tpo" -c -o assuan-errors.o assuan-errors.c; \
then mv -f ".deps/assuan-errors.Tpo" ".deps/assuan-errors.Po"; else rm -f ".deps/assuan-errors.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../include -Wall -O2 -march=i686 -g -D_FORTIFY_SOURCE=2 -fstack-protector -Wall -Wcast-align -Wshadow -Wstrict-prototypes -MT assuan-buffer.o -MD -MP -MF ".deps/assuan-buffer.Tpo" -c -o assuan-buffer.o assuan-buffer.c; \
then mv -f ".deps/assuan-buffer.Tpo" ".deps/assuan-buffer.Po"; else rm -f ".deps/assuan-buffer.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../include -Wall -O2 -march=i686 -g -D_FORTIFY_SOURCE=2 -fstack-protector -Wall -Wcast-align -Wshadow -Wstrict-prototypes -MT assuan-handler.o -MD -MP -MF ".deps/assuan-handler.Tpo" -c -o assuan-handler.o assuan-handler.c; \
then mv -f ".deps/assuan-handler.Tpo" ".deps/assuan-handler.Po"; else rm -f ".deps/assuan-handler.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../include -Wall -O2 -march=i686 -g -D_FORTIFY_SOURCE=2 -fstack-protector -Wall -Wcast-align -Wshadow -Wstrict-prototypes -MT assuan-listen.o -MD -MP -MF ".deps/assuan-listen.Tpo" -c -o assuan-listen.o assuan-listen.c; \
then mv -f ".deps/assuan-listen.Tpo" ".deps/assuan-listen.Po"; else rm -f ".deps/assuan-listen.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../include -Wall -O2 -march=i686 -g -D_FORTIFY_SOURCE=2 -fstack-protector -Wall -Wcast-align -Wshadow -Wstrict-prototypes -MT assuan-pipe-server.o -MD -MP -MF ".deps/assuan-pipe-server.Tpo" -c -o assuan-pipe-server.o assuan-pipe-server.c; \
then mv -f ".deps/assuan-pipe-server.Tpo" ".deps/assuan-pipe-server.Po"; else rm -f ".deps/assuan-pipe-server.Tpo"; exit 1; fi
rm -f libassuan.a
ar cru libassuan.a assuan-util.o assuan-errors.o assuan-buffer.o assuan-handler.o assuan-listen.o assuan-pipe-server.o
ranlib libassuan.a
make[3]: Leaving directory `/home/elake/conary/builds/pinentry/pinentry-0.7.2/assuan'
make[2]: Leaving directory `/home/elake/conary/builds/pinentry/pinentry-0.7.2/assuan'
Making all in secmem
make[2]: Entering directory `/home/elake/conary/builds/pinentry/pinentry-0.7.2/secmem'
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -Wall -O2 -march=i686 -g -D_FORTIFY_SOURCE=2 -fstack-protector -Wall -Wcast-align -Wshadow -Wstrict-prototypes -MT secmem.o -MD -MP -MF ".deps/secmem.Tpo" -c -o secmem.o secmem.c; \
then mv -f ".deps/secmem.Tpo" ".deps/secmem.Po"; else rm -f ".deps/secmem.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -Wall -O2 -march=i686 -g -D_FORTIFY_SOURCE=2 -fstack-protector -Wall -Wcast-align -Wshadow -Wstrict-prototypes -MT util.o -MD -MP -MF ".deps/util.Tpo" -c -o util.o util.c; \
then mv -f ".deps/util.Tpo" ".deps/util.Po"; else rm -f ".deps/util.Tpo"; exit 1; fi
rm -f libsecmem.a
ar cru libsecmem.a secmem.o util.o
ranlib libsecmem.a
make[2]: Leaving directory `/home/elake/conary/builds/pinentry/pinentry-0.7.2/secmem'
Making all in pinentry
make[2]: Entering directory `/home/elake/conary/builds/pinentry/pinentry-0.7.2/pinentry'
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../assuan -I../secmem -Wall -O2 -march=i686 -g -D_FORTIFY_SOURCE=2 -fstack-protector -Wall -Wcast-align -Wshadow -Wstrict-prototypes -MT pinentry.o -MD -MP -MF ".deps/pinentry.Tpo" -c -o pinentry.o pinentry.c; \
then mv -f ".deps/pinentry.Tpo" ".deps/pinentry.Po"; else rm -f ".deps/pinentry.Tpo"; exit 1; fi
pinentry.c: In function ‘pinentry_utf8_to_local’:
pinentry.c:121: warning: passing argument 2 of ‘iconv’ from incompatible pointer type
pinentry.c: In function ‘pinentry_local_to_utf8’:
pinentry.c:187: warning: passing argument 2 of ‘iconv’ from incompatible pointer type
pinentry.c: In function ‘cmd_setdesc’:
pinentry.c:488: warning: pointer targets in passing argument 2 of ‘strcpy_escaped’ differ in signedness
pinentry.c: In function ‘cmd_setprompt’:
pinentry.c:505: warning: pointer targets in passing argument 2 of ‘strcpy_escaped’ differ in signedness
pinentry.c: In function ‘cmd_seterror’:
pinentry.c:522: warning: pointer targets in passing argument 2 of ‘strcpy_escaped’ differ in signedness
pinentry.c: In function ‘cmd_setok’:
pinentry.c:539: warning: pointer targets in passing argument 2 of ‘strcpy_escaped’ differ in signedness
pinentry.c: In function ‘cmd_setcancel’:
pinentry.c:556: warning: pointer targets in passing argument 2 of ‘strcpy_escaped’ differ in signedness
rm -f libpinentry.a
ar cru libpinentry.a pinentry.o
ranlib libpinentry.a
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../assuan -I../secmem -Wall -O2 -march=i686 -g -D_FORTIFY_SOURCE=2 -fstack-protector -Wall -Wcast-align -Wshadow -Wstrict-prototypes -MT pinentry-curses.o -MD -MP -MF ".deps/pinentry-curses.Tpo" -c -o pinentry-curses.o pinentry-curses.c; \
then mv -f ".deps/pinentry-curses.Tpo" ".deps/pinentry-curses.Po"; else rm -f ".deps/pinentry-curses.Tpo"; exit 1; fi
pinentry-curses.c: In function ‘dialog_run’:
pinentry-curses.c:564: warning: passing argument 1 of ‘newterm’ discards qualifiers from pointer target type
rm -f libpinentry-curses.a
ar cru libpinentry-curses.a pinentry-curses.o
ranlib libpinentry-curses.a
make[2]: Leaving directory `/home/elake/conary/builds/pinentry/pinentry-0.7.2/pinentry'
Making all in curses
make[2]: Entering directory `/home/elake/conary/builds/pinentry/pinentry-0.7.2/curses'
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/ncurses -I../pinentry -Wall -O2 -march=i686 -g -D_FORTIFY_SOURCE=2 -fstack-protector -Wall -Wcast-align -Wshadow -Wstrict-prototypes -MT pinentry-curses.o -MD -MP -MF ".deps/pinentry-curses.Tpo" -c -o pinentry-curses.o pinentry-curses.c; \
then mv -f ".deps/pinentry-curses.Tpo" ".deps/pinentry-curses.Po"; else rm -f ".deps/pinentry-curses.Tpo"; exit 1; fi
gcc -O2 -march=i686 -g -D_FORTIFY_SOURCE=2 -fstack-protector -Wall -Wcast-align -Wshadow -Wstrict-prototypes -g -O1 -o pinentry-curses pinentry-curses.o ../pinentry/libpinentry.a ../pinentry/libpinentry-curses.a ../assuan/libassuan.a ../secmem/libsecmem.a -lcap -lncurses
make[2]: Leaving directory `/home/elake/conary/builds/pinentry/pinentry-0.7.2/curses'
Making all in gtk+-2
make[2]: Entering directory `/home/elake/conary/builds/pinentry/pinentry-0.7.2/gtk+-2'
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/pixman-1 -I/usr/include/ncurses -I../secmem -I../pinentry -Wall -O2 -march=i686 -g -D_FORTIFY_SOURCE=2 -fstack-protector -Wall -Wcast-align -Wshadow -Wstrict-prototypes -MT pinentry-gtk-2.o -MD -MP -MF ".deps/pinentry-gtk-2.Tpo" -c -o pinentry-gtk-2.o pinentry-gtk-2.c; \
then mv -f ".deps/pinentry-gtk-2.Tpo" ".deps/pinentry-gtk-2.Po"; else rm -f ".deps/pinentry-gtk-2.Tpo"; exit 1; fi
In file included from /usr/include/gtk-2.0/gtk/gtkactiongroup.h:34,
from /usr/include/gtk-2.0/gtk/gtk.h:38,
from pinentry-gtk-2.c:27:
/usr/include/gtk-2.0/gtk/gtkitemfactory.h:50: warning: function declaration isn’t a prototype
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/pixman-1 -I/usr/include/ncurses -I../secmem -I../pinentry -Wall -O2 -march=i686 -g -D_FORTIFY_SOURCE=2 -fstack-protector -Wall -Wcast-align -Wshadow -Wstrict-prototypes -MT gtksecentry.o -MD -MP -MF ".deps/gtksecentry.Tpo" -c -o gtksecentry.o gtksecentry.c; \
then mv -f ".deps/gtksecentry.Tpo" ".deps/gtksecentry.Po"; else rm -f ".deps/gtksecentry.Tpo"; exit 1; fi
In file included from /usr/include/gtk-2.0/gtk/gtkactiongroup.h:34,
from /usr/include/gtk-2.0/gtk/gtk.h:38,
from gtksecentry.c:40:
/usr/include/gtk-2.0/gtk/gtkitemfactory.h:50: warning: function declaration isn’t a prototype
gtksecentry.c:274: error: conflicting types for ‘g_malloc’
/usr/include/glib-2.0/glib/gmem.h:47: error: previous declaration of ‘g_malloc’ was here
gtksecentry.c:292: error: conflicting types for ‘g_malloc0’
/usr/include/glib-2.0/glib/gmem.h:48: error: previous declaration of ‘g_malloc0’ was here
gtksecentry.c:312: error: conflicting types for ‘g_realloc’
/usr/include/glib-2.0/glib/gmem.h:50: error: previous declaration of ‘g_realloc’ was here
gtksecentry.c: In function ‘get_cursor_time’:
gtksecentry.c:3213: warning: declaration of ‘time’ shadows a global declaration
/usr/include/time.h:187: warning: shadowed declaration is here
make[2]: *** [gtksecentry.o] Error 1
make[2]: Leaving directory `/home/elake/conary/builds/pinentry/pinentry-0.7.2/gtk+-2'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/elake/conary/builds/pinentry/pinentry-0.7.2'
make: *** [all] Error 2
error: Shell command "cd '/home/elake/conary/builds/pinentry/pinentry-0.7.2/'; CFLAGS="-O2 -march=i686 -g -D_FORTIFY_SOURCE=2 -fstack-protector" CXXFLAGS="-O2 -march=i686 -g -D_FORTIFY_SOURCE=2 -fstack-protector " CPPFLAGS="" CLASSPATH="" LDFLAGS="-g -O1 " CC=gcc CXX=g++ make " exited with exit code 2
/usr/share/conary/baseclasses/autopackage.recipe:25: RuntimeError: Shell command "cd '/home/elake/conary/builds/pinentry/pinentry-0.7.2/'; CFLAGS="-O2 -march=i686 -g -D_FORTIFY_SOURCE=2 -fstack-protector" CXXFLAGS="-O2 -march=i686 -g -D_FORTIFY_SOURCE=2 -fstack-protector " CPPFLAGS="" CLASSPATH="" LDFLAGS="-g -O1 " CC=gcc CXX=g++ make " exited with exit code 2