Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 23 May 2007 00:41:19 -0500
From:      "Scot Hetzel" <swhetzel@gmail.com>
To:        FreeBSD-gnats-submit@freebsd.org, freebsd-ports-bugs@freebsd.org
Subject:   Re: ports/112203: Mk/bsd.port.mk - Fix detection of 32bit libraries on FreeBSD/amd64, ia64
Message-ID:  <790a9fff0705222241u41d4cfdbvb2ee6872e7e9bda2@mail.gmail.com>
In-Reply-To: <200704280810.l3S8A61l008944@freefall.freebsd.org>
References:  <200704280759.l3S7x4dL014303@www.freebsd.org> <200704280810.l3S8A61l008944@freefall.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
------=_Part_122313_18068741.1179898879833
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

The current lib-depends target has two problems with detection of 32
bit libraries on 64 bit systems:

1. If a 32 bit library is installed, it fails to detect that the 32
bit library is installed.

2. If a 32 bit library is not installed, it installs the dependancy,
but fails to detect that the dependancy was installed.

The first patch fixed the first case, but failed to fix the second
case.  The attached patch fixes both cases.

Scot
-- 
DISCLAIMER:
No electrons were mamed while sending this message. Only slightly bruised.

------=_Part_122313_18068741.1179898879833
Content-Type: application/octet-stream; name=patch-bsd.port.mk-2
Content-Transfer-Encoding: base64
X-Attachment-Id: f_f21d9qss
Content-Disposition: attachment; filename="patch-bsd.port.mk-2"

SW5kZXg6IGJzZC5wb3J0Lm1rCj09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0KUkNTIGZpbGU6IC9ob21lL25jdnMvcG9ydHMv
TWsvYnNkLnBvcnQubWssdgpyZXRyaWV2aW5nIHJldmlzaW9uIDEuNTY3CmRpZmYgLXUgLXIxLjU2
NyBic2QucG9ydC5tawotLS0gYnNkLnBvcnQubWsJMjEgTWF5IDIwMDcgMTA6MjE6MzkgLTAwMDAJ
MS41NjcKKysrIGJzZC5wb3J0Lm1r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dndGIC1lICIke1BLR0NPTVBBVERJUn0iIHwgJHtHUkVQfSAtcXdFIC1lICItbCQkcGF0dGVy
biI7IHRoZW4gXAogCQkJCSR7RUNIT19NU0d9ICIgLSBmb3VuZCI7IFwKIAkJCQlpZiBbICR7X0RF
UEVORF9BTFdBWVN9ID0gMSBdOyB0aGVuIFwKIAkJCQkJJHtFQ0hPX01TR30gIiAgICAgICAoYnV0
IGJ1aWxkaW5nIGl0IGFueXdheSkiOyBcCkBAIC01MDA1LDcgKzUwMTYsNyBAQAogCQkJCSR7RUNI
T19NU0d9ICIgICAgID0+IE5vIGRpcmVjdG9yeSBmb3IgJCRsaWIuICBTa2lwcGluZy4uIjsgXAog
CQkJZWxzZSBcCiAJCQkJJHtfSU5TVEFMTF9ERVBFTkRTfSBcCi0JCQkJaWYgISAke0xEQ09ORklH
fSAtciB8ICR7R1JFUH0gLXZ3RiAtZSAiJHtQS0dDT01QQVRESVJ9IiB8ICR7R1JFUH0gLXF3RSAt
ZSAiLWwkJHBhdHRlcm4iOyB0aGVuIFwKKwkJCQlpZiAhICR7TERDT05GSUd9ICR7X0xEQ09ORklH
X0ZMQUdTfSAtciB8ICR7R1JFUH0gLXZ3RiAtZSAiJHtQS0dDT01QQVRESVJ9IiB8ICR7R1JFUH0g
LXF3RSAtZSAiLWwkJHBhdHRlcm4iOyB0aGVuIFwKIAkJCQkJJHtFQ0hPX01TR30gIkVycm9yOiBz
aGFyZWQgbGlicmFyeSBcIiQkbGliXCIgZG9lcyBub3QgZXhpc3QiOyBcCiAJCQkJCSR7RkFMU0V9
OyBcCiAJCQkJZmk7IFwK
------=_Part_122313_18068741.1179898879833--



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