Skip to content

Commit

Permalink
Remove library symbol from older distribution
Browse files Browse the repository at this point in the history
Debian 8 and Ubuntu 14.04 don't export the added library symbols and if
these symbols are in definition files, it causes a build error.

This removes the symbols before building a package in these
distributions.
  • Loading branch information
tatsushid committed Jun 22, 2017
1 parent 2504e06 commit 85bb0a2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Dockerfile.debian8
Expand Up @@ -49,6 +49,9 @@ RUN cd $HOME/h2o/h2o-${PKGVER} \
&& sudo chown -R builder:builder debian \
&& mv -f debian/changelog.debian8 debian/changelog \
&& rm -f debian/changelog.*
RUN cd $HOME/h2o/h2o-${PKGVER} \
&& sed -i -e '/h2o_ssl_register_alpn_protocols/d' debian/libh2o0.symbols \
&& sed -i -e '/h2o_ssl_register_alpn_protocols/d' debian/libh2o-evloop0.symbols
RUN cd $HOME/h2o/h2o-${PKGVER} \
&& dpkg-buildpackage -us -uc \
&& tar -czf /tmp/h2o.tar.gz -C $HOME/h2o --exclude=./h2o-${PKGVER} .
Expand Down
3 changes: 3 additions & 0 deletions Dockerfile.ubuntu1404
Expand Up @@ -58,6 +58,9 @@ RUN cd $HOME/h2o/h2o-${PKGVER} \
&& sudo chown -R builder:builder debian \
&& mv -f debian/changelog.ubuntu1404 debian/changelog \
&& rm -f debian/changelog.*
RUN cd $HOME/h2o/h2o-${PKGVER} \
&& sed -i -e '/h2o_ssl_register_alpn_protocols/d' debian/libh2o0.symbols \
&& sed -i -e '/h2o_ssl_register_alpn_protocols/d' debian/libh2o-evloop0.symbols
RUN cd $HOME/h2o/h2o-${PKGVER} \
&& dpkg-buildpackage -us -uc \
&& tar -czf /tmp/h2o.tar.gz -C $HOME/h2o --exclude=./h2o-${PKGVER} .
Expand Down

0 comments on commit 85bb0a2

Please sign in to comment.