Группа :: Сети/WWW
Пакет: gtorrentviewer
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
Патч: gtorrentviewer-0.2b-dso-linking.patch
Скачать
Скачать
--- GTorrentViewer-0.2b/configure.in.orig 2004-10-26 04:03:39.000000000 +0100
+++ GTorrentViewer-0.2b/configure.in 2010-02-15 16:19:21.000000000 +0000
@@ -112,5 +112,8 @@
AC_FUNC_STRFTIME
AC_CHECK_FUNCS([memchr memmove memset modf])
+# ceil() requires libm
+AC_CHECK_LIB([m], [ceil])
+
AC_CONFIG_FILES([Makefile src/Makefile pixmaps/Makefile data/Makefile po/Makefile.in])
AC_OUTPUT
diff -ur GTorrentViewer-0.2b.orig/aclocal.m4 GTorrentViewer-0.2b/aclocal.m4
--- GTorrentViewer-0.2b.orig/aclocal.m4 2004-10-26 04:03:53.000000000 +0100
+++ GTorrentViewer-0.2b/aclocal.m4 2010-02-23 09:46:53.649550125 +0000
@@ -1,4 +1,4 @@
-dnl aclocal.m4 generated automatically by aclocal 1.4-p6
+dnl aclocal.m4 generated automatically by aclocal 1.4-p6 and touched to maintain dependency order
dnl Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
diff -ur GTorrentViewer-0.2b.orig/configure GTorrentViewer-0.2b/configure
--- GTorrentViewer-0.2b.orig/configure 2004-10-26 04:04:06.000000000 +0100
+++ GTorrentViewer-0.2b/configure 2010-02-22 17:17:35.000000000 +0000
@@ -6425,6 +6462,82 @@
done
+# ceil() requires libm
+
+echo "$as_me:$LINENO: checking for ceil in -lm" >&5
+echo $ECHO_N "checking for ceil in -lm... $ECHO_C" >&6
+if test "${ac_cv_lib_m_ceil+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-lm $LIBS"
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+
+/* Override any gcc2 internal prototype to avoid an error. */
+#ifdef __cplusplus
+extern "C"
+#endif
+/* We use char because int might match the return type of a gcc2
+ builtin and then its argument prototype would still apply. */
+char ceil ();
+int
+main ()
+{
+ceil ();
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+ (eval $ac_link) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag"
+ || test ! -s conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest$ac_exeext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_cv_lib_m_ceil=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_cv_lib_m_ceil=no
+fi
+rm -f conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+echo "$as_me:$LINENO: result: $ac_cv_lib_m_ceil" >&5
+echo "${ECHO_T}$ac_cv_lib_m_ceil" >&6
+if test $ac_cv_lib_m_ceil = yes; then
+ cat >>confdefs.h <<_ACEOF
+#define HAVE_LIBM 1
+_ACEOF
+
+ LIBS="-lm $LIBS"
+
+fi
+
+
ac_config_files="$ac_config_files Makefile src/Makefile pixmaps/Makefile data/Makefile po/Makefile.in"
cat >confcache <<\_ACEOF
diff -ur GTorrentViewer-0.2b.orig/config.h.in GTorrentViewer-0.2b/config.h.in
--- GTorrentViewer-0.2b.orig/config.h.in 2004-10-26 04:28:14.000000000 +0100
+++ GTorrentViewer-0.2b/config.h.in 2010-02-22 17:17:35.000000000 +0000
@@ -24,6 +24,9 @@
/* Define if your <locale.h> file defines LC_MESSAGES. */
#undef HAVE_LC_MESSAGES
+/* Define to 1 if you have the `m' library (-lm). */
+#undef HAVE_LIBM
+
/* Define to 1 if you have the <locale.h> header file. */
#undef HAVE_LOCALE_H
diff -ur GTorrentViewer-0.2b.orig/stamp-h.in GTorrentViewer-0.2b/stamp-h.in
--- GTorrentViewer-0.2b.orig/stamp-h.in 2004-10-26 04:28:15.000000000 +0100
+++ GTorrentViewer-0.2b/stamp-h.in 2010-02-23 09:38:03.077422711 +0000
@@ -1 +1 @@
-timestamp
+TIMESTAMP
diff -ur GTorrentViewer-0.2b.orig/data/Makefile.in GTorrentViewer-0.2b/data/Makefile.in
--- GTorrentViewer-0.2b.orig/data/Makefile.in 2004-10-26 05:42:17.000000000 +0100
+++ GTorrentViewer-0.2b/data/Makefile.in 2010-02-22 17:18:37.000000000 +0000
@@ -120,10 +119,13 @@
desktop_in_files = gtorrentviewer.desktop.in
desktop_DATA = $(desktop_in_files:.desktop.in=.desktop)
-EXTRA_DIST = $(desktop_in_files) $(man_MANS)
+EXTRA_DIST = \
+ $(desktop_in_files) \
+ $(man_MANS)
-CLEANFILES = $(desktop_DATA)
+CLEANFILES = \
+ $(desktop_DATA)
mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
CONFIG_HEADER = ../config.h
diff -ur GTorrentViewer-0.2b.orig/Makefile.in GTorrentViewer-0.2b/Makefile.in
--- GTorrentViewer-0.2b.orig/Makefile.in 2004-10-26 05:42:15.000000000 +0100
+++ GTorrentViewer-0.2b/Makefile.in 2010-02-22 17:18:37.000000000 +0000
@@ -118,10 +117,19 @@
pkgdata_DATA = README
-EXTRA_DIST = AUTHORS ChangeLog NEWS README debian intltool-extract.in intltool-merge.in intltool-update.in
+EXTRA_DIST = AUTHORS \
+ ChangeLog \
+ NEWS \
+ README \
+ debian \
+ intltool-extract.in \
+ intltool-merge.in \
+ intltool-update.in
-DISTCLEANFILES = intltool-extract intltool-merge intltool-update
+DISTCLEANFILES = intltool-extract \
+ intltool-merge \
+ intltool-update
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
diff -ur GTorrentViewer-0.2b.orig/pixmaps/Makefile.in GTorrentViewer-0.2b/pixmaps/Makefile.in
--- GTorrentViewer-0.2b.orig/pixmaps/Makefile.in 2004-10-26 05:42:17.000000000 +0100
+++ GTorrentViewer-0.2b/pixmaps/Makefile.in 2010-02-22 17:18:37.000000000 +0000
@@ -115,13 +114,27 @@
VERSION = @VERSION@
pkgpixmapsdir = $(pkgdatadir)/pixmaps
-pkgpixmaps_DATA = gtorrentviewer.xpm gtorrentviewer.png about.png dictionary.png error.png integer.png list.png ok.png string.png warning.png info.png unknown.png
+pkgpixmaps_DATA = \
+ gtorrentviewer.xpm \
+ gtorrentviewer.png \
+ about.png \
+ dictionary.png \
+ error.png \
+ integer.png \
+ list.png \
+ ok.png \
+ string.png \
+ warning.png \
+ info.png \
+ unknown.png
EXTRA_DIST = $(pkgpixmaps_DATA)
distpixmapdir = @PIXMAPDIR@
-distpixmap_DATA = gtorrentviewer.xpm gtorrentviewer.png
+distpixmap_DATA = \
+ gtorrentviewer.xpm \
+ gtorrentviewer.png
mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
CONFIG_HEADER = ../config.h
diff -ur GTorrentViewer-0.2b.orig/src/Makefile.in GTorrentViewer-0.2b/src/Makefile.in
--- GTorrentViewer-0.2b.orig/src/Makefile.in 2004-10-26 05:42:16.000000000 +0100
+++ GTorrentViewer-0.2b/src/Makefile.in 2010-02-22 17:18:37.000000000 +0000
@@ -110,7 +109,10 @@
USE_NLS = @USE_NLS@
VERSION = @VERSION@
-INCLUDES = -I$(top_srcdir) -DLOCALE_DIR=\""$(datadir)/locale"\" -DPIXMAPS_DIR=\""$(pkgdatadir)/pixmaps"\" -DSYSTEM_PIXMAPS_DIR=\""@PIXMAPDIR@"\"
+INCLUDES = -I$(top_srcdir) \
+ -DLOCALE_DIR=\""$(datadir)/locale"\" \
+ -DPIXMAPS_DIR=\""$(pkgdatadir)/pixmaps"\" \
+ -DSYSTEM_PIXMAPS_DIR=\""@PIXMAPDIR@"\"
CFLAGS = @CFLAGS@ @CURL_CFLAGS@ @GTK_CFLAGS@
@@ -119,10 +121,24 @@
bin_PROGRAMS = gtorrentviewer
-gtorrentviewer_SOURCES = main.c mainwindow.c bencode.c utilities.c sha1.c gbitarray.c gtkcellrendererbitarray.c inline_pixmaps.c
-
-
-noinst_HEADERS = main.h mainwindow.h bencode.h utilities.h sha1.h gbitarray.h gtkcellrendererbitarray.h inline_pixmaps.h
+gtorrentviewer_SOURCES = main.c \
+ mainwindow.c \
+ bencode.c \
+ utilities.c \
+ sha1.c \
+ gbitarray.c \
+ gtkcellrendererbitarray.c \
+ inline_pixmaps.c
+
+
+noinst_HEADERS = main.h \
+ mainwindow.h \
+ bencode.h \
+ utilities.h \
+ sha1.h \
+ gbitarray.h \
+ gtkcellrendererbitarray.h \
+ inline_pixmaps.h
CLEANFILES = *~