summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsanpei <sanpei@FreeBSD.org>2000-10-26 12:33:44 +0000
committersanpei <sanpei@FreeBSD.org>2000-10-26 12:33:44 +0000
commitc78cc5a43edf5fbc5af564a6133ff0ea06f62cb5 (patch)
tree9f67fc41209a31c62c1fcae6ad12a5ae2e45fe84
parentb3c1545dbb40c36292bca3948a4c2752c32d3f5c (diff)
downloadFreeBSD-ports-c78cc5a43edf5fbc5af564a6133ff0ea06f62cb5.zip
FreeBSD-ports-c78cc5a43edf5fbc5af564a6133ff0ea06f62cb5.tar.gz
japanese/jtex209-both and jtex209-ntt was broken only on package
build environment. Because option of ``-traditional'' was added by jtex-1.52/configure, and failed in build phase. I found that ``configure'' was broken if we make this ports with crontab. In jtex-1.52/configure, next C program was compiled and executed. With terminal (normal) environment, ioctl was successful. But with crontab, ioctl was failed. ---- #include <sys/types.h> #include <sgtty.h> main() { struct sgttyb t; exit(ioctl(0, TIOCGETP, &t) == 0); } ---- I referred configure file which was generated by autoconf ver.2.13 and update jtex-1.52/configure file for ``-traditional'' and unbreak this port.
-rw-r--r--japanese/jtex209-both/files/patch-ah84
1 files changed, 84 insertions, 0 deletions
diff --git a/japanese/jtex209-both/files/patch-ah b/japanese/jtex209-both/files/patch-ah
new file mode 100644
index 0000000..6b51d28
--- /dev/null
+++ b/japanese/jtex209-both/files/patch-ah
@@ -0,0 +1,84 @@
+--- jtex-1.52/configure.orig Mon Sep 13 17:05:45 1993
++++ jtex-1.52/configure Wed Oct 25 11:11:21 2000
+@@ -188,52 +188,44 @@
+ fi
+
+ if test -n "$GCC"; then
+- echo checking whether -traditional is needed
+- prog=
+-cat <<EOF > conftest.c
+-#include <termio.h>
+-EOF
+-err=`eval "$CPP conftest.c 2>&1 >/dev/null"`
+-if test -z "$err"; then
+- prog='#include <sys/types.h>
+-#include <termio.h>
+-main() {
+- struct termio t;
+- exit(ioctl(0, TCGETA, &t) == 0);
+-}'
+-else
+- :
+-fi
+-rm -f conftest*
+-if test -z "$prog"; then
+-cat <<EOF > conftest.c
++ echo -n "checking whether -traditional is needed...."
++ ac_pattern="Autoconf.*'x'"
++ cat > conftest.c <<EOF
++#line 858 "configure"
++#include "confdefs.h"
+ #include <sgtty.h>
++Autoconf TIOCGETP
+ EOF
+-err=`eval "$CPP conftest.c 2>&1 >/dev/null"`
+-if test -z "$err"; then
+- prog='#include <sys/types.h>
+-#include <sgtty.h>
+-main() {
+- struct sgttyb t;
+- exit(ioctl(0, TIOCGETP, &t) == 0);
+-}'
++if (eval "$CPP conftest.c") 2>&1 |
++ egrep "$ac_pattern" >/dev/null 2>&1; then
++ rm -rf conftest*
++ ac_cv_prog_gcc_traditional=yes
+ else
+- :
++ rm -rf conftest*
++ ac_cv_prog_gcc_traditional=no
+ fi
+ rm -f conftest*
+-fi
+-if test -n "$prog"; then
+- cat <<EOF > conftest.c
+-$prog
++
++ if test $ac_cv_prog_gcc_traditional = no; then
++ cat > conftest.c <<EOF
++#line 876 "configure"
++#include "confdefs.h"
++#include <termio.h>
++Autoconf TCGETA
+ EOF
+-eval $compile
+-if test -s conftest && (./conftest) 2>/dev/null; then
+- CC="$CC -traditional"
+-else
+- :
++if (eval "$CPP conftest.c") 2>&1 |
++ egrep "$ac_pattern" >/dev/null 2>&1; then
++ rm -rf conftest*
++ ac_cv_prog_gcc_traditional=yes
+ fi
+ rm -f conftest*
++
++ fi
+ fi
++
++echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&2
++if test $ac_cv_prog_gcc_traditional = yes; then
++ CC="$CC -traditional"
+ fi
+
+ echo checking for install
OpenPOWER on IntegriCloud