Changes in / [b6cd9e9:de8e584]


Ignore:
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • .bzrignore

    rb6cd9e9 rde8e584  
    1717*.gcno
    1818*.o
    19 coverage
    20 bitlbee.info
  • bitlbee.h

    rb6cd9e9 rde8e584  
    9595#define g_main_quit             __PLEASE_USE_B_MAIN_QUIT__
    9696
     97#ifndef F_OK
     98#define F_OK 0
     99#endif
     100
    97101#ifndef G_GNUC_MALLOC
    98102/* Doesn't exist in GLib <=2.4 while everything else in BitlBee should
  • configure

    rb6cd9e9 rde8e584  
    7474--ssl=...       SSL library to use (gnutls, nss, openssl, bogus, auto)
    7575                                                        $ssl
    76 
    77 --target=...    Cross compilation target                same as host
    7876EOF
    7977                exit;
     
    134132EOF
    135133
    136 if [ -n "$target" ]; then
    137         PKG_CONFIG_PATH=/usr/$target/lib/pkgconfig
    138         PATH=/usr/$target/bin:$PATH
    139         CC=$target-cc
    140         LD=$target-ld
    141 fi
    142 
    143134if [ "$debug" = "1" ]; then
    144135        [ -z "$CFLAGS" ] && CFLAGS=-g
     
    167158echo "CC=$CC" >> Makefile.settings;
    168159
    169 if [ -z "$LD" ]; then
    170         if type ld > /dev/null 2> /dev/null; then
    171                 LD=ld
    172         else
    173                 echo 'Cannot find ld, aborting.'
    174                 exit 1;
    175         fi
    176 fi
    177 
    178 echo "LD=$LD" >> Makefile.settings
     160if [ -n "$LD" ]; then
     161        echo "LD=$LD" >> Makefile.settings;
     162elif type ld > /dev/null 2> /dev/null; then
     163        echo "LD=ld" >> Makefile.settings;
     164else
     165        echo 'Cannot find ld, aborting.'
     166        exit 1;
     167fi
    179168
    180169if [ -z "$PKG_CONFIG" ]; then
     
    224213detect_gnutls()
    225214{
    226         if $PKG_CONFIG --exists gnutls; then
    227                 cat <<EOF>>Makefile.settings
    228 EFLAGS+=`$PKG_CONFIG --libs gnutls`
    229 CFLAGS+=`$PKG_CONFIG --cflags gnutls`
    230 EOF
    231                 ssl=gnutls
    232                 ret=1
    233         elif libgnutls-config --version > /dev/null 2> /dev/null; then
     215        if libgnutls-config --version > /dev/null 2> /dev/null; then
    234216                cat <<EOF>>Makefile.settings
    235217EFLAGS+=`libgnutls-config --libs`
     
    393375
    394376if [ "$gcov" = "1" ]; then
    395         echo "CFLAGS+=--coverage" >> Makefile.settings
    396         echo "EFLAGS+=--coverage" >> Makefile.settings
     377        echo "CFLAGS+=-ftest-coverage -fprofile-arcs" >> Makefile.settings
     378        echo "EFLAGS+=-lgcov" >> Makefile.settings
    397379fi
    398380
     
    507489esac
    508490
    509 if [ -n "$target" ]; then
    510         echo "Cross-compiling for: $target"
    511 fi
    512 
    513491echo
    514492echo 'Configuration done:'
  • debian/changelog

    rb6cd9e9 rde8e584  
    1 bitlbee (1.2-5) UNRELEASED; urgency=low
    2 
    3   * Add Homepage and Vcs-Bzr fields.
    4 
    5  -- Jelmer Vernooij <jelmer@samba.org>  Sun, 11 May 2008 14:18:16 +0200
    6 
    71bitlbee (1.2-4) unstable; urgency=low
    82
  • debian/control

    rb6cd9e9 rde8e584  
    55Standards-Version: 3.5.9
    66Build-Depends: libglib2.0-dev (>= 2.4), libevent-dev, libgnutls-dev | libnss-dev (>= 1.6), debconf-2.0, po-debconf
    7 Homepage: http://www.bitlbee.org/
    8 Vcs-Bzr: http://code.bitlbee.org/bitlbee/
    97
    108Package: bitlbee
  • storage_xml.c

    rb6cd9e9 rde8e584  
    2929#include "arc.h"
    3030#include "md5.h"
    31 #include <glib/gstdio.h>
    3231
    3332typedef enum
     
    244243static void xml_init( void )
    245244{
    246         if( ! g_file_test( global.conf->configdir, G_FILE_TEST_EXISTS ) )
     245        if( access( global.conf->configdir, F_OK ) != 0 )
    247246                log_message( LOGLVL_WARNING, "The configuration directory `%s' does not exist. Configuration won't be saved.", global.conf->configdir );
    248         else if( ! g_file_test( global.conf->configdir, G_FILE_TEST_EXISTS ) || g_access( global.conf->configdir, W_OK ) != 0 )
     247        else if( access( global.conf->configdir, R_OK ) != 0 || access( global.conf->configdir, W_OK ) != 0 )
    249248                log_message( LOGLVL_WARNING, "Permission problem: Can't read/write from/to `%s'.", global.conf->configdir );
    250249}
     
    373372        g_free( path2 );
    374373       
    375         if( !overwrite && g_file_test( path, G_FILE_TEST_EXISTS ) )
     374        if( !overwrite && access( path, F_OK ) != -1 )
    376375                return STORAGE_ALREADY_EXISTS;
    377376       
Note: See TracChangeset for help on using the changeset viewer.