Skip to content

Commit

Permalink
Merge pull request #188 from epics-extensions/backport/187-to-nixos-2…
Browse files Browse the repository at this point in the history
…4.05

[Backport nixos-24.05] support.opcua: 0-10-0-dev -> 0-10-0
  • Loading branch information
minijackson authored Oct 8, 2024
2 parents f971c90 + 876a57d commit 884d4f2
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkgs/epnix/support/opcua/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@
}:
mkEpicsPackage {
pname = "opcua";
version = "0.10.0-dev";
version = "0.10.0";
varname = "OPCUA";

src = fetchFromGitHub {
owner = "epics-modules";
repo = "opcua";
rev = "3d10053";
hash = "sha256-EQra8PesO7Rlhj+pBlAfiqh5yjJwRkuh7gbGziY58iI=";
rev = "v0.10.0";
hash = "sha256-l2+TUqVeDh9yRSBXMV0xGrdqBETvc5lfvMRuoqYy1wg=";
};

inherit local_release;
Expand Down
2 changes: 2 additions & 0 deletions pkgs/epnix/tools/open62541_1_3/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ in
};

patches = [
# https://github.com/epics-modules/opcua/blob/b5db09477eb6404187199753df9e626d9a432210/devOpcuaSup/open62541/README.md#bugfix-for-shared-build
./shared_build.patch
(fetchpatch {
name = "Ensure-absolute-paths-in-pkg-config-file.patch";
url = "https://github.com/open62541/open62541/commit/023d4b6b8bdec987f8f3ffee6c09801bbee4fa2d.patch";
Expand Down
13 changes: 13 additions & 0 deletions pkgs/epnix/tools/open62541_1_3/shared_build.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
diff --git a/src/ua_types.c b/src/ua_types.c
index b8f6739bb..7e8f7c43d 100644
--- a/src/ua_types.c
+++ b/src/ua_types.c
@@ -1880,7 +1880,7 @@ UA_Array_delete(void *p, size_t size, const UA_DataType *type) {
}

#ifdef UA_ENABLE_TYPEDESCRIPTION
-UA_Boolean
+UA_Boolean UA_EXPORT
UA_DataType_getStructMember(const UA_DataType *type, const char *memberName,
size_t *outOffset, const UA_DataType **outMemberType,
UA_Boolean *outIsArray) {

0 comments on commit 884d4f2

Please sign in to comment.