diff options
author | Benjamin Trigona-Harany <bosth@alumni.sfu.ca> | 2012-12-28 06:46:36 +0100 |
---|---|---|
committer | Matteo Bernardini <ponce@slackbuilds.org> | 2012-12-28 06:46:52 +0100 |
commit | a1cbe548c7b636310c8c08d174408b3508aa3111 (patch) | |
tree | 75e06eb8ccc21b3b5ef2e2ef843215570af7eeb2 /network | |
parent | 17243302b7172a4659c7eb9c6e1edede0f5777c8 (diff) | |
download | slackbuilds-a1cbe548c7b636310c8c08d174408b3508aa3111.tar.gz |
network/newsbeuter: Added a patch for the newer json-c.
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Diffstat (limited to 'network')
-rw-r--r-- | network/newsbeuter/json-c.diff | 12 | ||||
-rw-r--r-- | network/newsbeuter/newsbeuter.SlackBuild | 5 |
2 files changed, 16 insertions, 1 deletions
diff --git a/network/newsbeuter/json-c.diff b/network/newsbeuter/json-c.diff new file mode 100644 index 0000000000..49d5a5bc89 --- /dev/null +++ b/network/newsbeuter/json-c.diff @@ -0,0 +1,12 @@ +diff -Nur newsbeuter-2.5.a/src/ttrss_api.cpp newsbeuter-2.5.b/src/ttrss_api.cpp +--- newsbeuter-2.5.a/src/ttrss_api.cpp 2012-01-06 06:41:13.000000000 -0800 ++++ newsbeuter-2.5.b/src/ttrss_api.cpp 2012-12-24 20:08:35.505897356 -0800 +@@ -220,7 +220,7 @@ + const char * link = json_object_get_string(json_object_object_get(item_obj, "link")); + const char * content = json_object_get_string(json_object_object_get(item_obj, "content")); + time_t updated = (time_t)json_object_get_int(json_object_object_get(item_obj, "updated")); +- boolean unread = json_object_get_boolean(json_object_object_get(item_obj, "unread")); ++ bool unread = json_object_get_boolean(json_object_object_get(item_obj, "unread")); + + rsspp::item item; + diff --git a/network/newsbeuter/newsbeuter.SlackBuild b/network/newsbeuter/newsbeuter.SlackBuild index 423f2b3456..5fb4e8a2d2 100644 --- a/network/newsbeuter/newsbeuter.SlackBuild +++ b/network/newsbeuter/newsbeuter.SlackBuild @@ -7,7 +7,7 @@ PRGNAM=newsbeuter VERSION=${VERSION:-2.5} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} case "$( uname -m )" in @@ -50,7 +50,10 @@ find . \ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 \ -o -perm 400 \) -exec chmod 644 {} \; +# patch for GCC header changes patch -p1 --verbose < $CWD/unistd.diff +# patch for json-c api change +patch -p1 --verbose < $CWD/json-c.diff CXXFLAGS="$SLKCFLAGS" \ make \ |