homebrew/core rpm package dropped macOS support and old versions are not available #4826
Replies: 3 comments 17 replies
-
Correction, the rpm developers dropped macOS support. This is simply a result of that. If you have a personal tap you can use |
Beta Was this translation helpful? Give feedback.
-
Thanks Now I get the build issue ==> Installing k0ste/rpm/rpm@4.18.1
==> Patching
==> Applying b960c0b43a080287a7c13533eeb2d9f288db1414.patch
patching file 'lib/fsm.c'
==> ./configure --disable-silent-rules --localstatedir=/opt/homebrew/var --sharedstatedir=/opt/homebrew/var/lib --sysconfdir=/opt/homebrew/et
==> make install
Last 15 lines from /Users/k0ste/Library/Logs/Homebrew/rpm@4.18.1/02.make:
libtool: compile: clang -DHAVE_CONFIG_H -I.. -I.. -I../include -I/opt/homebrew/include/lua -I../misc -DLOCALEDIR=\"/opt/homebrew/Cellar/rpm@4.18.1/4.18.1/share/locale\" -DSYSCONFDIR=\"/opt/homebrew/etc\" -DLOCALSTATEDIR=\"/opt/homebrew/var\" -DLIBRPMALIAS_FILENAME=\"rpmpopt-4.18.1\" -DLIBRPMALIAS_EXECPATH=\"/opt/homebrew/Cellar/rpm@4.18.1/4.18.1/bin\" -I/opt/homebrew/opt/sqlite/include -I/opt/homebrew/Cellar/openssl@3/3.1.3/include -Wall -Wpointer-arith -Wmissing-prototypes -Wstrict-prototypes -fno-strict-aliasing -fno-strict-overflow -fno-delete-null-pointer-checks -Wempty-body -g -O2 -c rpmtriggers.c -fno-common -DPIC -o .libs/rpmtriggers.o
rpmscript.c:205:5: error: call to undeclared function 'sigprocmask'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
sigprocmask(SIG_UNBLOCK, &set, NULL);
^
rpmscript.c:210:5: error: call to undeclared function 'sigaction'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
sigaction(SIGPIPE, &act, NULL);
^
4 errors generated.
libtool: compile: clang -DHAVE_CONFIG_H -I.. -I.. -I../include -I/opt/homebrew/include/lua -I../misc -DLOCALEDIR=\"/opt/homebrew/Cellar/rpm@4.18.1/4.18.1/share/locale\" -DSYSCONFDIR=\"/opt/homebrew/etc\" -DLOCALSTATEDIR=\"/opt/homebrew/var\" -DLIBRPMALIAS_FILENAME=\"rpmpopt-4.18.1\" -DLIBRPMALIAS_EXECPATH=\"/opt/homebrew/Cellar/rpm@4.18.1/4.18.1/bin\" -I/opt/homebrew/opt/sqlite/include -I/opt/homebrew/Cellar/openssl@3/3.1.3/include -Wall -Wpointer-arith -Wmissing-prototypes -Wstrict-prototypes -fno-strict-aliasing -fno-strict-overflow -fno-delete-null-pointer-checks -Wempty-body -g -O2 -c rpmug.c -fno-common -DPIC -o .libs/rpmug.o
make[3]: *** [rpmscript.lo] Error 1
make[3]: *** Waiting for unfinished jobs....
libtool: compile: clang -DHAVE_CONFIG_H -I.. -I.. -I../include -I/opt/homebrew/include/lua -I../misc -DLOCALEDIR=\"/opt/homebrew/Cellar/rpm@4.18.1/4.18.1/share/locale\" -DSYSCONFDIR=\"/opt/homebrew/etc\" -DLOCALSTATEDIR=\"/opt/homebrew/var\" -DLIBRPMALIAS_FILENAME=\"rpmpopt-4.18.1\" -DLIBRPMALIAS_EXECPATH=\"/opt/homebrew/Cellar/rpm@4.18.1/4.18.1/bin\" -I/opt/homebrew/opt/sqlite/include -I/opt/homebrew/Cellar/openssl@3/3.1.3/include -Wall -Wpointer-arith -Wmissing-prototypes -Wstrict-prototypes -fno-strict-aliasing -fno-strict-overflow -fno-delete-null-pointer-checks -Wempty-body -g -O2 -c rpmvs.c -fno-common -DPIC -o .libs/rpmvs.o
make[2]: *** [install] Error 2
make[1]: *** [install-recursive] Error 1
make: *** [install] Error 2
If reporting this issue please do so to (not Homebrew/brew or Homebrew/homebrew-core):
k0ste/rpm
/opt/homebrew/Library/Homebrew/utils/github/api.rb:352:in `raise_error': Validation Failed: [{"message"=>"The listed users and repositories cannot be searched either because the resources do not exist or you do not have permission to view them.", "resource"=>"Search", "field"=>"q", "code"=>"invalid"}] (GitHub::API::ValidationFailedError)
from /opt/homebrew/Library/Homebrew/utils/github/api.rb:268:in `open_rest'
from /opt/homebrew/Library/Homebrew/utils/github.rb:178:in `search'
from /opt/homebrew/Library/Homebrew/utils/github.rb:182:in `search_results_items'
from /opt/homebrew/Library/Homebrew/utils/github.rb:36:in `search_issues'
from /opt/homebrew/Library/Homebrew/utils/github.rb:62:in `issues_for_formula'
from /opt/homebrew/Library/Homebrew/exceptions.rb:502:in `fetch_issues'
from /opt/homebrew/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/sorbet-runtime-0.5.10461/lib/types/private/methods/call_validation.rb:157:in `call'
from /opt/homebrew/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/sorbet-runtime-0.5.10461/lib/types/private/methods/call_validation.rb:157:in `validate_call'
from /opt/homebrew/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/sorbet-runtime-0.5.10461/lib/types/private/methods/_methods.rb:270:in `block in _on_method_added'
from /opt/homebrew/Library/Homebrew/exceptions.rb:497:in `issues'
from /opt/homebrew/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/sorbet-runtime-0.5.10461/lib/types/private/methods/call_validation.rb:157:in `call'
from /opt/homebrew/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/sorbet-runtime-0.5.10461/lib/types/private/methods/call_validation.rb:157:in `validate_call'
from /opt/homebrew/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/sorbet-runtime-0.5.10461/lib/types/private/methods/_methods.rb:270:in `block in _on_method_added'
from /opt/homebrew/Library/Homebrew/exceptions.rb:553:in `dump'
from /opt/homebrew/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/sorbet-runtime-0.5.10461/lib/types/private/methods/call_validation.rb:157:in `call'
from /opt/homebrew/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/sorbet-runtime-0.5.10461/lib/types/private/methods/call_validation.rb:157:in `validate_call'
from /opt/homebrew/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/sorbet-runtime-0.5.10461/lib/types/private/methods/_methods.rb:270:in `block in _on_method_added'
from /opt/homebrew/Library/Homebrew/brew.rb:143:in `rescue in <main>'
from /opt/homebrew/Library/Homebrew/brew.rb:131:in `<main>'
/opt/homebrew/Library/Homebrew/formula.rb:2735:in `block in system': Failed executing: make install (BuildError)
from /opt/homebrew/Library/Homebrew/formula.rb:2671:in `open'
from /opt/homebrew/Library/Homebrew/formula.rb:2671:in `system'
from /opt/homebrew/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/sorbet-runtime-0.5.10461/lib/types/private/methods/call_validation.rb:157:in `call'
from /opt/homebrew/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/sorbet-runtime-0.5.10461/lib/types/private/methods/call_validation.rb:157:in `validate_call'
from /opt/homebrew/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/sorbet-runtime-0.5.10461/lib/types/private/methods/call_validation.rb:89:in `block in create_validator_slow'
from /opt/homebrew/Library/Taps/k0ste/homebrew-rpm/Formula/[email protected]:76:in `install'
from /opt/homebrew/Library/Homebrew/build.rb:177:in `block (3 levels) in install'
from /opt/homebrew/Library/Homebrew/extend/kernel.rb:499:in `with_env'
from /opt/homebrew/Library/Homebrew/build.rb:139:in `block (2 levels) in install'
from /opt/homebrew/Library/Homebrew/formula.rb:1418:in `block in brew'
from /opt/homebrew/Library/Homebrew/formula.rb:2902:in `block (2 levels) in stage'
from /opt/homebrew/Library/Homebrew/extend/kernel.rb:499:in `with_env'
from /opt/homebrew/Library/Homebrew/formula.rb:2901:in `block in stage'
from /opt/homebrew/Library/Homebrew/resource.rb:129:in `block (2 levels) in unpack'
from /opt/homebrew/Library/Homebrew/download_strategy.rb:126:in `chdir'
from /opt/homebrew/Library/Homebrew/download_strategy.rb:126:in `chdir'
from /opt/homebrew/Library/Homebrew/download_strategy.rb:113:in `stage'
from /opt/homebrew/Library/Homebrew/resource.rb:125:in `block in unpack'
from /opt/homebrew/Library/Homebrew/mktemp.rb:75:in `block in run'
from /opt/homebrew/Library/Homebrew/mktemp.rb:75:in `chdir'
from /opt/homebrew/Library/Homebrew/mktemp.rb:75:in `run'
from /opt/homebrew/Library/Homebrew/resource.rb:226:in `stage_resource'
from /opt/homebrew/Library/Homebrew/resource.rb:124:in `unpack'
from /opt/homebrew/Library/Homebrew/resource.rb:98:in `stage'
from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/forwardable.rb:230:in `stage'
from /opt/homebrew/Library/Homebrew/formula.rb:2881:in `stage'
from /opt/homebrew/Library/Homebrew/formula.rb:1411:in `brew'
from /opt/homebrew/Library/Homebrew/build.rb:133:in `block in install'
from /opt/homebrew/Library/Homebrew/extend/kernel.rb:499:in `with_env'
from /opt/homebrew/Library/Homebrew/build.rb:128:in `install'
from /opt/homebrew/Library/Homebrew/build.rb:229:in `<main>' This looks like environment issue? |
Beta Was this translation helpful? Give feedback.
-
@ZhongRuoyu I'm trying to understand more about what changed in 4.19, because the rationale from rpm-software-management/rpm#2222 (comment) was around missing POSIX features in MacOS (which have since been added). Now it sounds like there's a different issue, where upstream has removed conditionals that made it possible to build in anything except Linux? If you remember, can you point to an example that we used to rely on before 4.18? There may be some room for discussion upstream here, since this situation doesn't seem to match with https://github.com/rpm-software-management/rpm/blob/master/CONTRIBUTING.md#portability |
Beta Was this translation helpful? Give feedback.
-
Output of
brew config
Output of
brew doctor
Description of issue
We used
rpmspec
on macOS which is installed as part of therpm
bundle. Version4.18.1
worked fine.However the new version 4.19.0 simply dropped macOS support and made the bundle linux only as a minor version change:
Homebrew/homebrew-core@3b38c7f
It is also no longer possible to install the old version:
So this change makes any one who didn't have the previous version installed unable to get
rpm
on macOS.Any suggestions to get an old version installed somehow?
Beta Was this translation helpful? Give feedback.
All reactions