pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/news/trn



Module Name:    pkgsrc
Committed By:   christos
Date:           Sat Apr 11 21:19:22 UTC 2026

Modified Files:
        pkgsrc/news/trn: Makefile distinfo
        pkgsrc/news/trn/patches: patch-ac
Added Files:
        pkgsrc/news/trn/patches: patch-term.h

Log Message:
make this build again


To generate a diff of this commit:
cvs rdiff -u -r1.54 -r1.55 pkgsrc/news/trn/Makefile
cvs rdiff -u -r1.18 -r1.19 pkgsrc/news/trn/distinfo
cvs rdiff -u -r1.9 -r1.10 pkgsrc/news/trn/patches/patch-ac
cvs rdiff -u -r0 -r1.1 pkgsrc/news/trn/patches/patch-term.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/news/trn/Makefile
diff -u pkgsrc/news/trn/Makefile:1.54 pkgsrc/news/trn/Makefile:1.55
--- pkgsrc/news/trn/Makefile:1.54       Mon Nov 17 06:01:19 2025
+++ pkgsrc/news/trn/Makefile    Sat Apr 11 17:19:21 2026
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.54 2025/11/17 11:01:19 wiz Exp $
+# $NetBSD: Makefile,v 1.55 2026/04/11 21:19:21 christos Exp $
 
 DISTNAME=              trn-4.0-test77
 PKGNAME=               trn-4.77
@@ -67,6 +67,7 @@ CONFIGURE_ARGS+=      -d -e -D bin=${PREFIX:Q
                        -D servername=${PKG_SYSCONFDIR}'/server' \
                        -D d_nntp \
                        -U d_local \
+                       -U d_uwait \
                        -D libs=' ' \
                        -D usevfork=false \
                        -D inews=${PREFIX:Q}'/bin/inews' \
@@ -82,6 +83,7 @@ SUBST_CLASSES+=               pipe2
 SUBST_STAGE.pipe2=     pre-configure
 SUBST_FILES.pipe2=     filter.c
 SUBST_SED.pipe2+=      -e 's|pipe2|trn_pipe2|g'
+CPPFLAGS+= -Wno-implicit-function-declaration
 
 INSTALLATION_DIRS+=    share/trn
 

Index: pkgsrc/news/trn/distinfo
diff -u pkgsrc/news/trn/distinfo:1.18 pkgsrc/news/trn/distinfo:1.19
--- pkgsrc/news/trn/distinfo:1.18       Tue Oct 26 07:09:37 2021
+++ pkgsrc/news/trn/distinfo    Sat Apr 11 17:19:21 2026
@@ -1,9 +1,10 @@
-$NetBSD: distinfo,v 1.18 2021/10/26 11:09:37 nia Exp $
+$NetBSD: distinfo,v 1.19 2026/04/11 21:19:21 christos Exp $
 
 BLAKE2s (trn-4.0-test77.tar.gz) = be296a41d6bef98afdceb1a72389f48a66d661e930c7f626f9917b8083a68d1f
 SHA512 (trn-4.0-test77.tar.gz) = 9b76ba004fb47dfd162afcfec51630431e8ad7099e5151d4a21b55c8fa670227d6e0756029e57312872c8f4ea986112af50508144caf59adb065212a661f408a
 Size (trn-4.0-test77.tar.gz) = 564694 bytes
-SHA1 (patch-ac) = b6e06444f55242c1fe0dac194e04cd2c5f6a4c53
+SHA1 (patch-ac) = b406c66669d088eb0140bf99f9589985feb4d4bf
 SHA1 (patch-ad) = f6d102af2b6e3095ea765f622085464193d94835
 SHA1 (patch-ae) = 6cc777ff94540345a433e88ab355fe18a23d60d1
 SHA1 (patch-parsedate.y) = 99213bd37f0708b65276a1f920b757a65ba29b33
+SHA1 (patch-term.h) = f6d63863327961c2e3af5d7d273c85b876406718

Index: pkgsrc/news/trn/patches/patch-ac
diff -u pkgsrc/news/trn/patches/patch-ac:1.9 pkgsrc/news/trn/patches/patch-ac:1.10
--- pkgsrc/news/trn/patches/patch-ac:1.9        Sun Jun 29 15:03:30 2014
+++ pkgsrc/news/trn/patches/patch-ac    Sat Apr 11 17:19:21 2026
@@ -1,14 +1,15 @@
-$NetBSD: patch-ac,v 1.9 2014/06/29 19:03:30 dholland Exp $
+$NetBSD: patch-ac,v 1.10 2026/04/11 21:19:21 christos Exp $
 
 - Don't belch on single quotes in uname output.
 - Dragonfly support.
 - Always use pkgsrc termcap.
 - Use assorted pkgsrc tools.
 - Don't embed the tools path of sleep into installed scripts.
+- fix compilation warnings
 
---- Configure.orig     2001-02-22 19:17:39.000000000 +0000
-+++ Configure
-@@ -1260,7 +1260,6 @@ mkdir
+--- Configure.orig     2010-09-02 02:12:26.000000000 -0400
++++ Configure  2026-04-11 17:13:48.980370032 -0400
+@@ -1260,7 +1260,6 @@
  mv
  rm
  sed
@@ -16,7 +17,7 @@ $NetBSD: patch-ac,v 1.9 2014/06/29 19:03
  sort
  tail
  touch
-@@ -1366,6 +1365,7 @@ for file in $trylist; do
+@@ -1366,6 +1365,7 @@
                ;;
        esac
  done
@@ -24,7 +25,7 @@ $NetBSD: patch-ac,v 1.9 2014/06/29 19:03
  case "$egrep" in
  egrep)
        echo "Substituting grep for egrep."
-@@ -1507,7 +1507,7 @@ case "$config_sh" in
+@@ -1507,7 +1507,7 @@
  myuname=`( ($uname -a) 2>/dev/null || hostname) 2>&1`
  # tr '[A-Z]' '[a-z]' would not work in EBCDIC
  # because the A-Z/a-z are not consecutive.
@@ -33,7 +34,7 @@ $NetBSD: patch-ac,v 1.9 2014/06/29 19:03
        ./tr '[A-Z]' '[a-z]' | tr $trnl ' '`
  newmyuname="$myuname"
  dflt=n
-@@ -2540,7 +2540,7 @@ EOM
+@@ -2540,7 +2540,7 @@
      esac
      ;;
  *)  case "$d_inews" in
@@ -42,7 +43,33 @@ $NetBSD: patch-ac,v 1.9 2014/06/29 19:03
      "$define")
        set dflt installinews bin
        eval $prefixit
-@@ -4412,6 +4412,9 @@ case "$nm_so_opt" in
+@@ -3046,6 +3046,7 @@
+ echo " "
+ echo "Checking for GNU cc in disguise and/or its version number..." >&4
+ $cat >gccvers.c <<EOM
++#include <stdlib.h>
+ #include <stdio.h>
+ int main() {
+ #ifdef __GNUC__
+@@ -4096,7 +4097,8 @@
+ echo "Checking your choice of C compiler and flags for coherency..." >&4
+ $cat > try.c <<'EOF'
+ #include <stdio.h>
+-main() { printf("Ok\n"); exit(0); }
++#include <stdlib.h>
++int main(void) { printf("Ok\n"); exit(0); }
+ EOF
+ set X $cc $optimize $ccflags -o try $ldflags try.c $libs
+ shift
+@@ -4302,6 +4304,7 @@
+ echo " "
+ echo "Checking for GNU C Library..." >&4
+ cat >gnulibc.c <<EOM
++#include <stdlib.h>
+ #include <stdio.h>
+ int
+ main()
+@@ -4412,6 +4415,9 @@
                        nm_so_opt='--dynamic'
                fi
                ;;
@@ -52,7 +79,7 @@ $NetBSD: patch-ac,v 1.9 2014/06/29 19:03
        esac
        ;;
  esac
-@@ -4855,10 +4858,54 @@ set getpwent d_getpwent
+@@ -4855,10 +4861,54 @@
  eval $inlibc
  
  : where do we get termlib routines from
@@ -108,7 +135,7 @@ $NetBSD: patch-ac,v 1.9 2014/06/29 19:03
        ar t $xxx >grimble
        if $contains tputs$_o grimble >/dev/null 2>&1; then
                termlib='-lcurses'
-@@ -4882,10 +4929,10 @@ case "$xxx" in
+@@ -4882,10 +4932,10 @@
  esac
  case "$xxx" in
  x)
@@ -121,7 +148,7 @@ $NetBSD: patch-ac,v 1.9 2014/06/29 19:03
                d_havetlib="$define"
                echo "Termlib library found." >&4
                ;;
-@@ -4901,17 +4948,17 @@ x)
+@@ -4901,17 +4951,17 @@
  esac
  case "$xxx" in
  x)
@@ -143,7 +170,7 @@ $NetBSD: patch-ac,v 1.9 2014/06/29 19:03
                ;;
        *)
                xxx=x
-@@ -4928,6 +4975,7 @@ x)
+@@ -4928,6 +4978,7 @@
                echo "Terminfo library found." >&4
                ;;
        /*)
@@ -151,7 +178,7 @@ $NetBSD: patch-ac,v 1.9 2014/06/29 19:03
                termlib="$xxx"
                d_havetlib="$define"
                echo "Terminfo library found." >&4
-@@ -4958,25 +5006,6 @@ x)
+@@ -4958,25 +5009,6 @@
  esac
  case "$xxx" in
  x)
@@ -177,7 +204,7 @@ $NetBSD: patch-ac,v 1.9 2014/06/29 19:03
        dflt=y
  rp="Your system appears to NOT have termlib-style routines. Is this true?"
        . ./myread
-@@ -5000,6 +5029,7 @@ EOM
+@@ -5000,6 +5032,7 @@
        esac
        ;;
  esac
@@ -185,7 +212,7 @@ $NetBSD: patch-ac,v 1.9 2014/06/29 19:03
  
  : Decide whether to ignore the ORGANIZATION environment variable
  case "$d_ignoreorg" in
-@@ -6223,14 +6253,14 @@ active='$active'
+@@ -6223,14 +6256,14 @@
  acttimes='$acttimes'
  aphostcmd='$aphostcmd'
  archobjs='$archobjs'
@@ -203,7 +230,7 @@ $NetBSD: patch-ac,v 1.9 2014/06/29 19:03
  cc='$cc'
  ccflags='$ccflags'
  cf_by='$cf_by'
-@@ -6240,7 +6270,7 @@ cntrydist='$cntrydist'
+@@ -6240,7 +6273,7 @@
  comm='$comm'
  contains='$contains'
  contdist='$contdist'
@@ -212,7 +239,7 @@ $NetBSD: patch-ac,v 1.9 2014/06/29 19:03
  cpp='$cpp'
  cppflags='$cppflags'
  cpplast='$cpplast'
-@@ -6305,21 +6335,21 @@ d_xenix='$d_xenix'
+@@ -6305,21 +6338,21 @@
  d_xthread='$d_xthread'
  date='$date'
  defeditor='$defeditor'
@@ -239,7 +266,7 @@ $NetBSD: patch-ac,v 1.9 2014/06/29 19:03
  groupdesc='$groupdesc'
  hint='$hint'
  hostbits='$hostbits'
-@@ -6376,10 +6406,10 @@ mboxchar='$mboxchar'
+@@ -6376,10 +6409,10 @@
  mimecap='$mimecap'
  mips='$mips'
  mips_type='$mips_type'
@@ -252,7 +279,7 @@ $NetBSD: patch-ac,v 1.9 2014/06/29 19:03
  myactive='$myactive'
  myuname='$myuname'
  n='$n'
-@@ -6417,11 +6447,11 @@ prefixexp='$prefixexp'
+@@ -6417,11 +6450,11 @@
  prefshell='$prefshell'
  privlib='$privlib'
  privlibexp='$privlibexp'
@@ -266,7 +293,7 @@ $NetBSD: patch-ac,v 1.9 2014/06/29 19:03
  sendmail='$sendmail'
  servername='$servername'
  sharpbang='$sharpbang'
-@@ -6442,7 +6472,7 @@ strings='$strings'
+@@ -6442,7 +6475,7 @@
  strn='$strn'
  subscriptions='$subscriptions'
  sysman='$sysman'
@@ -275,7 +302,7 @@ $NetBSD: patch-ac,v 1.9 2014/06/29 19:03
  tee='$tee'
  termlib='$termlib'
  test='$test'
-@@ -6450,7 +6480,7 @@ threaddir='$threaddir'
+@@ -6450,7 +6483,7 @@
  tk='$tk'
  tkinc='$tkinc'
  tklibs='$tklibs'

Added files:

Index: pkgsrc/news/trn/patches/patch-term.h
diff -u /dev/null pkgsrc/news/trn/patches/patch-term.h:1.1
--- /dev/null   Sat Apr 11 17:19:22 2026
+++ pkgsrc/news/trn/patches/patch-term.h        Sat Apr 11 17:19:21 2026
@@ -0,0 +1,14 @@
+$NetBSD: patch-term.h,v 1.1 2026/04/11 21:19:21 christos Exp $
+
+--- term.h.orig        2010-09-02 02:12:26.000000000 -0400
++++ term.h     2026-04-11 17:02:03.362870720 -0400
+@@ -2,6 +2,9 @@
+  */
+ /* This software is copyrighted as detailed in the LICENSE file. */
+ 
++#include <termcap.h>
++#include <sys/ioctl.h>
++
+ 
+ EXT char ERASECH;             /* rubout character */
+ EXT char KILLCH;              /* line delete character */



Home | Main Index | Thread Index | Old Index