4.3.16 make depends on gnu find/xargs
list John Thurston
There are several features of 4.3.16 I wanted (I'm currently running 4.3.12) but have been tripped up during the 'make install' process. ./build/Makefile.rules is using 'find -0' and 'xargs -0'. Neither option is familiar to me, but some reading of man pages indicates that these are options available on gnufind and gnuxargs (which I don't have on my Solaris systems). From http://www.gnu.org/software/findutils/manual/html_mono/find.html
using the find action ‘-print0’ and the xargs option ‘-0’ to avoid misinterpreting files whose names contain spaces
It appears twice:
# find . -print |xargs grep "\-print0" ./build/Makefile.rules: find $(INSTALLROOT)$(INSTALLWWWDIR) -type f -print0 | xargs -0 chmod 644 ./build/Makefile.rules: find $(INSTALLROOT)$(MANROOT) -type f -print0 | xargs -0 chmod 644
Comparing with the Makefile.rules from 4.3.12 shows these lines are new. It looks to me like their purpose is to chmod everything in ~/server/www (the default location for the www files).
I've looked in ~/server/www and can't find any files with spaces, so I'm going to modify these lines in MAkefile.rules (remove the -print0 and -0) and see how it goes.
Are we expecting there to be files containing spaces in ~/server/www, or is -print0/-0 just considered best practice and the safe way to do this?
<offtopic>
Yes, I understand that everyone else in the world has all of the gnu tools installed by default and that my Solaris systems are stone-age relics. Sorry.
IMHO, files don't have spaces in their names, and servers don't have frame buffers. I break the knuckles of anyone I find putting spaces in file names on servers.
</offtopic>
--
Do things because you should, not just because you can.
John Thurston XXX-XXX-XXXX
user-ce4d79d99bab@xymon.invalid
Enterprise Technology Services
Department of Administration
State of Alaska
list Henrik Størner
▸
Den 13-02-2014 21:20, John Thurston skrev:
There are several features of 4.3.16 I wanted (I'm currently running 4.3.12) but have been tripped up during the 'make install' process. ./build/Makefile.rules is using 'find -0' and 'xargs -0'. Neither option is familiar to me, but some reading of man pages indicates that these are options available on gnufind and gnuxargs (which I don't have on my Solaris systems).
You'll be happy to learn that this has been corrected for the next release, replaced with good ol' find -exec. (Which has to be one of the more bizarre examples of a Unix tool syntax).
▸
Are we expecting there to be files containing spaces in ~/server/www, or is -print0/-0 just considered best practice and the safe way to do this? <offtopic> IMHO, files don't have spaces in their names, and servers don't have frame buffers. I break the knuckles of anyone I find putting spaces in file names on servers. </offtopic>
I agree, but the fact is that people do put spaces into filenames. We've been going downhill ever since 'they' invented "C:\Program Files" :-( Regards, Henrik
list Bill Arlofski
▸
On 02/13/14 16:11, Henrik Størner wrote:
<offtopic> IMHO, files don't have spaces in their names, and servers don't have frame buffers. I break the knuckles of anyone I find putting spaces in file names on servers. </offtopic>I agree, but the fact is that people do put spaces into filenames. We've been going downhill ever since 'they' invented "C:\Program Files" :-(
You had me at C: :) -- Bill Arlofski Reverse Polarity, LLC http://www.revpol.com/ -- Not responsible for anything below this line --
list Mark Felder
▸
On Thu, Feb 13, 2014, at 14:20, John Thurston wrote:
There are several features of 4.3.16 I wanted (I'm currently running 4.3.12) but have been tripped up during the 'make install' process. ./build/Makefile.rules is using 'find -0' and 'xargs -0'. Neither option is familiar to me, but some reading of man pages indicates that these are options available on gnufind and gnuxargs (which I don't have on my Solaris systems).
BSD definitely has -0, so sadly this must be a legacy thing that Solaris is holding on to :-(
list Betsy Schwartz
I'm not doing much Solaris any more, but it makes life a lot easier if you install all the gnu packages (gcc, binutils, coreutils, etc) and make sure that your systems all hit them first. You can also find them in /opt/sfw but that's usually a much older version. Open source SW is overwhelmingly developed under linux these days, so unless you've got a strong reason for keeping the Sun/Oracle stuff first (like, running a lot of in-house code that requires Sun/Oracle compilers, or systems that are super locked down), going GNU-ish will just make your life much saner.
list Paul Root
With the demise of sunfreeware, where does one get packages now. I got two new Sun T5-2 machines and I need to recompile Amanda on them to get zfs support. But the never ending dependency chain stops me. I don't have time for that anymore. Life is so much easier on Linux. Paul.
▸
From: Xymon [mailto:xymon-bounces at xymon.com] On Behalf Of Betsy Schwartz
Sent: Saturday, February 15, 2014 2:18 PM
To: xymon at xymon.com
Subject: Re: [Xymon] 4.3.16 make depends on gnu find/xargs
I'm not doing much Solaris any more, but it makes life a lot easier if you install all the gnu packages (gcc, binutils, coreutils, etc) and make sure that your systems all hit them first. You can also find them in /opt/sfw but that's usually a much older version.
Open source SW is overwhelmingly developed under linux these days, so unless you've got a strong reason for keeping the Sun/Oracle stuff first (like, running a lot of in-house code that requires Sun/Oracle compilers, or systems that are super locked down), going GNU-ish will just make your life much saner.
list Henrik Størner
Den 15-02-2014 21:40, Root, Paul T skrev:
With the demise of sunfreeware, where does one get packages now.
I only do Solaris when trying to build Xymon, but it seems that www.opencsw.org is the place to find OSS software for Solaris. Regards, Henrik