Hi,
Am Montag, September 20, 2021 01:15 CEST, schrieb Jeremy Evans
<[email protected]>:
> On 09/19 11:33, Sebastian Reitenbach wrote:
> > Hi,
> >
> > with updating the default ruby version to 3.0, puppet related ports stayed
> > at 2.7, so did
> > databases/ruby-hiera3. The hiera plugins were overlooked, they should also
> > default to Ruby 2.7, otherwise they're unusable.
> >
> > I had to fiddle a little, as these plugins don't have FLAVOR set, and with
> > the switch,
> > to 3.0, something else seems to have changed as well. At least for
> > ruby-hiera-eyaml,
> > The GEM_BIN_SUFFIX in PLIST doesn't kick in, as well as for
> > ruby-hiera-eyaml-gpg,
> > had to remove the ${MODRUBY_FLAVOR} from the RUN_DEPENDS to
> > ruby-hiera-eyaml.
> > Below the version that got me to install them, and made them usable again.
>
> I don't understand why you need to set this. Using ,${MODRUBY_FLAVOR}
> in the RUN_DEPENDS should correctly set the dependency information.
> This change looks wrong, since it looks like if you build it with a
> ruby30 FLAVOR, it will build a package that has a ruby30 FLAVOR embedded
> in it, but with ruby27 information.
>
> You only need to specify a ruby version inside a port if the port
> doesn't support ruby* FLAVORs. If the port supports ruby* FLAVORS,
> then you do not need to specify a ruby version in the port, you just
> need to build it with the correct FLAVOR.
>
> Is the issue that ruby27 versions of ruby-hiera-eyaml-gpg and
> ruby-hiera-eyaml aren't built by default? You can just change the
> category Makefile to build ruby27 versions of the ports by default.
> If that doesn't work, can you post the actual error you are
> getting with -current puppet?
>
indeed, sometimes things are easier I could think of, thanks for the hint.
Below seems to be enough to provide the ruby27 packages of these ports:
OK?
Sebastian
Index: Makefile
===================================================================
RCS file: /cvs/ports/databases/Makefile,v
retrieving revision 1.427
diff -u -r1.427 Makefile
--- Makefile 10 Sep 2021 18:20:30 -0000 1.427
+++ Makefile 20 Sep 2021 11:32:00 -0000
@@ -200,9 +200,12 @@
SUBDIR += ruby-amalgalite,ruby27
SUBDIR += ruby-amalgalite,ruby30
SUBDIR += ruby-hiera3
- SUBDIR += ruby-hiera-eyaml
- SUBDIR += ruby-hiera-eyaml-gpg
- SUBDIR += ruby-hiera-file
+ SUBDIR += ruby-hiera-eyaml,ruby27
+ SUBDIR += ruby-hiera-eyaml,ruby30
+ SUBDIR += ruby-hiera-eyaml-gpg,ruby27
+ SUBDIR += ruby-hiera-eyaml-gpg,ruby30
+ SUBDIR += ruby-hiera-file,ruby27
+ SUBDIR += ruby-hiera-file,ruby30
SUBDIR += ruby-kirbybase
SUBDIR += ruby-ldap,ruby27
SUBDIR += ruby-ldap,ruby30