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
 
I'm running into what I think is the same problem - if not, I'll open a new one, but to keep all data in one place, here's what I found:
www/rubygem-rails61 is dependent on graphics/rubygem-image_processing, from which the description says:

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.

However, there's no option to specify ImageMagick and so it pulls in a dependency for libvips which, problematically, defaults to an x11 flavor and won't build on a server ("power to serve?")

Adding:
Makefile:
.if ${.CURDIR:C/.*\/graphics\/vips//} == ""
FLAVOR=nox11
.endif
to the poudriere make.conf gets past that, but here's an odd thing that I can't get past yet and so is blocking my poudriere build for now: graphics/rubygem-image_processing lists in the flavors stanza:
Package flavors (<flavor>: <package>)
  • x11: rubygem-image_processing
  • nox11: rubygem-image_processing-nox11
but, alas, adding
Makefile:
.if ${.CURDIR:C/.*\/graphics\/rubygem-image_processing//} == ""
FLAVOR=nox11
.endif
Yields an error:
sh:
[00:00:10] Warning: www/rubygem-rails61 dependency on graphics/rubygem-image_processing has wrong PKGNAME of 'rubygem-image_processing' but should be 'rubygem-image_processing-nox11'; Is the dependency missing a @FLAVOR?
[00:00:10] Error: compute_deps_pkg failed to lookup pkgname for graphics/vips@nox11 processing package rubygem-ruby-vips-nox11-2.2.4 from graphics/rubygem-ruby-vips@nox11 -- Does graphics/vips provide the 'nox11' FLAVOR?
[00:00:10] Error: Fatal errors encountered calculating dependencies

Unfortunately, it doesn't seem like there's a maintainer for graphics/rubygem-image_processing - any hints on patching this?

The best solution would be to default to tried-n-true graphics/ImageMagick7@nox11 or at least to be able to set that as an option for graphics/rubygem-image_processing, and to default to nox11 or at least respect the flavor choice.
 
Back
Top