Changes in / [b6cd9e9:de8e584]
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
.bzrignore
rb6cd9e9 rde8e584 17 17 *.gcno 18 18 *.o 19 coverage20 bitlbee.info -
bitlbee.h
rb6cd9e9 rde8e584 95 95 #define g_main_quit __PLEASE_USE_B_MAIN_QUIT__ 96 96 97 #ifndef F_OK 98 #define F_OK 0 99 #endif 100 97 101 #ifndef G_GNUC_MALLOC 98 102 /* Doesn't exist in GLib <=2.4 while everything else in BitlBee should -
configure
rb6cd9e9 rde8e584 74 74 --ssl=... SSL library to use (gnutls, nss, openssl, bogus, auto) 75 75 $ssl 76 77 --target=... Cross compilation target same as host78 76 EOF 79 77 exit; … … 134 132 EOF 135 133 136 if [ -n "$target" ]; then137 PKG_CONFIG_PATH=/usr/$target/lib/pkgconfig138 PATH=/usr/$target/bin:$PATH139 CC=$target-cc140 LD=$target-ld141 fi142 143 134 if [ "$debug" = "1" ]; then 144 135 [ -z "$CFLAGS" ] && CFLAGS=-g … … 167 158 echo "CC=$CC" >> Makefile.settings; 168 159 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 160 if [ -n "$LD" ]; then 161 echo "LD=$LD" >> Makefile.settings; 162 elif type ld > /dev/null 2> /dev/null; then 163 echo "LD=ld" >> Makefile.settings; 164 else 165 echo 'Cannot find ld, aborting.' 166 exit 1; 167 fi 179 168 180 169 if [ -z "$PKG_CONFIG" ]; then … … 224 213 detect_gnutls() 225 214 { 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 234 216 cat <<EOF>>Makefile.settings 235 217 EFLAGS+=`libgnutls-config --libs` … … 393 375 394 376 if [ "$gcov" = "1" ]; then 395 echo "CFLAGS+=- -coverage" >> Makefile.settings396 echo "EFLAGS+=- -coverage" >> Makefile.settings377 echo "CFLAGS+=-ftest-coverage -fprofile-arcs" >> Makefile.settings 378 echo "EFLAGS+=-lgcov" >> Makefile.settings 397 379 fi 398 380 … … 507 489 esac 508 490 509 if [ -n "$target" ]; then510 echo "Cross-compiling for: $target"511 fi512 513 491 echo 514 492 echo 'Configuration done:' -
debian/changelog
rb6cd9e9 rde8e584 1 bitlbee (1.2-5) UNRELEASED; urgency=low2 3 * Add Homepage and Vcs-Bzr fields.4 5 -- Jelmer Vernooij <jelmer@samba.org> Sun, 11 May 2008 14:18:16 +02006 7 1 bitlbee (1.2-4) unstable; urgency=low 8 2 -
debian/control
rb6cd9e9 rde8e584 5 5 Standards-Version: 3.5.9 6 6 Build-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/9 7 10 8 Package: bitlbee -
storage_xml.c
rb6cd9e9 rde8e584 29 29 #include "arc.h" 30 30 #include "md5.h" 31 #include <glib/gstdio.h>32 31 33 32 typedef enum … … 244 243 static void xml_init( void ) 245 244 { 246 if( ! g_file_test( global.conf->configdir, G_FILE_TEST_EXISTS ))245 if( access( global.conf->configdir, F_OK ) != 0 ) 247 246 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 ) 249 248 log_message( LOGLVL_WARNING, "Permission problem: Can't read/write from/to `%s'.", global.conf->configdir ); 250 249 } … … 373 372 g_free( path2 ); 374 373 375 if( !overwrite && g_file_test( path, G_FILE_TEST_EXISTS ))374 if( !overwrite && access( path, F_OK ) != -1 ) 376 375 return STORAGE_ALREADY_EXISTS; 377 376
Note: See TracChangeset
for help on using the changeset viewer.