Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 3 Mar 2000 10:53:39 -0500 (EST)
From:      root@i.virtual-estates.com
To:        FreeBSD-gnats-submit@freebsd.org
Cc:        dburr@freebsd.org
Subject:   ports/17150: textproc/yodl port fixed/improved
Message-ID:  <200003031553.KAA11250@i.virtual-estates.com>

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

>Number:         17150
>Category:       ports
>Synopsis:       textproc/yodl port fixed/improved
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Mar  3 08:00:01 PST 2000
>Closed-Date:
>Last-Modified:
>Originator:     Mikhail Teterin
>Release:        FreeBSD 3.4-STABLE i386
>Organization:
Virtual Estates, Inc.
>Environment:

>Description:

	The port was ignoring the  local setting for CC using cc
	and (!) gcc.  Once I started to change  it, removing the
	dependency on gmake was also fairly simple (the new file
	patches/patch-ab). And I  think I found a way  to get by
	without  the ``weird  contortion''  :-)  of the  current
	version's do-install.

	I notice,  that the dependency on  bash was artificially
	put in --  are we certain our /bin/sh does  not meet the
	POSIX requirements meeting which yodl scripts rely upon?

>How-To-Repeat:

>Fix:
+++ Makefile	Fri Mar  3 10:31:26 2000
@@ -21,4 +21,2 @@
 
-USE_GMAKE=	YES
-
 MAN1=		yodl.1 \
@@ -30,16 +28,7 @@
 
-do-build:
-	(cd ${WRKSRC} && ${SETENV} CFLAGS="${CFLAGS}" ${GMAKE} PREFIX=${PREFIX} progs)
-	(cd ${WRKSRC}/misc && gcc ${CFLAGS} -s -o striproff striproff.c)
+ALL_TARGET=	progs manpages misc/striproff
+INSTALL_TARGET=	installman installmanual
 
-# this weird contortion is because the YODL makefile is broken
-# trust me, it works.
-do-install:
-	@${ECHO_MSG} "*** NOTE: any errors from make can be safely ignored."
-	(cd ${WRKSRC} && ${GMAKE} PREFIX=${PREFIX} install)
-	-(cd ${WRKSRC} && ${GMAKE} PREFIX=${PREFIX} manpages)
-	(cd ${WRKSRC}/manpages && ${GMAKE} PREFIX=${PREFIX} manpages)
-	(cd ${WRKSRC}/manpages && ${GMAKE} PREFIX=${PREFIX} MANPREFIX=${PREFIX}/man installman)
-	(cd ${WRKSRC} && ${GMAKE} PREFIX=${PREFIX} installmanual)
-	(cd ${WRKSRC}/misc && ${INSTALL_PROGRAM} striproff ${PREFIX}/bin/striproff)
+post-install:
+	${INSTALL_PROGRAM} ${WRKSRC}/misc/striproff ${PREFIX}/bin/
--- patch-aa	Sun Jan 10 05:05:03 1999
+++ patches/patch-aa	Fri Mar  3 09:31:11 2000
@@ -37,3 +37,4 @@
  # The C compiler?
- CC = cc
+-CC = cc
++#CC = cc
+++ patches/patch-ab	Fri Mar  3 10:03:40 2000
@@ -0,0 +1,48 @@
+--- manpages/Makefile.in.orig	Fri Jan 24 05:42:52 1997
++++ manpages/Makefile.in	Fri Mar  3 10:01:20 2000
+@@ -7,4 +7,2 @@
+ 
+-SHELL=__BASH__
+-
+ man1=$(MANPREFIX)/man1
+@@ -24,6 +22,6 @@
+ yodl.man: yodl.yo ../Makefile
+-	yodl2man $<
++	yodl2man yodl.yo
+ 
+ $(man1)/yodl.1: yodl.man
+-	cp $< $@
++	cp yodl.man $@
+         
+@@ -34,6 +32,6 @@
+ yodlconverters.man: yodlconverters.yo ../Makefile
+-	yodl2man $<
++	yodl2man yodlconverters.yo
+ 
+ $(man1)/yodlconverters.1: yodlconverters.man
+-	cp $< $@
++	cp yodlconverters.man $@
+         
+@@ -48,3 +46,3 @@
+ $(man7)/yodlmacros.7: yodlmacros.man
+-	cp $< $@
++	cp yodlmacros.man $@
+         
+@@ -55,6 +53,6 @@
+ yodlmanpage.man: yodlmanpage.yo ../Makefile
+-	yodl2man $<
++	yodl2man yodlmanpage.yo
+ 
+ $(man7)/yodlmanpage.7: yodlmanpage.man
+-	cp $< $@
++	cp yodlmanpage.man $@
+ 
+@@ -65,6 +63,6 @@
+ striproff.man: striproff.yo ../Makefile
+-	yodl2man $<
++	yodl2man striproff.yo
+ 
+ $(man1)/striproff.1: striproff.man
+-	cp $< $@
++	cp striproff.man $@
+ 

>Release-Note:
>Audit-Trail:
>Unformatted:


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




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