summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Freeman <rich0@gentoo.org>2012-03-19 22:39:03 +0000
committerRichard Freeman <rich0@gentoo.org>2012-03-19 22:39:03 +0000
commit1023ec28a1e063e26378d9d602fe2c7a7d2456ce (patch)
treef6fdc77e90d665c180f914d942793bac7cc0c4ac /app-misc/sleepyhead/files
parentPut sys-libs/mtdev in RDEPEND too, bug #408921. (diff)
downloadgentoo-2-1023ec28a1e063e26378d9d602fe2c7a7d2456ce.tar.gz
gentoo-2-1023ec28a1e063e26378d9d602fe2c7a7d2456ce.tar.bz2
gentoo-2-1023ec28a1e063e26378d9d602fe2c7a7d2456ce.zip
Add new package.
(Portage version: 2.1.10.49/cvs/Linux x86_64)
Diffstat (limited to 'app-misc/sleepyhead/files')
-rw-r--r--app-misc/sleepyhead/files/gitfix.patch15
-rw-r--r--app-misc/sleepyhead/files/prs1-64fix.patch13
2 files changed, 28 insertions, 0 deletions
diff --git a/app-misc/sleepyhead/files/gitfix.patch b/app-misc/sleepyhead/files/gitfix.patch
new file mode 100644
index 000000000000..46cbef0a4530
--- /dev/null
+++ b/app-misc/sleepyhead/files/gitfix.patch
@@ -0,0 +1,15 @@
+--- a/SleepyHeadQT.pro
++++ b/SleepyHeadQT.pro
+@@ -31,10 +31,10 @@ TEMPLATE = app
+
+ #exists(.git):DEFINES += GIT_BRANCH=\\\"$$system(git rev-parse --symbolic-full-name --abbrev-ref HEAD)\\\"
+ exists(.git):DEFINES += GIT_BRANCH=\\\"$$system(git rev-parse --abbrev-ref HEAD)\\\"
+-else:DEFINES += GIT_BRANCH=\\\"NOT BUILT FROM GIT SOURCE\\\"
++else:DEFINES += GIT_BRANCH=\\\"UNKNOWN\\\"
+
+ exists(.git):DEFINES += GIT_REVISION=\\\"$$system(git rev-parse HEAD)\\\"
+-else:DEFINES += GIT_BRANCH=\\\"UNKNOWN\\\"
++else:DEFINES += GIT_REVISION=\\\"UNKNOWN\\\"
+
+ SOURCES += main.cpp\
+ SleepLib/machine.cpp \
diff --git a/app-misc/sleepyhead/files/prs1-64fix.patch b/app-misc/sleepyhead/files/prs1-64fix.patch
new file mode 100644
index 000000000000..a7b1070eeb4c
--- /dev/null
+++ b/app-misc/sleepyhead/files/prs1-64fix.patch
@@ -0,0 +1,13 @@
+diff --git a/SleepLib/loader_plugins/prs1_loader.cpp b/SleepLib/loader_plugins/prs1_loader.cpp
+index d7f102c..61f2d34 100644
+--- a/SleepLib/loader_plugins/prs1_loader.cpp
++++ b/SleepLib/loader_plugins/prs1_loader.cpp
+@@ -597,7 +597,7 @@ bool PRS1Loader::Parse002v5(qint32 sequence, quint32 timestamp, unsigned char *b
+ CPAP_LeakTotal, PRS1_12
+ };
+
+- int ncodes=sizeof(Codes)/sizeof(QString);
++ int ncodes=sizeof(Codes)/sizeof(ChannelID);
+ EventList * Code[0x20]={NULL};
+
+