ports/152955: [maintainer] fix science/vmd for amd64
Benjamin Kaduk
kaduk-fbsd at MIT.EDU
Thu Dec 9 04:50:01 UTC 2010
>Number: 152955
>Category: ports
>Synopsis: [maintainer] fix science/vmd for amd64
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: maintainer-update
>Submitter-Id: current-users
>Arrival-Date: Thu Dec 09 04:50:00 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator: Benjamin Kaduk
>Release: FreeBSD 9.0-CURRENT amd64
>Organization:
MIT Student Information Processing Board
>Environment:
System: FreeBSD hysteresis.mit.edu 9.0-CURRENT FreeBSD 9.0-CURRENT #25: Mon May 17 20:37:32 EDT 2010 kaduk at hysteresis.mit.edu:/usr/obj/usr/src/sys/GENERIC amd64
>Description:
On non-i386 architectures (i.e. amd64), running the 'vmd' shell
script produces and error that the "ARCH" value is not set.
It turns out that in a long list of OS cases, the script explicitly
checks if `uname -m` is "i386" and naught else. This cascades
later in the script.
>How-To-Repeat:
Run vmd on an amd64 system
>Fix:
Patch the shell script to check all the appropriate cases, and
add ONLY_FOR_ARCHS to the Makefile as only amd64 and i386
have support in the code I've seen.
---559023410-1989873833-1291870128=:640
Content-Type: TEXT/PLAIN; charset=US-ASCII; name=Makefile.diff
Content-Transfer-Encoding: BASE64
Content-ID: <alpine.GSO.1.10.1012082348480.640 at multics.mit.edu>
Content-Description:
Content-Disposition: attachment; filename=Makefile.diff
LS0tIE1ha2VmaWxlLm9yaWcJMjAxMC0xMi0wOCAyMToyNjo1OS4wMDAwMDAw
MDAgLTA1MDANCisrKyBNYWtlZmlsZQkyMDEwLTEyLTA4IDIxOjI3OjAyLjM5
MTI1NTAwMCAtMDUwMA0KQEAgLTMxLDYgKzMxLDggQEANCiBVU0VfR0w9CQkJ
Z2x1DQogVVNFX1BZVEhPTj0JCXllcw0KIA0KK09OTFlfRk9SX0FSQ0hTPQkJ
aTM4NiBhbWQ2NA0KKw0KIFJFU1RSSUNURUQ9CQlMaWNlbnNlIGhhcyByZXN0
cmljdGlvbnMNCiANCiBWTURfRElTVD0JCSR7UE9SVE5BTUV9LSR7UE9SVFZF
UlNJT059LnNyYy50YXIuZ3oNCg==
---559023410-1989873833-1291870128=:640
Content-Type: TEXT/PLAIN; charset=US-ASCII; name=patch-bin_vmd.csh
Content-Transfer-Encoding: BASE64
Content-ID: <alpine.GSO.1.10.1012082348481.640 at multics.mit.edu>
Content-Description:
Content-Disposition: attachment; filename=patch-bin_vmd.csh
LS0tIGJpbi92bWQuY3NoLm9yaWcJMjAxMC0xMi0wOCAyMDo1NToxNy4wMDAw
MDAwMDAgLTA1MDANCisrKyBiaW4vdm1kLmNzaAkyMDEwLTEyLTA4IDIxOjEw
OjIxLjAwMDAwMDAwMCAtMDUwMA0KQEAgLTIxOCw2ICsyMTgsMTEgQEANCiAg
ICMgVGhlIHN0YW5kYXJkIG9wdGlvbnMNCiAgIGlmIChgdW5hbWUgLW1gID09
ICJpMzg2IikgdGhlbg0KICAgICBzZXQgQVJDSD1GUkVFQlNEDQorICBlbHNl
IGlmIChgdW5hbWUgLW1gID09ICJhbWQ2NCIpIHRoZW4NCisgICAgc2V0IEFS
Q0g9RlJFRUJTREFNRDY0DQorICBlbHNlDQorICAgIGVjaG8gIkVycm9yOiB1
bnN1cHBvcnRlZCBGcmVlQlNEIHZlcnNpb24gJE1BQ0hWRVIiDQorICAgIGV4
aXQgMQ0KICAgZW5kaWYNCiAgIHNldCBWTURfV0lOVEVSTT14dGVybQ0KICAg
c2V0IFZNRF9XSU5PUFRTPSctc2IgLXNsIDEwMDAgLWUnDQo=
---559023410-1989873833-1291870128=:640
Content-Type: TEXT/PLAIN; charset=US-ASCII; name=patch-bin_vmd.sh
Content-Transfer-Encoding: BASE64
Content-ID: <alpine.GSO.1.10.1012082348482.640 at multics.mit.edu>
Content-Description:
Content-Disposition: attachment; filename=patch-bin_vmd.sh
LS0tIGJpbi92bWQuc2gub3JpZwkyMDEwLTEyLTA4IDIxOjA3OjE2LjAwMDAw
MDAwMCAtMDUwMA0KKysrIGJpbi92bWQuc2gJMjAxMC0xMi0wOCAyMToxNTo0
Ni4wMDAwMDAwMDAgLTA1MDANCkBAIC0yNTYsNiArMjU2LDEyIEBADQogICAg
IGlmIFsgYHVuYW1lIC1tYCA9ICJpMzg2IiBdDQogICAgIHRoZW4NCiAgICAg
ICBBUkNIPUZSRUVCU0QNCisgICAgZWxpZiBbIGB1bmFtZSAtbWAgPSAiYW1k
NjQiIF0NCisgICAgdGhlbg0KKyAgICAgIEFSQ0g9RlJFRUJTREFNRDY0DQor
ICAgIGVsc2UNCisgICAgICBlY2hvICJFcnJvcjogdW5zdXBwb3J0ZWQgRnJl
ZUJTRCB2ZXJzaW9uICRNQUNIVkVSIg0KKyAgICAgIGV4aXQgMQ0KICAgICBm
aQ0KICAgICBWTURfV0lOVEVSTT14dGVybQ0KICAgICBWTURfV0lOT1BUUz0n
LXNiIC1zbCAxMDAwIC1lJw0K
---559023410-1989873833-1291870128=:640--
>Release-Note:
>Audit-Trail:
>Unformatted:
This message is in MIME format. The first part should be readable text,
while the remaining parts are likely unreadable without MIME-aware tools.
---559023410-1989873833-1291870128=:640
Content-Type: TEXT/PLAIN; format=flowed; charset=US-ASCII
More information about the freebsd-ports-bugs
mailing list