diff options
author | Niels Horn <niels.horn@gmail.com> | 2012-09-13 19:06:39 -0300 |
---|---|---|
committer | Niels Horn <niels.horn@slackbuilds.org> | 2012-09-13 19:06:39 -0300 |
commit | 0ec818b795dbe25f38cfe3c46bfd362549fc08a0 (patch) | |
tree | e9d028ebed33a70f4a09344cd7ef525f0df45f3b /system/lbench/lbench_userguide.patch | |
parent | 77afa5e670146f5d46816d95058f17da0e59e803 (diff) | |
download | slackbuilds-0ec818b795dbe25f38cfe3c46bfd362549fc08a0.tar.gz |
system/lbench: Updated for version 1.9 +fixes for gcc-4.7
Signed-off-by: Niels Horn <niels.horn@slackbuilds.org>
Diffstat (limited to 'system/lbench/lbench_userguide.patch')
-rw-r--r-- | system/lbench/lbench_userguide.patch | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/system/lbench/lbench_userguide.patch b/system/lbench/lbench_userguide.patch new file mode 100644 index 0000000000..29a36f43a2 --- /dev/null +++ b/system/lbench/lbench_userguide.patch @@ -0,0 +1,31 @@ +--- lbench-1.9/zfuncs.cc 2012-07-29 08:48:24.000000000 -0300 ++++ lbench-1.9_patched/zfuncs.cc 2012-09-13 19:00:01.000000000 -0300 +@@ -3232,6 +3232,7 @@ + using namespace zfuncs; + + char work[200]; ++ char doc[200]; + char logfile[200], oldlog[200]; + cchar *appfile; + int secs, err; +@@ -3254,7 +3255,8 @@ + strncatv(zdatadir,199,work,"/share/",zappname,"/data",null); // /prefix/share/appname/data + strncatv(zicondir,199,work,"/share/",zappname,"/icons",null); // /prefix/share/appname/icons + strncatv(zlocalesdir,199,work,"/share/",zappname,"/locales",null); // /prefix/share/appname/locales +- strncatv(zdocdir,199,work,"/share/doc/",zappname,null); // /prefix/share/doc/appname ++ strncpy0(doc,DOCDIR,199); ++ strcpy(zdocdir,doc); // as defined in Makefile + + snprintf(zuserdir,199,"%s/.%s",getenv("HOME"),zappname); // /home/user/.appname/ + err = stat(zuserdir,&statdat); // does it exist already? +--- lbench-1.9/Makefile 2012-07-29 08:48:24.000000000 -0300 ++++ lbench-1.9_patched/Makefile 2012-09-13 18:54:12.000000000 -0300 +@@ -28,7 +28,7 @@ + $(CXX) $(CFLAGS) -o $(PROGRAM).o $(SOURCE) + + zfuncs.o: zfuncs.cc +- $(CXX) $(CFLAGS) zfuncs.cc -D PREFIX=\"$(PREFIX)\" ++ $(CXX) $(CFLAGS) zfuncs.cc -D PREFIX=\"$(PREFIX)\" -D DOCDIR=\"$(DOCDIR)\" + + install: $(PROGRAM) + mkdir -p $(DESTDIR)$(BINDIR) |