Get packaged for debian #1432
Comments
Debian's "no new packages" date for their next release is right after 1/1, so if we want to get in for Debian 9 we need to move quickly. |
Hmm, what distro should we develop on? Don't think 9-pre-releases are On Tue, Nov 15, 2016 at 10:41 AM, Jeff Kaufman notifications@github.com
|
It looks like you set up debian 8, and then upgrade it to unstable: how do I install unstable |
Made some progress --- getting something that probably loads our .so (assuming I actually have everything in patches and not directly in source tree) , and mostly links natively. |
Will attach some more after I work around github not liking tar.xz. Couldn't use system modp_b64 and google-sparsehash, the packages seem to have trouble. Didn't touch closure, either. (Also should remember to limit archs to i386 and amd64) dpkg-deb -I libapache2-mod-pagespeed_1.11.33.4-1_amd64.deb |
modpagespeed_1.11.33.4-1.debian.tar.gz More metatadata filled in, fixes for pagespeed.conf generation, fix for grey_alpha handling of libpng (preliminary, needs more review and trunk link) |
Let me know when you have something you'd like me to look at. We should also (at some point) start looping debian people in to see what they think. |
It's pretty close --- see the doc for status. Actually, there is one thing I need your help with: |
How about:
|
Used it, thanks. |
modpagespeed_1.11.33.4-1.debian.tar.gz So this is really close. Probably --- I should actually trying running it :) Wonder where would a good place to put the .xz version of that, the .dsc file and the slimmed-down tarball --- the 3 together basically correspond to a Debian source package. (Might also make sense to github the contents of the above tarball somehow?) |
... Crashes at startup w/a bad_alloc throw in some proto stuff. Might need to do something with initialization: #1 0x00007ffff718440a in __GI_abort () at abort.c:89 |
~ProcessContext calling ShutDownProtobufLibrary appears to be the proximate cause. |
Hmm, more like that does it job right, but on the second load of the load/unload/load sequence some things don't seem to be reinitialized by GoogleOnceInit.. ==5556== Invalid read of size 8 ... while removing the ShutDown just produces: ... Which also suggests a bunch of stuff sticks around after the unload (I would think it unreachable). |
I think I am semi-understanding this. So 2 scenarios: Not sure if there is any option better than just picking ourselves. |
pinning, rather. |
This works, and I get quite a bit through integration tests (though not entirely): --- a/src/net/instaweb/rewriter/process_context.cc
#include <unistd.h> #include
|
modpagespeed_1.11.33.4-1.debian.tar.gz Looking at integration tests now. A non-trivial number do fail (haven't sussed out the pattern yet), but also most of them do work. |
modpagespeed_1.11.33.4-1.debian.tar.gz Found another problem involving tail padding.
|
OK, this is everything that should be in the source package --- including the original tarball[1], the debian dir, and the .dsc file linking the two [1] Should probably find a proper home for that, and export the script to trunk --- it's basically a subset of the existing tarball. |
Working on getting this uploaded to mentors.debian.org so I can file an RFS (request for sponsorship). Steps so far:
|
Following https://mentors.debian.net/intro-maintainers I put:
in my
|
The docs say "If you did everything right, you will get a confirmation mail from our site and you can start seeking a sponsor for your package" but I don't see an email from them and I don't see any packages on https://mentors.debian.net/packages/my |
https://mentors.debian.net/qa says:
but it's been more like 10min. I can try being more patient. |
Output of
|
The docs say to contact their support email "if problems persist" so it sounds like I should rerun the tool. Trying that now. |
|
Apparently that message just means that
|
Checked my spam folder, no response from debian there. |
It sent the rejection to morlovich@; I probably need to change another file |
Changed
|
Running |
package upload was successful! @morlovich there are a bunch of errors it finds with the package: https://mentors.debian.net/package/modpagespeed -- are these expected? |
@morlovich why is genfiles in this package at all? |
For the record:
The JS ones are since we are using precompiled JS stuff by default, see the
docs:
https://github.com/pagespeed/mod_pagespeed/blob/master/net/instaweb/closure.gypi#L15
…On Fri, Dec 9, 2016 at 11:22 AM, Jeff Kaufman ***@***.***> wrote:
@morlovich <https://github.com/morlovich> why is genfiles in this package
at all?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1432 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ADl1RMRW8OdDNyJDSXmDsMdgV7thVhH2ks5rGYBcgaJpZM4Kyq5a>
.
|
I think this is incompatible with their policy guidelines. I think we probably need to set things up so it builds the js from source by default. (I said this by IM as well, but I wanted to make it public for future people reading this.) |
Then adding closure-compiler to Build-Depends in debian/control and
exporting BUILD_JS[1] when running gyp in debian/rules might do the trick;
would want to test stuff that uses it by hand then, though.
[1] not sure why that's using an envvar and not a gyp var..
…On Fri, Dec 9, 2016 at 11:34 AM, Jeff Kaufman ***@***.***> wrote:
the JS ones are since we are using precompiled JS stuff by default
I think this is incompatible with their policy guidelines. I think we
probably need to set things up so it builds the js from source by default.
(I said this by IM as well, but I wanted to make it public for future
people reading this.)
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1432 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ADl1RHigKN0Z6ERJa2wB-fzlIsXfl8Kpks5rGYMYgaJpZM4Kyq5a>
.
|
Filed the RFS https://bugs.debian.org/847603 |
Also packaging of pagespeed_js_minify, and license for one thing that ought to be in the tarball but isn't. |
... And now I notice that the extra in the copyright file should be externs |
Debian has an existing bug out asking for mod_pagespeed integration: debian:602316.
Their docs on how to get started as a package maintainer: Debian New Maintainers' Guide
I think the process here would be something like:
quilt
patching workflow, modify it to build against debian packages instead of bundled dependencies. (See the list I posted at the bottom of debian:602316.)(Everything seems pretty resolvable, except for the situation with serf. Not sure what to do there; we should talk to someone at debian. But we can start the process of getting a debian-compliant tarball without that.)
The text was updated successfully, but these errors were encountered: