pkgsrc-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: pkg/45767
The following reply was made to PR pkg/45767; it has been noted by GNATS.
From: "Brian A. Seklecki" <lavalamp%spiritual-machines.org@localhost>
To: gnats-bugs%gnats.netbsd.org@localhost
Cc:
Subject: Re: pkg/45767
Date: Thu, 5 Jan 2012 12:26:24 -0500 (EST)
Right then:
HP inservers a alphabetical characater and a period at the beginning of
the POSIX "current release level of the operating system" variable (-r)
====
root(pts/1)@ishpsa01[0][535]:/opt/pkgsrc/shells/bash(\.)$ uname -a
HP-UX ishpsa01 B.11.31 U ia64 1694232511 unlimited-user license
root(pts/1)@ishpsa01[0][536]:/opt/pkgsrc/shells/bash(\.)$ uname -r
B.11.31
root(pts/1)@ishpsa01[0][537]:/opt/pkgsrc/shells/bash(\.)$ uname -v
U
===
aix% uname -a
AIX SACR2 2 5 00CBEF7D4C00
aix%: uname -r
2
aix%: uname -v
5
===
freebsd% uname-r
7.3-STABLE
Likely this will break just about any regex/character matching
What's interesting is that the code is storing BI_OS_VERSION properly and
retrieving it without the char, so somewhere in pkg_create its doing the
right thing(?), or possibly accidentally truncating it.
warnx("%s/%s %s (pkg) vs. %s/%s %s (this host)",
pkg->buildinfo[BI_OPSYS],
pkg->buildinfo[BI_MACHINE_ARCH],
pkg->buildinfo[BI_OS_VERSION],
OPSYS_NAME,
effective_arch,
host_uname.release);
Home |
Main Index |
Thread Index |
Old Index