Overview

Request 932017 superseded

rbenv-bundle-exec is a plugin for rbenv that improves the developer experience when developing Ruby applications using bundler.



Dan Čermák's avatar

@expeehaa Apologies for not looking at this more closely. I am in principle not opposed to this, I have just two points: - is /etc/ is really the place for this? This file looks like a script and /etc/ wouldn't be the right place for that - upstream is dead, do you really want to commit to maintaining this?


Lukas Müller's avatar

I agree that /etc/ is a bad place. Short explanation: rbenv has restrictions on where hooks can be placed (see https://github.com/rbenv/rbenv/wiki/Authoring-plugins#rbenv-hooks). Those are mainly the following 3 for system packages:

  • /usr/local/etc/rbenv.d
  • /etc/rbenv.d
  • /usr/lib/rbenv/hooks

/usr/local/etc does not seem to be the right place for system packages and the rpm builder in OBS doesn’t like /usr/lib for noarch packages (or at least it didn’t when I tested that). Therefore, I assume that /etc/ is the best solution right now. Maybe changing this in upstream rbenv would be good. /usr/share/rbenv/hooks/ looks better to me, but I don’t have much experience in filesystem hierarchy.

Also, I’m not sure if upstream is really dead. There have certainly been no updates in 8 years, but I’m actively using this rbenv plugin already and everything works. I assume its simply feature complete and rbenv updates don’t break things (and they are rare, only 5 releases since 2013). Since the plugin consists only of a 39 lines bash file, it doesn’t really need maintenance as long as rbenv keeps not breaking it. So I’ld be fine with maintaining it.


Dan Čermák's avatar

/usr/lib/ might actually be a slightly better fit, because we are trying to have system supplied scripts/configs in /usr/ and admin/user provided ones in /etc/. I agree that /usr/lib isn't perfect, but it's imho better than /etc/ and much better than /usr/local/ (which you must not use for packaging).

Request History
Lukas Müller's avatar

expeehaa created request

rbenv-bundle-exec is a plugin for rbenv that improves the developer experience when developing Ruby applications using bundler.


Dan Čermák's avatar

dancermak declined request

Please create this package using gem2rpm, otherwise it will break existing automation


Lukas Müller's avatar

expeehaa reopened request

@dancermak I assume that you’ve mistaken this for a Ruby gem, although it is not. It actually is just one bash script that is loaded by rbenv as a plugin. Since rbenv is packaged in this project, I figured that extensions for rbenv should be here as well.
I also have no clue how or why I would package something that is not a Ruby gem using gem2rpm.


openSUSE Build Service is sponsored by