Code Monkey home page Code Monkey logo

exodm's People

Contributors

magnusfeuer avatar malotte avatar tonyrog avatar uwiger avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Forkers

isabella232

exodm's Issues

Add details of the build environment to exodm wiki?

It may be appropriate to state what the build tools and environment are for exodm in the wiki? For instance, I started off with OTP 17.4 on Lubuntu 14.04. I nearly just tried it natively on my Mac, but was highly suspicious of that.

It seems that the "regular" build system would be OTP R15B02 on some version of CentOS? At least for 1.3?

Extra comma in yaws file

ERL: OTP 17.4
Exodm: master

On line 800 of the deps/yang/yang_validate.erl file there is what looks like an extra comma. Look after "none":

rule('type') ->
    {'type',identifier_ref,
     ?ALL(0,none‚,[
           ?Y(0,1,'fraction-digits'), %% decimal64
           ?Y(0,1,'range'),   %% numerical
           ?Y(0,1,'length'),
           ?Y(0,n,'pattern'),  %% string
           ?Y(0,n,'enum'),   %% enum
           ?Y(0,1,'path'),   %% leafref FIXED: RFC6020 - Errata ID 2949
           ?Y(0,1,'base'),   %% identityref
           ?Y(0,1,'require-instance'),  %% instance-identifier
           ?Y(0,n,'bit'),               %% bits
           ?Y(0,n,'type')               %% union
          ])};

Create-yang-module.sh script does not work on lubuntu (or bash?)?

When trying to set up the Exosense server and add the ckp.yang file, I found that the create-yang-module.sh file would not work. I'm not sure entirely the reason, but changing the "==" equalities to "=" in the bash if statements did the trick. i.e.

if [ $# = 1 ]
then
    REPO=user
    YANG_FILE=$1
elif [ $# = 2 ]
then
    REPO=$1
    YANG_FILE=$2
else
    echo "Usage: $0 [user|system] yang-file"
    exit 255
fi

yaws dependency on crypto:sha/1 deprecated

ERL: OTP 17.4
eoxdm: master

This is artifact of using 17.4, ignore if you want.

When compiling yaws, the dependency on crypto:sha/1 causes the build to fail. It is deprecated. Changed the rebar.config, removed "warnings_as_errors" and added "nowarn_deprecated_type".

{erl_opts, [%% OTP R11 - R15B -> yaws_sendfile_drv or compat_send
            {platform_define,
             "R1([1-4]|5[AB]-).*(linux|freebsd|darwin)", 'HAVE_YAWS_SENDFILE'},
            {platform_define, "R1([1-4]|5[AB]-)", 'NO_FILE_SENDFILE'},
            no_debug_info,
            {src_dirs, ["src", "examples/src"]},
           nowarn_deprecated_type]}.

update-config-set.sh implemented incorrectly?

I struggled to use this file a bit, I believe the $VAL argument is supposed to be optional? And yet it seemed to be required. I also wasn't sure how to use it... Am I supposed to be able to change the yang spec for the config-set with this?

File encodings are not all UTF-8

ERL: OTP 17.4
Exodm: master

Feel free to ignore this, it was discovered when I was trying to build something with the latest code and OTP version.

There are several files with non utf-8 encodings. In some cases, this just generates an error. In other modules where the "warnings_as_errors" flag is set, it fails the build.

In lhttpc:

ERROR: Failed to extract name from /home/git/feuerlabs/exodm/deps/lhttpc/src/lhttpc.app.src: {27, file_io_server, invalid_unicode}

Just deleting the comment at the top of the file or forcing UTF-8 encoding fixes this.

In yaws:

==> yaws (compile)
--- Will not overwrite /home/rob/git/feuerlabs/exodm/deps/yaws/etc/yaws/yaws.conf
--- Installing local config file at /home/rob/git/feuerlabs/exodm/deps/yaws/etc/yaws/yaws.conf.template
/home/rob/git/feuerlabs/exodm/deps/yaws/src/yaws_xmlrpc.erl:1: Non-UTF-8 character(s) detected, but no encoding declared. Encode the file in UTF-8 or add "%% coding: latin-1" at the beginning of the file. Retrying with latin-1 encoding.
ERROR: compile failed while processing /home/rob/git/feuerlabs/exodm/deps/yaws: rebar_abort
make: *** [compile] Error 1

Also the following files in yaws have different encodings:

/exodm/deps/yaws/src/yaws_jsonrpc.erl
/eoxdm/deps/yaws/src/yaws_rpc.erl

Meck is about to use a deprecated package....

ERL: OTP 17.4
Exodm: Master

Feel free to ignore, this is an artifact of OTP 17.4.

Meck did not compile because there was a warning about a deprecated library and the "warnings_as_errors" flag was set inside that package:

==> meck (compile)
/home/rob/git/feuerlabs/exodm/deps/meck/src/meck.erl:71: type dict/0 is deprecated and will be removed in OTP 18.0; use use dict:dict/0 or preferably dict:dict/2
ERROR: compile failed while processing /home/rob/git/feuerlabs/exodm/deps/meck: rebar_abort
make: *** [compile] Error 1

Can be fixed by changing the erl_opts argument and adding the "nowarn_deprecated_type"?

In exodm/deps/meck/rebar.config

{erl_opts, [warnings_as_errors, debug_info, nowarn_deprecated_type]}.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.