Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 10 Mar 1997 19:02:44 -0800 (PST)
From:      eivind@freebsd.org
To:        freebsd-gnats-submit@freebsd.org
Subject:   ports/2936: The teTeX port runs strup on /usr/local/bin
Message-ID:  <199703110302.TAA20949@freefall.freebsd.org>
Resent-Message-ID: <199703110310.TAA21285@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         2936
>Category:       ports
>Synopsis:       The teTeX port runs strup on /usr/local/bin
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports
>State:          open
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Mar 10 19:10:02 PST 1997
>Last-Modified:
>Originator:     Eivind Eklund
>Organization:
DiMaga Studios
>Release:        -stable with -current ports collection
>Environment:
FreeBSD sol.dimaga.com 2.1.7-RELEASE FreeBSD 2.1.7-RELEASE #0: Tue Feb 18 17:01:34 MET 1997     eivind@sol.dimaga.com:/usr/src/sys/compile/SOL  i386

>Description:
teTeX run strip on /usr/local/bin/* instead of using install -s.
This do (among other things) give anybody that have non-stripped suid
binaries in /usr/local/bin a very good scare.

>How-To-Repeat:
Install teTeX with non-stripped binaries in /usr/local/bin
>Fix:
Apply this patch to ports/print/patches/patch-aa  (This is NOT a
replacement patch - it is a patch to the patch.)

--- ../../patches/patch-aa      Mon Feb 17 22:37:30 1997
+++ /tmp/mkdiff Tue Mar 11 03:35:52 1997
@@ -1,5 +1,5 @@
 --- Makefile.orig      Sun Jan 19 22:49:55 1997
-+++ Makefile   Tue Jan 28 09:32:32 1997
++++ Makefile   Tue Mar 11 03:35:43 1997
 @@ -8,10 +8,10 @@
  #=========================================================================
  VERSION = 0.4
@@ -13,6 +13,15 @@
  
  # For "real" 64bit OS, e.g. Digital Unix 4.0. Irix6?, use:
  # CFLAGS += -DPOINTER_IS_NOT_INT
+@@ -21,7 +21,7 @@
+ 
+ # -s makes problems on some platforms. We run strip after "make install",
+ # so we really do not need -s here.
+-LDFLAGS       =
++LDFLAGS       = -s
+ 
+ # The shared libXmu from OpenWindows is buggy on some SunOS 4.1.3 systems.
+ # If you run into this problem (when linking xdvi), set BROKEN_SUNOS_LIBXMU
 @@ -70,24 +70,24 @@
  # set USE_DIALOG=false if compiling dialog causes trouble on your system
  # texconfig will still run in command-mode
@@ -42,20 +51,30 @@
  
  # change the true/false definition of FOIL, if you get an error with wchar_t
  FOIL          = false
-@@ -111,9 +111,9 @@
+@@ -110,10 +110,10 @@
+ SHELL         = /bin/sh
  platform      = $(shell ./config.guess | sed 's/-.*-/-/')
  CWD           := $(shell pwd)
- INSTALL               = $(CWD)/$(KPSEDIR)/bin/install -c
+-INSTALL               = $(CWD)/$(KPSEDIR)/bin/install -c
 -override prefix       = $(TETEXDIR)
 -override bindir       = $(prefix)/bin/$(platform)
 -override TEXMF        = $(TETEXDIR)/texmf
++INSTALL               = install -s -c
 +override prefix       = $(PREFIX)
 +override bindir       = $(PREFIX)/bin
 +override TEXMF        = $(PREFIX)/share/texmf
  override PATH := $(bindir):$(CWD)/bin-extra:$(CWD)/$(KPSEDIR)/bin:$(PATH)
  
  CONFDIRS   = $(KPSEDIR) $(TEXIDIR)
-@@ -259,16 +259,7 @@
+@@ -205,7 +205,6 @@
+       for i in $(SUBDIRS); do \
+         (set -x; cd $$i; $(MAKE) $(PASSENV) $@ || exit 1); \
+       done
+-      @strip $(bindir)/* >/dev/null 2>&1 || true
+ 
+ rmcache:
+       rm -f config.cache
+@@ -259,16 +258,7 @@

>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199703110302.TAA20949>