SOURCES: hardlink++-gcc34-optimize-help.patch (NEW), hardlink++-sa...

glen glen at pld-linux.org
Wed Apr 11 13:17:45 CEST 2007


Author: glen                         Date: Wed Apr 11 11:17:45 2007 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- from tag src.rpm

---- Files affected:
SOURCES:
   hardlink++-gcc34-optimize-help.patch (NONE -> 1.1)  (NEW), hardlink++-sane-makefile.patch (NONE -> 1.1)  (NEW), hardlink++-stdio.patch (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SOURCES/hardlink++-gcc34-optimize-help.patch
diff -u /dev/null SOURCES/hardlink++-gcc34-optimize-help.patch:1.1
--- /dev/null	Wed Apr 11 13:17:45 2007
+++ SOURCES/hardlink++-gcc34-optimize-help.patch	Wed Apr 11 13:17:39 2007
@@ -0,0 +1,48 @@
+diff -Nuar hardlink++-0.02.orig/hardlink.cpp hardlink++-0.02/hardlink.cpp
+--- hardlink++-0.02.orig/hardlink.cpp	2003-08-14 19:25:32.000000000 -0700
++++ hardlink++-0.02/hardlink.cpp	2005-01-29 19:57:12.312478520 -0800
+@@ -171,7 +171,7 @@
+ 
+ // If two files have the same inode and are on the same device then they are
+ // already hardlinked.
+-bool isAlreadyHardlinked(
++inline bool isAlreadyHardlinked(
+     const struct stat & st1,     // first file's status
+     const struct stat & st2 )    // second file's status
+ {
+@@ -185,7 +185,7 @@
+ 
+ // Determine if a file is eligibile for hardlinking.  Files will only be
+ // considered for hardlinking if this function returns true.
+-bool eligibleForHardlink(
++inline bool eligibleForHardlink(
+     const struct stat & st1,     // first file's status
+     const struct stat & st2 )    // second file's status
+ {
+@@ -203,7 +203,7 @@
+         );
+ }
+ 
+-bool getFileStatus( const string & filename, struct stat & st )
++inline bool getFileStatus( const string & filename, struct stat & st )
+ {
+     // Get the file status
+     if ( !lstat ( filename.c_str(), &st ) )
+diff -Nuar hardlink++-0.02.orig/hardlink.h hardlink++-0.02/hardlink.h
+--- hardlink++-0.02.orig/hardlink.h	2003-08-14 17:24:59.000000000 -0700
++++ hardlink++-0.02/hardlink.h	2005-01-29 19:55:40.699405824 -0800
+@@ -103,10 +103,10 @@
+     public:
+ 	// cStats( void ):dircount(0) {}
+ 
+-	void foundDirectory( void ) { ++dircount; }
+-	void foundRegularFile( void ) { ++regularfiles; }
+-	void didComparison( void ) { ++comparisons; }
+-	void foundHardlink( const off_t filesize  )
++	inline void foundDirectory( void ) { ++dircount; }
++	inline void foundRegularFile( void ) { ++regularfiles; }
++	inline void didComparison( void ) { ++comparisons; }
++	inline void foundHardlink( const off_t filesize  )
+ 	{
+ 	    ++hardlinked_previously;
+ 	    bytes_saved_previously += filesize;

================================================================
Index: SOURCES/hardlink++-sane-makefile.patch
diff -u /dev/null SOURCES/hardlink++-sane-makefile.patch:1.1
--- /dev/null	Wed Apr 11 13:17:45 2007
+++ SOURCES/hardlink++-sane-makefile.patch	Wed Apr 11 13:17:39 2007
@@ -0,0 +1,13 @@
+diff -Nuar hardlink++-0.02.orig/Makefile hardlink++-0.02/Makefile
+--- hardlink++-0.02.orig/Makefile	2003-08-14 12:59:21.000000000 -0700
++++ hardlink++-0.02/Makefile	2005-01-29 20:00:47.618746992 -0800
+@@ -1,2 +1,7 @@
+-hardlink++: hardlink.cpp hardlink.h
+-	g++ -Wall -o hardlink++ hardlink.cpp
++CXX := g++
++CXXFLAGS := 
++BIN := hardlink++
++SRC := hardlink.cpp
++
++$(BIN): $(SRC)
++	$(CXX) -Wall $(CXXFLAGS) -o $@ $^

================================================================
Index: SOURCES/hardlink++-stdio.patch
diff -u /dev/null SOURCES/hardlink++-stdio.patch:1.1
--- /dev/null	Wed Apr 11 13:17:45 2007
+++ SOURCES/hardlink++-stdio.patch	Wed Apr 11 13:17:39 2007
@@ -0,0 +1,11 @@
+diff -Naupr hardlink++-0.02.orig/hardlink.h hardlink++-0.02/hardlink.h
+--- hardlink++-0.02.orig/hardlink.h	2003-08-15 02:24:59.000000000 +0200
++++ hardlink++-0.02/hardlink.h	2004-01-09 18:20:42.000000000 +0100
+@@ -38,6 +38,7 @@ using namespace std;
+ #include <iterator>
+ 
+ // C includes
++#include <stdio.h>
+ #include <unistd.h>
+ #include <dirent.h>
+ #include <sys/stat.h>
================================================================


More information about the pld-cvs-commit mailing list