All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] package/libiio: fix C# build
@ 2021-09-05 19:25 Fabrice Fontaine
  2021-09-11 14:18 ` Arnout Vandecappelle
  0 siblings, 1 reply; 2+ messages in thread
From: Fabrice Fontaine @ 2021-09-05 19:25 UTC (permalink / raw)
  To: buildroot; +Cc: Paul Cercueil, Fabrice Fontaine

C# build is broken since bump to version 0.23 in commit
50b6d7d69f880e940d7c281c493a6a6694d6ebe3:

/tmp/instance-0/output-1/build/libiio-0.23/bindings/csharp/Device.cs(211,32): error CS0106: The modifier `readonly' is not valid for this item

Fixes:
 - http://autobuild.buildroot.org/results/a26cce9760c75c44ebdcf21dfb4a69aad5702de4

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
---
 ...rs-setters-cannot-be-marked-readonly.patch | 32 +++++++++++++++++++
 1 file changed, 32 insertions(+)
 create mode 100644 package/libiio/0001-C-public-fields-with-getters-setters-cannot-be-marked-readonly.patch

diff --git a/package/libiio/0001-C-public-fields-with-getters-setters-cannot-be-marked-readonly.patch b/package/libiio/0001-C-public-fields-with-getters-setters-cannot-be-marked-readonly.patch
new file mode 100644
index 0000000000..a665d48363
--- /dev/null
+++ b/package/libiio/0001-C-public-fields-with-getters-setters-cannot-be-marked-readonly.patch
@@ -0,0 +1,32 @@
+From 85bf9cd32138539252ed01c355cf766612cf47c9 Mon Sep 17 00:00:00 2001
+From: Paul Cercueil <paul@crapouillou.net>
+Date: Thu, 2 Sep 2021 11:04:21 +0100
+Subject: [PATCH] C#: public fields with getters/setters cannot be marked
+ readonly
+
+MSVC would fail with the following error:
+error CS0106: The modifier 'readonly' is not valid for this item
+
+Reported-by: Raluca Chis <raluca.chis@analog.com>
+Signed-off-by: Paul Cercueil <paul@crapouillou.net>
+
+[Retrieved from:
+https://github.com/analogdevicesinc/libiio/commit/85bf9cd32138539252ed01c355cf766612cf47c9]
+Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
+---
+ bindings/csharp/Device.cs | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/bindings/csharp/Device.cs b/bindings/csharp/Device.cs
+index 96214243f..6c8c8f4f3 100644
+--- a/bindings/csharp/Device.cs
++++ b/bindings/csharp/Device.cs
+@@ -208,7 +208,7 @@ public override void write(string str)
+         public readonly string name;
+ 
+         /// <summary>The label of this device.</summary>
+-        public readonly string label { get; private set; }
++        public string label { get; private set; }
+ 
+         /// <summary>A <c>list</c> of all the attributes that this device has.</summary>
+         public readonly List<Attr> attrs;
-- 
2.33.0

_______________________________________________
buildroot mailing list
buildroot@lists.buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [Buildroot]  [PATCH 1/1] package/libiio: fix C# build
  2021-09-05 19:25 [Buildroot] [PATCH 1/1] package/libiio: fix C# build Fabrice Fontaine
@ 2021-09-11 14:18 ` Arnout Vandecappelle
  0 siblings, 0 replies; 2+ messages in thread
From: Arnout Vandecappelle @ 2021-09-11 14:18 UTC (permalink / raw)
  To: Fabrice Fontaine, buildroot; +Cc: Paul Cercueil



On 05/09/2021 21:25, Fabrice Fontaine wrote:
> C# build is broken since bump to version 0.23 in commit
> 50b6d7d69f880e940d7c281c493a6a6694d6ebe3:
> 
> /tmp/instance-0/output-1/build/libiio-0.23/bindings/csharp/Device.cs(211,32): error CS0106: The modifier `readonly' is not valid for this item
> 
> Fixes:
>  - http://autobuild.buildroot.org/results/a26cce9760c75c44ebdcf21dfb4a69aad5702de4
> 
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>

 Applied to master, thanks.

 Regards,
 Arnout

> ---
>  ...rs-setters-cannot-be-marked-readonly.patch | 32 +++++++++++++++++++
>  1 file changed, 32 insertions(+)
>  create mode 100644 package/libiio/0001-C-public-fields-with-getters-setters-cannot-be-marked-readonly.patch
> 
> diff --git a/package/libiio/0001-C-public-fields-with-getters-setters-cannot-be-marked-readonly.patch b/package/libiio/0001-C-public-fields-with-getters-setters-cannot-be-marked-readonly.patch
> new file mode 100644
> index 0000000000..a665d48363
> --- /dev/null
> +++ b/package/libiio/0001-C-public-fields-with-getters-setters-cannot-be-marked-readonly.patch
> @@ -0,0 +1,32 @@
> +From 85bf9cd32138539252ed01c355cf766612cf47c9 Mon Sep 17 00:00:00 2001
> +From: Paul Cercueil <paul@crapouillou.net>
> +Date: Thu, 2 Sep 2021 11:04:21 +0100
> +Subject: [PATCH] C#: public fields with getters/setters cannot be marked
> + readonly
> +
> +MSVC would fail with the following error:
> +error CS0106: The modifier 'readonly' is not valid for this item
> +
> +Reported-by: Raluca Chis <raluca.chis@analog.com>
> +Signed-off-by: Paul Cercueil <paul@crapouillou.net>
> +
> +[Retrieved from:
> +https://github.com/analogdevicesinc/libiio/commit/85bf9cd32138539252ed01c355cf766612cf47c9]
> +Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
> +---
> + bindings/csharp/Device.cs | 2 +-
> + 1 file changed, 1 insertion(+), 1 deletion(-)
> +
> +diff --git a/bindings/csharp/Device.cs b/bindings/csharp/Device.cs
> +index 96214243f..6c8c8f4f3 100644
> +--- a/bindings/csharp/Device.cs
> ++++ b/bindings/csharp/Device.cs
> +@@ -208,7 +208,7 @@ public override void write(string str)
> +         public readonly string name;
> + 
> +         /// <summary>The label of this device.</summary>
> +-        public readonly string label { get; private set; }
> ++        public string label { get; private set; }
> + 
> +         /// <summary>A <c>list</c> of all the attributes that this device has.</summary>
> +         public readonly List<Attr> attrs;
> 
_______________________________________________
buildroot mailing list
buildroot@lists.buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-09-11 14:18 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-05 19:25 [Buildroot] [PATCH 1/1] package/libiio: fix C# build Fabrice Fontaine
2021-09-11 14:18 ` Arnout Vandecappelle

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.