Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 21 Feb 2002 13:46:29 -0300
From:      Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>
To:        portmgr@FreeBSD.org
Cc:        tkato@prontomail.com, Pete Fritchman <petef@databits.net>, Patrick Li <pat@databits.net>, Anton Berezin <tobez@tobez.org>, FreeBSD-ports@FreeBSD.org
Subject:   ghostscript-afpt and MASTER_SITES_NN patch
Message-ID:  <20020221164651.11207.qmail@exxodus.fedaykin.here>

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

--4bRzO86E/ozDv8r1
Content-Type: multipart/mixed; boundary="C7zPtVaVf+AK4Oqc"
Content-Disposition: inline


--C7zPtVaVf+AK4Oqc
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Hi,

	I was trying to "fix" ghostscript-afpl misbehavior of trying
several MASTER_SITES that do not contain a certain DISTFILE. Now, each
distfile is only downloaded from their appropriate master sites. 8-)
	However, I did hit a design issue of the MASTER_SITES_NN
patch. I am getting error ENAMETOOLONG.
	Unfortunaly, to save time (thus gaining speed), I replaced
algorithmic loops with temporary variables. This was fine at
design time but ghostscript-afpl is showing that this might have
been a misconcept. There are 2 ways of "fixing" this:

	1) Fix the algorithm misbehavior of recursively
adding already added elements to the same VARIABLE (this can be
seen in the next email I will be sending); This will make any
variable content length significantly (several times) shorter
stopping this issue;
	2) Change variable to for loops. There are caveats: added
complexity and speed issues.

	Follows attached, the patch I wrote for ghostscript-afpl.
I did not write any for ghostscript-gnu since I am hoping to fix
this issue before moving.

--=20
Mario S F Ferreira - DF - Brazil - "I guess this is a signature."
Computer Science Undergraduate | FreeBSD Committer | CS Developer
flames to beloved devnull@someotherworldbeloworabove.org
feature, n: a documented bug | bug, n: an undocumented feature

--C7zPtVaVf+AK4Oqc
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename=patch-ghostscript-afpl::Makefile
Content-Transfer-Encoding: quoted-printable

--- Makefile.orig	Thu Feb 21 13:11:18 2002
+++ Makefile	Thu Feb 21 13:33:48 2002
@@ -9,18 +9,21 @@
 PORTVERSION=3D	7.03
 PORTREVISION=3D	4
 CATEGORIES=3D	print
-MASTER_SITES=3D	${MASTER_SITE_SOURCEFORGE} \
-		http://members.ozemail.com.au/~geoffk/pdfencrypt/ \
-		http://www.gelhaus.net/hp880c/1.4beta/ \
-		http://home.t-online.de/home/Martin.Lottermoser/pcl3dist/ \
-		http://www.harsch.net/Download/ \
-		ftp://mirror.cs.wisc.edu/pub/mirrors/ghost/AFPL/gs703/ \
-		ftp://mirror.cs.wisc.edu/pub/mirrors/ghost/AFPL/fonts/
-MASTER_SITE_SUBDIR=3D	${PORTNAME} gimp-print hpinkjet
+MASTER_SITES=3D	${MASTER_SITE_SOURCEFORGE:S/$/:DEFAULT,GIMP-PRINT,HPINKJET=
/} \
+		http://members.ozemail.com.au/~geoffk/pdfencrypt/:DECRYPT_PDF \
+		http://www.gelhaus.net/hp880c/1.4beta/:HP8XX_DRV \
+		http://home.t-online.de/home/Martin.Lottermoser/pcl3dist/:HPDJ \
+		http://www.harsch.net/Download/:HP970_DRV \
+		ftp://mirror.cs.wisc.edu/pub/mirrors/ghost/AFPL/gs703/:DEFAULT \
+		ftp://mirror.cs.wisc.edu/pub/mirrors/ghost/AFPL/fonts/:AFPL_FONTS
+MASTER_SITE_SUBDIR=3D	${PORTNAME} gimp-print/:GIMP-PRINT hpinkjet/:HPINKJET
 PKGNAMESUFFIX=3D	-afpl
-DISTFILES=3D	${GS_SOURCES} ${GS_FONTS_STD} ${GS_FONTS_OTHER} \
-		${DECRYPT_PDF} ${HP8XX_DRV} ${HPDJ_SRC} ${PCL3_SRC} \
-		${HP970_DRV} ${GPRINT_SRC} ${HPIJS_SRC}
+DISTFILES=3D      ${GS_SOURCES} ${GS_FONTS_STD}:DEFAULT,AFPL_FONTS \
+		${GS_FONTS_OTHER}:DEFAULT,AFPL_FONTS \
+		${DECRYPT_PDF}:DECRYPT_PDF ${HP8XX_DRV}:HP8XX_DRV \
+		${HPDJ_SRC}:HPDJ ${PCL3_SRC}:HPDJ \
+		${HP970_DRV}:HP970_DRV ${GPRINT_SRC}:GIMP-PRINT \
+		${HPIJS_SRC}:HPINKJET
 DIST_SUBDIR=3D	ghostscript
 EXTRACT_ONLY=3D	${GS_SOURCES}
=20

--C7zPtVaVf+AK4Oqc--

--4bRzO86E/ozDv8r1
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (FreeBSD)
Comment: For info see http://www.gnupg.org

iD8DBQE8dSR6XvSymrg2XlURApgHAJ0TE04vD9zvNEHjwAN9G11fHKAFfACZARkT
/wEY4tQ6ivqeLrRw0TtcHlI=
=bYR7
-----END PGP SIGNATURE-----

--4bRzO86E/ozDv8r1--

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?20020221164651.11207.qmail>