[pkg-uWSGI-devel] Bug#892074: uwsgi: FTBFS with ruby2.5 as default

Emilio Pozuelo Monfort pochu at debian.org
Sat Mar 10 09:46:19 UTC 2018


On Sat, 10 Mar 2018 10:36:56 +0100 Emilio Pozuelo Monfort <pochu at debian.org> wrote:
> On Sun, 4 Mar 2018 20:02:30 -0300 Antonio Terceiro <terceiro at debian.org> wrote:
> > Source: uwsgi
> > Version: 2.0.15-10.2
> > Severity: serious
> > Justification: fails to build from source
> > 
> > I am about to upload ruby-defaults to unstable, switching the default
> > Ruby to ruby2.5. With that in place, uwsgi fails to build from source
> > like this:
> > 
> > [...]
> >  CFLAGS="-g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security" CPPFLAGS="-Wdate-time -D_FORTIFY_SOURCE=2" LDFLAGS="-Wl,-z,relro" python uwsgiconfig.py -v --plugin plugins/rack_ruby23 debian/buildconf/uwsgi-plugin.ini rack_ruby23
> > using profile: debian/buildconf/uwsgi-plugin.ini
> > detected include path: ['/usr/lib/gcc/x86_64-linux-gnu/7/include', '/usr/local/include', '/usr/lib/gcc/x86_64-linux-gnu/7/include-fixed', '/usr/include/x86_64-linux-gnu', '/usr/include']
> > *** uWSGI building and linking plugin plugins/rack_ruby23 ***
> > Error: unable to find directory 'plugins/rack_ruby23'
> > make: *** [debian/rules:450: debian/stamp-uwsgi-plugin-rack-ruby2.3] Error 1
> > dpkg-buildpackage: error: debian/rules build-arch subprocess returned exit status 2
> 
> This may just need a `./debian/rules debian/control DEB_MAINTAINER_MODE=y` to
> update debian/control for ruby2.5. With that I get:
> 
> --- debian/control.orig	2018-03-10 10:32:37.349224886 +0100
> +++ debian/control	2018-03-10 10:34:51.746009920 +0100
> @@ -5,7 +5,6 @@
>  Uploaders: Jonas Smedegaard <dr at jones.dk>
>  Build-Depends-Indep: shellcheck
>  Build-Depends:
> - 2to3,
>   cdbs (>= 0.4.145),
>   python,
>   python3,
> @@ -693,7 +692,7 @@
>   This package provides Python 3 WSGI plugin for uWSGI
>   (linked with Python 3 runtime).
> 
> -Package: uwsgi-plugin-rack-ruby2.3
> +Package: uwsgi-plugin-rack-ruby2.5
>  Architecture: any
>  Depends: ${shlibs:Depends}, ${misc:Depends}, uwsgi-core (= ${binary:Version})
>  Description: Rack plugin for uWSGI (${uwsgi:RubyKind})

Indeed with that I get uwsgi to build, so this just needs a sourceful
upload with an updated debian/control.

uwsgi-plugin-rack-ruby2.5_2.0.15-10.2_amd64.deb
-----------------------------------------------
 new Debian package, version 2.0.
 size 70744 bytes: control archive=1828 bytes.
     805 bytes,    19 lines      control              
     593 bytes,     7 lines      md5sums              
    2226 bytes,    80 lines   *  postinst             #!/bin/sh
    1440 bytes,    57 lines   *  prerm                #!/bin/sh
 Package: uwsgi-plugin-rack-ruby2.5
 Source: uwsgi
 Version: 2.0.15-10.2
 Architecture: amd64
 Maintainer: uWSGI packaging team <pkg-uwsgi-devel at lists.alioth.debian.org>
 Installed-Size: 132
 Depends: libc6 (>= 2.14), libgmp10, libruby2.5 (>= 2.5.0~preview1), uwsgi-core (= 2.0.15-10.2)
 Section: httpd
 Priority: optional
 Homepage: http://projects.unbit.it/uwsgi/
 Description: Rack plugin for uWSGI (ruby2.5)
  uWSGI presents a complete stack for networked/clustered web applications,
  implementing message/object passing, caching, RPC and process management.
  It is designed to be fully modular. This means that different plugins can be
  used in order to add compatibility with tons of different technology on top of
  the same core.
  .
  This package provides Rack plugin for uWSGI
  (linked with ruby2.5 runtime).
drwxr-xr-x root/root         0 2018-02-09 21:35 ./
drwxr-xr-x root/root         0 2018-02-09 21:35 ./usr/
drwxr-xr-x root/root         0 2018-02-09 21:35 ./usr/bin/
drwxr-xr-x root/root         0 2018-02-09 21:35 ./usr/lib/
drwxr-xr-x root/root         0 2018-02-09 21:35 ./usr/lib/uwsgi/
drwxr-xr-x root/root         0 2018-02-09 21:35 ./usr/lib/uwsgi/plugins/
-rw-r--r-- root/root     64792 2018-02-09 21:35 ./usr/lib/uwsgi/plugins/rack_ruby25_plugin.so
drwxr-xr-x root/root         0 2018-02-09 21:35 ./usr/share/
drwxr-xr-x root/root         0 2018-02-09 21:35 ./usr/share/doc/
drwxr-xr-x root/root         0 2018-02-09 21:35 ./usr/share/doc/uwsgi-plugin-rack-ruby2.5/
-rw-r--r-- root/root       749 2017-03-31 00:11 ./usr/share/doc/uwsgi-plugin-rack-ruby2.5/CONTRIBUTORS
-rw-r--r-- root/root       148 2017-03-31 00:11 ./usr/share/doc/uwsgi-plugin-rack-ruby2.5/README
-rw-r--r-- root/root     11730 2018-02-09 21:35 ./usr/share/doc/uwsgi-plugin-rack-ruby2.5/buildinfo_amd64.gz
-rw-r--r-- root/root     20055 2018-02-09 21:35 ./usr/share/doc/uwsgi-plugin-rack-ruby2.5/changelog.Debian.gz
-rw-r--r-- root/root      2090 2018-02-09 21:35 ./usr/share/doc/uwsgi-plugin-rack-ruby2.5/copyright
drwxr-xr-x root/root         0 2018-02-09 21:35 ./usr/share/man/
drwxr-xr-x root/root         0 2018-02-09 21:35 ./usr/share/man/man1/
-rw-r--r-- root/root     12938 2018-02-09 21:35 ./usr/share/man/man1/uwsgi_rack_ruby25.1.gz
lrwxrwxrwx root/root         0 2018-02-09 21:35 ./usr/bin/uwsgi_rack_ruby25 -> uwsgi-core

Cheers,
Emilio



More information about the pkg-uWSGI-devel mailing list