Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package presage for openSUSE:Factory checked in at 2021-05-07 16:45:26 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/presage (Old) and /work/SRC/openSUSE:Factory/.presage.new.2988 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "presage" Fri May 7 16:45:26 2021 rev:22 rq:890631 version:0.9.1 Changes: -------- --- /work/SRC/openSUSE:Factory/presage/presage.changes 2021-03-10 08:49:14.194392372 +0100 +++ /work/SRC/openSUSE:Factory/.presage.new.2988/presage.changes 2021-05-07 16:45:39.272305393 +0200 @@ -1,0 +2,6 @@ +Wed May 5 07:01:28 UTC 2021 - Marguerite Su <[email protected]> + +- redo presage-0.9.1-gcc11.patch (boo#1181881) + * use noexcept(false) for "throw PresageException" + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ presage.spec ++++++ --- /var/tmp/diff_new_pack.XWd5wJ/_old 2021-05-07 16:45:39.912303380 +0200 +++ /var/tmp/diff_new_pack.XWd5wJ/_new 2021-05-07 16:45:39.912303380 +0200 @@ -31,7 +31,7 @@ License: GPL-2.0-only Group: Productivity/Text/Utilities URL: http://presage.sourceforge.net -Source: http://ncu.dl.sourceforge.net/project/%{sname}/%{sname}/%{version}/%{sname}-%{version}.tar.gz +Source: https://pilotfiber.dl.sourceforge.net/project/%{sname}/%{sname}/%{version}/%{sname}-%{version}.tar.gz # PATCH-FIX-UPSTREAM [email protected] - fix ncurese builds in openSUSE Patch0: presage-0.8.9-ncurses_flag.patch # PATCH-FIX-UPSTREAM [email protected] - port to cmuclmtk @@ -203,6 +203,7 @@ pyprompter displays predictions in a contextual pop-up box as each letter is typed. Predictions can be easily selected and inserted in the document. %else + %package -n libpresage-doc Summary: Intelligent predictive text entry platform (documentation) Group: Documentation/HTML @@ -363,6 +364,7 @@ %{_datadir}/pixmaps/gprompter.* %else + %files -n libpresage-doc %dir %{_datadir}/presage %{_datadir}/presage/html/ ++++++ presage-0.9.1-gcc11.patch ++++++ --- /var/tmp/diff_new_pack.XWd5wJ/_old 2021-05-07 16:45:39.960303229 +0200 +++ /var/tmp/diff_new_pack.XWd5wJ/_new 2021-05-07 16:45:39.964303217 +0200 @@ -7,7 +7,7 @@ Presage::Presage (PresageCallback* callback) - throw (PresageException) -+ THROW_SPEC (PresageException) ++ EXCEPT (PresageException) { profileManager = new ProfileManager(); configuration = profileManager->get_configuration(); @@ -16,7 +16,7 @@ Presage::Presage (PresageCallback* callback, const std::string config_filename) - throw (PresageException) -+ THROW_SPEC (PresageException) ++ EXCEPT (PresageException) { profileManager = new ProfileManager(config_filename); configuration = profileManager->get_configuration(); @@ -25,7 +25,7 @@ std::vector<std::string> Presage::predict () - throw (PresageException) -+ THROW_SPEC (PresageException) ++ EXCEPT (PresageException) { std::vector<std::string> result; @@ -34,7 +34,7 @@ std::multimap<double, std::string> Presage::predict (std::vector<std::string> filter) - throw (PresageException) -+ THROW_SPEC (PresageException) ++ EXCEPT (PresageException) { std::multimap<double, std::string> result; @@ -43,7 +43,7 @@ void Presage::learn(const std::string text) const - throw (PresageException) -+ THROW_SPEC (PresageException) ++ EXCEPT (PresageException) { contextTracker->learn(text); // TODO: can pass additional param to // learn to specify offline learning @@ -51,14 +51,14 @@ PresageCallback* Presage::callback (PresageCallback* callback) - throw (PresageException) -+ THROW_SPEC (PresageException) ++ EXCEPT (PresageException) { return const_cast<PresageCallback*>(contextTracker->callback(callback)); } std::string Presage::completion (const std::string str) - throw (PresageException) -+ THROW_SPEC (PresageException) ++ EXCEPT (PresageException) { // There are two types of completions: normal and erasing. // normal_completion = prefix + remainder @@ -67,42 +67,42 @@ std::string Presage::context () const - throw (PresageException) -+ THROW_SPEC (PresageException) ++ EXCEPT (PresageException) { return contextTracker->getPastStream(); } bool Presage::context_change () const - throw (PresageException) -+ THROW_SPEC (PresageException) ++ EXCEPT (PresageException) { return contextTracker->contextChange(); } std::string Presage::prefix () const - throw (PresageException) -+ THROW_SPEC (PresageException) ++ EXCEPT (PresageException) { return contextTracker->getPrefix(); } std::string Presage::config (const std::string variable) const - throw (PresageException) -+ THROW_SPEC (PresageException) ++ EXCEPT (PresageException) { return configuration->find (variable)->get_value (); } void Presage::config (const std::string variable, const std::string value) const - throw (PresageException) -+ THROW_SPEC (PresageException) ++ EXCEPT (PresageException) { configuration->insert (variable, value); } void Presage::save_config () const - throw (PresageException) -+ THROW_SPEC (PresageException) ++ EXCEPT (PresageException) { profileManager->save_profile (); } @@ -114,10 +114,10 @@ #include "presageException.h" #include "presageCallback.h" -+#if __cplusplus <= 201402L -+#define THROW_SPEC(...) ++#if __cplusplus >= 201103L ++#define EXCEPT(...) noexcept(false) +#else -+#define THROW_SPEC(...) throw (__VA_ARGS__) ++#define EXCEPT(...) throw(__VA_ARGS__) +#endif + /** \mainpage @@ -128,7 +128,7 @@ * Presage does not take ownership of the callback object. */ - Presage(PresageCallback* callback) throw (PresageException); -+ Presage(PresageCallback* callback) THROW_SPEC (PresageException); ++ Presage(PresageCallback* callback) EXCEPT(PresageException); /** Creates and initializes presage with supplied configuration. @@ -137,7 +137,7 @@ * Presage does not take ownership of the callback object. */ - Presage(PresageCallback* callback, const std::string config) throw (PresageException); -+ Presage(PresageCallback* callback, const std::string config) THROW_SPEC (PresageException); ++ Presage(PresageCallback* callback, const std::string config) EXCEPT(PresageException); /** Destroys presage. @@ -146,7 +146,7 @@ * */ - std::vector<std::string> predict() throw (PresageException); -+ std::vector<std::string> predict() THROW_SPEC (PresageException); ++ std::vector<std::string> predict() EXCEPT(PresageException); /** \brief Obtain a prediction that matches the supplied token * filter. @@ -155,7 +155,7 @@ * */ - std::multimap<double, std::string> predict(std::vector<std::string> filter) throw (PresageException); -+ std::multimap<double, std::string> predict(std::vector<std::string> filter) THROW_SPEC (PresageException); ++ std::multimap<double, std::string> predict(std::vector<std::string> filter) EXCEPT(PresageException); /** \brief Learn from text offline. * @@ -164,7 +164,7 @@ * */ - void learn(const std::string text) const throw (PresageException); -+ void learn(const std::string text) const THROW_SPEC (PresageException); ++ void learn(const std::string text) const EXCEPT(PresageException); /** \brief Callback getter/setter. * @@ -173,7 +173,7 @@ * \return pointer to previously used callback */ - PresageCallback* callback(PresageCallback* callback) throw (PresageException); -+ PresageCallback* callback(PresageCallback* callback) THROW_SPEC (PresageException); ++ PresageCallback* callback(PresageCallback* callback) EXCEPT(PresageException); /** \brief Request presage to return the completion string for the given predicted token. * @@ -182,14 +182,14 @@ * \return completion string */ - std::string completion(std::string str) throw (PresageException); -+ std::string completion(std::string str) THROW_SPEC (PresageException); ++ std::string completion(std::string str) EXCEPT(PresageException); /** \brief Returns the text entered so far. * * \return context, text entered so far. */ - std::string context() const throw (PresageException); -+ std::string context() const THROW_SPEC (PresageException); ++ std::string context() const EXCEPT(PresageException); /** \brief Returns true if a context change occured. * @@ -197,14 +197,14 @@ * or predict calls, or false otherwise. */ - bool context_change() const throw (PresageException); -+ bool context_change() const THROW_SPEC (PresageException); ++ bool context_change() const EXCEPT(PresageException); /** \brief Returns the current prefix. * * \return prefix */ - std::string prefix() const throw (PresageException); -+ std::string prefix() const THROW_SPEC (PresageException); ++ std::string prefix() const EXCEPT(PresageException); /** \brief Gets the value of specified configuration variable. * @@ -213,7 +213,7 @@ * \return value assigned to configuration variable. */ - std::string config(const std::string variable) const throw (PresageException); -+ std::string config(const std::string variable) const THROW_SPEC (PresageException); ++ std::string config(const std::string variable) const EXCEPT(PresageException); /** \brief Sets the value of specified configuration variable. * @@ -222,7 +222,7 @@ * */ - void config(const std::string variable, const std::string value) const throw (PresageException); -+ void config(const std::string variable, const std::string value) const THROW_SPEC (PresageException); ++ void config(const std::string variable, const std::string value) const EXCEPT(PresageException); /** \brief Save current configuration to file. * @@ -231,7 +231,7 @@ * */ - void save_config() const throw (PresageException); -+ void save_config() const THROW_SPEC (PresageException); ++ void save_config() const EXCEPT(PresageException); /* * Presage public API ends here
