[packages/aterm] Rel 3

arekm arekm at pld-linux.org
Sun May 17 00:46:43 CEST 2026


commit 528bb5b582dcb788085cf7506b079ec852e0aa4c
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Sun May 17 00:45:17 2026 +0200

    Rel 3

 aterm-glibc-streams.patch | 19 +++++++++++++++++++
 aterm.spec                |  8 +++++---
 2 files changed, 24 insertions(+), 3 deletions(-)
---
diff --git a/aterm.spec b/aterm.spec
index be1af1f..34f2f26 100644
--- a/aterm.spec
+++ b/aterm.spec
@@ -3,7 +3,7 @@ Summary(pl.UTF-8):	aterm - emulator terminala dla X Window System
 Summary(pt_BR.UTF-8):	Um emulador de vt102 colorido
 Name:		aterm
 Version:	1.0.1
-Release:	2
+Release:	3
 License:	GPL
 Vendor:		Sasha Vasko <sashav at sprintmail.com>
 Group:		X11/Applications
@@ -14,6 +14,7 @@ Patch0:		%{name}-utempter.patch
 Patch1:		%{name}-wtmp.patch
 Patch2:		%{name}-etc_dir.patch
 Patch3:		%{name}-without-afterstep.patch
+Patch4:		%{name}-glibc-streams.patch
 URL:		http://www.afterstep.org/aterm.php
 BuildRequires:	autoconf
 BuildRequires:	utempter-devel
@@ -53,6 +54,7 @@ leve.
 %patch -P1 -p1
 %patch -P2 -p1
 %patch -P3 -p1
+%patch -P4 -p1
 
 %build
 cd autoconf
@@ -62,6 +64,7 @@ cd ..
 LDFLAGS="%{rpmldflags} -lutempter -L%{_libdir}"
 export LDFLAGS
 
+CFLAGS="%{rpmcppflags} %{rpmcflags} -std=gnu89" \
 %configure \
 	--enable-ttygid \
 	--enable-wtmp \
@@ -75,8 +78,6 @@ export LDFLAGS
 	--enable-next-scroll
 #	--enable-utmp \
 
-CFLAGS="%{rpmcflags}"
-
 %{__make}
 
 %install
@@ -84,6 +85,7 @@ rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT%{_desktopdir}
 
 %{__make} install \
+	INSTALL_PROGRAM="install -c -m 755" \
 	DESTDIR=$RPM_BUILD_ROOT
 
 install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
diff --git a/aterm-glibc-streams.patch b/aterm-glibc-streams.patch
new file mode 100644
index 0000000..de699cd
--- /dev/null
+++ b/aterm-glibc-streams.patch
@@ -0,0 +1,19 @@
+Modern glibc (2.36+) removed <sys/stropts.h>; Linux devpts handles tty
+setup without SysV STREAMS, so the __lnx21__ branch (glibc>=2.1) is dead.
+Drop __lnx21__ from these guards so only real SVR4 systems use STREAMS.
+
+--- aterm-1.0.1/src/command.c.orig
++++ aterm-1.0.1/src/command.c
+@@ -65,12 +65,6 @@
+ # define DndLink	7
+ #endif
+
+-#if defined __GLIBC__ && __GLIBC__ >= 2
+-#  if defined __GLIBC_MINOR__ && __GLIBC_MINOR__ >= 1
+-#    define __lnx21__ 1
+-#  endif
+-#endif
+-
+ #include <X11/keysym.h>
+ #ifndef NO_XLOCALE
+ # if (XtSpecificationRelease < 6)
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/aterm.git/commitdiff/528bb5b582dcb788085cf7506b079ec852e0aa4c



More information about the pld-cvs-commit mailing list