Giter Club home page Giter Club logo

Comments (6)

ortolot avatar ortolot commented on June 24, 2024 1

Saúl Ibarra Corretgé, 2016-09-07 02:21-0700:

Those files were generated so long ago I don't even remember :-S I took them from what Node uses, in order to avoid having to use subprocesses and autotools to build pycares. I wouldn't mind adding them to pycares, but I have no way to test those platforms (nor much time at the moment, TBH). If you have working versions for those feel free to send a PR and I'll include it!

I think I will do that: prepare a change that adds generated versions
for these platforms, plus the files to generate them manually for new
platforms if needed, since it is always better to have all the source.

Out of curiosity: how did you get away with packaging it for Debian given I include a bundled and modified c-ares (for good reasons!) ? I thought this was against the policy.

Bundling an existing library goes against the policy indeed, but you are
not: your c-ares is a fork! Still, you have to take care of updating it
if security flaws are discovered in the original…

Librement,

Tanguy

from pycares.

saghul avatar saghul commented on June 24, 2024

Hi there! Thanks a lot for packaging pycares for Debian! 😍

If you generated config.h with an unmodified config.h.in and configure script from c-ares, or if you modified it but still have it, I could add it to the Debian package and use it to generate config.h (with some kind of Debian-specific patch). Ideally, that should rather be shipped with pycares itself, but I think you had a reason to pre-generate these ares_config.h. Perhaps you could ship it but leave it to the user or distro maintainer to re-generate them it they want to?

Those files were generated so long ago I don't even remember :-S I took them from what Node uses, in order to avoid having to use subprocesses and autotools to build pycares. I wouldn't mind adding them to pycares, but I have no way to test those platforms (nor much time at the moment, TBH). If you have working versions for those feel free to send a PR and I'll include it!

Out of curiosity: how did you get away with packaging it for Debian given I include a bundled and modified c-ares (for good reasons!) ? I thought this was against the policy.

from pycares.

ortolot avatar ortolot commented on June 24, 2024

Hello,

I have prepared a new version that can compile on OSes for which the
ares_config.h was not pre-generated, and I will soon upload to Debian.

What is does is that it runs the original c-ares configure script, which
I have added as debian add-on, along with all the other files it needs.
This generates ares_config.h, and also other files like a Makefile,
which I just discard.

Since you refresh files from c-ares from time to time anyway, do you
think you could grab the following ones as well (ares_build.h.in
ares_config.h.in config.guess config.sub configure install-sh
libcares.pc.in Makefile.in), and store them in a directory such as
deps/ares/src/config_source? Even if they are not used normally, this
way they would be there for people that want to regenerate
ares_config.h, for instance to add a new OS or to reflect changes to an
existing one.

Regards,

Tanguy

from pycares.

saghul avatar saghul commented on June 24, 2024

Hi!

The things the configure script figures out are not something that can change with time IIRC, so I'd rather sip the generated files instead, as we do now. On what platforms did you have to regerate the files? Wouldn't it be easier for Debian (or anyone else, for that matter) to not need any extra patches?

from pycares.

ortolot avatar ortolot commented on June 24, 2024

from pycares.

saghul avatar saghul commented on June 24, 2024

Closing since there is nothing actionable and a long time has passed. If you still want to ship the config files, please send a PR and I'll take a look!

from pycares.

Related Issues (20)

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.