Skip to contentSkip to conversation

package/quota: renumber patches

PATCH New Bernd Kuhls 2 participants 3 messages Jan 23, 2016 – Mar 22, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 package/quota: renumber patches

---
 .../{01-tools-getrpcbynumber.patch => 0001-tools-getrpcbynumber.patch}    | 0
 .../quota/{02-fix-static-linking.patch => 0002-fix-static-linking.patch}  | 0
 2 files changed, 0 insertions(+), 0 deletions(-)
 rename package/quota/{01-tools-getrpcbynumber.patch => 0001-tools-getrpcbynumber.patch} (100%)
 rename package/quota/{02-fix-static-linking.patch => 0002-fix-static-linking.patch} (100%)
package/quota/0001-tools-getrpcbynumber.patch renamed from package/quota/01-tools-getrpcbynumber.patch +0 -0
similarity index 100%
rename from package/quota/01-tools-getrpcbynumber.patch
rename to package/quota/0001-tools-getrpcbynumber.patch
package/quota/0002-fix-static-linking.patch renamed from package/quota/02-fix-static-linking.patch +0 -0
similarity index 100%
rename from package/quota/02-fix-static-linking.patch
rename to package/quota/0002-fix-static-linking.patch
Signature · 1 line
2.7.0.rc3
#1 lore raw

PATCH 2/2 package/quota: fix musl build

The autobuilders did not catch the errors yet because they failed earlier with other packages, but I am continuing the build using the defconfig from:
http://autobuild.buildroot.net/results/6cc/6cc0f8c067e07deea688b9b97284601a596b898c/

---
 package/quota/0003-fcntl.patch                  | 121 ++++++++++++++
 package/quota/0004-remove_non_posix_types.patch | 206 ++++++++++++++++++++++++
 2 files changed, 327 insertions(+)
 create mode 100644 package/quota/0003-fcntl.patch
 create mode 100644 package/quota/0004-remove_non_posix_types.patch
package/quota/0003-fcntl.patch new file +121 -0
new file mode 100644
index 0000000..404055a
@@ -0,0 +1,121 @@
+Fix musl build
+
+Downloaded from
+http://cgit.openembedded.org/openembedded-core/tree/meta/recipes-extended/quota/quota/fcntl.patch
+
+Signed-off-by: Bernd Kuhls <[email protected]>
+
+
+Include fcntl.h to pacify compiler errors on musl
+like
+
+error: unknown type name 'loff_t'
+Cover rpc headers under proper conditional
+Dont use __P its undefined
+
+Upstream-Status: Pending
+
+Signed-off-by: Khem Raj <[email protected]>
+
+ndex: quota-tools/quota.h
+===================================================================
+Index: quota-tools/quota.h
+===================================================================
+--- quota-tools.orig/quota.h
++++ quota-tools/quota.h
+@@ -165,6 +165,6 @@ enum {
+ 	#endif
+ #endif
+ 
+-long quotactl __P((int, const char *, qid_t, caddr_t));
++long quotactl (int, const char *, qid_t, caddr_t);
+ 
+ #endif /* _QUOTA_ */
+Index: quota-tools/quotacheck.c
+===================================================================
+--- quota-tools.orig/quotacheck.c
++++ quota-tools/quotacheck.c
+@@ -19,6 +19,7 @@
+ #include <unistd.h>
+ #include <stdlib.h>
+ #include <errno.h>
++#include <fcntl.h>
+ 
+ #include <sys/stat.h>
+ #include <sys/types.h>
+Index: quota-tools/quotaio.c
+===================================================================
+--- quota-tools.orig/quotaio.c
++++ quota-tools/quotaio.c
+@@ -12,6 +12,7 @@
+ #include <string.h>
+ #include <unistd.h>
+ #include <stdlib.h>
++#include <fcntl.h>
+ #include <sys/types.h>
+ #include <sys/stat.h>
+ #include <sys/file.h>
+Index: quota-tools/dqblk_v2.h
+===================================================================
+--- quota-tools.orig/dqblk_v2.h
++++ quota-tools/dqblk_v2.h
+@@ -7,6 +7,7 @@
+ #ifndef GUARD_DQBLK_V2_H
+ #define GUARD_DQBLK_V2_H
+ 
++#include <fcntl.h>
+ #include <sys/types.h>
+ #include "quota_tree.h"
+ 
+Index: quota-tools/quotaops.c
+===================================================================
+--- quota-tools.orig/quotaops.c
++++ quota-tools/quotaops.c
+@@ -34,7 +34,9 @@
+ 
+ #include "config.h"
+ 
++#if defined(RPC)
+ #include <rpc/rpc.h>
++#endif
+ #include <sys/types.h>
+ #include <sys/stat.h>
+ #include <sys/file.h>
+Index: quota-tools/rquota_client.c
+===================================================================
+--- quota-tools.orig/rquota_client.c
++++ quota-tools/rquota_client.c
+@@ -19,7 +19,9 @@
+ 
+ #include "config.h"
+ 
++#if defined(RPC)
+ #include <rpc/rpc.h>
++#endif
+ #include <sys/types.h>
+ #include <sys/param.h>
+ #include <sys/stat.h>
+@@ -35,7 +37,9 @@
+ #include <stdint.h>
+ 
+ #include "mntopt.h"
++#if defined(RPC)
+ #include "rquota.h"
++#endif
+ #include "common.h"
+ #include "quotaio.h"
+ #include "quotasys.h"
+Index: quota-tools/setquota.c
+===================================================================
+--- quota-tools.orig/setquota.c
++++ quota-tools/setquota.c
+@@ -7,7 +7,9 @@
+ 
+ #include "config.h"
+ 
++#if defined(RPC)
+ #include <rpc/rpc.h>
++#endif
+ #include <sys/types.h>
+ #include <errno.h>
+ #include <stdio.h>
package/quota/0004-remove_non_posix_types.patch new file +206 -0

206 lines not on this page · raw message

Signature · 1 line
2.7.0.rc3
#2 lore raw

PATCH 1/2 package/quota: renumber patches

In reply to Bernd Kuhls

Hello,

Quoted 7 lines · Bernd Kuhls
---
 .../{01-tools-getrpcbynumber.patch => 0001-tools-getrpcbynumber.patch}    | 0
 .../quota/{02-fix-static-linking.patch => 0002-fix-static-linking.patch}  | 0
 2 files changed, 0 insertions(+), 0 deletions(-)
 rename package/quota/{01-tools-getrpcbynumber.patch => 0001-tools-getrpcbynumber.patch} (100%)
 rename package/quota/{02-fix-static-linking.patch => 0002-fix-static-linking.patch} (100%)

Not terribly useful by itself without the following musl patch, but I've applied it to master nonetheless since it was pending. For the musl patch, could you respin after fixing the global comments that I did on all your musl patches?

Thanks!

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com