Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] libutempter: update to 1.2.1.
@ 2020-07-27 18:09 skmpz
  0 siblings, 0 replies; only message in thread
From: skmpz @ 2020-07-27 18:09 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 320 bytes --]

There is a new pull request by skmpz against master on the void-packages repository

https://github.com/skmpz/void-packages libutempter-1.2.1
https://github.com/void-linux/void-packages/pull/23877

libutempter: update to 1.2.1.


A patch file from https://github.com/void-linux/void-packages/pull/23877.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-libutempter-1.2.1-23877.patch --]
[-- Type: text/x-diff, Size: 3631 bytes --]

From 742fcef27de0e416ec201353d0ca62fd9d411c1c Mon Sep 17 00:00:00 2001
From: skmpz <dem.procopiou@gmail.com>
Date: Mon, 27 Jul 2020 22:07:52 +0400
Subject: [PATCH] libutempter: update to 1.2.1.

---
 .../libutempter-remove-glibc-assumption.patch | 81 -------------------
 srcpkgs/libutempter/template                  | 10 +--
 2 files changed, 5 insertions(+), 86 deletions(-)
 delete mode 100644 srcpkgs/libutempter/patches/libutempter-remove-glibc-assumption.patch

diff --git a/srcpkgs/libutempter/patches/libutempter-remove-glibc-assumption.patch b/srcpkgs/libutempter/patches/libutempter-remove-glibc-assumption.patch
deleted file mode 100644
index bc9a46e7be3..00000000000
--- a/srcpkgs/libutempter/patches/libutempter-remove-glibc-assumption.patch
+++ /dev/null
@@ -1,81 +0,0 @@
-diff -Naur utempter.c.orig utempter.c
---- utempter.c.orig  2010-11-04 13:14:53.000000000 -0400
-+++ utempter.c    2014-06-20 16:37:09.762403323 -0400
-@@ -34,13 +34,7 @@
- #include <sys/stat.h>
- #include <utmp.h>
-
--#ifdef __GLIBC__
- # include <pty.h>
--#elif defined(__FreeBSD__)
--# include <libutil.h>
--#else
--# error Unsupported platform
--#endif /* __GLIBC__ || __FreeBSD__ */
-
- #define    DEV_PREFIX  "/dev/"
- #define    DEV_PREFIX_LEN  (sizeof(DEV_PREFIX)-1)
-@@ -106,17 +100,12 @@
-
- static int
- write_uwtmp_record(const char *user, const char *term, const char *host,
--#ifdef __GLIBC__
-           pid_t pid,
--#endif
-           int add)
- {
-    struct utmp ut;
-    struct timeval tv;
--
--#ifdef __GLIBC__
-    size_t offset;
--#endif
-
-    memset(&ut, 0, sizeof(ut));
-
-@@ -128,8 +117,6 @@
-    if (host)
-        strncpy(ut.ut_host, host, sizeof(ut.ut_host));
-
--#ifdef __GLIBC__
--
-    offset = (strlen(term) <= sizeof(ut.ut_id)) ? 0 :
-            strlen(term) - sizeof(ut.ut_id);
-    strncpy(ut.ut_id, term + offset, sizeof(ut.ut_id));
-@@ -156,27 +143,6 @@
-
-    (void) updwtmp(_PATH_WTMP, &ut);
-
--#elif defined(__FreeBSD__)
--
--   ut.ut_time = tv.tv_sec;
--
--   if (add)
--   {
--       login(&ut);
--   } else
--   {
--       if (logout(term) != 1)
--       {
--#ifdef UTEMPTER_DEBUG
--           fprintf(stderr, "utempter: logout: %s\n",
--               strerror(errno));
--#endif
--           exit(EXIT_FAILURE);
--       }
--   }
--
--#endif /* __GLIBC__ || __FreeBSD__ */
--
- #ifdef UTEMPTER_DEBUG
-    fprintf(stderr,
-        "utempter: DEBUG: utmp/wtmp record %s for terminal '%s'\n",
-@@ -255,8 +221,6 @@
-    validate_device(device);
-
-    return write_uwtmp_record(pw->pw_name, device + DEV_PREFIX_LEN, host,
--#ifdef __GLIBC__
-                  pid,
--#endif
-                  add);
- }
diff --git a/srcpkgs/libutempter/template b/srcpkgs/libutempter/template
index 2a26b0dd115..619ea27222f 100644
--- a/srcpkgs/libutempter/template
+++ b/srcpkgs/libutempter/template
@@ -1,14 +1,14 @@
 # Template file for 'libutempter'
 pkgname=libutempter
-version=1.1.6
-revision=5
+version=1.2.1
+revision=1
 build_style=gnu-makefile
 short_desc="Library interface to record user sessions in utmp/wtmp files"
-maintainer="Orphaned <orphan@voidlinux.org>"
+maintainer="skmpz <dem.procopiou@gmail.com>"
 license="LGPL-2.1-or-later"
 homepage="http://freecode.com/projects/libutempter"
-distfiles="http://ftp.altlinux.org/pub/people/ldv/utempter/${pkgname}-${version}.tar.bz2"
-checksum=b898565f31ced7e5c1fa0a2eaa0f6ff0ed862b5fe375d26375b64bfbdfeac397
+distfiles="http://ftp.altlinux.org/pub/people/ldv/utempter/${pkgname}-${version}.tar.gz"
+checksum=967fef372f391de501843ad87570c6cf5dabd9651f00f1783090fbc12b2a34cb
 
 libutempter-devel_package() {
 	depends="${sourcepkg}>=${version}_${revision}"

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-07-27 18:09 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-27 18:09 [PR PATCH] libutempter: update to 1.2.1 skmpz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).