Compare commits
6 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
| 87f02d4d78 | |||
| 41a41a2daf | |||
| 12a0448c11 | |||
| c25aa41ae0 | |||
| 6236bc944c | |||
| f65b27ee4c |
12
do-not-use-gets-function.patch
Normal file
12
do-not-use-gets-function.patch
Normal file
@@ -0,0 +1,12 @@
|
||||
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;
|
||||
@@ -1,3 +1,15 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Dec 18 10:51:59 UTC 2024 - Andreas Schwab <schwab@suse.de>
|
||||
|
||||
- Compile with %{optflags}
|
||||
- Override LIBDIR to properly find termcap library
|
||||
- Use generic makefile also on arm
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Dec 17 14:40:03 UTC 2024 - Hillwood Yang <hillwood@opensuse.org>
|
||||
|
||||
- Add do-not-use-gets-function.patch, use fgets instead of gets function.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Dec 23 12:21:44 UTC 2022 - Dirk Müller <dmueller@suse.com>
|
||||
|
||||
@@ -153,7 +165,8 @@ Bug fixes:
|
||||
• Fixed Alt-digit accent prefix functions for mintty and rxvt (since 2012.20).
|
||||
• Fixes related to NUL or NONE pseudo lineends.
|
||||
|
||||
Thu, 10 May 2012 00:00:00 CEST - towo@towo.net
|
||||
-------------------------------------------------------------------
|
||||
Thu May 10 00:00:00 CEST 2012 - towo@towo.net
|
||||
|
||||
Update to mined 2012.22 - highlights of last 3 releases:
|
||||
|
||||
|
||||
12
mined.spec
12
mined.spec
@@ -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 @@ Group: Productivity/Editors/Other
|
||||
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 hillwood@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,9 @@ It was the first editor that supported Unicode in a plain-text terminal
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
%patch -P 0 -p1
|
||||
# Use generic makefile also for arm
|
||||
sed -i s/arm/never/ makemined
|
||||
# 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 +78,10 @@ sed -i s/Utility/Utility\;/ ./usrshare/setup_install/mined.desktop
|
||||
%build
|
||||
cp -p %{SOURCE2} src
|
||||
%configure
|
||||
make OPT="%{optflags}" USRLIBDIR=%{_libdir} ROOTLIBDIR=/%{_lib} %{?_smp_mflags}
|
||||
%make_build CCFLAGS="%{optflags}" LIBDIR=/%{_lib}
|
||||
|
||||
%install
|
||||
make DESTDIR=%{buildroot} install %{?_smp_mflags}
|
||||
%make_install
|
||||
|
||||
# fix links
|
||||
rm -rf %{buildroot}%{_bindir}/{minmacs,mpico,mstar}
|
||||
|
||||
Reference in New Issue
Block a user