Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 27 Oct 2002 01:18:45 -0500 (EST)
From:      Alan Eldridge <alane@FreeBSD.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        chuckr@FreeBSD.org
Subject:   ports/44516: textproc/sp: dies because it doesn't build libsp.a before
Message-ID:  <200210270618.g9R6IjcJ088292@wwweasel.geeksrus.net>

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

>Number:         44516
>Category:       ports
>Synopsis:       textproc/sp: dies because it doesn't build libsp.a before
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Oct 26 23:20:01 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Alan Eldridge
>Release:        FreeBSD 4.7-STABLE i386
>Organization:
Geeksrus.NET
>Environment:
System: FreeBSD wwweasel.geeksrus.net 4.7-STABLE FreeBSD 4.7-STABLE #2: Sat Oct 26 12:33:12 EDT 2002 root@wwweasel.geeksrus.net:/usr/obj/usr/src/sys/MY_SHITS_FUCKED_UP i386

>Description:

1. The post-patch target in Makefile is redundant. The /opt/local paths
get changed by the patches.

2. When rebuilding, it just says that 'lib is up to date' and then dies when
it can't find the static library.

>How-To-Repeat:

>Fix:

Removing the post-patch taret takes care of the 1st quirk.

Marking FORCE and lib as .PHONY makes sure the libraries get built before
they are needed.

This may also fix things on -CURRRENT; I don't know what's wrong there.

==8<====8<====8<====8<====8<====8<====8<====8<====8<====8<==
Index: Makefile
===================================================================
RCS file: /home/ncvs/ports/textproc/sp/Makefile,v
retrieving revision 1.21
diff -u -3 -r1.21 Makefile
--- Makefile	26 Oct 2002 02:55:52 -0000	1.21
+++ Makefile	27 Oct 2002 05:59:56 -0000
@@ -21,12 +21,6 @@
 BROKEN=		"Does not compile on 5.0"
 .endif
 
-post-patch:
-	$(CP) $(WRKSRC)/Makefile $(WRKSRC)/Makefile.sed
-	$(CP) $(WRKSRC)/Makefile.lib $(WRKSRC)/Makefile.lib.sed
-	$(SED) -e "s%/opt/local%$(PREFIX)%" <$(WRKSRC)/Makefile.sed >$(WRKSRC)/Makefile
-	$(SED) -e "s%/opt/local%$(PREFIX)%" <$(WRKSRC)/Makefile.lib.sed >$(WRKSRC)/Makefile.lib
-
 post-install:
 	$(MKDIR) $(PREFIX)/include/sp
 	$(MKDIR) $(PREFIX)/share/doc/sp
Index: files/patch-ab
===================================================================
RCS file: /home/ncvs/ports/textproc/sp/files/patch-ab,v
retrieving revision 1.4
diff -u -3 -r1.4 patch-ab
--- files/patch-ab	30 Apr 2001 01:57:59 -0000	1.4
+++ files/patch-ab	27 Oct 2002 06:05:10 -0000
@@ -1,5 +1,5 @@
---- Makefile.orig	Sat Oct 10 04:15:02 1998
-+++ Makefile	Mon Apr 30 01:06:08 2001
+--- Makefile.orig	Sat Oct 10 00:15:02 1998
++++ Makefile	Sun Oct 27 01:05:00 2002
 @@ -1,11 +1,12 @@
  # Copyright (c) 1994, 1995 James Clark
  # See the file COPYING for copying permission.
@@ -60,3 +60,9 @@
  # Uncomment this for SunOS 4.1.3 or FreeBSD
  # (and probably other BSD flavor systems as well)
  #RANLIB=ranlib
+@@ -145,3 +146,5 @@
+ 	rm -fr sp-$$version
+ 
+ FORCE:
++
++.PHONY: FORCE lib
==8<====8<====8<====8<====8<====8<====8<====8<====8<====8<==



>Release-Note:
>Audit-Trail:
>Unformatted:
 linking against it.

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?200210270618.g9R6IjcJ088292>