You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As of bug 1956, the uname binary provided by the operating system will report illumos for uname -o instead of the traditional Solaris. Unfortunately in a pkgsrc-based zone, at least under some conditions the GNU uname appears first in PATH. A naive script may run uname -o and see the Solaris value.
We should patch the pkgsrc copy of uname to report illumos as the system version does.
See example with current trunk packages:
$ /usr/bin/uname -o
illumos
$ /opt/local/bin/uname -o
Solaris
A long time ago I played with this and had the following:
diff --git a/sysutils/coreutils/Makefile b/sysutils/coreutils/Makefile
index 82c440e..cdf8ce7 100644
--- a/sysutils/coreutils/Makefile
+++ b/sysutils/coreutils/Makefile
@@ -43,6 +43,11 @@ SUBST_FILES.libname= Makefile.in
SUBST_SED.libname= -e '/^src_libstdbuf_so_LDFLAGS/s,$$, -install_name ${PREFIX}/libexec/coreutils/glibstdbuf.so,'
.endif
+.if ${OPSYS} == "SunOS"
+CONFIGURE_ENV+= gl_cv_host_operating_system=illumos
+.endif
+
+
PROGS= [ base64 basename cat chcon chgrp chmod chown chroot cksum comm \
cp csplit cut date dd df dir dircolors dirname du hostid echo env \
expand expr factor false fmt fold groups head id install join kill \
But that is lazy way to fix it as it would be wrong when using pkgsrc on Oracle Solaris.
Propably should just try to shell out to /usr/bin/uname -o now?
Activity
wiedi commentedon May 2, 2019
A long time ago I played with this and had the following:
But that is lazy way to fix it as it would be wrong when using pkgsrc on Oracle Solaris.
Propably should just try to shell out to
/usr/bin/uname -onow?jperkin commentedon May 2, 2019
Older Solaris releases don't support
-oso we'd need to handle that, but yeh that seems the simplest way to do it.jperkin commentedon May 2, 2019
Note that I will need to override this for our builds anyway as they are performed on a platform prior to 1956.
coreutils: Report uname -o as "illumos" where appropriate.
jperkin commentedon May 2, 2019
Fixed in trunk.
coreutils: Report uname -o as "illumos" where appropriate.
expat: update to 2.2.7.
gallery-dl: Update to 1.9.0
weechat: update to 2.6
(chat/matterircd) Updated 0.18.4 to 0.19.4
www/ruby-faraday_middleware: update to 1.0.0
py-sphinx-autoapi: update to 1.4.0.
go-ffuf: Update to 1.1.0
112 remaining items
p5-Template-Toolkit: update to 3.106.
(devel/R-lifecycle) Updated 1.0.4 to 1.0.5
adwaita-icon-theme: update to 50.0.
p5-YAML-Syck: update to 1.47.
news/bulletty: update to 0.3.0
news/bulletty: update to 0.3.0
net/xfr: update to 0.10.1
Update to 20260402.0
p5-Perl-Tidy: update to 20260826.
coreutils: Report uname -o as "illumos" where appropriate.
Update to 20260402.0
p5-Perl-Tidy: update to 20260826.
misc/rozi: update to 0.0.33
security/ruby-net-sftp: update to 4.1.1
devel/gitpane: update to 0.18.11