pgxn-utils
pgxn-utils copied to clipboard
Deprecation of `--no-rdoc` and `--no-ri` options causing installation failure
I encountered an issue while attempting to install pgxn_utils
using the command pgxn install pgxn_utils
. The installation process failed with the following error:
INFO: best version: pgxn_utils 0.1.4
INFO: saving /var/folders/kn/b8b9x9yn683cjfkl1xd9jjwh0000gn/T/tmpnb50s2nv/pgxn_utils-0.1.4.zip
INFO: unpacking: /var/folders/kn/b8b9x9yn683cjfkl1xd9jjwh0000gn/T/tmpnb50s2nv/pgxn_utils-0.1.4.zip
INFO: building extension
make: Nothing to be done for `all'.
INFO: installing extension
gem install --no-rdoc --no-ri ./pkg/pgxn_utils-0.1.4.gem
ERROR: While executing gem ... (OptionParser::InvalidOption)
invalid option: --no-rdoc
make: *** [install] Error 1
ERROR: command returned 2: make PG_CONFIG=/Users/spartacus/.pgenv/pgsql/bin/pg_config install
Upon investigation, it appears that the pgxn_utils
package is still using the deprecated --no-rdoc
and --no-ri
options, which were removed from RubyGems 5 years ago in favor of the --no-document
option.
Considering that these options were deprecated 12 years ago and removed 5 years ago, the usage of pgxn_utils
is currently incompatible with newer versions of Ruby and RubyGems.
I would like to propose addressing this issue by updating the pgxn_utils
package to use the current documentation options provided by RubyGems. This will ensure compatibility with the latest versions of Ruby and prevent installation failures.
Updating the package to use the --no-document
option instead of the deprecated --no-rdoc
and --no-ri
options. This will allow users to successfully install pgxn_utils
with the latest versions of RubyGems. I believe addressing this compatibility issue will greatly benefit users who wish to install and utilize the pgxn_utils
package with the latest Ruby and RubyGems versions.
Hey @guedes, I'm working on a PGXN presentation and was hoping to demo utils, but they don't build for me due to this issue. I'm sure a bunch has changed over the years; do you think you'll have the bandwidth soonish to update pgxn-utils for these changes, for Ruby 3, etc.? Thanks!