!24 Fix self-compilation problem and start memcached as root user
From: @wang--ge Reviewed-by: @small_leek Signed-off-by: @small_leek
This commit is contained in:
commit
5efe71aed2
@ -2,7 +2,7 @@
|
|||||||
Name: rubygem-%{gem_name}
|
Name: rubygem-%{gem_name}
|
||||||
Epoch: 1
|
Epoch: 1
|
||||||
Version: 6.1.4.1
|
Version: 6.1.4.1
|
||||||
Release: 3
|
Release: 4
|
||||||
Summary: A support libraries and Ruby core extensions extracted from the Rails framework
|
Summary: A support libraries and Ruby core extensions extracted from the Rails framework
|
||||||
License: MIT
|
License: MIT
|
||||||
URL: http://rubyonrails.org
|
URL: http://rubyonrails.org
|
||||||
@ -59,7 +59,11 @@ done
|
|||||||
sed -i '/def test_iso8601_output_and_reparsing$/,/^ end$/ s/^/#/' test/core_ext/duration_test.rb
|
sed -i '/def test_iso8601_output_and_reparsing$/,/^ end$/ s/^/#/' test/core_ext/duration_test.rb
|
||||||
sed -i '/assert_nil mapped\[:b\]/ s/^/#/' test/core_ext/hash/transform_values_test.rb
|
sed -i '/assert_nil mapped\[:b\]/ s/^/#/' test/core_ext/hash/transform_values_test.rb
|
||||||
sed -i '/require .bundler./ s/^/#/' test/abstract_unit.rb
|
sed -i '/require .bundler./ s/^/#/' test/abstract_unit.rb
|
||||||
memcached &
|
if [ `whoami` = "root" ]; then
|
||||||
|
memcached -u root &
|
||||||
|
else
|
||||||
|
memcached &
|
||||||
|
fi
|
||||||
mPID=$!
|
mPID=$!
|
||||||
sleep 1
|
sleep 1
|
||||||
ruby -Ilib:test -e 'Dir.glob "./test/**/*_test.rb", &method(:require)'
|
ruby -Ilib:test -e 'Dir.glob "./test/**/*_test.rb", &method(:require)'
|
||||||
@ -79,6 +83,9 @@ popd
|
|||||||
%doc %{gem_instdir}/README.rdoc
|
%doc %{gem_instdir}/README.rdoc
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Mar 30 2023 caodongxia <caodongxia@h-partners.com> - 1:6.1.4.1-4
|
||||||
|
- Fix the self-compilation problem and start memcached as the root user
|
||||||
|
|
||||||
* Tue Feb 21 2023 wushaozheng <wushaozheng@ncti-gba.cn> - 1:6.1.4.1-3
|
* Tue Feb 21 2023 wushaozheng <wushaozheng@ncti-gba.cn> - 1:6.1.4.1-3
|
||||||
- fix CVE-2023-22796
|
- fix CVE-2023-22796
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user