[pkg-uWSGI-devel] Bug#1065460: uwsgi: the package fails to build from source due to missing 'plugins/rack_ruby32'

Alexandre Rossi niol at zincube.net
Fri Mar 8 13:14:13 GMT 2024


Hi,

> The package fails to build in sid chroot with the following error:
> 
> --
> *** uWSGI building and linking plugin plugins/rack_ruby32 ***
> Error: unable to find directory 'plugins/rack_ruby32'
> make: *** [debian/rules:429: debian/stamp-uwsgi-plugin-rack-ruby3.2] Error 1
> dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
> --------------------------------------------------------------------------------
> Build finished at 2024-03-04T23:36:17Z

There is something strange because the default ruby version in sid is 3.1
and uwsgi 2.0.24-2 builds just fine on my sid chroot, see below.

Thanks,

Alex

--
 UWSGICONFIG_RUBYPATH=/usr/bin/ruby3.1 \
 CFLAGS="-g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection" CPPFLAGS="-Wdate-time -D_FORTIFY_SOURCE=2" LDFLAGS="-Wl,-z,relro" python3 uwsgiconfig.py -v --plugin plugins/rack debian/buildconf/uwsgi-plugin.ini rack_ruby31
using profile: debian/buildconf/uwsgi-plugin.ini
detected include path: ['/usr/lib/gcc/x86_64-linux-gnu/13/include', '/usr/local/include', '/usr/include/x86_64-linux-gnu', '/usr/include']
*** uWSGI building and linking plugin plugins/rack ***
x86_64-linux-gnu-gcc -fPIC -shared -o ./rack_ruby31_plugin.so -I. -O2 -I. -Wall -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -Wformat-signedness -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -DUWSGI_HAS_IFADDRS -DUWSGI_ZLIB -DUWSGI_LOCK_USE_MUTEX -DUWSGI_EVENT_USE_EPOLL -DUWSGI_EVENT_TIMER_USE_TIMERFD -DUWSGI_EVENT_FILEMONITOR_USE_INOTIFY  -DUWSGI_PCRE2 -DUWSGI_ROUTING -DUWSGI_CAP -DUWSGI_UUID -DUWSGI_VERSION="\"2.0.24-debian\"" -DUWSGI_VERSION_BASE="2" -DUWSGI_VERSION_MAJOR="0" -DUWSGI_VERSION_MINOR="24" -DUWSGI_VERSION_REVISION="0" -DUWSGI_VERSION_CUSTOM="\"debian\"" -DUWSGI_YAML -DUWSGI_LIBYAML -I/usr/include/yajl -DUWSGI_JSON -DUWSGI_JSON_YAJL -DUWSGI_SSL -I/usr/include/libxml2 -DUWSGI_XML -DUWSGI_XML_LIBXML2 -DUWSGI_PLUGIN_DIR="\".\"" -g -O2 -ffile-prefix-map=BUILDDIR=. -fstack-protector-strong -fstack-clash-protection -fcf-protection -fPIC -DRUBY19 -DRUBY27 -I/usr/include/ruby-3.1.0 -I/usr/lib/x86_64-linux-gnu/ruby/3.1.0 -I/usr/lib/x86_64-linux-gnu/ruby/3.1.0/x86_64-linux-gnu -I/usr/include/ruby-3.1.0/x86_64-linux-gnu -I/usr/include/x86_64-linux-gnu/ruby-3.1.0 -Drack_plugin=rack_ruby31_plugin plugins/rack/rack_plugin.c plugins/rack/rack_api.c -Wl,-z,relro -L. -Wl,-z,now -fstack-protector-strong -rdynamic -Wl,-export-dynamic -Wl,--no-as-needed -L/usr/lib -lm -lruby-3.1
build time: 2 seconds
*** rack_ruby31 plugin built and available in ./rack_ruby31_plugin.so ***
touch debian/stamp-uwsgi-plugin-rack-ruby3.1



More information about the pkg-uWSGI-devel mailing list