[gentoo-commits] repo/gentoo:master commit in: net-dialup/minicom/files/, net-dialup/minicom/

2023-08-25 Thread Viorel Munteanu
commit: e02b7e3f9edf22d3de1efb9f1bd9f7655da866e3
Author: Viorel Munteanu  gentoo  org>
AuthorDate: Fri Aug 25 07:45:13 2023 +
Commit: Viorel Munteanu  gentoo  org>
CommitDate: Fri Aug 25 07:46:39 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e02b7e3f

net-dialup/minicom: add large file support

Closes: https://bugs.gentoo.org/912680
Signed-off-by: Viorel Munteanu  gentoo.org>

 .../files/minicom-2.8-enable-large-file.patch  | 30 ++
 net-dialup/minicom/minicom-2.8-r4.ebuild   | 69 ++
 2 files changed, 99 insertions(+)

diff --git a/net-dialup/minicom/files/minicom-2.8-enable-large-file.patch 
b/net-dialup/minicom/files/minicom-2.8-enable-large-file.patch
new file mode 100644
index ..11489b50c690
--- /dev/null
+++ b/net-dialup/minicom/files/minicom-2.8-enable-large-file.patch
@@ -0,0 +1,30 @@
+https://bugs.gentoo.org/912680
+https://salsa.debian.org/minicom-team/minicom/-/commit/4ed314c504bc95d8ccef81d7c68684d5ac31e9db.patch
+
+From 4ed314c504bc95d8ccef81d7c68684d5ac31e9db Mon Sep 17 00:00:00 2001
+From: Adam Lackorzynski 
+Date: Sat, 19 Aug 2023 12:52:02 +0200
+Subject: [PATCH] configure.ac: Enable large file support
+
+Add AC_SYS_LARGEFILE to enable large file support in a portable way.
+Thanks the ChromeOS team and Raul Rangel for hinting at this.
+---
+ configure.ac | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/configure.ac b/configure.ac
+index 7b3f0df..6424a3f 100644
+--- a/configure.ac
 b/configure.ac
+@@ -16,6 +16,8 @@ dnl Checks for programs.
+ AC_PROG_CC
+ AM_PROG_AR
+ 
++AC_SYS_LARGEFILE
++
+ AC_USE_SYSTEM_EXTENSIONS
+ AC_USE_SYSTEM_EXTENSIONS
+ 
+-- 
+GitLab
+

diff --git a/net-dialup/minicom/minicom-2.8-r4.ebuild 
b/net-dialup/minicom/minicom-2.8-r4.ebuild
new file mode 100644
index ..98e6c105afa7
--- /dev/null
+++ b/net-dialup/minicom/minicom-2.8-r4.ebuild
@@ -0,0 +1,69 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit autotools
+
+DESCRIPTION="Serial Communication Program"
+HOMEPAGE="https://salsa.debian.org/minicom-team/minicom;
+SRC_URI="
+   https://salsa.debian.org/${PN}-team/${PN}/-/archive/${PV}/${P}.tar.gz
+   https://dev.gentoo.org/~ceamac/${CATEGORY}/${PN}/${PN}-m4-${PV}.tar.bz2
+"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~s390 
~sparc ~x86 ~amd64-linux ~x86-linux"
+IUSE="nls"
+
+DEPEND="sys-libs/ncurses:="
+
+RDEPEND="
+   ${DEPEND}
+   net-dialup/lrzsz
+"
+
+BDEPEND="
+   virtual/pkgconfig
+   nls? ( sys-devel/gettext )
+"
+
+PATCHES=(
+   "${FILESDIR}"/${PN}-2.8-gentoo-runscript.patch
+   "${FILESDIR}"/${PN}-2.8-lockdir.patch
+   "${FILESDIR}"/${PN}-2.8-enable-large-file.patch
+)
+
+src_prepare() {
+   default
+
+   # 912459
+   # Embed the needed m4 macros if gettext is not installed
+   mv "${WORKDIR}"/m4 . || die
+
+   eautoreconf
+}
+
+src_configure() {
+   # Lockdir must exist if not manually specified.
+   # '/var/lock' is created by OpenRC.
+   local myeconfargs=(
+   # See bug #788142
+   --sysconfdir="${EPREFIX}"/etc/${PN}
+
+   --disable-rpath
+   --enable-lock-dir="/var/lock"
+   $(use_enable nls)
+   )
+
+   econf "${myeconfargs[@]}"
+}
+
+src_install() {
+   default
+
+   # Needs to match --sysconfdir above
+   insinto /etc/minicom
+   doins "${FILESDIR}"/minirc.dfl
+}



[gentoo-commits] repo/gentoo:master commit in: net-dialup/minicom/files/, net-dialup/minicom/

2023-03-18 Thread Sam James
commit: 151902e0caf3f5a1d83a21fcd9aa98d4dff414a8
Author: Sam James  gentoo  org>
AuthorDate: Sun Mar 19 02:51:19 2023 +
Commit: Sam James  gentoo  org>
CommitDate: Sun Mar 19 02:51:19 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=151902e0

net-dialup/minicom: drop 2.7.1, 2.8

Signed-off-by: Sam James  gentoo.org>

 net-dialup/minicom/Manifest|  1 -
 .../files/minicom-2.3-gentoo-runscript.patch   | 55 
 .../minicom/files/minicom-2.7.1-gcc-10.patch   | 31 ---
 net-dialup/minicom/files/minicom-2.7.1-musl.patch  | 24 -
 net-dialup/minicom/minicom-2.7.1.ebuild| 56 
 net-dialup/minicom/minicom-2.8.ebuild  | 60 --
 6 files changed, 227 deletions(-)

diff --git a/net-dialup/minicom/Manifest b/net-dialup/minicom/Manifest
index 920a2cf93f01..56424c22667d 100644
--- a/net-dialup/minicom/Manifest
+++ b/net-dialup/minicom/Manifest
@@ -1,2 +1 @@
-DIST minicom-2.7.1.tar.gz 863544 BLAKE2B 
473dbf9695e16fdf23581b831d1b76f32a5b9f47cf82c6430386646a4ad04a58d61bea08ba032d0c4f779fd19d90d12270df317b719bad6cba63d921c197c87c
 SHA512 
eb9679ac3a3d3585ea06c54407567898e50b981378656e7f8a241071c91054ff0928cc9023d2c79d1936588cdffa9426f4962b556e8daa1783add0c5ac59b5af
 DIST minicom-2.8.tar.gz 948015 BLAKE2B 
007a2975a996e2dd2390b1cf20e1a70c4bb1b57d224211d30e8d83a9d02a45c147df34bf409961a20ad3746cb6b5551c1e0702a05bb0a0a3f7f042d251b553be
 SHA512 
5ced0ff79cec11464154561130ddc6a38865170d4e4d80185ada540ba173fe89e35703b6d7fd0cf86caef6e020fcad1d7b1fdb4d4f55e3ddb906aea6a4b81b36

diff --git a/net-dialup/minicom/files/minicom-2.3-gentoo-runscript.patch 
b/net-dialup/minicom/files/minicom-2.3-gentoo-runscript.patch
deleted file mode 100644
index ff72db966b85..
--- a/net-dialup/minicom/files/minicom-2.3-gentoo-runscript.patch
+++ /dev/null
@@ -1,55 +0,0 @@
-diff -ru minicom-2.3.orig/extras/scriptdemo minicom-2.3/extras/scriptdemo
 minicom-2.3.orig/extras/scriptdemo 2003-03-30 21:55:39.0 +0300
-+++ minicom-2.3/extras/scriptdemo  2008-04-20 05:27:19.0 +0300
-@@ -1,5 +1,5 @@
- # A little demonstration of the possibilities of "runscript".
--# This script can be executed by typing: "runscript scriptdemo".
-+# This script can be executed by typing: "/usr/bin/runscript scriptdemo".
- #
- # Adjust the stty's below to your system: BSD-like or SysV-like.
- # Linux ofcourse accepts both :-)
-diff -ru minicom-2.3.orig/man/minicom.1 minicom-2.3/man/minicom.1
 minicom-2.3.orig/man/minicom.1 2008-02-24 12:22:43.0 +0200
-+++ minicom-2.3/man/minicom.1  2008-04-20 05:27:19.0 +0300
-@@ -418,7 +418,7 @@
- .TP 0.5i
- .B D - Script program
- Which program to use as the script interpreter. Defaults to the
--program "runscript", but if you want to use something else (eg,
-+program "/usr/bin/runscript", but if you want to use something else (eg,
- /bin/sh or "expect") it is possible.  Stdin and stdout are connected
- to the modem, stderr to the screen.
- .RS 0.5i
-diff -ru minicom-2.3.orig/man/runscript.1 minicom-2.3/man/runscript.1
 minicom-2.3.orig/man/runscript.1   2007-11-13 23:35:06.0 +0200
-+++ minicom-2.3/man/runscript.12008-04-20 05:27:19.0 +0300
-@@ -5,7 +5,7 @@
- .\" for conditions under which this file may be redistributed.
- .TH RUNSCRIPT 1 "$Date: 2008/04/20 02:39:28 $" "User's Manual"
- .SH NAME
--runscript \- script interpreter for minicom
-+/usr/bin/runscript \- script interpreter for minicom
- .SH SYNOPSIS
- .B runscript
- .RI "scriptname [logfile [homedir]]"
-diff -ru minicom-2.3.orig/src/rwconf.c minicom-2.3/src/rwconf.c
 minicom-2.3.orig/src/rwconf.c  2007-10-10 23:18:20.0 +0300
-+++ minicom-2.3/src/rwconf.c   2008-04-20 05:27:19.0 +0300
-@@ -118,7 +118,7 @@
-   { N_("No"), 0,  "kermreal" },
-   { "3",  0,   "colusage" },
-   /* The script program */
--  { "runscript",  0,   "scriptprog" },
-+  { "/usr/bin/runscript", 0,   "scriptprog" },
-   /* Modem parameters */
-   { "~^M~AT S7=45 S0=0 L1 V1 X4  E1 Q0^M",   0,   "minit" },
-   { "^M~ATZ^M~",  0,   "mreset" },
-@@ -246,7 +246,7 @@
-   int matched;
- 
-   if (conftype == CONFIG_GLOBAL)
--strcpy(P_SCRIPTPROG, "runscript");
-+strcpy(P_SCRIPTPROG, "/usr/bin/runscript");
- 
-   line = malloc(line_size);
-   if (!line) {

diff --git a/net-dialup/minicom/files/minicom-2.7.1-gcc-10.patch 
b/net-dialup/minicom/files/minicom-2.7.1-gcc-10.patch
deleted file mode 100644
index 43e057ce1fe8..
--- a/net-dialup/minicom/files/minicom-2.7.1-gcc-10.patch
+++ /dev/null
@@ -1,31 +0,0 @@
-https://bugs.gentoo.org/705836
 a/src/minicom.h
-+++ b/src/minicom.h
-@@ -109,13 +109,13 @@ EXTERN char *dial_tty; /* tty to use. */
- 
- EXTERN char *dial_name;   /* System we're conneced to */
- EXTERN char *dial_number;   /* Number we've dialed. */
--EXTERN char *dial_user; /* Our 

[gentoo-commits] repo/gentoo:master commit in: net-dialup/minicom/files/, net-dialup/minicom/

2021-03-27 Thread Conrad Kostecki
commit: 513769430e0f4001d33f8c430fa44b5abab14ded
Author: Conrad Kostecki  gentoo  org>
AuthorDate: Sat Mar 27 21:54:36 2021 +
Commit: Conrad Kostecki  gentoo  org>
CommitDate: Sat Mar 27 21:55:01 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=51376943

net-dialup/minicom: fix compilation with musl

Closes: https://bugs.gentoo.org/714676
Package-Manager: Portage-3.0.17, Repoman-3.0.2
Signed-off-by: Conrad Kostecki  gentoo.org>

 net-dialup/minicom/files/minicom-2.7.1-musl.patch | 24 +++
 net-dialup/minicom/minicom-2.7.1.ebuild   |  3 ++-
 2 files changed, 26 insertions(+), 1 deletion(-)

diff --git a/net-dialup/minicom/files/minicom-2.7.1-musl.patch 
b/net-dialup/minicom/files/minicom-2.7.1-musl.patch
new file mode 100644
index 000..da4ce13d0b8
--- /dev/null
+++ b/net-dialup/minicom/files/minicom-2.7.1-musl.patch
@@ -0,0 +1,24 @@
+--- a/src/dial.c
 b/src/dial.c
+@@ -39,11 +39,9 @@
+ #include "intl.h"
+ 
+ #ifdef VC_MUSIC
+-#  if defined(__GLIBC__)
+ #include 
+ #include 
+ #include 
+-#  endif
+ #endif
+ 
+ enum { CURRENT_VERSION = 6 };
+--- a/src/getsdir.h
 b/src/getsdir.h
+@@ -22,6 +22,7 @@
+  *and licensing conditions.  See the source, Luke.
+  */
+ 
++#include 
+ #include 
+ 
+ typedef struct dirEntry { /* structure of data item */

diff --git a/net-dialup/minicom/minicom-2.7.1.ebuild 
b/net-dialup/minicom/minicom-2.7.1.ebuild
index 0397e7a41fc..8484224b3e1 100644
--- a/net-dialup/minicom/minicom-2.7.1.ebuild
+++ b/net-dialup/minicom/minicom-2.7.1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2020 Gentoo Authors
+# Copyright 1999-2021 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
@@ -26,6 +26,7 @@ PATCHES=(
"${FILESDIR}"/${PN}-2.3-gentoo-runscript.patch
"${FILESDIR}"/${PN}-2.7-lockdir.patch
"${FILESDIR}"/${PN}-2.7.1-gcc-10.patch
+   "${FILESDIR}"/${PN}-2.7.1-musl.patch
 )
 
 src_prepare() {



[gentoo-commits] repo/gentoo:master commit in: net-dialup/minicom/files/, net-dialup/minicom/

2017-03-05 Thread Robin H. Johnson
commit: 4cc9827ebd8e7c50e8ca0cd2449e4894a7acb88f
Author: Robin H. Johnson  gentoo  org>
AuthorDate: Sun Mar  5 19:48:41 2017 +
Commit: Robin H. Johnson  gentoo  org>
CommitDate: Sun Mar  5 20:02:21 2017 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4cc9827e

net-dialup/minicom: Force lockdir to /var/lock

Upstream uses automagic detection of the first existing directory of:
/etc/locks /var/lock /usr/spool/locks /var/spool/locks /var/spool/lock
/usr/spool/uucp /var/spool/uucp /var/run

While many of these will exist in a live system, that was not a safe
assumption during a chrooted package build, such as stage building.

The init system is responsible for creating /var/lock, so force the
lockdir to that.

Package-Manager: portage-2.3.3
Signed-off-by: Robin H. Johnson  gentoo.org>

 net-dialup/minicom/files/minicom-2.7-lockdir.patch | 14 +
 net-dialup/minicom/minicom-2.7-r1.ebuild   | 59 ++
 2 files changed, 73 insertions(+)

diff --git a/net-dialup/minicom/files/minicom-2.7-lockdir.patch 
b/net-dialup/minicom/files/minicom-2.7-lockdir.patch
new file mode 100644
index 000..acbdcbe902b
--- /dev/null
+++ b/net-dialup/minicom/files/minicom-2.7-lockdir.patch
@@ -0,0 +1,14 @@
+--- minicom-2.7.orig/configure.in  2013-12-31 07:14:09.0 -0800
 minicom-2.7/configure.in   2017-03-05 11:25:01.379020326 -0800
+@@ -217,7 +217,10 @@
+ 
+ if test "x$UUCPLOCK" != x
+ then
+-  if test -d $UUCPLOCK
++  dnl If a lock directory was manually specified, do not test it actually
++  dnl exists, as that might not be true during a chroot build, and the
++  dnl packager is responsible for making sure it exists at runtime.
++  if true
+   then
+   AC_MSG_RESULT($UUCPLOCK)
+   AC_DEFINE_UNQUOTED(UUCPLOCK, "$UUCPLOCK", [Lock directory])

diff --git a/net-dialup/minicom/minicom-2.7-r1.ebuild 
b/net-dialup/minicom/minicom-2.7-r1.ebuild
new file mode 100644
index 000..fece4e19b3e
--- /dev/null
+++ b/net-dialup/minicom/minicom-2.7-r1.ebuild
@@ -0,0 +1,59 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit eutils autotools
+
+STUPID_NUM="3977"
+DESCRIPTION="Serial Communication Program"
+HOMEPAGE="http://alioth.debian.org/projects/minicom;
+SRC_URI="https://alioth.debian.org/frs/download.php/file/${STUPID_NUM}/${P}.tar.gz;
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh 
~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux"
+IUSE="nls"
+
+COMMON_DEPEND="sys-libs/ncurses:="
+DEPEND="${COMMON_DEPEND}
+   nls? ( sys-devel/gettext )"
+RDEPEND="${COMMON_DEPEND}
+   net-dialup/lrzsz"
+
+DOCS="AUTHORS ChangeLog NEWS README doc/minicom.FAQ"
+
+# Supported languages and translated documentation
+# Be sure all languages are prefixed with a single space!
+MY_AVAILABLE_LINGUAS=" cs da de es fi fr hu id ja nb pl pt_BR ro ru rw sv vi 
zh_TW"
+IUSE="${IUSE} ${MY_AVAILABLE_LINGUAS// / linguas_}"
+
+PATCHES=(
+   "${FILESDIR}"/${PN}-2.3-gentoo-runscript.patch
+   "${FILESDIR}"/${PN}-2.7-lockdir.patch
+)
+
+src_prepare() {
+   default
+   mv "${S}"/configure.{in,ac}
+   eautoreconf
+}
+
+src_configure() {
+   # Lockdir must exist if not manually specified.
+   # /var/lock is created by openrc.
+   LOCKDIR=/var/lock
+   econf \
+   --sysconfdir="${EPREFIX}"/etc/${PN} \
+   --enable-lock-dir="${LOCKDIR}" \
+   $(use_enable nls)
+}
+
+src_install() {
+   default
+   insinto /etc/minicom
+   doins "${FILESDIR}"/minirc.dfl
+}
+
+pkg_preinst() {
+   [[ -s ${EROOT}/etc/minicom/minirc.dfl ]] && rm -f 
"${ED}"/etc/minicom/minirc.dfl
+}