transmission: fix compile error
PATCH 1/1 transmission: fix compile error
After update to uClibc-ng 1.0.18 transmission fails to compile as the special treatment for sys/quota.h isn't required anymore, because upstream synced with GNU libc to fix a samba4 compile problem.
--- ...ince-1.0.18-has-sys-quota.h-synced-with-G.patch | 29 ++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 package/transmission/0005-uClibc-ng-since-1.0.18-has-sys-quota.h-synced-with-G.patch
package/transmission/0005-uClibc-ng-since-1.0.18-has-sys-quota.h-synced-with-G.patch new file +29 -0
@@ -0,0 +1,29 @@ +From 8682fe1bad44acc06154003ca9c9163b917bf4e3 Mon Sep 17 00:00:00 2001 +From: Waldemar Brodkorb <[email protected]> +Date: Thu, 29 Sep 2016 19:52:49 +0200 +Subject: [PATCH] uClibc-ng since 1.0.18 has sys/quota.h synced with GNU libc + +Signed-off-by: Waldemar Brodkorb <[email protected]> + +Pull Request: +https://github.com/transmission/transmission/pull/42 +--- + libtransmission/platform-quota.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/libtransmission/platform-quota.c b/libtransmission/platform-quota.c +index 58c518a..57377ef 100644 +--- a/libtransmission/platform-quota.c ++++ b/libtransmission/platform-quota.c +@@ -284,7 +284,7 @@ getquota (const char * device) + spaceused = (int64_t) dq.dqb_curblocks >> 1; + #elif defined(__APPLE__) + spaceused = (int64_t) dq.dqb_curbytes; +-#elif defined(__UCLIBC__) ++#elif defined(__UCLIBC__) && (__UCLIBC_MAJOR__ == 0 || (__UCLIBC_MAJOR__ == 1 && __UCLIBC_SUBLEVEL__ <= 17)) + spaceused = (int64_t) btodb(dq.dqb_curblocks); + #elif defined(__sun) || (defined(_LINUX_QUOTA_VERSION) && _LINUX_QUOTA_VERSION < 2) + spaceused = (int64_t) dq.dqb_curblocks >> 1; +-- +2.1.4 +
Signature · 1 line
2.1.4
PATCH 1/1 transmission: fix compile error
Quoted 8 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Waldemar" == Waldemar Brodkorb <[email protected]> writes:
After update to uClibc-ng 1.0.18 transmission fails to compile as the special treatment for
sys/quota.hisn't required anymore, because upstream synced with GNU libc to fix a samba4 compile problem.Signed-off-by Waldemar Brodkorb <[email protected]>
Committed, thanks. Don't forget to submit the patch upstream.
Signature · 1 line
Bye, Peter Korsgaard
PATCH 1/1 transmission: fix compile error
In reply to Waldemar BrodkorbQuoted 30 lines · Waldemar Brodkorb
After update to uClibc-ng 1.0.18 transmission fails to compile as the special treatment for
sys/quota.hisn't required anymore, because upstream synced with GNU libc to fix a samba4 compile problem.Signed-off-by Waldemar Brodkorb <[email protected]>--- ...ince-1.0.18-has-sys-quota.h-synced-with-G.patch | 29 ++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 package/transmission/0005-uClibc-ng-since-1.0.18-has-sys-quota.h-synced-with-G.patchpackage/transmission/0005-uClibc-ng-since-1.0.18-has-sys-quota.h-synced-with-G.patch new file +13
-0@@ -0,0 +1,29 @@ +From 8682fe1bad44acc06154003ca9c9163b917bf4e3 Mon Sep 17 00:00:00 2001 +From: Waldemar Brodkorb <[email protected]> +Date: Thu, 29 Sep 2016 19:52:49 +0200 +Subject: [PATCH] uClibc-ng since 1.0.18 has sys/quota.h synced with GNU libc + +Signed-off-by: Waldemar Brodkorb <[email protected]> + +Pull Request: +https://github.com/transmission/transmission/pull/42 +--- + libtransmission/platform-quota.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) +
package/transmission/0005-uClibc-ng-since-1.0.18-has-sys-quota.h-synced-with-G.patch line 23
Quoted 10 lines
package/transmission/0005-uClibc-ng-since-1.0.18-has-sys-quota.h-synced-with-G.patch new file +10
-0+diff --git a/libtransmission/platform-quota.c b/libtransmission/platform-quota.c +index 58c518a..57377ef 100644 +--- a/libtransmission/platform-quota.c ++++ b/libtransmission/platform-quota.c +@@ -284,7 +284,7 @@ getquota (const char * device) + spaceused = (int64_t) dq.dqb_curblocks >> 1; + #elif defined(__APPLE__) + spaceused = (int64_t) dq.dqb_curbytes; +-#elif defined(__UCLIBC__) ++#elif defined(__UCLIBC__) && (__UCLIBC_MAJOR__ == 0 || (__UCLIBC_MAJOR__ == 1 && __UCLIBC_SUBLEVEL__ <= 17))
Shouldn't this also include __UCLIBC_MINOR__ == 0, so the condition doesn't
trigger when uClibc-ng 1.1.0 is released?
Regards,
Arnout
Quoted 7 lines
package/transmission/0005-uClibc-ng-since-1.0.18-has-sys-quota.h-synced-with-G.patch new file +6
-0+ spaceused = (int64_t) btodb(dq.dqb_curblocks); + #elif defined(__sun) || (defined(_LINUX_QUOTA_VERSION) && _LINUX_QUOTA_VERSION < 2) + spaceused = (int64_t) dq.dqb_curblocks >> 1; +-- +2.1.4 +
Signature · 6 lines
Arnout Vandecappelle arnout at mind be Senior Embedded Software Architect +32-16-286500 Essensium/Mind http://www.mind.be G.Geenslaan 9, 3001 Leuven, Belgium BE 872 984 063 RPR Leuven LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle GPG fingerprint: 7493 020B C7E3 8618 8DEC 222C 82EB F404 F9AC 0DDF
PATCH 1/1 transmission: fix compile error
Hi Arnout,
Arnout Vandecappelle wrote,
Quoted 11 lines
package/transmission/0005-uClibc-ng-since-1.0.18-has-sys-quota.h-synced-with-G.patch line 23
Quoted 8 lines
+---
a/libtransmission/platform-quota.c++++b/libtransmission/platform-quota.c
+@@ -284,7 +284,7 @@ getquota (const char * device)package/transmission/0005-uClibc-ng-since-1.0.18-has-sys-quota.h-synced-with-G.patch new file +5
-0+ spaceused = (int64_t) dq.dqb_curblocks >> 1; + #elif defined(__APPLE__) + spaceused = (int64_t) dq.dqb_curbytes; +-#elif defined(__UCLIBC__) ++#elif defined(__UCLIBC__) && (__UCLIBC_MAJOR__ == 0 || (__UCLIBC_MAJOR__ == 1 && __UCLIBC_SUBLEVEL__ <= 17))Shouldn't this also include
__UCLIBC_MINOR__== 0, so the condition doesn't
trigger when uClibc-ng 1.1.0 is released?
Do you know of any hidden roadmap I am not aware of? ;)
best regards
Waldemar