You are not logged in.

#1 2009-01-27 18:34:19

brisbin33
Member
From: boston, ma
Registered: 2008-07-24
Posts: 1,796
Website

[SOLVED]applying a patch with abs... build fails

hi all, i'm trying to apply a patch to abook to allow vcard imports

i installed abs and edited the PKGBUILD like so...

# $Id: PKGBUILD 19120 2008-11-14 23:11:51Z thayer $
# Contributor: damir <damir@archlinux.org>
# Maintainer: Thayer Williams <thayer@archlinux.org>

pkgname=abook
pkgver=0.5.6
pkgrel=2
pkgdesc="A text-based addressbook designed for use with mutt"
url="http://abook.sourceforge.net"
license=('GPL2')
arch=('i686' 'x86_64')
depends=('readline')
source=(http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.gz)
md5sums=('87d25df96864a7c507a4965e6d1da49d')

build() {
  cd ${srcdir}/${pkgname}-${pkgver}
  patch -p1 < ~/Packages/abook_vcard_import.patch || return 1
  ./configure --prefix=/usr || return 1
  make || return 1
  make prefix=${pkgdir}/usr install || return 1
  install -d ${pkgdir}/usr/share || return 1
  mv ${pkgdir}/usr/man ${pkgdir}/usr/share || return 1
}

it looks like the patch is applied successfully but the build fails, here's the output...

==> Validating source files with md5sums...
    abook-0.5.6.tar.gz ... Passed
==> Extracting Sources...
  -> bsdtar -x -f abook-0.5.6.tar.gz
==> Entering fakeroot environment...
==> Starting build()...
patching file filter.c
Hunk #1 succeeded at 45 (offset 1 line).
Hunk #3 succeeded at 1303 (offset -30 lines).
patching file misc.c
Hunk #1 succeeded at 63 with fuzz 1 (offset -14 lines).
patching file misc.h
Hunk #1 succeeded at 6 with fuzz 2 (offset -12 lines).
checking for a BSD-compatible install... /bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether NLS is requested... yes
checking for msgfmt... /usr/bin/msgfmt
checking for gmsgfmt... /usr/bin/msgfmt
checking for xgettext... /usr/bin/xgettext
checking for msgmerge... /usr/bin/msgmerge
checking for style of include used by make... 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 dependency style of gcc... gcc3
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking whether we are using the GNU C Library 2 or newer... yes
checking for ranlib... ranlib
checking for library containing strerror... none required
checking for ANSI C header files... yes
checking for an ANSI C-conforming const... yes
checking for signed... yes
checking for inline... inline
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 off_t... yes
checking for size_t... yes
checking for long long... yes
checking for long double... yes
checking for wchar_t... yes
checking for wint_t... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for intmax_t... yes
checking whether printf() supports POSIX/XSI format strings... yes
checking for working alloca.h... yes
checking for alloca... yes
checking for stdlib.h... (cached) yes
checking for unistd.h... (cached) yes
checking for getpagesize... yes
checking for working mmap... yes
checking whether we are using the GNU C Library 2.1 or newer... yes
checking whether integer division by zero raises SIGFPE... yes
checking for unsigned long long... yes
checking for inttypes.h... yes
checking whether the inttypes.h PRIxNN macros are broken... no
checking for stdint.h... (cached) yes
checking for SIZE_MAX... yes
checking for stdint.h... (cached) yes
checking for CFPreferencesCopyAppValue... no
checking for CFLocaleCopyCurrent... no
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... done
checking for ptrdiff_t... yes
checking argz.h usability... yes
checking argz.h presence... yes
checking for argz.h... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking locale.h usability... yes
checking locale.h presence... yes
checking for locale.h... yes
checking nl_types.h usability... yes
checking nl_types.h presence... yes
checking for nl_types.h... yes
checking malloc.h usability... yes
checking malloc.h presence... yes
checking for malloc.h... yes
checking stddef.h usability... yes
checking stddef.h presence... yes
checking for stddef.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for unistd.h... (cached) yes
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking for asprintf... yes
checking for fwprintf... yes
checking for getcwd... yes
checking for getegid... yes
checking for geteuid... yes
checking for getgid... yes
checking for getuid... yes
checking for mempcpy... yes
checking for munmap... yes
checking for putenv... yes
checking for setenv... yes
checking for setlocale... yes
checking for snprintf... yes
checking for stpcpy... yes
checking for strcasecmp... yes
checking for strdup... yes
checking for strtoul... yes
checking for tsearch... yes
checking for wcslen... yes
checking for __argz_count... yes
checking for __argz_stringify... yes
checking for __argz_next... yes
checking for __fsetlocking... yes
checking whether _snprintf is declared... no
checking whether _snwprintf is declared... no
checking whether feof_unlocked is declared... yes
checking whether fgets_unlocked is declared... no
checking whether getc_unlocked is declared... yes
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 nl_langinfo and CODESET... yes
checking for LC_MESSAGES... yes
checking for bison... bison
checking version of bison... 2.4.1, ok
checking for CFPreferencesCopyAppValue... (cached) no
checking for CFLocaleCopyCurrent... (cached) no
checking whether NLS is requested... yes
checking whether included gettext is requested... no
checking for GNU gettext in libc... yes
checking whether to use NLS... yes
checking where the gettext function comes from... libc
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ANSI C... (cached) none needed
checking dependency style of gcc... (cached) gcc3
checking for library containing strerror... (cached) none required
checking for function prototypes... yes
checking for string.h... (cached) yes
checking for inline... (cached) inline
checking for a BSD-compatible install... /bin/install -c
checking for ANSI C header files... (cached) yes
checking for unistd.h... (cached) yes
checking for locale.h... (cached) yes
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking iconv.h usability... yes
checking iconv.h presence... yes
checking for iconv.h... yes
checking stdarg.h usability... yes
checking stdarg.h presence... yes
checking for stdarg.h... yes
checking for working strcoll... yes
checking for setlocale... (cached) yes
checking wchar.h usability... yes
checking wchar.h presence... yes
checking for wchar.h... yes
checking for mbtowc... yes
checking for wcwidth... yes
checking for mbrtowc... yes
checking for mbsinit... yes
checking whether wcwidth is declared... no
checking for wchar_t... yes
checking for initscr in -lncursesw... yes
checking ncurses.h usability... yes
checking ncurses.h presence... yes
checking for ncurses.h... yes
checking for a readline compatible library... -lreadline
checking readline.h usability... no
checking readline.h presence... no
checking for readline.h... no
checking readline/readline.h usability... yes
checking readline/readline.h presence... yes
checking for readline/readline.h... yes
checking whether readline supports history... yes
checking history.h usability... no
checking history.h presence... no
checking for history.h... no
checking readline/history.h usability... yes
checking readline/history.h presence... yes
checking for readline/history.h... yes
checking for resizeterm... yes
checking for snprintf... (cached) yes
checking for vsnprintf... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating abook.spec
config.status: creating intl/Makefile
config.status: creating po/Makefile.in
config.status: creating config.h
config.status: executing default-1 commands
config.status: creating po/POTFILES
config.status: creating po/Makefile
config.status: executing depfiles commands
make  all-recursive
make[1]: Entering directory `/home/patrick/Packages/abs/abook/src/abook-0.5.6'
Making all in intl
make[2]: Entering directory `/home/patrick/Packages/abs/abook/src/abook-0.5.6/intl'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/patrick/Packages/abs/abook/src/abook-0.5.6/intl'
Making all in po
make[2]: Entering directory `/home/patrick/Packages/abs/abook/src/abook-0.5.6/po'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/patrick/Packages/abs/abook/src/abook-0.5.6/po'
make[2]: Entering directory `/home/patrick/Packages/abs/abook/src/abook-0.5.6'
if gcc -DHAVE_CONFIG_H -I. -I. -I.     -Wall -march=i686 -mtune=generic -O2 -pipe -MT abook.o -MD -MP -MF ".deps/abook.Tpo" -c -o abook.o abook.c; \
        then mv -f ".deps/abook.Tpo" ".deps/abook.Po"; else rm -f ".deps/abook.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I.     -Wall -march=i686 -mtune=generic -O2 -pipe -MT database.o -MD -MP -MF ".deps/database.Tpo" -c -o database.o database.c; \
        then mv -f ".deps/database.Tpo" ".deps/database.Po"; else rm -f ".deps/database.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I.     -Wall -march=i686 -mtune=generic -O2 -pipe -MT filter.o -MD -MP -MF ".deps/filter.Tpo" -c -o filter.o filter.c; \
        then mv -f ".deps/filter.Tpo" ".deps/filter.Po"; else rm -f ".deps/filter.Tpo"; exit 1; fi
filter.c: In function 'vcard_parse_item':
filter.c:1518: warning: implicit declaration of function 'item_create'
filter.c:1518: error: invalid initializer
filter.c:1534: warning: implicit declaration of function 'item_free'
make[2]: *** [filter.o] Error 1
make[2]: Leaving directory `/home/patrick/Packages/abs/abook/src/abook-0.5.6'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/patrick/Packages/abs/abook/src/abook-0.5.6'
make: *** [all] Error 2
==> ERROR: Build Failed.
    Aborting...

any ideas?

thanks

Last edited by brisbin33 (2009-02-03 19:57:09)

Offline

#2 2009-02-03 19:56:59

brisbin33
Member
From: boston, ma
Registered: 2008-07-24
Posts: 1,796
Website

Re: [SOLVED]applying a patch with abs... build fails

oh well, no takers

solved it meself by grabbing the latest abook dev source and modifying my abs PKGBUILD to use that instead

haven't tried vcard importing yet but this much is [SOLVED]

Offline

Board footer

Powered by FluxBB