Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rebar.config: Fix deps syntax #7

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

pespin
Copy link

@pespin pespin commented Oct 26, 2023

  • Fix git:// protocol not available anymore on github.
  • Fix following warning from rebar3: "WARNING: It is recommended to use {branch, Name}, {tag, Tag} or {ref, Ref}, otherwise updating the dep may not work as expected."

* Fix git:// protocol not available anymore on github.
* Fix following warning from rebar3:
"WARNING: It is recommended to use {branch, Name}, {tag, Tag} or {ref, Ref},
otherwise updating the dep may not work as expected."
It also fixes a compile error during build with OTP-26:
"""
===> Compiling src/netlink_queue.erl failed
src/netlink_queue.erl:none: error in parse transform 'lager_transform':
exception error: bad argument
  in function  integer_to_list/1
     called as integer_to_list({80,6})
     *** argument 1: not an integer
  in call from lager_transform:make_varname/2 (/gen_netlink/_build/default/lib/lager/src/lager_transform.erl, line 241)
  in call from lager_transform:do_transform/5 (/gen_netlink/_build/default/lib/lager/src/lager_transform.erl, line 180)
  in call from lager_transform:'-transform_statement/2-lc$^0/1-0-'/2 (/gen_netlink/_build/default/lib/lager/src/lager_transform.erl, line 109)
  in call from lager_transform:'-transform_statement/2-lc$^0/1-0-'/2 (/gen_netlink/_build/default/lib/lager/src/lager_transform.erl, line 109)
  in call from lager_transform:transform_statement/2 (/gen_netlink/_build/default/lib/lager/src/lager_transform.erl, line 107)
  in call from lager_transform:'-transform_statement/2-lc$^0/1-0-'/2 (/gen_netlink/_build/default/lib/lager/src/lager_transform.erl, line 109)
  in call from lager_transform:'-transform_statement/2-lc$^0/1-0-'/2 (/gen_netlink/_build/default/lib/lager/src/lager_transform.erl, line 109)
"""
https://kernel.org/doc/html/next/userspace-api/netlink/intro.html:
"""
For GET - NLM_F_ROOT and NLM_F_MATCH are combined into NLM_F_DUMP,
and not used separately. NLM_F_ATOMIC is never used.
"""

This fixes nl_rt_dec() incorrectly entering the is_rt_dump() path when
a response for create interface is received, because it has NLM_F_ROOT
set but not NLM_F_MATCH, and hence before this patch it would make
is_rtp_dump() incorrectly return true.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant