-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Create Debian packages #5285
Comments
Not sure I understand where to draw the line between -dev and not. Does llvm distinguish between libllvm and libllvm-dev? |
What version(s) of LLVM does Ubuntu include? Since we don't support anything older than LLVM9 (and will soon be dropping that), that could be a problem... |
Ubuntu 20.04 LTS includes 10.0.0, which is fine. |
I asked because I couldn't think of a case where libhalide.so is useful to anyone without the headers too, but I guess libhalide without the -dev is useful for some hypothetical application that wants to use halide for jit internally. |
Right. Developers will install |
Congratulations, everyone: |
It would be nice for users of Debian and/or Ubuntu to simply run:
However, the rules for getting a package upstreamed are stringent and there's a veritable book of package guidelines for Debian, here:
https://www.debian.org/doc/manuals/debmake-doc/
and Ubuntu extends it here:
https://packaging.ubuntu.com/html/index.html
However, PPAs are more "anything goes". I think the right strategy is to figure out deb packaging enough that we get an established user base on the PPA and then try to make the package conform to upstream guidelines, possibly with some help from maintainers.
Even with the flexible Ubuntu PPA rules, there are a few things that we do need to keep in mind to be good citizens:
a.
libhalide
which includes the.so
[1] and the autoscheduler modules.b.
libhalide-dev
which includes most other things:.a
, headers, tools, etc.c.
libhalide-doc
which includes the tutorials and the doxygen documentation.libhalide-dev
libhalide
as a dependency oflibhalide-dev
andlibhalide-doc
as a suggested package forlibhalide-dev
.libhalide-doc
shouldn't have any dependencies.[1] I did an
apt-file
search for every.a
in my/usr
directory and of the 500+ static libs there, all but 47 were in the corresponding-dev
package. The others were fromliblld-10
, which I'm nearly certain is mis-packaged;ocaml-nox
, which I'm guessing needs them for linking; andvalgrind
,pristine-tar
, andpython3-numpy
for unknown reasons.The text was updated successfully, but these errors were encountered: