Compare commits
No commits in common. "rawhide" and "f38" have entirely different histories.
2 changed files with 15 additions and 91 deletions
|
|
@ -1,6 +1,5 @@
|
|||
Add missing return types to avoid build failures with C99 compilers.
|
||||
Include <string.h> to avoid implicit function declarations.
|
||||
Avoid incompatible pointer types and a format string warning.
|
||||
|
||||
Partially fixed via:
|
||||
|
||||
|
|
@ -38,7 +37,7 @@ index 16f7913fa37b3bf3..0530fc2c65f1082c 100644
|
|||
if ( sock<0 )
|
||||
return;
|
||||
diff --git a/api/libsphinxclient/test.c b/api/libsphinxclient/test.c
|
||||
index f779bb1ff638a179..670e379b4ad3c36f 100644
|
||||
index f779bb1ff638a179..a4806ea9aca9c82c 100644
|
||||
--- a/api/libsphinxclient/test.c
|
||||
+++ b/api/libsphinxclient/test.c
|
||||
@@ -16,6 +16,7 @@
|
||||
|
|
@ -49,51 +48,3 @@ index f779bb1ff638a179..670e379b4ad3c36f 100644
|
|||
|
||||
#if _WIN32
|
||||
#include <winsock2.h>
|
||||
@@ -218,7 +219,8 @@ void test_excerpt_spz ( sphinx_client * client )
|
||||
|
||||
void test_persist_work ( sphinx_client * client )
|
||||
{
|
||||
- char * docs[] = { NULL };
|
||||
+ const char * docs[] = { NULL };
|
||||
+ char *docs0;
|
||||
const char words[] = "that is";
|
||||
const char * index = "test1";
|
||||
const char filler[] = " no need to worry about ";
|
||||
@@ -229,13 +231,14 @@ void test_persist_work ( sphinx_client * client )
|
||||
|
||||
// should be in sync with sphinxclient.c MAX_PACKET_LEN
|
||||
i = 8*1024*1024 + 50;
|
||||
- docs[0] = malloc ( i );
|
||||
- if ( !docs[0] )
|
||||
+ docs0 = malloc ( i );
|
||||
+ if ( !docs0 )
|
||||
die ( "malloc failed at test_persist_work" );
|
||||
+ docs[0] = docs0;
|
||||
|
||||
- memcpy ( docs[0], words, sizeof(words)-1 );
|
||||
- doc = docs[0] + sizeof(words)-1;
|
||||
- while ( ( doc + sizeof(filler) )<docs[0]+i )
|
||||
+ memcpy ( docs0, words, sizeof(words)-1 );
|
||||
+ doc = docs0 + sizeof(words)-1;
|
||||
+ while ( ( doc + sizeof(filler) )<docs0+i )
|
||||
{
|
||||
memcpy ( doc, filler, sizeof(filler)-1 );
|
||||
doc += sizeof(filler)-1;
|
||||
@@ -264,7 +267,7 @@ void test_persist_work ( sphinx_client * client )
|
||||
opts.html_strip_mode = "none";
|
||||
opts.query_mode = SPH_TRUE;
|
||||
|
||||
- *( docs[0]+sizeof(words)+100 ) = '\0';
|
||||
+ *( docs0+sizeof(words)+100 ) = '\0';
|
||||
}
|
||||
|
||||
printf ( "n=%d,\t", i );
|
||||
@@ -405,7 +408,7 @@ void title ( const char * name )
|
||||
if ( g_smoke || !name )
|
||||
return;
|
||||
|
||||
- printf ( "-> % s <-\n\n", name );
|
||||
+ printf ( "-> %s <-\n\n", name );
|
||||
}
|
||||
|
||||
int main ( int argc, char ** argv )
|
||||
|
|
|
|||
55
sphinx.spec
55
sphinx.spec
|
|
@ -11,7 +11,7 @@
|
|||
%endif
|
||||
%endif
|
||||
|
||||
%if 0%{?fedora} >= 37 || 0%{?rhel} >= 10
|
||||
%if 0%{?fedora} >= 37
|
||||
%bcond_with java
|
||||
%else
|
||||
%bcond_without java
|
||||
|
|
@ -20,10 +20,9 @@
|
|||
|
||||
Name: sphinx
|
||||
Version: 2.2.11
|
||||
Release: 34%{?dist}
|
||||
Release: 26%{?dist}
|
||||
Summary: Free open-source SQL full-text search engine
|
||||
# Automatically converted from old format: GPLv2+ - review is highly recommended.
|
||||
License: GPL-2.0-or-later
|
||||
License: GPLv2+
|
||||
URL: http://sphinxsearch.com
|
||||
|
||||
Source0: http://sphinxsearch.com/files/%{name}-%{version}-release.tar.gz
|
||||
|
|
@ -45,6 +44,7 @@ Requires(preun): systemd
|
|||
Requires(postun): systemd
|
||||
|
||||
# Users and groups
|
||||
Requires(pre): shadow-utils
|
||||
|
||||
|
||||
%description
|
||||
|
|
@ -116,10 +116,10 @@ designed with indexing database content in mind.
|
|||
|
||||
%prep
|
||||
%setup -qn %{name}-%{version}-release
|
||||
%patch -P0 -p1 -b .fix_static
|
||||
%patch -P1 -p1 -b .default_listen
|
||||
%patch -P2 -p1
|
||||
%patch -P3 -p1
|
||||
%patch0 -p1 -b .fix_static
|
||||
%patch1 -p1 -b .default_listen
|
||||
%patch2 -p1
|
||||
%patch3 -p1
|
||||
|
||||
# Fix wrong-file-end-of-line-encoding
|
||||
for f in \
|
||||
|
|
@ -134,12 +134,6 @@ done
|
|||
# Fix file not UTF8
|
||||
iconv -f iso8859-1 -t utf-8 doc/%{name}.txt > doc/%{name}.txt.conv && mv -f doc/%{name}.txt.conv doc/%{name}.txt
|
||||
|
||||
# Create a sysusers.d config file
|
||||
cat >sphinx.sysusers.conf <<EOF
|
||||
g sphinx -
|
||||
u sphinx - 'Sphinx Search' %{sphinx_home} /bin/bash
|
||||
EOF
|
||||
|
||||
%build
|
||||
%if %{__isa_bits} == 64
|
||||
%configure --sysconfdir=%{_sysconfdir}/%{name} --with-mysql --with-pgsql --enable-id64
|
||||
|
|
@ -238,9 +232,13 @@ find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
|
|||
# clean-up .a archives
|
||||
find $RPM_BUILD_ROOT -name '*.a' -exec rm -f {} ';'
|
||||
|
||||
install -m0644 -D sphinx.sysusers.conf %{buildroot}%{_sysusersdir}/sphinx.conf
|
||||
|
||||
|
||||
%pre
|
||||
getent group %{sphinx_group} >/dev/null || groupadd -r %{sphinx_group}
|
||||
getent passwd %{sphinx_user} >/dev/null || \
|
||||
useradd -r -g %{sphinx_group} -d %{sphinx_home} -s /bin/bash \
|
||||
-c "Sphinx Search" %{sphinx_user}
|
||||
exit 0
|
||||
|
||||
%post
|
||||
%systemd_post searchd.service
|
||||
|
|
@ -283,7 +281,6 @@ chown -R %{sphinx_user}:root %{_localstatedir}/lib/%{name}/
|
|||
%dir %attr(0755, %{sphinx_user}, root) %{_localstatedir}/run/%{name}
|
||||
%dir %attr(0755, %{sphinx_user}, root) %{_localstatedir}/lib/%{name}
|
||||
%{_mandir}/man1/*
|
||||
%{_sysusersdir}/sphinx.conf
|
||||
|
||||
%files -n libsphinxclient
|
||||
%doc COPYING %{?with_java: api/java} api/ruby api/*.php api/*.py api/libsphinxclient/README
|
||||
|
|
@ -304,30 +301,6 @@ chown -R %{sphinx_user}:root %{_localstatedir}/lib/%{name}/
|
|||
%{_datadir}/php/*
|
||||
|
||||
%changelog
|
||||
* Fri Jul 25 2025 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.11-34
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild
|
||||
|
||||
* Tue Feb 11 2025 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 2.2.11-33
|
||||
- Add sysusers.d config file to allow rpm to create users/groups automatically
|
||||
|
||||
* Sun Jan 19 2025 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.11-32
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild
|
||||
|
||||
* Fri Jul 26 2024 Miroslav Suchý <msuchy@redhat.com> - 2.2.11-31
|
||||
- convert license to SPDX
|
||||
|
||||
* Sat Jul 20 2024 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.11-30
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
|
||||
|
||||
* Sat Jan 27 2024 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.11-29
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
||||
|
||||
* Tue Dec 19 2023 Florian Weimer <fweimer@redhat.com> - 2.2.11-28
|
||||
- Additional C compatibility fixes
|
||||
|
||||
* Sat Jul 22 2023 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.11-27
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
||||
|
||||
* Sat Jan 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.11-26
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue