Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 280048 - [patch] app-backup/bacula-2.4.1 patch for python2.6
Summary: [patch] app-backup/bacula-2.4.1 patch for python2.6
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Wolfram Schlich (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-08-02 14:12 UTC by Serhij S. Stasyuk
Modified: 2009-09-09 07:45 UTC (History)
2 users (show)

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


Attachments
files/2.4.1/2.4.1-python2.6.patch (2.4.1-python2.6.patch,543 bytes, patch)
2009-08-02 14:15 UTC, Serhij S. Stasyuk
Details | Diff
bacula-2.4.1-r1.ebuild.patch (bacula-2.4.1-r1.ebuild.patch,376 bytes, patch)
2009-08-02 14:18 UTC, Serhij S. Stasyuk
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Serhij S. Stasyuk 2009-08-02 14:12:48 UTC
bacula is not compilable if only python 2.6 is installed in system.
I've checked for bacula-2.4.1-r1, but I'm sure the same is for bacula-2.4.4.
Here will be 2 trivival patches - one for configure and one for ebuild to apply first patch.
Comment 1 Serhij S. Stasyuk 2009-08-02 14:15:36 UTC
Created attachment 199922 [details, diff]
files/2.4.1/2.4.1-python2.6.patch

patch that adds python2.6 to configure python search list
Comment 2 Serhij S. Stasyuk 2009-08-02 14:18:03 UTC
Created attachment 199924 [details, diff]
bacula-2.4.1-r1.ebuild.patch

patch that adds applying of previous patch to ebuild.
Comment 3 Denis Vnoukov 2009-08-06 10:36:56 UTC
I have got the same problem moreover a week.
Comment 4 Denis Vnoukov 2009-08-06 10:41:16 UTC
polymorph ~ # python-updater
polymorph ~ # emerge -uD --newuse  world
Calculating dependencies... done!

>>> Verifying ebuild manifests

>>> Emerging (1 of 1) app-backup/bacula-2.4.1-r1
 * bacula-2.4.1.tar.gz RMD160 SHA1 SHA256 size ;-) ...                                                                                                [ ok ]
 * checking ebuild checksums ;-) ...                                                                                                                  [ ok ]
 * checking auxfile checksums ;-) ...                                                                                                                 [ ok ]
 * checking miscfile checksums ;-) ...                                                                                                                [ ok ]
>>> Unpacking source...
>>> Unpacking bacula-2.4.1.tar.gz to /var/tmp/portage/app-backup/bacula-2.4.1-r1/work
/var/tmp/portage/app-backup/bacula-2.4.1-r1/work/bacula-2.4.1/src /var/tmp/portage/app-backup/bacula-2.4.1-r1/work/bacula-2.4.1
 * Applying bacula-default-configs.patch ...                                                                                                           [ ok ]
/var/tmp/portage/app-backup/bacula-2.4.1-r1/work/bacula-2.4.1
 * Applying 2.4.1-mount.patch ...                                                                                                                      [ ok ]
 * Applying 2.4.1-mysql-timeout.patch ...                                                                                                              [ ok ]
 * Applying 2.4.1-sd-crash.patch ...                                                                                                                   [ ok ]
>>> Source unpacked in /var/tmp/portage/app-backup/bacula-2.4.1-r1/work
>>> Compiling source in /var/tmp/portage/app-backup/bacula-2.4.1-r1/work/bacula-2.4.1 ...
configure: WARNING: If you wanted to set the --build type, don't use --host.
    If a cross compiler is detected then cross compile mode will be used.
checking for true... /bin/true
checking for false... /bin/false
configuring for bacula 2.4.1 (07 July 2008)
checking for x86_64-pc-linux-gnu-gcc... x86_64-pc-linux-gnu-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 x86_64-pc-linux-gnu-gcc accepts -g... yes
checking for x86_64-pc-linux-gnu-gcc option to accept ISO C89... none needed
checking for x86_64-pc-linux-gnu-g++... x86_64-pc-linux-gnu-g++
checking whether we are using the GNU C++ compiler... yes
checking whether x86_64-pc-linux-gnu-g++ accepts -g... yes
checking whether x86_64-pc-linux-gnu-gcc and cc understand -c and -o together... yes
checking how to run the C preprocessor... x86_64-pc-linux-gnu-gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking whether x86_64-pc-linux-gnu-gcc needs -traditional... no
checking for x86_64-pc-linux-gnu-g++... /usr/bin/x86_64-pc-linux-gnu-g++
checking for a BSD-compatible install... /usr/bin/install -c
checking for x86_64-pc-linux-gnu-ranlib... x86_64-pc-linux-gnu-ranlib
checking for mv... /bin/mv
checking for rm... /bin/rm
checking for cp... /bin/cp
checking for sed... /bin/sed
checking for echo... /bin/echo
checking for cmp... /usr/bin/cmp
checking for tbl... /usr/bin/tbl
checking for ar... /usr/bin/ar
checking for openssl... /usr/bin/openssl
checking for mtx... /usr/sbin/mtx
checking for dd... /bin/dd
checking for mkisofs... mkisofs
checking for python... /usr/bin/python
checking for growisofs... growisofs
checking for dvd+rw-mediainfo... dvd+rw-mediainfo
checking for dvd+rw-format... dvd+rw-format
checking for pkg-config... /usr/bin/pkg-config
checking for qmake... none
checking for qmake-qt4... none
checking for wx-config... wx-config
checking for cdrecord... cdrecord
checking for pidof... /bin/pidof
checking for gawk... gawk
checking for gawk... /bin/gawk
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking for Operating System Distribution... done
checking whether make sets $(MAKE)... yes
checking whether NLS is requested... yes
checking for msgfmt... /usr/bin/msgfmt
checking for gmsgfmt... /usr/bin/gmsgfmt
checking for xgettext... /usr/bin/xgettext
checking for msgmerge... /usr/bin/msgmerge
checking for ld used by GCC... /usr/x86_64-pc-linux-gnu/bin/ld
checking if the linker (/usr/x86_64-pc-linux-gnu/bin/ld) is GNU ld... yes
checking for shared library run path origin... done
checking for CFPreferencesCopyAppValue... no
checking for CFLocaleCopyCurrent... no
checking whether NLS is requested... yes
checking for GNU gettext in libc... yes
checking whether to use NLS... yes
checking where the gettext function comes from... libc
checking for msgfmt... (cached) /usr/bin/msgfmt
checking termcap.h usability... yes
checking termcap.h presence... yes
checking for termcap.h... yes
checking for tgetent in -ltermcap... no
checking for tgetent in -lncurses... yes
checking whether stat file-mode macros are broken... no
checking for dirent.h that defines DIR... yes
checking for library containing opendir... none required
checking for strcasecmp... yes
checking for select... yes
checking for setenv... yes
checking for putenv... yes
checking for tcgetattr... yes
checking for lstat... yes
checking for lchown... yes
checking for nanosleep... yes
checking for nl_langinfo... yes
checking varargs.h usability... no
checking varargs.h presence... no
checking for varargs.h... no
checking for Python support... no
configure: error: Unable to find Python.h in standard locations
 *
 * ERROR: app-backup/bacula-2.4.1-r1 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 2376:  Called die
 * The specific snippet of code:
 *       ./configure --prefix=/usr --mandir=/usr/share/man --with-pid-dir=/var/run --sysconfdir=/etc/bacula --infodir=/usr/share/info --with-subsys-dir=/var/lock/subsys --with-working-dir=/var/lib/bacula --with-scriptdir=/usr/libexec/bacula --with-dir-user=bacula --with-dir-group=bacula --with-sd-user=root --with-sd-group=bacula --with-fd-user=root --with-fd-group=bacula --enable-smartalloc --host=${CHOST} ${myconf} || die "configure failed";
 *  The die message:
 *   configure failed
 *
 * 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-backup/bacula-2.4.1-r1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/app-backup/bacula-2.4.1-r1/temp/environment'.
 *

>>> Failed to emerge app-backup/bacula-2.4.1-r1, Log file:

>>>  '/var/tmp/portage/app-backup/bacula-2.4.1-r1/temp/build.log'

 * Messages for package app-backup/bacula-2.4.1-r1:

 *
 * ERROR: app-backup/bacula-2.4.1-r1 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 2376:  Called die
 * The specific snippet of code:
 *       ./configure --prefix=/usr --mandir=/usr/share/man --with-pid-dir=/var/run --sysconfdir=/etc/bacula --infodir=/usr/share/info --with-subsys-dir=/var/lock/subsys --with-working-dir=/var/lib/bacula --with-scriptdir=/usr/libexec/bacula --with-dir-user=bacula --with-dir-group=bacula --with-sd-user=root --with-sd-group=bacula --with-fd-user=root --with-fd-group=bacula --enable-smartalloc --host=${CHOST} ${myconf} || die "configure failed";
 *  The die message:
 *   configure failed
 *
 * 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-backup/bacula-2.4.1-r1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/app-backup/bacula-2.4.1-r1/temp/environment'.
 *
polymorph ~ # emerge --info
Portage 2.1.6.13 (default/linux/amd64/2008.0, gcc-4.3.2, glibc-2.9_p20081201-r2, 2.6.28-gentoo-r5 x86_64)
=================================================================
System uname: Linux-2.6.28-gentoo-r5-x86_64-Intel-R-_Core-TM-2_Quad_CPU_Q9550_@_2.83GHz-with-gentoo-1.12.11.1
Timestamp of tree: Thu, 06 Aug 2009 09:00:01 +0000
app-shells/bash:     3.2_p39
dev-java/java-config: 2.1.8-r1
dev-lang/python:     2.6.2-r1
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.63-r1
sys-devel/automake:  1.7.9-r1, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=native"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/eselect/postgresql /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -pipe -march=native"
DISTDIR="/usr/portage/distfiles"
FEATURES="buildpkg distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1"
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"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="acl aio amd64 apache2 bash-completion berkdb bzip2 cli cracklib crypt cups dri fortran gdbm gpm iconv isdnlog logrotate mmx mudflap multilib ncurses nls nptl nptlonly openmp pam pcre perl pppd python readline reflection session spl sse sse2 ssl sysfs unicode xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="fbdev glint i810 intel mach64 mga neomagic nv r128 radeon savage sis tdfx trident vesa vga via vmware voodoo"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, LINGUAS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY

polymorph ~ # emerge -pv python

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ] dev-lang/python-2.6.2-r1  USE="berkdb gdbm ncurses readline ssl threads xml -build -doc -examples -ipv6 -sqlite -tk -ucs2 -wininst" 0 kB

Total: 1 package (1 reinstall), Size of downloads: 0 kB
Comment 5 Denis Vnoukov 2009-08-06 14:40:22 UTC
Dirty WA: ln -s /usr/include/python2.6 /usr/include/python2.5
Comment 6 Wolfram Schlich (RETIRED) gentoo-dev 2009-09-09 07:45:37 UTC
Fixed in 3.0.2.