GithubHelp home page GithubHelp logo

1.0.2 broke freebsd about dns-lookup HOT 8 CLOSED

rustysec avatar rustysec commented on July 17, 2024
1.0.2 broke freebsd

from dns-lookup.

Comments (8)

Erk- avatar Erk- commented on July 17, 2024

Seems that it is missing in libc as far as I can tell from man getnameinfo FreeBSD does support NI_NUMERICSERV.

from dns-lookup.

Erk- avatar Erk- commented on July 17, 2024

I have made a pr to libc to fix the issue so we can wait for upstream to be merged.
rust-lang/libc#1768

from dns-lookup.

keeperofdakeys avatar keeperofdakeys commented on July 17, 2024

Thanks for letting me know. In this case it's probably best to wait till this has been fixed upstream.

In the mean time it looks like Travis CI now has freebsd support (or will have). I'll have a look into getting this enabled on this repo. travis-ci/travis-build#1780

Did you run a git bisect? I don't have access to a freebsd machine at the moment, and this would help verify the reason it's failing.

from dns-lookup.

Erk- avatar Erk- commented on July 17, 2024

The reason it is failing is that NI_NUMERICSERV is not exposed to FreeBSD in libc which my patch above fixes. So it broke in the 59e8743 commit. I fixed it locally and it worked, but it seems I have to fix the patch up a bit so it does not fail on older versions of freebsd.

from dns-lookup.

Erk- avatar Erk- commented on July 17, 2024

This will be fixed with the next release of libc to use it now you can try out patching the dependency.

[patch.crates-io]
libc = { git = "https://github.com/rust-lang/libc.git" }

from dns-lookup.

keeperofdakeys avatar keeperofdakeys commented on July 17, 2024

I've added freebsd to travisci, so hopefully we'll catch any issues with freebsd in the future. Since the libc crate appears to be doing a release every few weeks I'll leave this open till the next release, and test/verify when it's released.

If you need freebsd support now then hardcoding 1.0.1 is fine, the only feature packaged in 1.0.2 is the gethostname change.

from dns-lookup.

Erk- avatar Erk- commented on July 17, 2024

@keeperofdakeys The new version have been released so could I get you to rerun the tests and then close this if it works.

from dns-lookup.

keeperofdakeys avatar keeperofdakeys commented on July 17, 2024

Thanks, travisci is now passing. I've pushed 1.0.3 with no changes, because I don't actually know if crates.io enforces subversions or not. Either way it should be good now.

from dns-lookup.

Related Issues (19)

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.