The NetBSD Project

CVS log for pkgsrc/mk/platform/SunOS.mk

[BACK] Up to [cvs.NetBSD.org] / pkgsrc / mk / platform

Request diff between arbitrary revisions


Keyword substitution: kv
Default branch: MAIN


Revision 1.98: download - view: text, markup, annotated - select for diffs
Thu Aug 28 12:11:57 2025 UTC (14 months, 2 weeks ago) by pho
Branches: MAIN
CVS tags: pkgsrc-2026Q3-base, pkgsrc-2026Q3, pkgsrc-2026Q2-base, pkgsrc-2026Q2, pkgsrc-2026Q1-base, pkgsrc-2026Q1, pkgsrc-2025Q4-base, pkgsrc-2025Q4, pkgsrc-2025Q3-base, pkgsrc-2025Q3, HEAD
Diff to: previous 1.97: preferred, colored
Changes since revision 1.97: +5 -1 lines
mk: Use "${CC} -E" as CPP on OmniOS

OmniOS does not have cpp(1) in its standard PATH. It has /usr/lib/cpp,
which works mostly like the standard cpp(1) but lacks support of many
standard options. It appears /usr/lib/cpp is some kind of implementation
detail and users aren't expected to execute it directly.

Several months ago I committed a change to mk/tools/tools.SunOS.mk so that
packages could use ${CPP} by declaring "USE_TOOLS+=cpp". This turned out to
be a bad idea for many reasons:

1. Packages expect ${CPP} to be usable without declaring anything.

2. Some packages want to use ${CPP} not only at build time but also at run
   time. Having a symlink in ${WRAPPER_BINDIR} isn't useful in this case.

3. Some packages (rightfully) expect that ${CPP} supports -o FILE, which
   /usr/lib/cpp doesn't support.

By setting "${CC} -E" to CPP we can now build and use
devel/gobject-introspection, as well as lang/ghc910 on OmniOS.

Revision 1.97: download - view: text, markup, annotated - select for diffs
Sat Apr 12 08:41:11 2025 UTC (19 months ago) by nia
Branches: MAIN
CVS tags: pkgsrc-2025Q2-base, pkgsrc-2025Q2
Diff to: previous 1.96: preferred, colored
Changes since revision 1.96: +2 -6 lines
mk: Switch KRB5_DEFAULT default to mit-krb5.

More OS include this than heimdal, and for OS that do not provide
either, building the pkgsrc version is a lot more portable.

Retain heimdal as the default on NetBSD and FreeBSD, since they
include it in their base system.

via dreckly, original author jperkin@

Revision 1.96: download - view: text, markup, annotated - select for diffs
Sat Apr 12 08:36:36 2025 UTC (19 months ago) by nia
Branches: MAIN
Diff to: previous 1.95: preferred, colored
Changes since revision 1.95: +1 -2 lines
mk: Remove _OPSYS_HAS_OSSAUDIO, use oss.buildlink3.mk/OSS_TYPE

"please remove it" wiz@

Revision 1.95: download - view: text, markup, annotated - select for diffs
Mon Apr 7 12:12:46 2025 UTC (19 months, 1 week ago) by jperkin
Branches: MAIN
Diff to: previous 1.94: preferred, colored
Changes since revision 1.94: +6 -2 lines
mk: Limit the unlimited stacksize on SunOS.

The default hard limit of stacksize on SunOS is "unlimited".  If this is set
as the soft limit then stack_getbounds(3C) returns the top of the stack as
the address with a size of zero.  This can confuse stack guard allocators
such as the one used by lang/rust which then try to allocate a guard page.

Instead set an arbitrary limit of 128MB which should be more than enough,
and fixes the build of lang/rust.

Revision 1.94: download - view: text, markup, annotated - select for diffs
Tue Feb 18 11:58:53 2025 UTC (20 months, 3 weeks ago) by wiz
Branches: MAIN
CVS tags: pkgsrc-2025Q1-base, pkgsrc-2025Q1
Diff to: previous 1.93: preferred, colored
Changes since revision 1.93: +1 -2 lines
mk: Remove _OPSYS_PERL_REQD.

It's not 2003 anymore, all platforms use the same perl, we don't support
system perl, and this saves calls to pkg_admin for every perl-using
package.

From Jonathan Perkin <jperkin@smartos.org>
via drecklypkg commit $18912d81e683c25b2fec0b7506dfbe421e5b2a90

Revision 1.93: download - view: text, markup, annotated - select for diffs
Sun Jan 26 05:24:09 2025 UTC (21 months, 2 weeks ago) by pho
Branches: MAIN
Diff to: previous 1.92: preferred, colored
Changes since revision 1.92: +6 -1 lines
mk/platform/SunOS.mk: Don't run SSP check on OmniOS

The way mk/check/check-ssp-elf.awk checks if SSP is enabled is suboptimal
atm. It runs readelf(1) on ELF objects and sees if they have DT_NEEDED to
libssp. However, GCC on this platform no longer links objects with libssp
because its symbols have been moved to libc. They didn't remove libssp.so,
presumably for backwards compatibility, but it has no symbols at all.

Revision 1.92: download - view: text, markup, annotated - select for diffs
Sat Jan 25 18:16:01 2025 UTC (21 months, 2 weeks ago) by pho
Branches: MAIN
Diff to: previous 1.91: preferred, colored
Changes since revision 1.91: +3 -1 lines
mk/platform/SunOS.mk: OmniOS: Extract files on a UTF-8 locale

Otherwise bsdtar cannot extract files whose path contains non-ASCII characters.

Revision 1.91: download - view: text, markup, annotated - select for diffs
Sat Jan 25 03:30:46 2025 UTC (21 months, 3 weeks ago) by pho
Branches: MAIN
Diff to: previous 1.90: preferred, colored
Changes since revision 1.90: +7 -1 lines
OmniOS: Use bsdtar for extraction by default

Revision 1.90: download - view: text, markup, annotated - select for diffs
Mon Jun 10 10:25:05 2024 UTC (2 years, 5 months ago) by jperkin
Branches: MAIN
CVS tags: pkgsrc-2024Q4-base, pkgsrc-2024Q4, pkgsrc-2024Q3-base, pkgsrc-2024Q3, pkgsrc-2024Q2-base, pkgsrc-2024Q2
Diff to: previous 1.89: preferred, colored
Changes since revision 1.89: +4 -2 lines
mk: Switch SunOS to default mit-krb5 from pkgsrc.

The version supplied in the platform image is quite old at this point and
causes build issues in e.g. py-gssapi that will take some work to fix, and
this is likely to only get worse over time.

Revision 1.89: download - view: text, markup, annotated - select for diffs
Sat Apr 20 13:43:49 2024 UTC (2 years, 6 months ago) by nia
Branches: MAIN
Diff to: previous 1.88: preferred, colored
Changes since revision 1.88: +2 -1 lines
mk: Add memrchr as a potential missing feature

It's missing on (all?) Darwin up to 11 and Solaris 10

Revision 1.88: download - view: text, markup, annotated - select for diffs
Wed Nov 15 14:14:09 2023 UTC (3 years ago) by nia
Branches: MAIN
CVS tags: pkgsrc-2024Q1-base, pkgsrc-2024Q1, pkgsrc-2023Q4-base, pkgsrc-2023Q4
Diff to: previous 1.87: preferred, colored
Changes since revision 1.87: +6 -1 lines
mk/platform: Introduce a new OPSYS_HAS_POSIX_SPAWN variable.

Revision 1.87: download - view: text, markup, annotated - select for diffs
Tue Nov 22 16:57:31 2022 UTC (3 years, 11 months ago) by jperkin
Branches: MAIN
CVS tags: pkgsrc-2023Q3-base, pkgsrc-2023Q3, pkgsrc-2023Q2-base, pkgsrc-2023Q2, pkgsrc-2023Q1-base, pkgsrc-2023Q1, pkgsrc-2022Q4-base, pkgsrc-2022Q4
Diff to: previous 1.86: preferred, colored
Changes since revision 1.86: +1 -4 lines
mk/platform: Remove old SunOS --rpath transformation.

This is already handled in cwrappers, if necessary.

Revision 1.86: download - view: text, markup, annotated - select for diffs
Mon Nov 21 18:25:54 2022 UTC (3 years, 11 months ago) by jperkin
Branches: MAIN
Diff to: previous 1.85: preferred, colored
Changes since revision 1.85: +1 -15 lines
mk: Remove generic SunOS linker argument removals.

While these were useful in helping many packages to build out of the box,
it ended up resulting in some packages installing broken configuration
files as their configure tests for supported flags were passing.

For example, ruby packages were shipping an rbconfig.rb with LDFLAGS
containing -Wl,--no-as-needed, resulting in any ruby software built
outside of pkgsrc that required a compiler always failing.

Revision 1.85: download - view: text, markup, annotated - select for diffs
Sat Oct 1 14:23:26 2022 UTC (4 years, 1 month ago) by jperkin
Branches: MAIN
Diff to: previous 1.84: preferred, colored
Changes since revision 1.84: +4 -2 lines
mk: Limit mktools to SunOS 5.11 and newer.

Older releases don't have err.h, and I don't want to have to bring in nbcompat
yet.  Fixes PR#57040.

Revision 1.84: download - view: text, markup, annotated - select for diffs
Tue Sep 27 08:46:33 2022 UTC (4 years, 1 month ago) by jperkin
Branches: MAIN
Diff to: previous 1.83: preferred, colored
Changes since revision 1.83: +2 -1 lines
mk: Enable mktools on supported platforms.

The default is now auto detection, which will enable mktools on platforms that
have set _OPSYS_SUPPORTS_MKTOOLS.  Users can still override either way via
PKGSRC_USE_MKTOOLS.

Please add and enable on other platforms once they have been verified.

Revision 1.83: download - view: text, markup, annotated - select for diffs
Tue Aug 9 11:31:14 2022 UTC (4 years, 3 months ago) by jperkin
Branches: MAIN
CVS tags: pkgsrc-2022Q3-base, pkgsrc-2022Q3
Diff to: previous 1.82: preferred, colored
Changes since revision 1.82: +4 -1 lines
mk: Add OPSYS_EXPLICIT_LIBDEPS and enable on SunOS.

Most systems use GNU ld, which will happily pull in symbols required by a
program even if they are only available via implicit library dependencies.  The
SunOS linker is stricter, and if a program uses a symbol then the library that
defines that symbol must be an explicit dependency.

This mostly causes problems with libiconv and libintl, both of which Linux
bundles in its C library, so a lot of third-party software does not correctly
check for them.  Until now we've had to add many, many overrides, along with
variables such as BROKEN_GETTEXT_DETECTION which nowadays only has limited
effectiveness.

The situation appears to be getting worse, especially with software built with
meson, and so both libiconv and gettext-lib will now automatically add the
correct LDFLAGS if the OPSYS sets OPSYS_EXPLICIT_LIBDEPS=yes.

This isn't perfect.  For one it isn't really an OPSYS setting as you can try to
use GNU ld on SunOS, it just doesn't work very well.  It should also really be
done via the wrappers rather than exposing LDFLAGS, but we do not yet have an
approved patch for doing this.  However it does improve the current situation.

Revision 1.82: download - view: text, markup, annotated - select for diffs
Mon Nov 29 16:14:23 2021 UTC (4 years, 11 months ago) by jperkin
Branches: MAIN
CVS tags: pkgsrc-2022Q2-base, pkgsrc-2022Q2, pkgsrc-2022Q1-base, pkgsrc-2022Q1, pkgsrc-2021Q4-base, pkgsrc-2021Q4
Diff to: previous 1.81: preferred, colored
Changes since revision 1.81: +3 -3 lines
mk: Use OPSYS_VERSION where appropriate.

Should improve readability and in some cases avoid potential failure due to
string comparisons being used.  No other functional change intended.

Revision 1.81: download - view: text, markup, annotated - select for diffs
Tue Nov 23 10:37:59 2021 UTC (4 years, 11 months ago) by nia
Branches: MAIN
Diff to: previous 1.80: preferred, colored
Changes since revision 1.80: +10 -3 lines
mk: Register strnlen as missing on Solaris 10

adapted from PR pkg/56511 from pekdon

Revision 1.80: download - view: text, markup, annotated - select for diffs
Tue Jun 2 16:22:40 2020 UTC (6 years, 5 months ago) by jperkin
Branches: MAIN
CVS tags: pkgsrc-2021Q3-base, pkgsrc-2021Q3, pkgsrc-2021Q2-base, pkgsrc-2021Q2, pkgsrc-2021Q1-base, pkgsrc-2021Q1, pkgsrc-2020Q4-base, pkgsrc-2020Q4, pkgsrc-2020Q3-base, pkgsrc-2020Q3, pkgsrc-2020Q2-base, pkgsrc-2020Q2
Diff to: previous 1.79: preferred, colored
Changes since revision 1.79: +2 -2 lines
mk: bmake cannot compare non-integers numerically.

Just use an empty() match instead.

Revision 1.79: download - view: text, markup, annotated - select for diffs
Mon Nov 12 14:22:58 2018 UTC (8 years ago) by jperkin
Branches: MAIN
CVS tags: pkgsrc-2020Q1-base, pkgsrc-2020Q1, pkgsrc-2019Q4-base, pkgsrc-2019Q4, pkgsrc-2019Q3-base, pkgsrc-2019Q3, pkgsrc-2019Q2-base, pkgsrc-2019Q2, pkgsrc-2019Q1-base, pkgsrc-2019Q1, pkgsrc-2018Q4-base, pkgsrc-2018Q4
Diff to: previous 1.78: preferred, colored
Changes since revision 1.78: +5 -8 lines
mk: Add CTF infrastructure support.

Platform support is determined by _OPSYS_SUPPORTS_CTF from mk/platform, the
user enables support by setting PKGSRC_USE_CTF=yes, and packages can
explicitly disable support with CTF_SUPPORTED=no or skip certain files with
CTF_FILES_SKIP.

The path to ctfconvert is configured via TOOLS_PLATFORM.ctfconvert.

If all of the requisite variables are enabled, a compiler-specific debug flag
is passed via the wrappers to ensure we have DWARF information to convert,
_INSTALL_UNSTRIPPED is explicitly defined to avoid binaries being stripped
prior to conversion, and the conversion is performed during the install stage.

It is recommended that users who enable the feature also set STRIP_DEBUG=yes
to reduce the final binary size once the conversion has been performed.

This has been used for the past year in Joyent SmartOS builds.  FreeBSD is
marked as supported but is untested.

Revision 1.78: download - view: text, markup, annotated - select for diffs
Mon Nov 5 19:26:38 2018 UTC (8 years ago) by schmonz
Branches: MAIN
Diff to: previous 1.77: preferred, colored
Changes since revision 1.77: +2 -2 lines
Optionally detect whether the compiler supports "-fstack-protector-strong".
If not, set _OPSYS_SUPPORTS_SSP=no during bootstrap and in mk.conf.

Do SSP detection on "SunOS", and let mk/platform/SunOS.mk's default
"yes" be overridden in mk.conf.

No change to generated mk.conf on NetBSD 8 or CentOS 6. Fixes bootstrap
on Tribblix.

Revision 1.77: download - view: text, markup, annotated - select for diffs
Tue Oct 10 13:57:23 2017 UTC (9 years, 1 month ago) by jperkin
Branches: MAIN
CVS tags: pkgsrc-2018Q3-base, pkgsrc-2018Q3, pkgsrc-2018Q2-base, pkgsrc-2018Q2, pkgsrc-2018Q1-base, pkgsrc-2018Q1, pkgsrc-2017Q4-base, pkgsrc-2017Q4
Diff to: previous 1.76: preferred, colored
Changes since revision 1.76: +3 -1 lines
mk/platform: Remove unsupported Darwin/SunOS linker arguments.

Revision 1.76: download - view: text, markup, annotated - select for diffs
Wed Jun 21 08:20:10 2017 UTC (9 years, 4 months ago) by jperkin
Branches: MAIN
CVS tags: pkgsrc-2017Q3-base, pkgsrc-2017Q3, pkgsrc-2017Q2-base, pkgsrc-2017Q2
Diff to: previous 1.75: preferred, colored
Changes since revision 1.75: +4 -4 lines
Set LIBABISUFFIX correctly on SunOS/sparc64.  Tested by Jörn Clausen as
part of PR#52250.

Revision 1.75: download - view: text, markup, annotated - select for diffs
Mon May 8 17:34:15 2017 UTC (9 years, 6 months ago) by jperkin
Branches: MAIN
Diff to: previous 1.74: preferred, colored
Changes since revision 1.74: +6 -3 lines
Default to pkgsrc terminfo.  The curses default was switched to pkgsrc a
while ago, but since then any packages that included both curses and
terminfo ended up with conflicting BUILDLINK_TRANSFORM entries, leaving it
to include ordering to determine whether the builtin or pkgsrc curses was
used.  This keeps them in sync, at least by default, though ideally we'd
ensure that at an infrastructure level.

Revision 1.74: download - view: text, markup, annotated - select for diffs
Wed Mar 8 15:26:51 2017 UTC (9 years, 8 months ago) by jperkin
Branches: MAIN
CVS tags: pkgsrc-2017Q1-base, pkgsrc-2017Q1
Diff to: previous 1.73: preferred, colored
Changes since revision 1.73: +6 -1 lines
Mark SunOS as _INCOMPAT_CURSES, there are lots of issues with the recent work
to use the curses framework and this is the simplest solution for now.

Revision 1.73: download - view: text, markup, annotated - select for diffs
Thu Oct 27 10:31:06 2016 UTC (10 years ago) by jperkin
Branches: MAIN
CVS tags: pkgsrc-2016Q4-base, pkgsrc-2016Q4
Diff to: previous 1.72: preferred, colored
Changes since revision 1.72: +6 -1 lines
Add support for enabling cwrappers automatically.  USE_CWRAPPERS now defaults
to "auto", which will enable cwrappers if the _OPSYS_SUPPORTS_CWRAPPERS
platform variable is set to "yes".

Switch over to cwrappers by default for Darwin, Linux, and SunOS (except when
using the sunpro compiler).

Revision 1.72: download - view: text, markup, annotated - select for diffs
Thu Aug 25 12:08:29 2016 UTC (10 years, 2 months ago) by jperkin
Branches: MAIN
CVS tags: pkgsrc-2016Q3-base, pkgsrc-2016Q3
Diff to: previous 1.71: preferred, colored
Changes since revision 1.71: +2 -1 lines
Support UNLIMIT_RESOURCES=cputime on SunOS.

Revision 1.71: download - view: text, markup, annotated - select for diffs
Fri Mar 11 23:54:09 2016 UTC (10 years, 8 months ago) by khorben
Branches: MAIN
CVS tags: pkgsrc-2016Q2-base, pkgsrc-2016Q2, pkgsrc-2016Q1-base, pkgsrc-2016Q1
Diff to: previous 1.70: preferred, colored
Changes since revision 1.70: +1 -3 lines
Re-arrange support for FORTIFY/MKPIE/RELRO/SSP

- No _GCC_* anything in mk/bsd.prefs.mk;
- No compiler flags in platform files.

Tested again on NetBSD/amd64, with and without cwrappers, with the same
outcome.

With feedback from jperkin@

Revision 1.70: download - view: text, markup, annotated - select for diffs
Fri Mar 11 23:03:31 2016 UTC (10 years, 8 months ago) by khorben
Branches: MAIN
Diff to: previous 1.69: preferred, colored
Changes since revision 1.69: +9 -1 lines
Add support for a number of security features

- Revisit (and rename) support for FORTIFY as PKGSRC_USE_FORTIFY (instead
  of PKGSRC_USE_FORT) for easier support outside NetBSD/gcc;
- PKGSRC_USE_SSP is no longer enabled by default when PKGSRC_USE_FORTIFY
  is enabled;
- PKGSRC_MKPIE builds executables as PIE (to leverage userland ASLR)
- PKGSRC_USE_RELRO builds with a read-only GOT to prevent some exploits
  from functioning.

Tested on NetBSD/amd64 by myself, in every combination, with and without
pkgtools/cwrappers. MKPIE is not supported at the moment with cwrappers.
Also, MKPIE is known to still break a number of packages when enabled (and
actually supported).

Tested on SunOS by jperkin@, thank you!

As discussed on tech-pkg@, the default behavior is not changed, except
where noted above.

ok bsiegert@

Revision 1.69: download - view: text, markup, annotated - select for diffs
Fri Mar 11 22:04:34 2016 UTC (10 years, 8 months ago) by fhajny
Branches: MAIN
Diff to: previous 1.68: preferred, colored
Changes since revision 1.68: +3 -1 lines
Strip --enable-new-dtags GNU ld arg on Darwin and SunOS.

Revision 1.68: download - view: text, markup, annotated - select for diffs
Thu Mar 10 16:58:19 2016 UTC (10 years, 8 months ago) by jperkin
Branches: MAIN
Diff to: previous 1.67: preferred, colored
Changes since revision 1.67: +1 -7 lines
Remove _OPSYS_WHOLE_ARCHIVE_FLAG and _OPSYS_NO_WHOLE_ARCHIVE_FLAG, these
variables are unused and in at least one case were completely wrong anyway.

Revision 1.67: download - view: text, markup, annotated - select for diffs
Mon Nov 16 15:59:59 2015 UTC (11 years ago) by jperkin
Branches: MAIN
CVS tags: pkgsrc-2015Q4-base, pkgsrc-2015Q4
Diff to: previous 1.66: preferred, colored
Changes since revision 1.66: +2 -6 lines
Always set _OPSYS_CAN_CHECK_SHLIBS to "yes" regardless of whether
TOOLS_PATH.readelf is set.  This is a PKG_DEVELOPER feature and it's
likely the developer is smart enough to either have it already available
in $PATH or be able to install it (e.g. via devel/binutils) if required.

Revision 1.66: download - view: text, markup, annotated - select for diffs
Mon Oct 26 09:33:16 2015 UTC (11 years ago) by jperkin
Branches: MAIN
Diff to: previous 1.65: preferred, colored
Changes since revision 1.65: +6 -1 lines
GCC on SunOS supports a non-standard -mimpure-text argument which clang
does not have, so remove it unconditionally in the latter case.  Fixes
various packages.

Revision 1.65: download - view: text, markup, annotated - select for diffs
Fri Apr 17 08:22:30 2015 UTC (11 years, 7 months ago) by jperkin
Branches: MAIN
CVS tags: pkgsrc-2015Q3-base, pkgsrc-2015Q3, pkgsrc-2015Q2-base, pkgsrc-2015Q2
Diff to: previous 1.64: preferred, colored
Changes since revision 1.64: +2 -1 lines
Default to the native getopt when available.

Revision 1.64: download - view: text, markup, annotated - select for diffs
Fri Apr 17 08:21:01 2015 UTC (11 years, 7 months ago) by jperkin
Branches: MAIN
Diff to: previous 1.63: preferred, colored
Changes since revision 1.63: +1 -2 lines
Stop defaulting to the builtin mit-krb5, it's an old copy which is
unlikely to be updated any time soon, and is preventing some Samba
Kerberos features from working correctly.

Revision 1.63: download - view: text, markup, annotated - select for diffs
Thu Mar 19 19:15:23 2015 UTC (11 years, 8 months ago) by tron
Branches: MAIN
CVS tags: pkgsrc-2015Q1-base, pkgsrc-2015Q1
Diff to: previous 1.62: preferred, colored
Changes since revision 1.62: +4 -1 lines
Report that SunOS 5.10 and older don't have "err.h".

Change during freeze approved by Jonathan Perkin.

Revision 1.62: download - view: text, markup, annotated - select for diffs
Wed Sep 10 15:59:33 2014 UTC (12 years, 2 months ago) by jperkin
Branches: MAIN
CVS tags: pkgsrc-2014Q4-base, pkgsrc-2014Q4, pkgsrc-2014Q3-base, pkgsrc-2014Q3
Diff to: previous 1.61: preferred, colored
Changes since revision 1.61: +1 -2 lines
Expand --version-script removals for SunOS back out into package Makefiles
rather than trying to consolidate into a single fnmatch.  There aren't that
many of them, and it will aid the integration of cwrappers which doesn't
support globs.

Revision 1.61: download - view: text, markup, annotated - select for diffs
Thu Aug 28 15:46:35 2014 UTC (12 years, 2 months ago) by jperkin
Branches: MAIN
Diff to: previous 1.60: preferred, colored
Changes since revision 1.60: +11 -2 lines
Expand out the list of GNU ld flags we want to remove, rather than applying
a blanket removal of any long options, richard@ is concerned this may affect
packages which use the long options now available in newer SunOS ld.

Whilst here, transform --rpath to -R, used by a few packages.

Revision 1.60: download - view: text, markup, annotated - select for diffs
Thu Aug 28 10:54:07 2014 UTC (12 years, 2 months ago) by jperkin
Branches: MAIN
Diff to: previous 1.59: preferred, colored
Changes since revision 1.59: +2 -2 lines
Remove any -Wl,--* arguments, they are guaranteed to be GNU ld specific
and unsupported by the SunOS linker.  Tested to only have positive results
in a bulk build.

Revision 1.59: download - view: text, markup, annotated - select for diffs
Thu Aug 21 15:31:24 2014 UTC (12 years, 2 months ago) by jperkin
Branches: MAIN
Diff to: previous 1.58: preferred, colored
Changes since revision 1.58: +2 -1 lines
Add -Wl,-export-dynamic to the list of GNU ld patterns to remove.

Revision 1.58: download - view: text, markup, annotated - select for diffs
Tue Mar 11 14:07:04 2014 UTC (12 years, 8 months ago) by jperkin
Branches: MAIN
CVS tags: pkgsrc-2014Q2-base, pkgsrc-2014Q2, pkgsrc-2014Q1-base, pkgsrc-2014Q1
Diff to: previous 1.57: preferred, colored
Changes since revision 1.57: +6 -1 lines
Introduce infrastructure support for SMF.

SMF is the Service Management Facility, the default init system in
Solaris and derivatives since version 10.  This adds "smf" to the list
of supported INIT_SYSTEM types, and makes it the default init system on
platforms where it is available.

Packages can introduce SMF support by providing a manifest file, by
default located in ${FILESDIR}/smf/manifest.xml but manifests under
${WRKSRC} can be used too if the package source includes one.

SMF method scripts are supported too if required, using SMF_METHODS in a
similar manner to RCD_SCRIPTS.

Many parts of the SMF infrastructure are configurable, see mk/smf.mk for
the full details.

Revision 1.57: download - view: text, markup, annotated - select for diffs
Thu Sep 12 11:01:47 2013 UTC (13 years, 2 months ago) by jperkin
Branches: MAIN
CVS tags: pkgsrc-2013Q4-base, pkgsrc-2013Q4, pkgsrc-2013Q3-base, pkgsrc-2013Q3
Diff to: previous 1.56: preferred, colored
Changes since revision 1.56: +2 -1 lines
Introduce CATMAN_SECTION_SUFFIX which if set to 'yes' will ensure that
catman pages are installed with a suffix which matches their section
instead of the default '.0'.

Enable it by default on SunOS, which requires that particular layout.

Revision 1.56: download - view: text, markup, annotated - select for diffs
Wed Sep 4 15:14:45 2013 UTC (13 years, 2 months ago) by jperkin
Branches: MAIN
Diff to: previous 1.55: preferred, colored
Changes since revision 1.55: +5 -5 lines
Introduce _OPSYS_PREFER.<pkg> variables as a way to set an advisory
per-platform default.  Previously PREFER.<pkg> was used, and as that
has the highest precedence it meant the defaults could not be overridden
with the PREFER_PKGSRC and PREFER_NATIVE user variables.

While here, set the openssl default for SunOS back to pkgsrc, now that
users who wish to use the builtin can do so via PREFER_NATIVE=openssl.

Revision 1.55: download - view: text, markup, annotated - select for diffs
Tue Aug 27 05:43:20 2013 UTC (13 years, 2 months ago) by richard
Branches: MAIN
Diff to: previous 1.54: preferred, colored
Changes since revision 1.54: +2 -2 lines
fix openssl builtin support, at least for solaris

Revision 1.54: download - view: text, markup, annotated - select for diffs
Fri Aug 16 12:10:31 2013 UTC (13 years, 3 months ago) by jperkin
Branches: MAIN
Diff to: previous 1.53: preferred, colored
Changes since revision 1.53: +5 -1 lines
Use the native mit-krb5 implementation by default on SunOS.

Revision 1.53: download - view: text, markup, annotated - select for diffs
Mon Jul 15 12:06:45 2013 UTC (13 years, 4 months ago) by jperkin
Branches: MAIN
Diff to: previous 1.52: preferred, colored
Changes since revision 1.52: +3 -2 lines
Default to using the native version of libexecinfo on SunOS.

Revision 1.52: download - view: text, markup, annotated - select for diffs
Fri Jul 5 15:10:00 2013 UTC (13 years, 4 months ago) by jperkin
Branches: MAIN
Diff to: previous 1.51: preferred, colored
Changes since revision 1.51: +5 -1 lines
Apply removal of -export-dynamic for SunOS across all of pkgsrc.

Avoids lots of copy/paste and fixes a bunch of packages which hadn't been
looked at yet.

Revision 1.51: download - view: text, markup, annotated - select for diffs
Thu May 16 17:09:07 2013 UTC (13 years, 6 months ago) by jperkin
Branches: MAIN
CVS tags: pkgsrc-2013Q2-base, pkgsrc-2013Q2
Diff to: previous 1.50: preferred, colored
Changes since revision 1.50: +2 -4 lines
_OPSYS_SYSTEM_RPATH must match _OPSYS_LIB_DIRS or else the buildlink
substitutions will not be correct.

Fixes issue with ABI=64 where /usr/lib/amd64 was being exposed, but
packages will need to be rebuilt for the change to take effect.

Revision 1.50: download - view: text, markup, annotated - select for diffs
Sun Apr 28 12:53:56 2013 UTC (13 years, 6 months ago) by obache
Branches: MAIN
Diff to: previous 1.49: preferred, colored
Changes since revision 1.49: +3 -1 lines
Introduce _OPSYS_LIB_DIRS and _OPSYS_INCLUDE_DIRS varables.
list of system library and header file directories.

Also add missing _OPSYS_SYSTEM_RPATH for some platforms.

Revision 1.49: download - view: text, markup, annotated - select for diffs
Fri Mar 1 16:58:51 2013 UTC (13 years, 8 months ago) by jperkin
Branches: MAIN
CVS tags: pkgsrc-2013Q1-base, pkgsrc-2013Q1
Diff to: previous 1.48: preferred, colored
Changes since revision 1.48: +10 -3 lines
Enable check-shlibs if the user supplies a working readelf, e.g. from binutils.

Revision 1.48: download - view: text, markup, annotated - select for diffs
Fri Feb 1 12:36:06 2013 UTC (13 years, 9 months ago) by hans
Branches: MAIN
Diff to: previous 1.47: preferred, colored
Changes since revision 1.47: +2 -1 lines
Prefer openssl from pkgsrc on SunOS by default.

Revision 1.47: download - view: text, markup, annotated - select for diffs
Fri Feb 1 12:25:16 2013 UTC (13 years, 9 months ago) by hans
Branches: MAIN
Diff to: previous 1.46: preferred, colored
Changes since revision 1.46: +5 -1 lines
Set LIBABISUFFIX on SunOS x86_64. Should probably also be done for
sparcv9, but I can't test that.

Revision 1.46: download - view: text, markup, annotated - select for diffs
Mon Nov 26 10:40:32 2012 UTC (13 years, 11 months ago) by jperkin
Branches: MAIN
CVS tags: pkgsrc-2012Q4-base, pkgsrc-2012Q4
Diff to: previous 1.45: preferred, colored
Changes since revision 1.45: +4 -1 lines
Default to builtin solaris-pam, allows PREFER_PKGSRC=yes to work.

Revision 1.45: download - view: text, markup, annotated - select for diffs
Mon Nov 19 11:34:15 2012 UTC (13 years, 11 months ago) by ryoon
Branches: MAIN
Diff to: previous 1.44: preferred, colored
Changes since revision 1.44: +2 -2 lines
Make MOTIF_TYPE_DEFAULT as motif (LGPL Motif) instead of openmotif or lesstif.
No objection on tech-pkg@.

Revision 1.44: download - view: text, markup, annotated - select for diffs
Fri Jun 1 09:47:49 2012 UTC (14 years, 5 months ago) by jperkin
Branches: MAIN
CVS tags: pkgsrc-2012Q3-base, pkgsrc-2012Q3, pkgsrc-2012Q2-base, pkgsrc-2012Q2
Diff to: previous 1.43: preferred, colored
Changes since revision 1.43: +5 -1 lines
Default to X11_TYPE?=modular if OpenWin headers are not installed.

Revision 1.43: download - view: text, markup, annotated - select for diffs
Mon Mar 19 12:34:18 2012 UTC (14 years, 8 months ago) by joerg
Branches: MAIN
CVS tags: pkgsrc-2012Q1-base, pkgsrc-2012Q1
Diff to: previous 1.42: preferred, colored
Changes since revision 1.42: +1 -22 lines
Drop imake-check logic from X11 components' builtin.mk.
Always use xorg-cf-files and imake from pkgsrc, replacing xpkgwedge.
Always install man pages, not cat pages when using imake.
Unify the various imake PLIST variables in preparation for dropping.
Adjust xbattbar for the new expectations.

Revision 1.42: download - view: text, markup, annotated - select for diffs
Wed Feb 15 15:15:23 2012 UTC (14 years, 9 months ago) by hans
Branches: MAIN
Diff to: previous 1.41: preferred, colored
Changes since revision 1.41: +2 -2 lines
Use ${MAKE} as IMAKE_MAKE.

Revision 1.41: download - view: text, markup, annotated - select for diffs
Thu Jan 12 15:53:37 2012 UTC (14 years, 10 months ago) by hans
Branches: MAIN
Diff to: previous 1.40: preferred, colored
Changes since revision 1.40: +6 -2 lines
Default to lesstif instead of dt if X11_TYPE != native.

Revision 1.40: download - view: text, markup, annotated - select for diffs
Sat Sep 10 16:30:02 2011 UTC (15 years, 2 months ago) by abs
Branches: MAIN
CVS tags: pkgsrc-2011Q4-base, pkgsrc-2011Q4, pkgsrc-2011Q3-base, pkgsrc-2011Q3
Diff to: previous 1.39: preferred, colored
Changes since revision 1.39: +3 -1 lines
From "What platforms work with X11_TYPE=native" thread on pkgsrc-users.

Based on the responses I'm going to switch the default X11_TYPE to
be modular, and override in platform/*.mk files as required. The
new values will be:

Changed - from native to modular
- FreeBSD
- FreeMiNT
- Linux

Changed - older versions switched from native to modular
- NetBSD - native for NetBSD-4 and later

Native (unchanged)  - should probably be switched to modular
- AIX
- BSDOS
- IRIX
- Interix
- MirBSD
- UnixWare

Native (unchanged)
- Darwin - for Leopard (10.5) and later
- OpenBSD.mk
- SunOS.mk

Modular (unchanged)
- DragonFly
- HPUX
- Haiku
- OSF1

I'd like to encourage anyone using X11 apps on any platforms other
than NetBSD, Darwin, DragonFly, FreeBSD, Linux, FreeMiNT, HPUX,
Haiku or OSF1 to speak up, whether they are happy with native or
having to set modular.

Revision 1.39: download - view: text, markup, annotated - select for diffs
Thu Jul 8 04:57:36 2010 UTC (16 years, 4 months ago) by dholland
Branches: MAIN
CVS tags: pkgsrc-2011Q2-base, pkgsrc-2011Q2, pkgsrc-2011Q1-base, pkgsrc-2011Q1, pkgsrc-2010Q4-base, pkgsrc-2010Q4, pkgsrc-2010Q3-base, pkgsrc-2010Q3
Diff to: previous 1.38: preferred, colored
Changes since revision 1.38: +1 -14 lines
Begin cleanup of setgid game infrastructure.

 * Introduce USE_GAMESGROUP, which causes the games user and group to
be made available.

 * Retain SETGIDGAME as an alias for USE_GAMESGROUP. Describe it as
deprecated.

 * Always define GAMES_USER, GAMES_GROUP, GAMEMODE, GAMEDIRMODE, and
GAMEDATAMODE, regardless of whether USE_GAMESGROUP is turned on or not.

 * Define these variables in defaults/mk.conf instead of separately in
every platform/*.mk file. The definitions used to be the same for each
of these platforms anyway, except for some where they were randomly
missing or commented out for no clear reason, leading to broken game
packages.

 * Handle all these variables properly when unprivileged.

 * Update the comments/documentation for these variables.

 * Describe GAMEOWN and GAMEGRP as deprecated. These need to be
retained as aliases for GAMES_USER and GAMES_GROUP respectively for
supporting packages that use bsd.*.mk but should otherwise not be
used.

 * Add GAMEDATA_PERMS and GAMEDIR_PERMS using GAMEDATAMODE and
GAMEDIRMODE respectively.

 * Fix a bug I noticed that was improperly mixing the "games" group
and "games" user.

Things this does *not* do:

 - get rid of GAMES_USER, for which there should ultimately be no need.

 - move the declaration/documentation/default value of USE_GAMESGROUP
to a suitable place. (It is currently where SETGIDGAME was, which is
suboptimal.)

 - touch any of the games, all of which need updating with at least
s/SETGIDGAME/USE_GAMESGROUP/ and probably more.

 - update the guide to explain how to handle games properly.

Also, it would be nice if using GAMES_GROUP without setting
USE_GAMESGROUP=yes caused an error but as far as I know there isn't
any particularly good way to arrange this right now.

Note that these changes may alter the build/install behavior of broken
game packages, e.g. some may silently become setgid when they weren't
before or things like that. If you run into any of this file a PR.

While one might arguably bump the PKGREVISION of all games or other
packages using any of these variables as a precaution, that seems like
a bad idea. Instead, I think I will be bumping each game once it
itself has been fixed up to do everything the right way.

Revision 1.38: download - view: text, markup, annotated - select for diffs
Wed Dec 16 19:48:09 2009 UTC (16 years, 11 months ago) by joerg
Branches: MAIN
CVS tags: pkgsrc-2010Q2-base, pkgsrc-2010Q2, pkgsrc-2010Q1-base, pkgsrc-2010Q1, pkgsrc-2009Q4-base, pkgsrc-2009Q4
Diff to: previous 1.37: preferred, colored
Changes since revision 1.37: +1 -2 lines
Force libtool 2.2 on all platforms.

Revision 1.37: download - view: text, markup, annotated - select for diffs
Sun Jul 26 05:32:43 2009 UTC (17 years, 3 months ago) by agc
Branches: MAIN
CVS tags: pkgsrc-2009Q3-base, pkgsrc-2009Q3
Diff to: previous 1.36: preferred, colored
Changes since revision 1.36: +3 -1 lines
Get rid of an abstraction violation which has been in the tree since
March 2008. Not vital, but the previous way does not scale well/at all.

Revision 1.36: download - view: text, markup, annotated - select for diffs
Wed Jan 14 23:33:48 2009 UTC (17 years, 10 months ago) by sketch
Branches: MAIN
CVS tags: pkgsrc-2009Q2-base, pkgsrc-2009Q2, pkgsrc-2009Q1-base, pkgsrc-2009Q1
Diff to: previous 1.35: preferred, colored
Changes since revision 1.35: +9 -10 lines
While user/group 'games' does not exist by default on Solaris, it will
get created correctly if SETGIDGAME=yes and this avoids ugly errors
from check-files.mk

Revision 1.35: download - view: text, markup, annotated - select for diffs
Fri Dec 12 15:35:34 2008 UTC (17 years, 11 months ago) by sketch
Branches: MAIN
CVS tags: pkgsrc-2008Q4-base, pkgsrc-2008Q4
Diff to: previous 1.34: preferred, colored
Changes since revision 1.34: +2 -2 lines
Solaris useradd requires a full path to the shell.

Revision 1.34: download - view: text, markup, annotated - select for diffs
Tue Mar 4 06:45:34 2008 UTC (18 years, 8 months ago) by jlam
Branches: MAIN
CVS tags: pkgsrc-2008Q3-base, pkgsrc-2008Q3, pkgsrc-2008Q2-base, pkgsrc-2008Q2, pkgsrc-2008Q1-base, pkgsrc-2008Q1, cwrapper, cube-native-xorg-base, cube-native-xorg
Diff to: previous 1.33: preferred, colored
Changes since revision 1.33: +5 -3 lines
+ Conditionally add GAMES_USER and GAMES_GROUP to the platform *.mk
  files.  These variables are currently usable if ${SETGIDGAME} == yes.
  These variables should be used when describing ownership of files
  and directories to the pkginstall framework, e.g.

	SPECIAL_PERMS=	bin/foogame ${GAMES_USER} ${GAMES_GROUP} 2555

+ Rename SETGID_GAME_PERMS to SETGID_GAMES_PERMS because the default
  group name is "games".

+ Define SETGID_GAMES_PERMS in terms of GAMES_USER and GAMES_GROUP so
  that these names are protected from the normal flow of unprivileged.mk.
  This fixes the +INSTALL scripts in "user-destdir" packages to
  correctly refer to the games:games instead of the user:group of the
  user that built the packages.

Revision 1.33: download - view: text, markup, annotated - select for diffs
Tue Nov 20 17:49:49 2007 UTC (19 years ago) by rillig
Branches: MAIN
CVS tags: pkgsrc-2007Q4-base, pkgsrc-2007Q4
Diff to: previous 1.32: preferred, colored
Changes since revision 1.32: +2 -1 lines
Added the feature "asprintf", since Solaris 10 doesn't provide it. The
missing feature is defined in the platform-specific file, which is more
elegant than adding even more of those ".if ${OPSYS} == ..." conditions.

Revision 1.32: download - view: text, markup, annotated - select for diffs
Fri Oct 19 13:41:35 2007 UTC (19 years, 1 month ago) by rillig
Branches: MAIN
Diff to: previous 1.31: preferred, colored
Changes since revision 1.31: +6 -7 lines
Reverted the last changes, which factored out some definitions that are
usually the same on the supported platforms.

The reason for having duplicate code in these files is to make it easier
to port pkgsrc to a new platform: You just have to copy one of the
existing platform files and edit the values in it. With some values
factored out, you would have to look at one more file.

Pointed out by agc@.

Revision 1.31: download - view: text, markup, annotated - select for diffs
Thu Oct 18 21:52:24 2007 UTC (19 years, 1 month ago) by rillig
Branches: MAIN
Diff to: previous 1.30: preferred, colored
Changes since revision 1.30: +8 -7 lines
Factored out the parts that are common between all the supported
platforms, mainly because it wouldn't have made sense to document the
variables in one of those files, but they need to be documented
somewhere.

Added the file defaults.mk, which now serves as the reference document
which provides useful default values and _explains_ the variables.

Revision 1.30: download - view: text, markup, annotated - select for diffs
Sun Jul 29 05:19:44 2007 UTC (19 years, 3 months ago) by jlam
Branches: MAIN
CVS tags: pkgsrc-2007Q3-base, pkgsrc-2007Q3
Diff to: previous 1.29: preferred, colored
Changes since revision 1.29: +5 -1 lines
* Add new emulator framework in pkgsrc/mk/emulator that handles all
  binary-only packages that require binary "emulation" on the native
  operating system.  Please see pkgsrc/mk/emulator/README for more
  details.

* Teach the plist framework to automatically use any existing
  PLIST.${EMUL_PLATFORM} as part of the default PLIST_SRC definition.

* Convert all of the binary-only packages in pkgsrc to use the
  emulator framework.  Most of them have been tested to install and
  deinstall correctly.  This involves the following cleanup actions:

    * Remove use of custom PLIST code and use PLIST.${EMUL_PLATFORM}
      more consistently.

    * Simplify packages by using default INSTALL and DEINSTALL scripts
      instead of custom INSTALL/DEINSTALL code.

    * Remove "SUSE_COMPAT32" and "PKG_OPTIONS.suse" from pkgsrc.
      Packages only need to state exactly which emulations they support,
      and the framework handles any i386-on-x86_64 or sparc-on-sparc64
      uses.

    * Remove "USE_NATIVE_LINUX" from pkgsrc.  The framework will
      automatically detect when the package is installing on Linux.

  Specific changes to packages include:

    * Bump the PKGREVISIONs for all of the suse100* and suse91* packages
      due to changes in the +INSTALL/+DEINSTALL scripts used in all
      of the packages.

    * Remove pkgsrc/emulators/suse_linux, which is unused by any
      packages.

    * cad/lc -- remove custom code to create the distinfo file for
	all supported platforms; just use "emul-fetch" and "emul-distinfo"
	instead.

    * lang/Cg-compiler -- install the shared libraries under ${EMULDIR}
	instead of ${PREFIX}/lib so that compiled programs will find
	the shared libraries.

    * mail/thunderbird-bin-nightly -- update to latest binary
	distributions for supported platforms.

    * multimedia/ns-flash -- update Linux version to 9.0.48 as the
	older version is no longer available for interactive fetch.

    * security/uvscan -- set LD_LIBRARY_PATH explicitly so that
	it's not necessary to install library symlinks into
	${EMULDIR}/usr/local/lib.

    * www/firefox-bin-flash -- update Linux version to 9.0.48 as the
	older version is no longer available for interactive fetch.

Revision 1.29: download - view: text, markup, annotated - select for diffs
Mon Jul 2 14:03:41 2007 UTC (19 years, 4 months ago) by joerg
Branches: MAIN
Diff to: previous 1.28: preferred, colored
Changes since revision 1.28: +1 -2 lines
Remove RSH definition.

Revision 1.28: download - view: text, markup, annotated - select for diffs
Fri Oct 6 14:31:32 2006 UTC (20 years, 1 month ago) by joerg
Branches: MAIN
CVS tags: pkgsrc-2007Q2-base, pkgsrc-2007Q2, pkgsrc-2007Q1-base, pkgsrc-2007Q1, pkgsrc-2006Q4-base, pkgsrc-2006Q4, jlam-pkgviews-base, jlam-pkgviews
Diff to: previous 1.27: preferred, colored
Changes since revision 1.27: +1 -17 lines
Kill ancient runes: /usr/local as LOCALBASE was not the default for
ages and mk.conf from bootstrap sets it explicitly anyway.
The pkg_install stuff also lives in sbin.

Revision 1.27: download - view: text, markup, annotated - select for diffs
Fri Oct 6 14:28:46 2006 UTC (20 years, 1 month ago) by joerg
Branches: MAIN
Diff to: previous 1.26: preferred, colored
Changes since revision 1.26: +1 -3 lines
Always use LOCALBASE setting from mk/defaults/mk.conf.
Setting it with ?= in the platform files is a nop anyway.

Revision 1.26: download - view: text, markup, annotated - select for diffs
Thu Jul 20 20:02:23 2006 UTC (20 years, 4 months ago) by jlam
Branches: MAIN
CVS tags: pkgsrc-2006Q3-base, pkgsrc-2006Q3
Diff to: previous 1.25: preferred, colored
Changes since revision 1.25: +1 -2 lines
Remove USE_GNU_GETTEXT from pkgsrc.  Packages generally only needed
it for plurals support, but that is already handled correctly (FSVO
"correctly") by the pkgsrc/mk/tools/msgfmt.sh script.

Also remove _USE_GNU_GETTEXT definitions from pkgsrc/mk/platform/*.mk
files as that value has been unused by pkgsrc for quite some time
(going back several branches).

Revision 1.25: download - view: text, markup, annotated - select for diffs
Thu Jul 20 13:19:29 2006 UTC (20 years, 4 months ago) by jlam
Branches: MAIN
Diff to: previous 1.24: preferred, colored
Changes since revision 1.24: +1 -19 lines
Remove ${SED} check that no longer works.

Revision 1.7.2.4
Wed Jun 7 15:25:39 2006 UTC (20 years, 5 months ago) by tv
Branches: tv-derecurse
FILE REMOVED
Changes since revision 1.7.2.3: +1 -1 lines
EOL the tv-derecurse branch; it has become too outdated.  The last live
revision can be fetched at the tv-derecurse-eol tag.

Revision 1.24: download - view: text, markup, annotated - select for diffs
Wed Apr 12 21:01:15 2006 UTC (20 years, 7 months ago) by joerg
Branches: MAIN
CVS tags: pkgsrc-2006Q2-base, pkgsrc-2006Q2
Diff to: previous 1.23: preferred, colored
Changes since revision 1.23: +2 -1 lines
Add INSTALL_GAME_DIR to complement INSTALL_GAME_DATA. The directories
are group-writeable by the games user on those platforms, where
GAMEMODE includes setgid. It defaults to PKGDIRMODE otherwise.

Revision 1.23: download - view: text, markup, annotated - select for diffs
Sat Apr 1 23:27:49 2006 UTC (20 years, 7 months ago) by grant
Branches: MAIN
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +3 -2 lines
require libtool >=1.5.22nb3 for /bin/sh fix.

Revision 1.22: download - view: text, markup, annotated - select for diffs
Sat Mar 18 21:40:45 2006 UTC (20 years, 8 months ago) by jlam
Branches: MAIN
CVS tags: pkgsrc-2006Q1-base, pkgsrc-2006Q1
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +1 -9 lines
Remove leftover code sections guarded by _USE_PLIST_MODULE which was
mainlined long ago.

Revision 1.21: download - view: text, markup, annotated - select for diffs
Thu Jan 12 23:43:57 2006 UTC (20 years, 10 months ago) by jlam
Branches: MAIN
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +8 -1 lines
Initial commit of a new module that encapsulates all of the code
for manipulating PLISTs.  This module is not used by default pending
more widespread testing -- currently the variable _USE_PLIST_MODULE
must be defined in /etc/mk.conf to enable its use.

The main features of the new PLIST module are:

    (1) Splits out the PLIST-handling code from bsd.pkg.mk into a
	separate "plist" module.

    (2) Splits out giant, multi-line awk scripts stored in make
	variables into separate awk scripts that may be joined
	together to post-process PLISTs.  Each of these awk scripts
	consolidates the processing for one set of files, e.g.,
	man pages, info pages, etc., and is more easily commented
	than a make variable.

    (3) Splits out the print-PLIST code from the regular PLIST code
	since they have no common pieces (print-plist.mk vs.
	plist.mk).

    (4) Completely re-implements the shared-library handling to be
	more efficient.  Along the way, this also fixes a problem
	for Mac OS X users where the PLISTs incorrectly contained
	absolute paths.

    (5) Completely re-implements the info-file handling so that we
	can migrate from INFO_FILES definitions to just adding
	info/foo.info entries in the static PLISTs.

    (6) Adds commented-out support for automatically compressed or
	decompressed info page entries based on the value of MANZ.
	These changes will be activated after texinfo.mk has been
	replaced by something that is built using the more modern
	primitives now available in pkgsrc.

    (7) Move the file compression logic into a separate script
	"doc-compress" that compresses or decompresses files while
	minding symlinks.  This script is now called by bsd.pkg.mk
	to do the "autmoatic man page handling".  In the future,
	it will also handle the "automatic info page handling" and
	possible others.

In general, the idea is to move stuff out of the Makefiles and into
separate files where we don't need to worry about quoting rules
and where each file can have a separate history of commits.  This
simplifies the makefile logic (especially in terms of readability)
and also simplifies maintenance of the code.

Revision 1.20: download - view: text, markup, annotated - select for diffs
Sun Dec 4 01:44:30 2005 UTC (20 years, 11 months ago) by joerg
Branches: MAIN
CVS tags: pkgsrc-2005Q4-base, pkgsrc-2005Q4
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +3 -1 lines
Add IMAKE_GAMEMAN_SUFFIX and IMAKE_GAMEMAN_DIR to allow PLISTs
to pick up the correct locations.

XXX Default values are guessed, x11/xsnow can be used for testing

Revision 1.19: download - view: text, markup, annotated - select for diffs
Tue Aug 2 03:38:09 2005 UTC (21 years, 3 months ago) by reed
Branches: MAIN
CVS tags: pkgsrc-2005Q3-base, pkgsrc-2005Q3
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +2 -2 lines
Fix typo.

Revision 1.18: download - view: text, markup, annotated - select for diffs
Tue Aug 2 00:23:31 2005 UTC (21 years, 3 months ago) by reed
Branches: MAIN
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +4 -4 lines
Replace references of pkgsrc/mk/bsd.pkg.defaults.mk to
pkgsrc/mk/defaults/mk.conf.

This is from PR 30741 from anonymous AT example.net.

Revision 1.17: download - view: text, markup, annotated - select for diffs
Sat Jun 4 23:33:50 2005 UTC (21 years, 5 months ago) by markd
Branches: MAIN
CVS tags: pkgsrc-2005Q2-base, pkgsrc-2005Q2
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +3 -4 lines
IMAKE_FILEMAN_SUFFIX is 4 on Solaris and (as I read it) OSF1 and UnixWare.

Revision 1.16: download - view: text, markup, annotated - select for diffs
Wed Jun 1 18:14:23 2005 UTC (21 years, 5 months ago) by jlam
Branches: MAIN
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +2 -2 lines
Turn IMAKE_MAKE into a public variable that may be set via /etc/mk.conf.

Revision 1.15: download - view: text, markup, annotated - select for diffs
Wed Jun 1 14:27:12 2005 UTC (21 years, 5 months ago) by markd
Branches: MAIN
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +10 -1 lines
OpenWindows imake installs manual pages to different locations than
where the XFree86/xorg ones do.

Revision 1.14: download - view: text, markup, annotated - select for diffs
Sun May 22 19:11:15 2005 UTC (21 years, 6 months ago) by jlam
Branches: MAIN
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +1 -80 lines
Remove the old tools framework and references to _USE_NEW_TOOLS.

Revision 1.7.2.3: download - view: text, markup, annotated - select for diffs
Tue May 17 18:29:46 2005 UTC (21 years, 6 months ago) by tv
Branches: tv-derecurse
CVS tags: tv-derecurse-eol
Diff to: previous 1.7.2.2: preferred, colored; branchpoint 1.7: preferred, colored
Changes since revision 1.7.2.2: +12 -11 lines
sync [all but bsd.pkg.mk] with HEAD

Revision 1.13: download - view: text, markup, annotated - select for diffs
Tue May 3 19:35:24 2005 UTC (21 years, 6 months ago) by jlam
Branches: MAIN
CVS tags: tv-derecurse-merge
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +1 -2 lines
Nuke stray GZIP definitions that I missed in a previous commit.

Revision 1.12: download - view: text, markup, annotated - select for diffs
Tue May 3 18:30:12 2005 UTC (21 years, 6 months ago) by jlam
Branches: MAIN
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +12 -9 lines
First pass at converting pkgsrc to use the new tools framework (still
not on by default).  Separate out the variable defintions that are
now made by the new tools framework.  Some of the trickier platforms
(AIX, IRIX, Interix, OSF1) still need more work.

Revision 1.11: download - view: text, markup, annotated - select for diffs
Tue May 3 15:10:59 2005 UTC (21 years, 6 months ago) by jlam
Branches: MAIN
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +1 -2 lines
Back out part of a change from revision 1.756 of bsd.pkg.mk.  It was
a mistake to include "GZIP" as an ${OPSYS}-specific variable as there
is nothing ${OPSYS}-specific there to tune.  Define GZIP in
defaults/mk.conf instead, and remove the definition from each of the
existing platform/${OPSYS}.mk files.

Revision 1.7.2.2: download - view: text, markup, annotated - select for diffs
Mon Mar 21 15:43:00 2005 UTC (21 years, 8 months ago) by tv
Branches: tv-derecurse
Diff to: previous 1.7.2.1: preferred, colored; branchpoint 1.7: preferred, colored
Changes since revision 1.7.2.1: +3 -5 lines
sync with HEAD

Revision 1.10: download - view: text, markup, annotated - select for diffs
Fri Mar 18 18:16:35 2005 UTC (21 years, 8 months ago) by tv
Branches: MAIN
CVS tags: tv-derecurse-base, pkgsrc-2005Q1-base, pkgsrc-2005Q1
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +3 -5 lines
Fix a gleaming illustration of why using YES/NO variables everywhere
possible, just for the sake of doing so, is not a good thing to do:

The platform files define _STRIPFLAG_* to determine whether to strip things.
But since this is included in bsd.prefs.mk, ".if ..." checks cannot take
things set in the Makefile into account.  So convert INSTALL_UNSTRIPPED=YES
to a defined/undefined variable check in bsd.pkg.mk, and use the :D:U idiom
in the _STRIPFLAG_* variables.

This should fix PR pkg/28772 and PR pkg/29031.

Revision 1.7.2.1: download - view: text, markup, annotated - select for diffs
Fri Feb 11 15:27:57 2005 UTC (21 years, 9 months ago) by tv
Branches: tv-derecurse
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +2 -5 lines
sync with HEAD

Revision 1.9: download - view: text, markup, annotated - select for diffs
Fri Jan 28 21:05:59 2005 UTC (21 years, 9 months ago) by jlam
Branches: MAIN
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +1 -2 lines
Don't make pkgsrc depend on dc(1) to be present in the system.  Since
we already use awk so pervasively in pkgsrc, simply use awk in place
of dc for simple computations.

Revision 1.8: download - view: text, markup, annotated - select for diffs
Tue Jan 25 18:15:58 2005 UTC (21 years, 9 months ago) by tv
Branches: MAIN
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +2 -4 lines
Relax need to put GNU_CONFIGURE before inclusion of bsd.prefs.mk:

Convert _OPSYS_MAX_CMDLEN to a plain _OPSYS_MAX_CMDLEN_CMD variable, which
is not evaluated by a shell until CONFIGURE_ENV is expanded (and only then
if USE_LIBTOOL+GNU_CONFIGURE are both set).

Revision 1.7: download - view: text, markup, annotated - select for diffs
Tue Nov 16 18:04:00 2004 UTC (22 years ago) by tv
Branches: MAIN
CVS tags: pkgsrc-2004Q4-base, pkgsrc-2004Q4
Branch point for: tv-derecurse
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +1 -1 lines
Revert previous (re-add common CPP_PRECOMP_FLAGS).  For consistency, also
move usage of _USER_DEPENDS and _OPSYS_MAX_CMDLEN to bsd.pkg.mk.

Revision 1.6: download - view: text, markup, annotated - select for diffs
Tue Nov 16 16:21:40 2004 UTC (22 years ago) by tv
Branches: MAIN
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +1 -2 lines
CPP_PRECOMP_FLAGS is a Darwinism only.  Move its frobbing of CPPFLAGS to
platform/Darwin.mk (simplification).

Revision 1.5: download - view: text, markup, annotated - select for diffs
Mon Nov 15 14:48:18 2004 UTC (22 years ago) by tv
Branches: MAIN
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +2 -2 lines
Set some _OPSYS_SHLIB_TYPE to precisely 'ELF' on platforms where a.out is
not being used by pkgsrc at all.  This saves some build time in
show-shlib-type.

Revision 1.4: download - view: text, markup, annotated - select for diffs
Wed Oct 13 15:31:31 2004 UTC (22 years, 1 month ago) by tv
Branches: MAIN
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +2 -2 lines
Make strip/no-strip choice more consistent:
Move check for INSTALL_UNSTRIPPED to the platform/*.mk files, alongside
existing check for DEBUG_FLAGS.

Revision 1.3: download - view: text, markup, annotated - select for diffs
Tue Oct 12 08:38:19 2004 UTC (22 years, 1 month ago) by uebayasi
Branches: MAIN
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +4 -4 lines
`ulimit' can't parse localized messages of "unlimited"; force `ulimit -H
...' to print out the C-locale message.  Problem reported by Hiroyuki
Nakaji.

Revision 1.2: download - view: text, markup, annotated - select for diffs
Thu Oct 7 02:01:39 2004 UTC (22 years, 1 month ago) by jlam
Branches: MAIN
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +2 -2 lines
* Make PKGSRC_TOPDIR a private variable by renaming it to _PKGSRC_TOPDIR,
  as it's only used internally by bsd.prefs.mk.

* Make _PKGSRCDIR a public variable by renaming it to PKGSRCDIR.
  Also, generate its value from ${_PKGSRC_TOPDIR} so it's less fragile
  than the old method of stripping off the last two components of
  ${.CURDIR}.  PKGSRCDIR may now be used after bsd.prefs.mk is defined.

* Change all references to _PKGSRCDIR to PKGSRCDIR.

Revision 1.1: download - view: text, markup, annotated - select for diffs
Wed Oct 6 20:51:47 2004 UTC (22 years, 1 month ago) by jlam
Branches: MAIN
Reorganize some of the files under pkgsrc/mk:

    (1) defs.${OPSYS}.mk --> platform/${OPSYS}.mk.

The "platform" subdirectory is where all of the ${OPSYS}-specific
infrastructure logic should reside.

    (2) bsd.pkg.defaults.mk --> defaults/mk.conf
        bsd.pkg.obsolete.mk --> defaults/obsolete.mk

Renaming bsd.pkg.defaults.mk to defaults/mk.conf is to mimic the way
that NetBSD has /etc/rc.conf as well as /etc/defaults/rc.conf, where
the latter is a full list of user-settable variables, and the two
files share the same name to reinforce the fact /etc/defaults/rc.conf
can be directly copied in place as /etc/rc.conf.  This is the same
relationship shared by defaults/mk.conf and /etc/mk.conf.

Diff request

This form allows you to request diffs between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.

Log view options

CVSweb <webmaster@jp.NetBSD.org>