]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/commitdiff
Patched error at exit of smartmontools
authorArne Fitzenreiter <arne_f@ipfire.org>
Sat, 29 Aug 2009 17:16:49 +0000 (19:16 +0200)
committerArne Fitzenreiter <arne_f@ipfire.org>
Sat, 29 Aug 2009 17:16:49 +0000 (19:16 +0200)
lfs/smartmontools
src/patches/smartmontools-5.39-error_throw_int.patch [new file with mode: 0644]

index 17e6330c3d73d834facc5a7c4d22bb7bb82c334b..34cf5659b97f783af3e443a91fe8a22cc784218b 100644 (file)
@@ -70,8 +70,10 @@ $(subst %,%_MD5,$(objects)) :
 $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
        @$(PREBUILD)
        @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar jxf $(DIR_DL)/$(DL_FILE)
+       cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/smartmontools-5.39-error_throw_int.patch
+       cd $(DIR_APP) && ./autogen.sh
        cd $(DIR_APP) && ./configure --prefix=/usr
-       cd $(DIR_APP) && make $(MAKETUNING)
+       cd $(DIR_APP) && make BUILD_INFO='"($(NAME) $(VERSION))"' $(MAKETUNING)
        cd $(DIR_APP) && make install
        @rm -rf $(DIR_APP)
        @$(POSTBUILD)
diff --git a/src/patches/smartmontools-5.39-error_throw_int.patch b/src/patches/smartmontools-5.39-error_throw_int.patch
new file mode 100644 (file)
index 0000000..5ed4b10
--- /dev/null
@@ -0,0 +1,16 @@
+diff -Naur smartmontools-5.39-svn_r2877/utility.h smartmontools-5.39-svn_r2877.new/utility.h
+--- smartmontools-5.39-svn_r2877/utility.h     2009-08-24 12:48:50.000000000 +0200
++++ smartmontools-5.39-svn_r2877.new/utility.h 2009-08-29 09:11:07.000000000 +0200
+@@ -102,7 +102,11 @@
+ // Replacement for exit(status)
+ // (exit is not compatible with C++ destructors)
+-#define EXIT(status) { throw (int)(status); }
++
++//This doesn't work on IPFire.
++//#define EXIT(status) { throw (int)(status); }
++//tried to use exit and found no problems yet
++#define EXIT(status) { exit ((int)(status)); }
+ #ifdef OLD_INTERFACE