From 2229875255a95198db7615f8ff8700aba6f0eace Mon Sep 17 00:00:00 2001 From: Michael Mair-Keimberger Date: Mon, 25 Mar 2019 19:17:33 +0100 Subject: net-dialup/mgetty: remove unused patches. Signed-off-by: Michael Mair-Keimberger Closes: https://github.com/gentoo/gentoo/pull/11500 Signed-off-by: Patrice Clement --- net-dialup/mgetty/files/mgetty-1.1.37-gcc7.patch | 102 ------------ net-dialup/mgetty/files/mgetty-1.1.37-gentoo.patch | 172 --------------------- 2 files changed, 274 deletions(-) delete mode 100644 net-dialup/mgetty/files/mgetty-1.1.37-gcc7.patch delete mode 100644 net-dialup/mgetty/files/mgetty-1.1.37-gentoo.patch (limited to 'net-dialup') diff --git a/net-dialup/mgetty/files/mgetty-1.1.37-gcc7.patch b/net-dialup/mgetty/files/mgetty-1.1.37-gcc7.patch deleted file mode 100644 index 6a4fa87a90a6..000000000000 --- a/net-dialup/mgetty/files/mgetty-1.1.37-gcc7.patch +++ /dev/null @@ -1,102 +0,0 @@ -From 09227cacda77d7785e864c0fec3854c22b3273f7 Mon Sep 17 00:00:00 2001 -From: Michal Sekletar -Date: Thu, 2 Mar 2017 09:25:45 +0100 -Subject: [PATCH] Fix build failure with gcc-7 - -When function is declared inline but it is not static then compiler -assumes it could be potentially called from other translation -units. Hence it will inline the function within the translation unit and -at the same time it will generate object code for function with external -linkage. However both extern and inline variant *must* be the same and -therefore such function can not use any variables with static storage -duration. In our case functions in g3cat.c and pbm2g3.c are not called -from other translation units hence it is fine to mark then explicitly as -static and compiler won't generate other (problematic) extern variant. ---- - g3/g3cat.c | 8 ++++---- - g3/pbm2g3.c | 8 ++++---- - 2 files changed, 8 insertions(+), 8 deletions(-) - -diff --git a/g3/g3cat.c b/g3/g3cat.c -index 8a4b708..1951210 100644 ---- a/g3/g3cat.c -+++ b/g3/g3cat.c -@@ -44,7 +44,7 @@ static int b_written = 0; /* bytes of a line already */ - /* written */ - - #ifdef __GNUC__ --inline -+static inline - #endif - void putcode _P2( (code, len), int code, int len ) - { -@@ -67,7 +67,7 @@ void putcode _P2( (code, len), int code, int len ) - } - - #ifdef __GNUC__ --inline -+static inline - #endif - void putwhitespan _P1( (l), int l ) - { -@@ -98,7 +98,7 @@ void putwhitespan _P1( (l), int l ) - } - - #ifdef __GNUC__ --inline -+static inline - #endif - void putblackspan _P1( (l), int l ) - { -@@ -129,7 +129,7 @@ void putblackspan _P1( (l), int l ) - } - - #ifdef __GNUC__ --inline -+static inline - #endif - void puteol _P0( void ) /* write byte-aligned EOL */ - { -diff --git a/g3/pbm2g3.c b/g3/pbm2g3.c -index 283a728..57cb69a 100644 ---- a/g3/pbm2g3.c -+++ b/g3/pbm2g3.c -@@ -40,7 +40,7 @@ static unsigned int out_hibit = 0; - static int out_byte_tab[ 256 ]; /* for g3 byte reversal */ - - #ifdef __GNUC__ --inline -+static inline - #endif - void putcode _P2( (code, len), int code, int len ) - { -@@ -60,7 +60,7 @@ void putcode _P2( (code, len), int code, int len ) - } - - #ifdef __GNUC__ --inline -+static inline - #endif - void puteol _P0( void ) /* write byte-aligned EOL */ - { -@@ -69,7 +69,7 @@ void puteol _P0( void ) /* write byte-aligned EOL */ - } - - #ifdef __GNUC__ --inline -+static inline - #endif - void putwhitespan _P1( (l), int l ) - { -@@ -100,7 +100,7 @@ void putwhitespan _P1( (l), int l ) - } - - #ifdef __GNUC__ --inline -+static inline - #endif - void putblackspan _P1( (l), int l ) - { --- -2.9.3 - diff --git a/net-dialup/mgetty/files/mgetty-1.1.37-gentoo.patch b/net-dialup/mgetty/files/mgetty-1.1.37-gentoo.patch deleted file mode 100644 index 8f0c004d6011..000000000000 --- a/net-dialup/mgetty/files/mgetty-1.1.37-gentoo.patch +++ /dev/null @@ -1,172 +0,0 @@ -diff -Nru mgetty-1.1.37.orig/callback/Makefile mgetty-1.1.37/callback/Makefile ---- mgetty-1.1.37.orig/callback/Makefile 2007-09-14 23:03:32.000000000 +0300 -+++ mgetty-1.1.37/callback/Makefile 2007-09-14 23:02:58.000000000 +0300 -@@ -37,7 +37,7 @@ - # install programs - # - install: all -- $(INSTALL) -s -m 700 -o root callback $(SBINDIR) -- $(INSTALL) -s -m 4711 -o root ct $(BINDIR) -+ $(INSTALL) -m 700 -o root callback $(SBINDIR) -+ $(INSTALL) -m 4711 -o root ct $(BINDIR) - - # source modules -diff -Nru mgetty-1.1.37.orig/doc/mgetty.texi-in mgetty-1.1.37/doc/mgetty.texi-in ---- mgetty-1.1.37.orig/doc/mgetty.texi-in 2007-09-14 23:03:32.000000000 +0300 -+++ mgetty-1.1.37/doc/mgetty.texi-in 2007-09-14 23:02:58.000000000 +0300 -@@ -19,6 +19,11 @@ - Copyright @copyright{} 1993-2005 Gert Doering - @end ifinfo - -+@dircategory User -+@direntry -+* MGETTY: (mgetty). Modem+Voice+Fax utilities -+@end direntry -+ - @titlepage - @sp 6 - @center @titlefont{mgetty+sendfax} -diff -Nru mgetty-1.1.37.orig/fax/faxspool.in mgetty-1.1.37/fax/faxspool.in ---- mgetty-1.1.37.orig/fax/faxspool.in 2007-09-14 23:03:32.000000000 +0300 -+++ mgetty-1.1.37/fax/faxspool.in 2007-09-14 23:02:58.000000000 +0300 -@@ -390,7 +390,7 @@ - - # - # convert pdf data --# needs GNU GhostScript and Adobe acroread installed. -+# needs GNU GhostScript installed. - # For driver selection, see definition of GS_DRIVER_{HI,LO} above. - # - # contributed by mfvm@gmx.de (Michael Fischer v. Mollard) -@@ -401,7 +401,7 @@ - test X$3 = X-n && driver="$GS_DRIVER_LO" - - cat $1 | -- acroread -toPostScript | -+ pdf2ps -sOutputFile=- - | - gs $driver -sOutputFile=$2%03d -dNOPAUSE -q -dSAFER - - } - -diff -Nru mgetty-1.1.37.orig/frontends/X11/viewfax/Makefile mgetty-1.1.37/frontends/X11/viewfax/Makefile ---- mgetty-1.1.37.orig/frontends/X11/viewfax/Makefile 2007-09-14 23:03:32.000000000 +0300 -+++ mgetty-1.1.37/frontends/X11/viewfax/Makefile 2007-09-14 23:02:58.000000000 +0300 -@@ -61,7 +61,7 @@ - g3hack: g3hack.c - - install: viewfax -- $(INSTALL) -s -m 755 viewfax $(BINDIR) -+ $(INSTALL) -m 755 viewfax $(BINDIR) - $(INSTALL) -m 644 viewfax.man $(MANDIR)/viewfax.1 - $(INSTALL) -m 644 viewfax.tif $(LIBDIR) - -diff -Nru mgetty-1.1.37.orig/g3/Makefile mgetty-1.1.37/g3/Makefile ---- mgetty-1.1.37.orig/g3/Makefile 2007-09-14 23:03:32.000000000 +0300 -+++ mgetty-1.1.37/g3/Makefile 2007-09-14 23:02:58.000000000 +0300 -@@ -37,13 +37,13 @@ - # install programs - # - for f in $(G3_PROGRAMS) ; do \ -- $(INSTALL) -s -m 755 $$f $(BINDIR) ; \ -+ $(INSTALL) -m 755 $$f $(BINDIR) ; \ - done - # - # make symlink for "g3topbm" (so third-party fax viewers won't fail) --# -- -cd $(BINDIR) ; \ -- test -x g3topbm || ln -s g32pbm g3topbm -+# Note for Gentoo: following lines will create collision with netpbm if netpbm is installed after -+# -cd $(BINDIR) ; \ -+# test -x g3topbm || ln -s g32pbm g3topbm - - - # test suite -diff -Nru mgetty-1.1.37.orig/Makefile mgetty-1.1.37/Makefile ---- mgetty-1.1.37.orig/Makefile 2007-09-14 23:03:32.000000000 +0300 -+++ mgetty-1.1.37/Makefile 2007-09-14 23:02:58.000000000 +0300 -@@ -282,7 +282,7 @@ - # please use the "mg.echo" program provided in the compat/ subdirectory. - # Set ECHO="mg.echo" and INSTALL_MECHO to mg.echo - # --ECHO="echo" -+ECHO="echo -e" - # - # INSTALL_MECHO=mg.echo - -@@ -596,12 +596,8 @@ - $(INSTALL) -m 755 newslock $(BINDIR) - - -test -d $(SBINDIR) || ( ./mkidirs $(SBINDIR) ; chmod 755 $(SBINDIR) ) -- if [ -f $(SBINDIR)/mgetty ] ; then \ -- mv -f $(SBINDIR)/mgetty $(SBINDIR)/mgetty.old ; fi -- if [ -f $(SBINDIR)/sendfax ] ; then \ -- mv -f $(SBINDIR)/sendfax $(SBINDIR)/sendfax.old ; fi -- $(INSTALL) -s -m 700 mgetty $(SBINDIR) -- $(INSTALL) -s -m 755 sendfax $(SBINDIR) -+ $(INSTALL) -m 700 mgetty $(SBINDIR) -+ $(INSTALL) -m 755 sendfax $(SBINDIR) - # - # data files + directories - # -@@ -663,7 +661,7 @@ - if [ ! -z "$(INSTALL_MECHO)" ] ; then \ - cd compat ; \ - $(CC) $(CFLAGS) -o mg.echo mg.echo.c && \ -- $(INSTALL) -s -m 755 mg.echo $(BINDIR) ; \ -+ $(INSTALL) -m 755 mg.echo $(BINDIR) ; \ - fi - - # -diff -Nru mgetty-1.1.37.orig/mgetty.cfg.in mgetty-1.1.37/mgetty.cfg.in ---- mgetty-1.1.37.orig/mgetty.cfg.in 2003-11-17 21:09:41.000000000 +0200 -+++ mgetty-1.1.37/mgetty.cfg.in 2007-09-14 23:02:58.000000000 +0300 -@@ -20,16 +20,16 @@ - # access the modem(s) with @SPEED@ bps - speed @SPEED@ - --# use these options to make the /dev/tty-device owned by "uucp.uucp" -+# use these options to make the /dev/tty-device owned by "fax.fax" - # and mode "rw-rw-r--" (0664). *LEADING ZERO NEEDED!* --#port-owner uucp --#port-group uucp -+#port-owner fax -+#port-group fax - #port-mode 0664 - --# use these options to make incoming faxes owned by "root.uucp" -+# use these options to make incoming faxes owned by "root.fax" - # and mode "rw-r-----" (0640). *LEADING ZERO NEEDED!* - #fax-owner root --#fax-group uucp -+#fax-group fax - #fax-mode 0640 - - -diff -Nru mgetty-1.1.37.orig/voice/Makefile mgetty-1.1.37/voice/Makefile ---- mgetty-1.1.37.orig/voice/Makefile 2007-09-14 23:03:32.000000000 +0300 -+++ mgetty-1.1.37/voice/Makefile 2007-09-14 23:02:58.000000000 +0300 -@@ -85,6 +85,7 @@ - @echo "" - $(INSTALL) -m 700 vgetty/vgetty $(SBINDIR) - $(INSTALL) -m 755 vm/vm $(BINDIR) -+ $(INSTALL) -m 644 voice.conf-dist $(CONFDIR)/voice.conf - for i in $(PVFTOOLS); \ - do \ - $(INSTALL) -m 755 pvftools/$$i $(BINDIR); \ -diff -Nru mgetty-1.1.37.orig/voice/voice.conf-dist mgetty-1.1.37/voice/voice.conf-dist ---- mgetty-1.1.37.orig/voice/voice.conf-dist 2005-03-19 18:10:20.000000000 +0200 -+++ mgetty-1.1.37/voice/voice.conf-dist 2007-09-14 23:02:58.000000000 +0300 -@@ -47,11 +47,11 @@ - voice_dir /var/spool/voice - - # --# incoming messages are owned by "root.phone" and mode "rw-rw----" (0660) -+# incoming messages are owned by "fax:fax" and mode "rw-rw----" (0660) - # - --phone_owner root --phone_group phone -+phone_owner fax -+phone_group fax - phone_mode 0660 - - # -- cgit v1.2.3-65-gdbad