Commit graph

30 commits

Author SHA1 Message Date
snow flurry cbcffb4717 CMakeLists.txt: set std=gnu++98
Required to fix a few errors where some enum->int->wchar_t* casting
happens.
2023-02-27 22:45:15 -08:00
snow flurry b4596781ea mksh/misc.h: hack for bsd_signal()
For some reason, I wasn't able to get bsd_signal to be exposed by
signal.h, despite using _XOPEN_SOURCE=600 and _GNU_SOURCE/-std=gnu++98.

This hack is close enough. From the man page for bsd_signal(3):

   On modern Linux systems, bsd_signal() and signal(2) are equivalent.
   But on older systems, signal(2) provided unreliable signal semantics;
   see signal(2) for details.
2023-02-27 22:41:28 -08:00
Georg Sauthoff 6312f8bfdb Link to Open Build Service Repository 2017-04-09 17:42:06 +02:00
Georg Sauthoff a9b6d5c596 Resolve RPM conflicts on Fedora > 23
e.g. on Fedora 25:

Error: Transaction check error:
  file /usr/share/man from install of somake-0.6.0-1.x86_64 conflicts with file from package filesystem-3.2-37.fc24.x86_64
  file /usr/share/man/man1 from install of somake-0.6.0-1.x86_64 conflicts with file from package filesystem-3.2-37.fc24.x86_64
2017-03-13 23:52:59 +01:00
Georg Sauthoff 134796a9e5 relax required cmake version
e.g. also compiles on CentOS 6 with cmake 2.8 from EPEL
2016-11-15 21:44:48 +01:00
Georg Sauthoff ee5bee4f2e only include libbsd header if libbsd is installed 2016-11-15 21:43:45 +01:00
Georg Sauthoff 808565e725 add note regarding better include file generation 2016-08-30 10:24:40 +02:00
Georg Sauthoff e52b61f121 add test: KEEP_STATE vs. include generation issue 2016-08-30 09:37:57 +02:00
Georg Sauthoff 77f083298a rename man page to the name of the project 2016-08-29 22:38:23 +02:00
Georg Sauthoff d7687df5f0 remove getwd() declaration because
- it is unused
- LEGACY in POSIX.2001, not available in POSIX.2008
- even available via `unistd.h` on Solaris 10
2016-08-28 23:04:52 +02:00
Georg Sauthoff 1755c69296 don't use sys_nerr with Solaris/64 Bit
since it isn't available then
2016-08-26 23:48:40 +02:00
Georg Sauthoff 3c18899ecb use 32/64 bit agnostic hint on solaris 2016-08-26 23:43:56 +02:00
Georg Sauthoff d7fa22c88f fix typos in compatibility function 2016-08-26 23:00:14 +02:00
Georg Sauthoff 391eb656fe link additional Libraries on Solaris 2016-08-26 22:59:19 +02:00
Georg Sauthoff 3c28143a75 use closefrom() where available
e.g. on Linux via libbsd - or on BSDs where the symbol exists
2016-08-26 22:25:48 +02:00
Georg Sauthoff 064e38eae9 add CPack packaging definition
See also:

- https://cmake.org/cmake/help/v3.4/module/CPack.html
- https://cmake.org/cmake/help/v3.4/module/CPackRPM.html
- https://cmake.org/cmake/help/v3.4/module/CPackDeb.html
2016-08-24 08:42:36 +02:00
Georg Sauthoff d648e92188 fix build on Solaris 10
Solaris 10 is too old for POSIX.2008, thus wcsdup() is missing
2016-08-23 21:13:46 +02:00
Georg Sauthoff 1888f89375 simplify Solaris CPP test 2016-08-23 20:26:31 +02:00
Georg Sauthoff 4ed41c209c add install target 2016-08-22 20:55:39 +02:00
Georg Sauthoff b421774ba2 Sun make does support include file generation 2016-08-22 20:00:25 +02:00
Georg Sauthoff d3527b72cf add examples, add installation notes 2016-08-21 23:34:14 +02:00
Georg Sauthoff 9180a40f1f adjust optstring for GNU getopt() 2016-08-21 23:34:14 +02:00
Georg Sauthoff 43a5295e69 fix Linux compile issues
- include stubs for Solaris specific functionality
- include some missing standard headers
- guard Solaris specific constructs with preprocessor conditionals
- fix pointer-to-int-cast undefined behavior
2016-08-21 23:34:14 +02:00
Georg Sauthoff c0dfa85aa1 add Solaris compatibility stubs 2016-08-21 23:34:14 +02:00
Georg Sauthoff 7f43353e56 add CMake build file and instructions 2016-08-21 23:34:14 +02:00
Georg Sauthoff 83e0598cad Merge branch 'illumos' 2016-08-21 23:34:14 +02:00
Georg Sauthoff 6804ba69d6 import Sun's dmake from illumos
Source:

svn export https://github.com/illumos/illumos-gate/trunk/usr/src/cmd/make/

Yes, github also has a Subversion compatible interface - which seems to
be useful when one is only interested in a set of files.

The Github Subversion server printed: Exported revision 15816.

This corresponds to:
67c3092ccd/usr/src/cmd/make
2016-08-21 23:34:14 +02:00
Georg Sauthoff c2f5d8001b Import man page
Source:

curl -OL 10d63b7db3/usr/src/man/man1/make.1
2016-08-21 23:33:49 +02:00
Georg Sauthoff cd9f4eb76c import OpenSolaris CDDL license
Source:

curl -o COPYING 'https://raw.githubusercontent.com/illumos/illumos-gate/cbf5bfd0563daa9bd1e66ff129333add3c9ca2ea/usr/src/OPENSOLARIS.LICENSE'
2016-08-21 11:10:30 +02:00
Georg Sauthoff ad2bea3b1e add README.md 2016-08-21 11:05:22 +02:00