deb package: fix the buster webengine dep

This commit is contained in:
Jean-Francois Dockes 2022-08-10 13:34:38 +02:00
parent d920fd377a
commit 00f29bf3ed
6 changed files with 52 additions and 65 deletions

View File

@ -7,14 +7,15 @@
# Active series: # Active series:
# 18.04LTS bionic 2023-04 # 18.04LTS bionic 2023-04
# 20.04LTS focal 2025-04 # 20.04LTS focal 2025-04
# 21.10 impish # 22.04LTS jammy 2027-04
SERIES="bionic focal jammy"
PPA_KEYID=7808CE96D38B9201 PPA_KEYID=7808CE96D38B9201
RCLVERS=1.32.7 RCLVERS=1.32.7
SCOPEVERS=1.20.2.4 SCOPEVERS=1.20.2.4
GSSPVERS=1.1.1 GSSPVERS=1.1.1
PPAVERS=1 PPAVERS=2
# #
#Y=/y #Y=/y
@ -28,7 +29,7 @@ case $RCLVERS in
[23]*) PPANAME=recollexp-ppa;; [23]*) PPANAME=recollexp-ppa;;
*) PPANAME=recoll15-ppa;; *) PPANAME=recoll15-ppa;;
esac esac
PPANAME=recollexp2-ppa #PPANAME=recollexp2-ppa
echo "PPA: $PPANAME. Type CR if Ok, else ^C" echo "PPA: $PPANAME. Type CR if Ok, else ^C"
read rep read rep
@ -49,8 +50,8 @@ check_recoll_orig()
####### QT ####### QT
debdir=debian debdir=debian
series="bionic focal impish jammy" series=$SERIES
series= series=bionic
if test "X$series" != X ; then if test "X$series" != X ; then
check_recoll_orig check_recoll_orig
@ -85,8 +86,8 @@ done
### KIO. ### KIO.
series="bionic focal impish jammy" series=$SERIES
series=jammy series=
debdir=debiankio debdir=debiankio
topdir=kio-recoll-${RCLVERS} topdir=kio-recoll-${RCLVERS}
@ -125,7 +126,7 @@ for svers in $series ; do
done done
### GSSP ### GSSP
series="bionic focal groovy hirsute impish" series=$SERIES
series= series=
debdir=debiangssp debdir=debiangssp

View File

@ -8,7 +8,7 @@ Build-Depends: bison,
dpkg-dev (>= 1.16.1~), dpkg-dev (>= 1.16.1~),
libaspell-dev, libaspell-dev,
libchm-dev, libchm-dev,
libqt5webkit5-dev, qtwebengine5-dev,
libx11-dev, libx11-dev,
libxapian-dev (>= 1.2.0), libxapian-dev (>= 1.2.0),
libxslt1-dev, libxslt1-dev,

View File

@ -31,27 +31,7 @@
email folders, which Konqueror or Dolphin have no way to access.</p> email folders, which Konqueror or Dolphin have no way to access.</p>
<h3>HTML interface</h3> <h3>File manager (e.g. Dolphin) interface</h3>
<p>This works more or less like the Recoll QT GUI, much simplified. The
<a href="http://www.recoll.org/usermanual/rcl.search.lang.html">
Recoll manual</a> describes the queries that can be performed.</p>
<p>Most pages in the interface should quite self-explanatory.</p>
<p>You normally enter this interface by entering "recoll:" or
"recoll:/" in the Konqueror URL entry, and following the "search"
link. You can also directly enter "recoll:/search.html".<br>
In most circumstances, entering a link like
<a href="recoll:/john smith">recoll:/john smith</a> will also
yield an HTML result list.</p>
<p>Compared to QT Recoll, the nice point is that you can click or
drag/drop the icons to access the results in the standard desktop
way.</p>
<h3>File manager interface</h3>
<p>The <i>path</i> part of the URI is taken as a Recoll query <p>The <i>path</i> part of the URI is taken as a Recoll query
language string and executed. The results are displayed as language string and executed. The results are displayed as
@ -98,5 +78,28 @@
<p><a href="recoll:///search.html">Recoll Search</a></p> <p><a href="recoll:///search.html">Recoll Search</a></p>
<h3>(Obsolete) HTML interface</h3>
<p>This used to work in konqueror, but appears to be broken in recent konqueror versions. Doc
kept for nostalgy.</p>
<p>This works more or less like the Recoll QT GUI, much simplified. The
<a href="http://www.recoll.org/usermanual/rcl.search.lang.html">
Recoll manual</a> describes the queries that can be performed.</p>
<p>Most pages in the interface should quite self-explanatory.</p>
<p>You normally enter this interface by entering "recoll:" or
"recoll:/" in the Konqueror URL entry, and following the "search"
link. You can also directly enter "recoll:/search.html".<br>
In most circumstances, entering a link like
<a href="recoll:/john smith">recoll:/john smith</a> will also
yield an HTML result list.</p>
<p>Compared to QT Recoll, the nice point is that you can click or
drag/drop the icons to access the results in the standard desktop
way.</p>
</body> </body>
</html> </html>

View File

@ -189,14 +189,12 @@ static void createGoHomeEntry(KIO::UDSEntry& entry)
static void createGoHelpEntry(KIO::UDSEntry& entry) static void createGoHelpEntry(KIO::UDSEntry& entry)
{ {
QString location = QString location =
QStandardPaths::locate(QStandardPaths::GenericDataLocation, QStandardPaths::locate(QStandardPaths::GenericDataLocation, "kio_recoll/help.html");
"kio_recoll/help.html");
entry.clear(); entry.clear();
entry.fastInsert(KIO::UDSEntry::UDS_NAME, "help"); entry.fastInsert(KIO::UDSEntry::UDS_NAME, "help");
entry.fastInsert(KIO::UDSEntry::UDS_DISPLAY_NAME, "Recoll help (click me first)"); entry.fastInsert(KIO::UDSEntry::UDS_DISPLAY_NAME, "Recoll help (click me first)");
entry.fastInsert(KIO::UDSEntry::UDS_FILE_TYPE, S_IFREG); entry.fastInsert(KIO::UDSEntry::UDS_FILE_TYPE, S_IFREG);
entry.fastInsert(KIO::UDSEntry::UDS_TARGET_URL, QString("file://") + entry.fastInsert(KIO::UDSEntry::UDS_TARGET_URL, QString("file://") + location);
location);
entry.fastInsert(KIO::UDSEntry::UDS_ACCESS, 0500); entry.fastInsert(KIO::UDSEntry::UDS_ACCESS, 0500);
entry.fastInsert(KIO::UDSEntry::UDS_MIME_TYPE, "text/html"); entry.fastInsert(KIO::UDSEntry::UDS_MIME_TYPE, "text/html");
entry.fastInsert(KIO::UDSEntry::UDS_ICON_NAME, "help"); entry.fastInsert(KIO::UDSEntry::UDS_ICON_NAME, "help");
@ -292,8 +290,10 @@ void RecollProtocol::listDir(const QUrl& url)
KIO::UDSEntry entry; KIO::UDSEntry entry;
createRootEntry(entry); createRootEntry(entry);
entries.append(entry); entries.append(entry);
createGoHomeEntry(entry); if (!m_alwaysdir) {
entries.append(entry); createGoHomeEntry(entry);
entries.append(entry);
}
createGoHelpEntry(entry); createGoHelpEntry(entry);
entries.append(entry); entries.append(entry);
listEntries(entries); listEntries(entries);
@ -310,8 +310,7 @@ void RecollProtocol::listDir(const QUrl& url)
// which offers an opportunity to not perform it. // which offers an opportunity to not perform it.
if (ingest.endSlashQuery()) { if (ingest.endSlashQuery()) {
qDebug() << "RecollProtocol::listDir: Ends With /"; qDebug() << "RecollProtocol::listDir: Ends With /";
error(ERR_SLAVE_DEFINED, error(ERR_SLAVE_DEFINED, QString::fromUtf8("Autocompletion search aborted"));
QString::fromUtf8("Autocompletion search aborted"));
return; return;
} }
if (!syncSearch(qd)) { if (!syncSearch(qd)) {

View File

@ -146,12 +146,10 @@ void RecollProtocol::searchPage()
mimeType("text/html"); mimeType("text/html");
if (welcomedata.empty()) { if (welcomedata.empty()) {
QString location = QString location =
QStandardPaths::locate(QStandardPaths::GenericDataLocation, QStandardPaths::locate(QStandardPaths::GenericDataLocation, "kio_recoll/welcome.html");
"kio_recoll/welcome.html");
string reason; string reason;
if (location.isEmpty() || if (location.isEmpty() ||
!file_to_string((const char *)location.toUtf8(), !file_to_string((const char *)location.toUtf8(), welcomedata, &reason)) {
welcomedata, &reason)) {
welcomedata = "<html><head><title>Recoll Error</title></head>" welcomedata = "<html><head><title>Recoll Error</title></head>"
"<body><p>Could not locate Recoll welcome.html file: "; "<body><p>Could not locate Recoll welcome.html file: ";
welcomedata += reason; welcomedata += reason;

View File

@ -54,7 +54,7 @@ class KIOPluginForMetaData : public QObject
RclConfig *RecollProtocol::o_rclconfig; RclConfig *RecollProtocol::o_rclconfig;
RecollProtocol::RecollProtocol(const QByteArray& pool, const QByteArray& app) RecollProtocol::RecollProtocol(const QByteArray& pool, const QByteArray& app)
: SlaveBase("recoll", pool, app), m_initok(false), m_alwaysdir(false) : SlaveBase("recoll", pool, app), m_initok(false), m_alwaysdir(true)
{ {
qDebug() << "RecollProtocol::RecollProtocol()"; qDebug() << "RecollProtocol::RecollProtocol()";
if (o_rclconfig == 0) { if (o_rclconfig == 0) {
@ -86,7 +86,9 @@ RecollProtocol::RecollProtocol(const QByteArray& pool, const QByteArray& app)
if (cp) { if (cp) {
m_alwaysdir = stringToBool(cp); m_alwaysdir = stringToBool(cp);
} else { } else {
o_rclconfig->getConfParam("kio_always_dir", &m_alwaysdir); bool cfval;
if (o_rclconfig->getConfParam("kio_always_dir", &cfval))
m_alwaysdir = cfval;
} }
cp = getenv("RECOLL_KIO_STEMLANG"); cp = getenv("RECOLL_KIO_STEMLANG");
@ -129,11 +131,10 @@ void RecollProtocol::mimetype(const QUrl& url)
} }
UrlIngester::UrlIngester(RecollProtocol *p, const QUrl& url) UrlIngester::UrlIngester(RecollProtocol *p, const QUrl& url)
: m_parent(p), m_slashend(false), m_alwaysdir(false), : m_parent(p), m_slashend(false), m_alwaysdir(!url.scheme().compare("recollf")),
m_retType(UIRET_NONE), m_resnum(0), m_type(UIMT_NONE) m_retType(UIRET_NONE), m_resnum(0), m_type(UIMT_NONE)
{ {
qDebug() << "UrlIngester::UrlIngester: Url: " << url; qDebug() << "UrlIngester::UrlIngester: Url: " << url;
m_alwaysdir = !url.scheme().compare("recollf");
QString path = url.path(); QString path = url.path();
if (url.host().isEmpty()) { if (url.host().isEmpty()) {
if (path.isEmpty() || !path.compare("/")) { if (path.isEmpty() || !path.compare("/")) {
@ -165,8 +166,7 @@ UrlIngester::UrlIngester(RecollProtocol *p, const QUrl& url)
} else { } else {
// Non empty host, url must be something like : // Non empty host, url must be something like :
// //search/query?q=query&param=value... // //search/query?q=query&param=value...
qDebug() << "UrlIngester::UrlIngester: host " << qDebug() << "UrlIngester::UrlIngester: host " << url.host() << " path " << url.path();
url.host() << " path " << url.path();
if (url.host().compare("search") || url.path().compare("/query")) { if (url.host().compare("search") || url.path().compare("/query")) {
return; return;
} }
@ -250,8 +250,7 @@ void RecollProtocol::get(const QUrl& url)
switch (rettp) { switch (rettp) {
case UrlIngester::UIRET_HELP: { case UrlIngester::UIRET_HELP: {
QString location = QString location =
QStandardPaths::locate(QStandardPaths::GenericDataLocation, QStandardPaths::locate(QStandardPaths::GenericDataLocation, "kio_recoll/help.html");
"kio_recoll/help.html");
redirection(QUrl::fromLocalFile(location)); redirection(QUrl::fromLocalFile(location));
} }
goto out; goto out;
@ -289,17 +288,6 @@ void RecollProtocol::get(const QUrl& url)
goto out; goto out;
} }
} else if (ingest.isQuery(&qd)) { } else if (ingest.isQuery(&qd)) {
#if 0
// Do we need this ?
if (host.isEmpty()) {
char cpage[20];
sprintf(cpage, "%d", page);
QString nurl = QString::fromAscii("recoll://search/query?q=") +
query + "&qtp=" + opt + "&p=" + cpage;
redirection(QUrl(nurl));
goto out;
}
#endif
// htmlDoSearch does the search syncing (needs to know about changes). // htmlDoSearch does the search syncing (needs to know about changes).
htmlDoSearch(qd); htmlDoSearch(qd);
goto out; goto out;
@ -324,8 +312,7 @@ bool RecollProtocol::doSearch(const QueryDesc& qd)
if (opt == 'f') { if (opt == 'f') {
clp = new Rcl::SearchDataClauseFilename(qs); clp = new Rcl::SearchDataClauseFilename(qs);
} else { } else {
clp = new Rcl::SearchDataClauseSimple(opt == 'o' ? Rcl::SCLT_OR : clp = new Rcl::SearchDataClauseSimple(opt == 'o' ? Rcl::SCLT_OR : Rcl::SCLT_AND, qs);
Rcl::SCLT_AND, qs);
} }
sdata = std::make_shared<Rcl::SearchData>(Rcl::SCLT_OR, m_stemlang); sdata = std::make_shared<Rcl::SearchData>(Rcl::SCLT_OR, m_stemlang);
if (sdata && clp) { if (sdata && clp) {
@ -349,8 +336,7 @@ bool RecollProtocol::doSearch(const QueryDesc& qd)
} }
DocSequenceDb *src = DocSequenceDb *src =
new DocSequenceDb(m_rcldb, std::shared_ptr<Rcl::Query>(query), new DocSequenceDb(m_rcldb, std::shared_ptr<Rcl::Query>(query), "Query results", sdata);
"Query results", sdata);
if (src == 0) { if (src == 0) {
error(KIO::ERR_SLAVE_DEFINED, u8s2qs("Can't build result sequence")); error(KIO::ERR_SLAVE_DEFINED, u8s2qs("Can't build result sequence"));
return false; return false;