Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package mined for openSUSE:Factory checked 
in at 2024-12-17 19:25:32
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/mined (Old)
 and      /work/SRC/openSUSE:Factory/.mined.new.29675 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "mined"

Tue Dec 17 19:25:32 2024 rev:25 rq:1231711 version:2022.27

Changes:
--------
--- /work/SRC/openSUSE:Factory/mined/mined.changes      2022-12-24 
14:52:29.259700260 +0100
+++ /work/SRC/openSUSE:Factory/.mined.new.29675/mined.changes   2024-12-17 
19:25:59.375984029 +0100
@@ -1,0 +2,5 @@
+Tue Dec 17 14:40:03 UTC 2024 - Hillwood Yang <hillw...@opensuse.org>
+
+- Add do-not-use-gets-function.patch, use fgets instead of gets function.
+
+-------------------------------------------------------------------

New:
----
  do-not-use-gets-function.patch

BETA DEBUG BEGIN:
  New:
- Add do-not-use-gets-function.patch, use fgets instead of gets function.
BETA DEBUG END:

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ mined.spec ++++++
--- /var/tmp/diff_new_pack.PWUFdk/_old  2024-12-17 19:26:00.024010998 +0100
+++ /var/tmp/diff_new_pack.PWUFdk/_new  2024-12-17 19:26:00.036011498 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package mined
 #
-# Copyright (c) 2022 SUSE LLC
+# Copyright (c) 2024 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -25,6 +25,9 @@
 URL:            https://mined.github.io/
 Source:         
https://github.com/mined/mined/archive/refs/tags/%{version}.tar.gz
 Source2:        http://unicode.org/Public/UNIDATA/Unihan.zip
+# PATCH-FIX-UPSTREAM do-not-use-gets-function.patch hillw...@opensuee.org
+# Use fgets instead of gets function
+Patch0:         do-not-use-gets-function.patch
 BuildRequires:  fdupes
 BuildRequires:  unzip
 BuildRequires:  update-desktop-files
@@ -65,6 +68,7 @@
 
 %prep
 %setup -q
+%patch -P 0 -p1
 # desktop file fix
 sed -i "s/mined.xpm/mined/" ./usrshare/setup_install/mined.desktop
 sed -i s/Utility/Utility\;/ ./usrshare/setup_install/mined.desktop
@@ -72,10 +76,10 @@
 %build
 cp -p %{SOURCE2} src
 %configure
-make OPT="%{optflags}" USRLIBDIR=%{_libdir} ROOTLIBDIR=/%{_lib} %{?_smp_mflags}
+%make_build
 
 %install
-make DESTDIR=%{buildroot} install %{?_smp_mflags}
+%make_install
 
 # fix links
 rm -rf %{buildroot}%{_bindir}/{minmacs,mpico,mstar}

++++++ do-not-use-gets-function.patch ++++++
diff -Nur mined-2022.27/src/handescr/insutf8ch.c 
mined-2022.27-new/src/handescr/insutf8ch.c
--- mined-2022.27/src/handescr/insutf8ch.c      2022-12-23 16:44:41.000000000 
+0800
+++ mined-2022.27-new/src/handescr/insutf8ch.c  2024-12-17 22:37:01.235345846 
+0800
@@ -127,7 +127,7 @@
                if (argv[1][1] == 'd')
                        dec = 1;
 
-       while (gets (buf)) {
+       while (fgets(buf, 9998, stdin)) {
                char * U_ = strstr (buf, "U+");
                if (U_) {
                        char * s = U_ + 2;

Reply via email to