Compare commits
No commits in common. "c8" and "c9-beta" have entirely different histories.
2
.gitignore
vendored
2
.gitignore
vendored
@ -1 +1 @@
|
|||||||
SOURCES/libedit-20170329-3.1.tar.gz
|
SOURCES/libedit-20210216-3.1.tar.gz
|
||||||
|
@ -1 +1 @@
|
|||||||
7b7bde97429d96a42b0a95ed3c6bec56101ec9f0 SOURCES/libedit-20170329-3.1.tar.gz
|
343e3e0325b90c9be15f31734001c9dac5a1f179 SOURCES/libedit-20210216-3.1.tar.gz
|
||||||
|
40
SOURCES/libedit-editrc.patch
Normal file
40
SOURCES/libedit-editrc.patch
Normal file
@ -0,0 +1,40 @@
|
|||||||
|
diff -ur libedit-20210419-3.1/src/el.c libedit-20210522-3.1/src/el.c
|
||||||
|
--- libedit-20210419-3.1/src/el.c 2019-10-25 22:12:05.000000000 +0200
|
||||||
|
+++ libedit-20210522-3.1/src/el.c 2021-05-22 20:55:00.000000000 +0200
|
||||||
|
@@ -548,15 +548,15 @@
|
||||||
|
|
||||||
|
fp = NULL;
|
||||||
|
if (fname == NULL) {
|
||||||
|
-#ifdef HAVE_ISSETUGID
|
||||||
|
- if (issetugid())
|
||||||
|
- return -1;
|
||||||
|
|
||||||
|
- if ((fname = getenv("EDITRC")) == NULL) {
|
||||||
|
+ /* secure_getenv is guaranteed to be defined and do the right thing here */
|
||||||
|
+ /* because of the defines above which take into account issetugid, */
|
||||||
|
+ /* secure_getenv and __secure_getenv availability. */
|
||||||
|
+ if ((fname = secure_getenv("EDITRC")) == NULL) {
|
||||||
|
static const char elpath[] = "/.editrc";
|
||||||
|
size_t plen = sizeof(elpath);
|
||||||
|
|
||||||
|
- if ((ptr = getenv("HOME")) == NULL)
|
||||||
|
+ if ((ptr = secure_getenv("HOME")) == NULL)
|
||||||
|
return -1;
|
||||||
|
plen += strlen(ptr);
|
||||||
|
if ((path = el_calloc(plen, sizeof(*path))) == NULL)
|
||||||
|
@@ -565,14 +565,7 @@
|
||||||
|
elpath + (*ptr == '\0'));
|
||||||
|
fname = path;
|
||||||
|
}
|
||||||
|
-#else
|
||||||
|
- /*
|
||||||
|
- * If issetugid() is missing, always return an error, in order
|
||||||
|
- * to keep from inadvertently opening up the user to a security
|
||||||
|
- * hole.
|
||||||
|
- */
|
||||||
|
- return -1;
|
||||||
|
-#endif
|
||||||
|
+
|
||||||
|
}
|
||||||
|
if (fname[0] == '\0')
|
||||||
|
return -1;
|
@ -1,17 +1,21 @@
|
|||||||
%global snap 20170329
|
%global snap 20210216
|
||||||
%global dir_snap 20170329
|
%global dir_snap 20210216
|
||||||
|
|
||||||
Summary: The NetBSD Editline library
|
Summary: The NetBSD Editline library
|
||||||
Name: libedit
|
Name: libedit
|
||||||
Version: 3.1
|
Version: 3.1
|
||||||
Release: 23.%{snap}cvs%{?dist}
|
Release: 38.%{snap}cvs%{?dist}
|
||||||
License: BSD
|
License: BSD
|
||||||
Group: System Environment/Libraries
|
URL: https://www.thrysoee.dk/editline/
|
||||||
URL: http://www.thrysoee.dk/editline/
|
Source0: https://www.thrysoee.dk/editline/%{name}-%{snap}-%{version}.tar.gz
|
||||||
Source0: http://www.thrysoee.dk/editline/%{name}-%{snap}-%{version}.tar.gz
|
|
||||||
BuildRequires: gcc
|
BuildRequires: gcc
|
||||||
|
BuildRequires: groff-base
|
||||||
|
BuildRequires: make
|
||||||
BuildRequires: ncurses-devel
|
BuildRequires: ncurses-devel
|
||||||
|
|
||||||
|
# Fix reading of $HOME/.editrc and $EDITRC
|
||||||
|
Patch1: libedit-editrc.patch
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Libedit is an autotool- and libtoolized port of the NetBSD Editline library.
|
Libedit is an autotool- and libtoolized port of the NetBSD Editline library.
|
||||||
It provides generic line editing, history, and tokenization functions, similar
|
It provides generic line editing, history, and tokenization functions, similar
|
||||||
@ -19,50 +23,38 @@ to those found in GNU Readline.
|
|||||||
|
|
||||||
%package devel
|
%package devel
|
||||||
Summary: Development files for %{name}
|
Summary: Development files for %{name}
|
||||||
Group: Development/Libraries
|
|
||||||
|
|
||||||
Requires: %{name} = %{version}-%{release}
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
||||||
Requires: ncurses-devel%{?_isa}
|
Requires: ncurses-devel%{?_isa}
|
||||||
|
|
||||||
%description devel
|
%description devel
|
||||||
This package contains development files for %{name}.
|
This package contains development files for %{name}.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n %{name}-%{dir_snap}-%{version}
|
%autosetup -n %{name}-%{dir_snap}-%{version} -p1
|
||||||
|
|
||||||
# Suppress rpmlint error.
|
# Fix unused direct shared library dependencies.
|
||||||
iconv -f ISO8859-1 -t UTF-8 -o ChangeLog.utf-8 ChangeLog
|
sed -i "s/lncurses/ltinfo/" configure
|
||||||
touch -r ChangeLog ChangeLog.utf-8
|
|
||||||
mv -f ChangeLog.utf-8 ChangeLog
|
|
||||||
|
|
||||||
# Replace an nroff macro that is not available, and not needed, on Linux
|
|
||||||
sed -i 's,\\\*\[Gt\],>,' doc/editline.3.roff
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%configure --disable-static --disable-silent-rules
|
%configure --disable-static --disable-silent-rules
|
||||||
|
|
||||||
# Fix unused direct shared library dependencies.
|
%make_build
|
||||||
sed -i "s/lncurses/ltinfo/" src/Makefile
|
|
||||||
|
|
||||||
# Downstream projects do not need to link with ncurses, just libedit.
|
|
||||||
sed -i "s/ -lncurses//" libedit.pc
|
|
||||||
|
|
||||||
make %{?_smp_mflags}
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
make install INSTALL="%{__install} -p" DESTDIR=$RPM_BUILD_ROOT
|
%make_install
|
||||||
find $RPM_BUILD_ROOT -type f -name "*.la" -delete
|
find $RPM_BUILD_ROOT -type f -name "*.la" -delete
|
||||||
# See rhbz#1349671
|
# See rhbz#1349671
|
||||||
rm -f $RPM_BUILD_ROOT/%{_mandir}/man3/history.3*
|
rm -f $RPM_BUILD_ROOT%{_mandir}/man3/history.3*
|
||||||
|
|
||||||
%ldconfig_scriptlets
|
%ldconfig_scriptlets
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%{!?_licensedir:%global license %%doc}
|
|
||||||
%license COPYING
|
%license COPYING
|
||||||
%doc ChangeLog THANKS
|
%doc ChangeLog THANKS
|
||||||
%{_mandir}/man5/editrc.5*
|
%{_mandir}/man5/editrc.5*
|
||||||
%{_libdir}/%{name}.so.*
|
%{_libdir}/%{name}.so.0
|
||||||
|
%{_libdir}/%{name}.so.0.*
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%doc examples/fileman.c examples/tc1.c examples/wtc1.c
|
%doc examples/fileman.c examples/tc1.c examples/wtc1.c
|
||||||
@ -75,6 +67,56 @@ rm -f $RPM_BUILD_ROOT/%{_mandir}/man3/history.3*
|
|||||||
%{_includedir}/editline/readline.h
|
%{_includedir}/editline/readline.h
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Jul 19 2023 Miroslav Lichvar <mlichvar@redhat.com> 3.1-38.20210216cvs
|
||||||
|
- Fix reading of $HOME/.editrc and $EDITRC (#2211207)
|
||||||
|
|
||||||
|
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 3.1-37.20210216cvs
|
||||||
|
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
|
||||||
|
Related: rhbz#1991688
|
||||||
|
|
||||||
|
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 3.1-36.20210216cvs
|
||||||
|
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
|
||||||
|
|
||||||
|
* Tue Feb 16 2021 Jerry James <loganjerry@gmail.com> - 3.1-35.20210216cvs
|
||||||
|
- New version (20210216-3.1)
|
||||||
|
|
||||||
|
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 3.1-34.20191231cvs
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
||||||
|
|
||||||
|
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.1-33.20191231cvs
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
||||||
|
|
||||||
|
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.1-32.20191231cvs
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
||||||
|
|
||||||
|
* Fri Jan 3 2020 Jerry James <loganjerry@gmail.com> - 3.1-31.20191231cvs
|
||||||
|
- New version (20191231-3.1)
|
||||||
|
|
||||||
|
* Wed Dec 11 2019 Jerry James <loganjerry@gmail.com> - 3.1-30.20191211cvs
|
||||||
|
- New version (20191211-3.1)
|
||||||
|
|
||||||
|
* Sat Oct 26 2019 Jerry James <loganjerry@gmail.com> - 3.1-29.20191025cvs
|
||||||
|
- New version (20191025-3.1)
|
||||||
|
|
||||||
|
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.1-28.20190324cvs
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
||||||
|
|
||||||
|
* Sat May 11 2019 Jerry James <loganjerry@gmail.com> - 3.1-27.20190324cvs
|
||||||
|
- New version (20190324-3.1), fixes bz 1677247
|
||||||
|
|
||||||
|
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.1-26.20181209cvs
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
||||||
|
|
||||||
|
* Wed Jan 30 2019 Jerry James <loganjerry@gmail.com> - 3.1-25.20181209cvs
|
||||||
|
- New version (20181209-3.1)
|
||||||
|
- ChangeLog is now UTF-8, so drop conversion from ISO8859-1
|
||||||
|
- Drop man page fix, fixed upstream
|
||||||
|
- Drop pkgconfig file fix, fixed upstream
|
||||||
|
- Add groff-base BR for man page generation
|
||||||
|
|
||||||
|
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.1-24.20170329cvs
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
||||||
|
|
||||||
* Sat Mar 3 2018 Jerry James <loganjerry@gmail.com> - 3.1-23.20170329cvs
|
* Sat Mar 3 2018 Jerry James <loganjerry@gmail.com> - 3.1-23.20170329cvs
|
||||||
- Add gcc BR
|
- Add gcc BR
|
||||||
- Build verbosely
|
- Build verbosely
|
||||||
|
Loading…
Reference in New Issue
Block a user