Attention is currently required from: lynxis lazus.
pespin has posted comments on this change. ( https://gerrit.osmocom.org/c/erlang/osmo_dia2gsup/+/28650 )
Change subject: add rebar.lock to define known working dependencies
......................................................................
Patch Set 1:
(1 comment)
Patchset:
PS1:
why is this needed in the git repo?
--
To view, visit https://gerrit.osmocom.org/c/erlang/osmo_dia2gsup/+/28650
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: erlang/osmo_dia2gsup
Gerrit-Branch: master
Gerrit-Change-Id: I40660b23cee04ef2b4afbca34522a42a4b057e2e
Gerrit-Change-Number: 28650
Gerrit-PatchSet: 1
Gerrit-Owner: lynxis lazus <lynxis(a)fe80.eu>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: osmith <osmith(a)sysmocom.de>
Gerrit-Reviewer: pespin <pespin(a)sysmocom.de>
Gerrit-Attention: lynxis lazus <lynxis(a)fe80.eu>
Gerrit-Comment-Date: Tue, 19 Jul 2022 10:52:32 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Gerrit-MessageType: comment
pespin has submitted this change. ( https://gerrit.osmocom.org/c/libosmo-netif/+/28647 )
Change subject: stream: getsockopt ret socklen_t is unsigned
......................................................................
stream: getsockopt ret socklen_t is unsigned
Found out by following gcc warning:
"""
libosmo-netif/src/stream.c:147:11: warning: argument to variable-length array may be too large due to conversion from ‘int’ to ‘unsigned int’ [-Wvla-larger-than=]
147 | uint8_t buf[sctp_sockopt_event_subscribe_size];
| ^~~
"""
Change-Id: I181ae5c0480788fc96abd2bb1edf003244884c8f
---
M src/stream.c
1 file changed, 3 insertions(+), 3 deletions(-)
Approvals:
Jenkins Builder: Verified
fixeria: Looks good to me, but someone else must approve
osmith: Looks good to me, but someone else must approve
dexter: Looks good to me, but someone else must approve
pespin: Looks good to me, approved
diff --git a/src/stream.c b/src/stream.c
index e6b731c..cdd0eae 100644
--- a/src/stream.c
+++ b/src/stream.c
@@ -87,7 +87,7 @@
return -1;
}
-static int sctp_sockopt_event_subscribe_size = 0;
+static unsigned int sctp_sockopt_event_subscribe_size = 0;
static int determine_sctp_sockopt_event_subscribe_size(void)
{
@@ -96,7 +96,7 @@
int sd, rc;
/* only do this once */
- if (sctp_sockopt_event_subscribe_size != 0)
+ if (sctp_sockopt_event_subscribe_size > 0)
return 0;
sd = socket(AF_INET, SOCK_STREAM, IPPROTO_SCTP);
@@ -108,7 +108,7 @@
if (rc < 0)
return rc;
- sctp_sockopt_event_subscribe_size = buf_len;
+ sctp_sockopt_event_subscribe_size = (unsigned int)buf_len;
LOGP(DLINP, LOGL_INFO, "sizes of 'struct sctp_event_subscribe': compile-time %zu, kernel: %u\n",
sizeof(struct sctp_event_subscribe), sctp_sockopt_event_subscribe_size);
--
To view, visit https://gerrit.osmocom.org/c/libosmo-netif/+/28647
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: libosmo-netif
Gerrit-Branch: master
Gerrit-Change-Id: I181ae5c0480788fc96abd2bb1edf003244884c8f
Gerrit-Change-Number: 28647
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <pespin(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: dexter <pmaier(a)sysmocom.de>
Gerrit-Reviewer: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Reviewer: laforge <laforge(a)osmocom.org>
Gerrit-Reviewer: osmith <osmith(a)sysmocom.de>
Gerrit-Reviewer: pespin <pespin(a)sysmocom.de>
Gerrit-MessageType: merged
Attention is currently required from: lynxis lazus.
osmith has posted comments on this change. ( https://gerrit.osmocom.org/c/erlang/osmo_dia2gsup/+/28653 )
Change subject: debian: add generate_build_dep.sh to vendor erlang dependencies
......................................................................
Patch Set 1:
(3 comments)
Commit Message:
https://gerrit.osmocom.org/c/erlang/osmo_dia2gsup/+/28653/comment/fb1c5a7b_…
PS1, Line 8:
the plan is to run this while generating source packages in the jenkins jobs, I'd mention it here.
File contrib/generate_build_dep.sh:
https://gerrit.osmocom.org/c/erlang/osmo_dia2gsup/+/28653/comment/44e7df20_…
PS1, Line 1: #!/bin/sh
#!/bin/sh -e
so it fails if one of the commands fail?
https://gerrit.osmocom.org/c/erlang/osmo_dia2gsup/+/28653/comment/eb2e4eb8_…
PS1, Line 10:
I'd add "set -x" here so we see the commands, in case one fails
--
To view, visit https://gerrit.osmocom.org/c/erlang/osmo_dia2gsup/+/28653
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: erlang/osmo_dia2gsup
Gerrit-Branch: master
Gerrit-Change-Id: I22041887fd1b72ea328605d18801d412b86bfc9c
Gerrit-Change-Number: 28653
Gerrit-PatchSet: 1
Gerrit-Owner: lynxis lazus <lynxis(a)fe80.eu>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: osmith <osmith(a)sysmocom.de>
Gerrit-Attention: lynxis lazus <lynxis(a)fe80.eu>
Gerrit-Comment-Date: Tue, 19 Jul 2022 10:46:22 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Gerrit-MessageType: comment
Attention is currently required from: lynxis lazus.
osmith has posted comments on this change. ( https://gerrit.osmocom.org/c/erlang/osmo_dia2gsup/+/28652 )
Change subject: debian: rework packaging
......................................................................
Patch Set 1:
(3 comments)
Patchset:
PS1:
Thanks, this is much cleaner! LGTM besides the "rm -rf" command
File debian/osmo-diameter2gsup.install:
https://gerrit.osmocom.org/c/erlang/osmo_dia2gsup/+/28652/comment/5f2a65c9_…
PS1, Line 2: /_build/default/bin/osmo-dia2gsup /usr/bin/
does it still start with the systemd service? I'm not familiar at all with erlang, I though the other libraries were needed at runtime
File debian/rules:
https://gerrit.osmocom.org/c/erlang/osmo_dia2gsup/+/28652/comment/3c0c5986_…
PS1, Line 18: _lib
_lib doesn't get created anymore:
rm -rf _build
--
To view, visit https://gerrit.osmocom.org/c/erlang/osmo_dia2gsup/+/28652
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: erlang/osmo_dia2gsup
Gerrit-Branch: master
Gerrit-Change-Id: I40add168875de87ef0cc62deeb5377d2ce080e45
Gerrit-Change-Number: 28652
Gerrit-PatchSet: 1
Gerrit-Owner: lynxis lazus <lynxis(a)fe80.eu>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: osmith <osmith(a)sysmocom.de>
Gerrit-Attention: lynxis lazus <lynxis(a)fe80.eu>
Gerrit-Comment-Date: Tue, 19 Jul 2022 10:43:19 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Gerrit-MessageType: comment