Skip to content

Pub package manager does not handle native extensions #6290

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

Closed
whesse opened this issue Oct 26, 2012 · 3 comments
Closed

Pub package manager does not handle native extensions #6290

whesse opened this issue Oct 26, 2012 · 3 comments
Labels
closed-duplicate Closed in favor of an existing report

Comments

@whesse
Copy link
Contributor

whesse commented Oct 26, 2012

I don't think that pub will correctly manage and download the native extension shared libraries for a Dart extension. These are typically dart libraries with an import statement like

import("dart-ext:foo"),

which makes the standalone Dart binary load a library named foo.dll, libfoo.so, or libfoo.dylib, and run the initialization routine. To distribute these packages, pub would have to download the appropriate native library to the package cache.

This is also blocked on proper handling of the package: prefix in the URL of the importing library, when figuring out the path of the native shared library from the (relative) path in the dart-ext: import. This is issue #6264.

@DartBot
Copy link

DartBot commented Oct 26, 2012

This comment was originally written by @mezoni


Once again you are part approach to solving this problem.
I'll give a little hint.

At what host machine they will be compiled and linked?
Not all operating systems are free.

Not everyone can be on your machine have a different number of platforms.

I think that soon you will not solve this problem.

Unless, of course, will not be found any suitable solution. Compromise.

Or do you have a deck of cards with a more than four aces.

@sethladd
Copy link
Contributor

Added Duplicate label.
Marked as being merged into #3023.

@DartBot
Copy link

DartBot commented Jun 5, 2015

This issue has been moved to dart-lang/pub#250.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
closed-duplicate Closed in favor of an existing report
Projects
None yet
Development

No branches or pull requests

3 participants