Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 275445 - app-crypt/seahorse{,-plugins} doesn't build against gpgme with lfs (large file support)
Summary: app-crypt/seahorse{,-plugins} doesn't build against gpgme with lfs (large fil...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GNOME (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
: 281883 287669 (view as bug list)
Depends on:
Blocks: 277890
  Show dependency tree
 
Reported: 2009-06-25 23:43 UTC by Wilken Haase
Modified: 2009-10-05 13:35 UTC (History)
6 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
LFS patch (seahorse-plugins-2.26.2-gpgme-lfs.patch,1.04 KB, patch)
2009-08-23 11:45 UTC, Thierry Massenaux
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Wilken Haase 2009-06-25 23:43:36 UTC
Seahorse 2.26.2 doesn't compile. Since gpgme automatically enables lfs support these days this should be squashed out.

Reproducible: Always

Steps to Reproduce:
1. compile current gpgme
2. compile current seahorse
3. see compiling failing

Actual Results:  
Compiling fails with:

libtool: compile:  i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I.. -I.. -I../libegg -I../libcryptui -I../libseahorse -D_REENTRANT -DORBIT2=1 -pthread -I/usr/include/libglade-2.0 -I/usr/include/gtk-2.0 -I/usr/include/libxml2 -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/pixman-1 -I/usr/include/freetype2 -I/usr/include/directfb -I/usr/include/libpng12 -I/usr/include/gconf/2 -I/usr/include/orbit-2.0 -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -I/usr/include/gpgme -I/usr/include/libsoup-2.4 -I/usr/include/libxml2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/gnome-keyring-1 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -D_REENTRANT -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -D_REENTRANT -I/usr/include/gtk-2.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -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/pixman-1 -I/usr/include/freetype2 -I/usr/include/directfb -I/usr/include/libpng12 -D_REENTRANT -I/usr/include/gp11 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/gcr -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/pixman-1 -I/usr/include/freetype2 -I/usr/include/directfb -I/usr/include/libpng12 -DDATA_DIR=\"/usr/share\" -DSEAHORSE_GLADEDIR=\"/usr/share/seahorse/glade/\" -DLOCALEDIR=\"/usr/share/locale\" -DEXECDIR=\"/usr/lib/seahorse/\" -DLDAP_DEPRECATED -DLIBCRYPTUI_API_SUBJECT_TO_CHANGE -DGETTEXT_PACKAGE=\"seahorse\" -march=pentium3 -Os -pipe -MT seahorse-gpg-op.lo -MD -MP -MF .deps/seahorse-gpg-op.Tpo -c seahorse-gpg-op.c  -fPIC -DPIC -o .libs/seahorse-gpg-op.o
In Datei, eingefügt von seahorse-gpg-op.c:23:
/usr/include/gpgme/gpgme.h:80:2: Fehler: #error GPGME was compiled with _FILE_OFFSET_BITS = 64, please see the section "Largefile support (LFS)" in the GPGME manual.
make[2]: *** [seahorse-gpg-op.lo] Fehler 1
make[2]: Leaving directory `/var/tmp/portage/app-crypt/seahorse-2.26.2/work/seahorse-2.26.2/pgp'
make[1]: *** [all-recursive] Fehler 1
make[1]: Leaving directory `/var/tmp/portage/app-crypt/seahorse-2.26.2/work/seahorse-2.26.2'
make: *** [all] Fehler 2
 *
 * ERROR: app-crypt/seahorse-2.26.2 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 1345:  Called gnome2_src_compile
 *             environment, line 1099:  Called die
 * The specific snippet of code:
 *       emake || die "compile failure"
 *  The die message:
 *   compile failure
 *
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/app-crypt/seahorse-2.26.2/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/app-crypt/seahorse-2.26.2/temp/environment'.
 *

>>> Failed to emerge app-crypt/seahorse-2.26.2, Log file:

>>>  '/var/tmp/portage/app-crypt/seahorse-2.26.2/temp/build.log'

 * Messages for package app-crypt/seahorse-2.26.2:

 *
 * ERROR: app-crypt/seahorse-2.26.2 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 1345:  Called gnome2_src_compile
 *             environment, line 1099:  Called die
 * The specific snippet of code:
 *       emake || die "compile failure"
 *  The die message:
 *   compile failure
 *
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/app-crypt/seahorse-2.26.2/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/app-crypt/seahorse-2.26.2/temp/environment'.
 *


Expected Results:  
Seahorse should compile cleanly

Outut of emerge --info goes here:

smt ~ # emerge --info
Portage 2.1.6.13 (default/linux/x86/2008.0/desktop, gcc-4.3.3, glibc-2.10.1-r0, 2.6.30-rc7-git2 i686)
=================================================================
System uname: Linux-2.6.30-rc7-git2-i686-Mobile_Intel-R-_Celeron-TM-_CPU_733MHz-with-gentoo-2.0.1
Timestamp of tree: Thu, 25 Jun 2009 19:00:01 +0000
app-shells/bash:     4.0_p24
dev-java/java-config: 1.3.7-r1, 2.1.8-r1
dev-lang/python:     2.6.2-r1
dev-python/pycrypto: 2.0.1-r8
dev-util/cmake:      2.6.4
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.4.3-r3
sys-apps/sandbox:    2.0
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.4_p6, 1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2, 1.11
sys-devel/binutils:  2.19.1-r1
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.29
ACCEPT_KEYWORDS="x86 ~x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium3 -Os -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=pentium3 -Os -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="buildpkg distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://213.186.33.38/gentoo-distfiles/ http://de-mirror.org/distro/gentoo/ ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/"
LANG="de_DE.utf8"
LC_ALL="de_DE.utf8"
LDFLAGS="-Wl,-O1"
LINGUAS="de en"
MAKEOPTS="-j1"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/layman/x11 /usr/local/portage/layman/nx /usr/local/portage/layman/vdr-devel /usr/local/portage/layman/vdr-testing /usr/local/overlays/own /usr/local/overlays/dang"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="7zip X a52 aac aalib ace acl acpi activefilter addbookmarks adns aften afterimage aim aio alias alsa amazon amr amrnb amrwb animgif ao archive ares asyncns audiofile audioscrobbler authfile autoipd automount autoreplace avahi berkdb bl bluetooth bonjour bookmarks branding bzip2 cairo caps cdda cddb cdio cdparanoia cdr cgraph cli cmdctrl cmdsubmenu consolekit corba cracklib crypt cups curl cutterlimit cutterqueue cuttime daap dbus dc1394 ddepgentry deltimeshiftrec device-mapper directfb disk-partition djbfft djvu dolby-record-switch dolbyinrec dri dts dv dvb dvbcompat dvbplayer dvbsetup dvd dvdarchive dvdchapjump dvdnav dvdr dvdread dvlfriendlyfnames dvlrecscriptaddon dvlvidprefer eap-tls eds emboss enca encode esd evas evo exif expat extrafilters faac faad fam fame fastcgi fbcon ffmpeg fftw file-icons firefox flac flash fltk fontconfig fortran fpx ftp fuse gadu gd gdbm ggi gif glib glibc-omitfp glitz gmp gnome gnutls gphoto2 gpm graphtft graphviz groupwise grp gs gsm gstreamer gtk h264 hal hardlinkcutter hdri hog howl howl-compat httpd iconv icu id3 id3tag ieee1394 ifsession imagemagick imlib insecure-savers ipod iptv isdnlog java jingle joystick jpeg jpeg2k jumpplay kde kde4 keyring krb4 ladspa lame ldap libcaca libgcrypt libnotify libsamplerate libsysfs libv4l2 libvisual libwww liemikuutio lirc lircsettings live livebuffer lm_sensors logrotate lua lzma lzo mad madwifi mainmenuhooks matroska md5sum mdnsresponder-compat meanwhile memcache menu-plugin menuorg midi mikmod mixer mjpeg mmap mmx mng mod modplug mp2 mp3 mp3rtp mpeg mplayer msn mudflap musepack musicbrainz mvl nas nautilus ncurses nemesi network nls no-helper nptl nptlonly nsplugin nut nuv nxclient offensive ogg omega openal opengl openmp opensslcrypt osdmaxitems pam pango pcre pdf perl phonon physfs pinplugin plugins png pnm posix postscript ppds pppd prediction premiereepgfix pth pulseaudio pvr pyste python qpak qq qt3 qt3support qt4 quicktime radio rar rdesktop readline realmedia reflection remoteosd rewrite rrdcgi rrdtool rtc rtsp samba sametime sasl sdl sdl-image sdl-sound seamonkey sensord session settime setup-plugin sftp shaper shout sitemisc skins slang slp sndfile socks5 softosd softquota sortrecords sound soundex sourcecaps speex spell spl sqlite srt sse ssl startup-notification stream submenu subtitles svg svga switchtimer syncearly sysfs syslog t1lib taglib tcpd teletext tga theora threads tiff timercmd timerinfo tivo tools transcode transmitter trash-plugin truetype tslib ttxtsubs tv tv_check tv_combiner tv_pick_cgi twolame unicode upnp usb utempter utils v4l v4l2 validinput vcd vcdinfo vcdx vdr vidix vlm volctrl vorbis vorbis-psy vroot wad wareagleicon wavpack weather webdav wifi win32codecs wmf wxwindows x264 x86 xanim xattr xcb xcomposite xext xforms xine xinetd xml xmlrpc xmp xorg xosd xpm xscreensaver xulrunner xv xvid xvmc yaepg yahoo zephyr zeroconf zlib zvbi" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="evdev keyboard mouse joystick void" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de en" USERLAND="GNU" VIDEO_CARDS="dummy fbdev i810 intel v4l vesa vga"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Gilles Dartiguelongue (RETIRED) gentoo-dev 2009-06-26 08:33:11 UTC
how did you build gpgme with lfs support in the first place ?
Comment 2 Wilken Haase 2009-06-26 12:36:12 UTC
(In reply to comment #1)
> how did you build gpgme with lfs support in the first place ?
> 

I don't think i did something special to gpgme. After a little research i found evidence that lfs support for gpgme is enabled by default on supported systems, see here:

http://pyme.sourceforge.net/doc/gpgme/Largefile-Support-_0028LFS_0029.html

Comment 3 Ignacio Aguilera 2009-06-26 22:24:45 UTC
in /usr/include/gpgme/gpgme.h, line 78, i've replaced:

#if 64

by

#if (_FILE_OFFSET_BITS) == (64)

and now compile. it's ok to do this?
Comment 4 白川間瀬流 2009-06-27 11:02:44 UTC
same error here :'(
Comment 5 白川間瀬流 2009-06-27 11:11:52 UTC
(In reply to comment #4)
> same error here :'(
> 

With GPGME-1.1.8-r1 it works fine
Comment 6 Romain Perier (RETIRED) gentoo-dev 2009-06-27 18:31:15 UTC
(In reply to comment #3)
> in /usr/include/gpgme/gpgme.h, line 78, i've replaced:
> 
> #if 64
> 
> by
> 
> #if (_FILE_OFFSET_BITS) == (64)
> 
> and now compile. it's ok to do this?
> 

Don't touch the header file of gpgme yourself, it's more complicated...
To be clear and speak with simple words, seahorse compiles correctly with gpgme-1.1.8 because it doesn't match _FILE_OFFSET_BITS macro into gpgme.h, this match is only available since 1.2.0 version, and because gpgme-config and seahorse source code don't define this macro, the compilation fails (with 1.2.0).

But _FILE_OFFSET_BITS needs to be defined to 64 on 32 bits system, to be sure that largefile (usually bigger that 2GB) will be handle correctly, otherwises  the behaviour of ftell,fseek (or something else of the same family) can be ramdom or in the worst case disastrous.

I'll discuss about that with my herd (gnome). 
However if another dev has a better idea than mine, feel free to commented out this bug.
Comment 7 Jude Pereira 2009-06-29 13:10:38 UTC
hey, i have the same error, i did what he said to change line 78, compiled it successfully, then re changed it back to the original... so now is this fine or ....
Comment 8 Daniel Gryniewicz (RETIRED) gentoo-dev 2009-07-10 14:03:48 UTC
Modifying the headers might or might not work; seahorse is being build with LFS, just the include orders were wrong, so that the gpgme.h didn't know it.

I've fixed it in portage without a bump.  If you modified the headers, you might want to re-emerge when this hits the tree.
Comment 9 Christian Faulhammer (RETIRED) gentoo-dev 2009-07-22 17:22:01 UTC
I reopen, because the current stable is broken, too and gpgme-1.2.0 is about to go stable.  Can you fix the 2.24 series, please?
Comment 10 Walter Meinl 2009-08-07 07:22:52 UTC
(In reply to comment #9)
> I reopen, because the current stable is broken, too and gpgme-1.2.0 is about to
> go stable.  Can you fix the 2.24 series, please?
> 

...and seahorse-plugins as well, please?
Comment 11 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2009-08-15 16:47:55 UTC
Stabilization of app-crypt/seahorse-2.26.2 will occur in bug #281427.
Comment 12 Gilles Dartiguelongue (RETIRED) gentoo-dev 2009-08-18 11:35:33 UTC
why closing this bug while user actually reported something was missing to mark it fixed...
Comment 13 Gilles Dartiguelongue (RETIRED) gentoo-dev 2009-08-18 11:36:29 UTC
seahorse and seahorse plugins are affected, 2.24 versions fix is not mandatory since it's masked iirc.
Comment 14 Gilles Dartiguelongue (RETIRED) gentoo-dev 2009-08-18 11:36:48 UTC
*** Bug 281883 has been marked as a duplicate of this bug. ***
Comment 15 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2009-08-18 15:00:52 UTC
Comment #8 suggested that this bug is fixed.
Comment 16 nebojsa 2009-08-18 17:12:03 UTC
(In reply to comment #15)
> Comment #8 suggested that this bug is fixed.
> 
It is for seahorse. It is NOT fixed for seahorse-plugins
Comment 17 Thierry Massenaux 2009-08-23 11:45:19 UTC
Created attachment 202016 [details, diff]
LFS patch

This patch seems to fix compile issues with LFS in gpgme.
The original patch can be found here : http://sisyphus.ru/br/srpm/Sisyphus/seahorse-plugins/patches/0
Comment 18 Gilles Dartiguelongue (RETIRED) gentoo-dev 2009-08-31 20:51:36 UTC
Fixed without a bump. Thanks for reporting.
Comment 19 Fabio Erculiani (RETIRED) gentoo-dev 2009-09-04 16:38:32 UTC
Ebuilds are missing "inherit eutils".
Please reopen.
Comment 20 Fabio Erculiani (RETIRED) gentoo-dev 2009-09-04 16:42:41 UTC
Just looked via cvs (thanks to scarabeus for pointing that out), it's all fine now.
Comment 21 Romain Perier (RETIRED) gentoo-dev 2009-09-04 16:54:09 UTC
reopen per comment 19
Comment 22 Romain Perier (RETIRED) gentoo-dev 2009-09-04 17:06:29 UTC
+04 Sep 2009; Romain Perier <mrpouet@gentoo.org>
+  seahorse-plugins-2.26.2.ebuild:
+  Fix missing inheritance from eutils, per bug #275445.

Fixed into the main tree without a bump.
Comment 23 Christian Faulhammer (RETIRED) gentoo-dev 2009-10-05 13:35:34 UTC
*** Bug 287669 has been marked as a duplicate of this bug. ***