Cannot build rails 7.2 without x11

Hello

I'm trying to install redmine 6.0, naturally I don't need any x11 on server. I've built rubygem image_processing but can't build rails.

Code:
===>   rubygem-rails72-7.2.2.1_1 depends on package: rubygem-image_processing>=1.2<2 - not found
===>  Staging for rubygem-image_processing-1.14.0
===>   rubygem-image_processing-1.14.0 depends on package: rubygem-mini_magick4>=4.9.5<6 - not found
===>  Installing for rubygem-mini_magick4-4.13.2
===>  Checking if rubygem-mini_magick4 is already installed
===>   Registering installation for rubygem-mini_magick4-4.13.2 as automatic
[redmine.over.ru] Installing rubygem-mini_magick4-4.13.2...
pkg-static: rubygem-mini_magick4-4.13.2 conflicts with rubygem-mini_magick4-nox11-4.13.2 (installs files into the same place).  Problematic file: /usr/local/lib/ruby/gems/3.2/specifications/mini_magick-4.13.2.gemspec
*** Error code 1

Stop.
make[2]: stopped in /usr/ports/graphics/rubygem-mini_magick4
*** Error code 1

Stop.
make[1]: stopped in /usr/ports/graphics/rubygem-image_processing
*** Error code 1

Stop.
make: stopped in /usr/ports/www/rubygem-rails72
redmine:/usr/ports/www/rubygem-rails72@[15:53] # pkg version | grep rubygem-image_processing
rubygem-image_processing-nox11-1.14.0 =

rubygem-rails does not seems to have x11 knob.

Am I obliged to build x11 or what did I miss?
 
It is possible another port installed rubygem-mini_magick4 and now another port is trying to install rubygem-mini_magick4-nox11 flavor but failing.

You may need to look at what is installing rubygem-mini_magick4 and correct its flavor.
 
It is possible that a fresh change to add flavors may have caused this error.

Make sure you run a make rmconfig for your ports and redo your ports make config-recursive

Then check make showconfig
 
There's no config in rubygem-rails72. For some reason, it does not see installed rubygem-image_processing@nox11

Setting flavor to rubygem-rails72 predictably fails.

BTW, how does BSD port make finds out if package of proper version is installed?
 
For some reason, rails WANTS x11

Code:
redmine:/usr/ports/graphics/rubygem-ruby-vips@[19:05] # /usr/local/sbin/pkg-static info -g 'rubygem-image_processing>=1.2<2'
pkg-static: No package(s) matching rubygem-image_processing
redmine:/usr/ports/graphics/rubygem-ruby-vips@[19:05] # /usr/local/sbin/pkg-static info -g 'rubygem-image_processing-nox11>=1.2<2'
rubygem-image_processing-nox11-1.14.0
Name           : rubygem-image_processing-nox11
Version        : 1.14.0
Installed on   : Sun Apr 20 15:35:26 2025 MSK
Origin         : graphics/rubygem-image_processing
Architecture   : FreeBSD:14:*
Prefix         : /usr/local
Categories     : rubygems graphics
Licenses       : MIT
Maintainer     : sunpoet@FreeBSD.org
WWW            : https://github.com/janko/image_processing
Comment        : High-level wrapper for processing images for the web with ImageMagick or libvips
Annotations    :
        flavor         : nox11
Flat size      : 47.0KiB
Description    :
ImageProcessing provides higher-level image processing helpers that are commonly
needed when handling image uploads.

This gem can process images with either ImageMagick/GraphicsMagick or libvips
libraries. ImageMagick is a good default choice, especially if you are migrating
from another gem or library that uses ImageMagick. Libvips is a newer library
that can process images very rapidly (often multiple times faster than
ImageMagick).

For now, I'll just patch Makefile and try. But that's kind of weird
 
Back
Top