The NetBSD Project

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

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

Request diff between arbitrary revisions


Keyword substitution: kv
Default branch: MAIN


Revision 1.90: download - view: text, markup, annotated - select for diffs
Mon Aug 24 21:40:17 2026 UTC (2 months, 3 weeks ago) by wiz
Branches: MAIN
CVS tags: pkgsrc-2026Q3-base, pkgsrc-2026Q3, HEAD
Diff to: previous 1.89: preferred, colored
Changes since revision 1.89: +4 -2 lines
mk: always set LC_CTYPE to a UTF-8 locale on NetBSD

This fixes extraction of tar files with UTF-8 names on -current.

See today's thread "Re: CVS commit: src/external/bsd/libarchive/dist/libarchive"
on tech-userlevel for details.

Revision 1.89: download - view: text, markup, annotated - select for diffs
Fri Jan 9 15:59:38 2026 UTC (10 months ago) by wiz
Branches: MAIN
CVS tags: pkgsrc-2026Q2-base, pkgsrc-2026Q2, pkgsrc-2026Q1-base, pkgsrc-2026Q1
Diff to: previous 1.88: preferred, colored
Changes since revision 1.88: +2 -10 lines
mk: unconditionally set _OPSYS_SHLIB_TYPE for NetBSD to ELF

True since about 2008. Saves a fork for every make(1) call in pkgsrc.

Found by jperkin.

Revision 1.88: download - view: text, markup, annotated - select for diffs
Sun May 11 09:15:32 2025 UTC (18 months ago) by nia
Branches: MAIN
CVS tags: pkgsrc-2025Q4-base, pkgsrc-2025Q4, pkgsrc-2025Q3-base, pkgsrc-2025Q3, pkgsrc-2025Q2-base, pkgsrc-2025Q2
Diff to: previous 1.87: preferred, colored
Changes since revision 1.87: +2 -1 lines
mk: Register support for RELRO on NetBSD/sparc64.

Revision 1.87: download - view: text, markup, annotated - select for diffs
Wed Apr 30 10:38:27 2025 UTC (18 months, 2 weeks ago) by nia
Branches: MAIN
Diff to: previous 1.86: preferred, colored
Changes since revision 1.86: +2 -1 lines
mk: accidentally dropped powerpc from conditional

Revision 1.86: download - view: text, markup, annotated - select for diffs
Wed Apr 30 03:33:50 2025 UTC (18 months, 2 weeks ago) by ryoon
Branches: MAIN
Diff to: previous 1.85: preferred, colored
Changes since revision 1.85: +2 -2 lines
mk: Close parentheses

Revision 1.85: download - view: text, markup, annotated - select for diffs
Tue Apr 29 22:23:20 2025 UTC (18 months, 2 weeks ago) by nia
Branches: MAIN
Diff to: previous 1.84: preferred, colored
Changes since revision 1.84: +3 -4 lines
mk: Register support for RELRO and SSP on NetBSD/mips.

Revision 1.84: download - view: text, markup, annotated - select for diffs
Sat Apr 12 08:41:11 2025 UTC (19 months ago) by nia
Branches: MAIN
Diff to: previous 1.83: preferred, colored
Changes since revision 1.83: +4 -1 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.83: download - view: text, markup, annotated - select for diffs
Sat Apr 12 08:36:35 2025 UTC (19 months ago) by nia
Branches: MAIN
Diff to: previous 1.82: preferred, colored
Changes since revision 1.82: +1 -2 lines
mk: Remove _OPSYS_HAS_OSSAUDIO, use oss.buildlink3.mk/OSS_TYPE

"please remove it" wiz@

Revision 1.82: 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.81: preferred, colored
Changes since revision 1.81: +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.81: download - view: text, markup, annotated - select for diffs
Fri Apr 12 19:58:22 2024 UTC (2 years, 7 months ago) by riastradh
Branches: MAIN
CVS tags: pkgsrc-2024Q4-base, pkgsrc-2024Q4, pkgsrc-2024Q3-base, pkgsrc-2024Q3, pkgsrc-2024Q2-base, pkgsrc-2024Q2
Diff to: previous 1.80: preferred, colored
Changes since revision 1.80: +13 -1 lines
mk/platform/NetBSD.mk: Handle i386-on-amd64 builds.

XXX This should be extended to other compat32-on-64bit builds, and
the wackier variations on that theme one finds in MIPS systems -- may
require spelunking through the ld emulation schemes in GNU binutils.

PR pkg/51400

Revision 1.80: download - view: text, markup, annotated - select for diffs
Fri Apr 12 19:56:40 2024 UTC (2 years, 7 months ago) by riastradh
Branches: MAIN
Diff to: previous 1.79: preferred, colored
Changes since revision 1.79: +6 -2 lines
mk/platform/NetBSD.mk: Make default cross-built PKG_TOOLS_BIN nicer.

`bootstrap --prefix /home/user/pkg' will create an mk.conf with
PKG_TOOLS_BIN=/home/user/pkg/sbin, but if you are using that
installation to cross-build packages, you likely want the default
cross-built PKG_TOOLS_BIN to be /usr/pkg/sbin just like the default
cross-built LOCALBASE is /usr/pkg.  This change implements that.

You can still override the cross-built PKG_TOOLS_BIN by setting
CROSS_PKG_TOOLS_BIN in mk.conf.

No change to native builds because the changed part is conditional on
USE_CROSS_COMPILE = yes.

Revision 1.79: 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.78: preferred, colored
Changes since revision 1.78: +6 -1 lines
mk/platform: Introduce a new OPSYS_HAS_POSIX_SPAWN variable.

Revision 1.78: download - view: text, markup, annotated - select for diffs
Thu Oct 5 16:31:51 2023 UTC (3 years, 1 month ago) by rhialto
Branches: MAIN
Diff to: previous 1.77: preferred, colored
Changes since revision 1.77: +4 -1 lines
NetBSD supports CTF if /usr/bin/ctfconvert exists.

Revision 1.77: download - view: text, markup, annotated - select for diffs
Wed Aug 16 08:07:01 2023 UTC (3 years, 3 months ago) by nia
Branches: MAIN
CVS tags: pkgsrc-2023Q3-base, pkgsrc-2023Q3
Diff to: previous 1.76: preferred, colored
Changes since revision 1.76: +7 -1 lines
mk: Define OPSYS_HAS_CIRCLEQ on NetBSD versions before 10

Revision 1.76: download - view: text, markup, annotated - select for diffs
Sun Jul 30 21:49:13 2023 UTC (3 years, 3 months ago) by ryoon
Branches: MAIN
Diff to: previous 1.75: preferred, colored
Changes since revision 1.75: +6 -1 lines
mk: Define OPSYS_HAVE_EPOLL for NetBSD

Revision 1.75: download - view: text, markup, annotated - select for diffs
Tue Jun 27 10:36:50 2023 UTC (3 years, 4 months ago) by riastradh
Branches: MAIN
Diff to: previous 1.74: preferred, colored
Changes since revision 1.74: +5 -5 lines
mk/platform/NetBSD.mk: Query OS characteristics in _CROSS_DESTDIR.

No change to native compilation.

Step on the way to cross-OS builds.

Revision 1.74: download - view: text, markup, annotated - select for diffs
Tue Jun 27 10:27:21 2023 UTC (3 years, 4 months ago) by riastradh
Branches: MAIN
Diff to: previous 1.73: preferred, colored
Changes since revision 1.73: +4 -3 lines
Split native and cross LOCALBASE for cross-compilation.

This way, you can use an unprivileged prefix of ~/cross/pkg to
cross-compile packages that, when installed, will go in /usr/pkg.

In mk.conf:

- Set CROSS_LOCALBASE to determine the installation prefix of
  packages that you cross-compile.

- Set LOCALBASE to determine the installation prefix of native
  packages needed for cross compilation.

Both default to /usr/pkg.  Note: CROSS_LOCALBASE defaults to /usr/pkg
even if you set LOCALBASE.  Of course, if you're not cross-compiling,
this has no effect.

When cross-compiling a package:

- LOCALBASE is where cross-compiled packages will be installed.

  (`make install' will put it in ${CROSS_DESTDIR}${LOCALBASE}, of
  course, but when you later use pkg_add to install the binary
  package on the system you're compiling it for, it will go in
  ${LOCALBASE}.  And you can still set PREFIX for an individual
  package, but LOCALBASE refers to where cross-compiled packages are
  generally installed, other than the specific ones that override
  PREFIX.)

- TOOLBASE is where tool dependencies are installed and available to
  be executed at build-time.

  For example, if you have TOOL_DEPENDS on a program that is
  installed in (say) foo/bin/xyz which is not in PATH so you have to
  refer ot its full pathname, you can execute ${TOOLBASE}/foo/bin/xyz
  instead of ${LOCALBASE}/foo/bin/xyz.

I chose this split, rather than the other way around, because I
expect that references that are baked into installed packages to be
more common than references that are executed at build-time, but I
didn't do an extensive study of the matter.  I chose the name
TOOLBASE because it's where TOOL_DEPENDS go.

Revision 1.73: 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
CVS tags: pkgsrc-2023Q2-base, pkgsrc-2023Q2, pkgsrc-2023Q1-base, pkgsrc-2023Q1, pkgsrc-2022Q4-base, pkgsrc-2022Q4
Diff to: previous 1.72: preferred, colored
Changes since revision 1.72: +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.72: download - view: text, markup, annotated - select for diffs
Sat May 21 07:37:39 2022 UTC (4 years, 5 months ago) by nia
Branches: MAIN
CVS tags: pkgsrc-2022Q3-base, pkgsrc-2022Q3, pkgsrc-2022Q2-base, pkgsrc-2022Q2
Diff to: previous 1.71: preferred, colored
Changes since revision 1.71: +5 -1 lines
mk: set EXTRACT_ENV on NetBSD<9, seen on tech-pkg

Revision 1.71: download - view: text, markup, annotated - select for diffs
Thu Mar 3 07:30:06 2022 UTC (4 years, 8 months ago) by nia
Branches: MAIN
CVS tags: pkgsrc-2022Q1-base, pkgsrc-2022Q1
Diff to: previous 1.70: preferred, colored
Changes since revision 1.70: +7 -1 lines
mk/platform: Add a variable for detectic static PIE support.

Revision 1.70: 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-2021Q4-base, pkgsrc-2021Q4
Diff to: previous 1.69: preferred, colored
Changes since revision 1.69: +3 -4 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.69: download - view: text, markup, annotated - select for diffs
Tue Nov 9 12:04:43 2021 UTC (5 years ago) by nia
Branches: MAIN
Diff to: previous 1.68: preferred, colored
Changes since revision 1.68: +4 -4 lines
mk: For consistency, rename PKG_HAS_ to OPSYS_HAVE_.

Requested by jperkin.

Revision 1.68: download - view: text, markup, annotated - select for diffs
Tue Nov 9 11:05:07 2021 UTC (5 years ago) by nia
Branches: MAIN
Diff to: previous 1.67: preferred, colored
Changes since revision 1.67: +11 -1 lines
mk: Create per-platform PKG_HAVE_EVENTFD and PKG_HAVE_TIMERFD variables.

Revision 1.67: download - view: text, markup, annotated - select for diffs
Tue Oct 12 07:48:53 2021 UTC (5 years, 1 month ago) by nia
Branches: MAIN
Diff to: previous 1.66: preferred, colored
Changes since revision 1.66: +3 -2 lines
mk: Register support for RELRO on NetBSD/powerpc. Tested on macppc.

Revision 1.66: download - view: text, markup, annotated - select for diffs
Mon Sep 27 16:13:26 2021 UTC (5 years, 1 month ago) by nia
Branches: MAIN
Diff to: previous 1.65: preferred, colored
Changes since revision 1.65: +6 -2 lines
mk: Register support for MKPIE on more NetBSD archs, syncing with
/usr/share/mk

Revision 1.65: download - view: text, markup, annotated - select for diffs
Sun Apr 25 07:51:25 2021 UTC (5 years, 6 months ago) by mrg
Branches: MAIN
CVS tags: pkgsrc-2021Q3-base, pkgsrc-2021Q3, pkgsrc-2021Q2-base, pkgsrc-2021Q2
Diff to: previous 1.64: preferred, colored
Changes since revision 1.64: +5 -3 lines
various fixes for arm64 big endian support.

most of these simply extend matching from "aarch64" to "aarch64eb"
in various forms of code.  most remaining uses in pkgsrc of
"MACHINE_ARCH == aarch64" are because of missing aarch64eb support,
such as most of the binary-bootstrap requiring languages like rust,
go, and java.

no pkg-bump because this shouldn't change packages on systems that
could already build all of these.

Revision 1.64: download - view: text, markup, annotated - select for diffs
Sun Dec 20 20:22:17 2020 UTC (5 years, 10 months ago) by maya
Branches: MAIN
CVS tags: pkgsrc-2021Q1-base, pkgsrc-2021Q1, pkgsrc-2020Q4-base, pkgsrc-2020Q4
Diff to: previous 1.63: preferred, colored
Changes since revision 1.63: +2 -2 lines
Fix error, pointed out by jperkin, thanks

Revision 1.63: download - view: text, markup, annotated - select for diffs
Sun Dec 20 19:44:16 2020 UTC (5 years, 10 months ago) by maya
Branches: MAIN
Diff to: previous 1.62: preferred, colored
Changes since revision 1.62: +2 -4 lines
Simplify check, trust the user's PKGDB_DIR instead of second guessing it.
Fixes bootstrapping a second prefix with /var/db/pkg existing.

In a bootstrap scenario, PKGDB_DIR is defined, so this should just work.

Revision 1.62: download - view: text, markup, annotated - select for diffs
Fri Dec 18 17:14:58 2020 UTC (5 years, 10 months ago) by maya
Branches: MAIN
Diff to: previous 1.61: preferred, colored
Changes since revision 1.61: +9 -1 lines
Move the pkgdb compatibility error to a NetBSD-specific file to avoid
breakage for users who have other package managers that use /var/db/pkg
(Reported by Frederic Cambus on FreeBSD, OpenBSD)

Adjust warning: specifying PKGDB_DIR in mk.conf should be sufficient
for building packages for the compatibility pkgdb location.

This is still an error message, because:
- While we can handle the existing references of PKGDB_DIR, new ones
might be created.
- It is a minor inconvenience to people building packages from source.

Revision 1.61: download - view: text, markup, annotated - select for diffs
Mon Dec 14 21:45:43 2020 UTC (5 years, 11 months ago) by js
Branches: MAIN
Diff to: previous 1.60: preferred, colored
Changes since revision 1.60: +5 -3 lines
Allow PIE and RELRO on aarch64

I already compiled plenty of packages on my Pinebook Pro with both PIE and
RELRO enabled and have yet to see a build failure.

Revision 1.60: download - view: text, markup, annotated - select for diffs
Sun Mar 22 21:17:30 2020 UTC (6 years, 7 months ago) by joerg
Branches: MAIN
CVS tags: pkgsrc-2020Q3-base, pkgsrc-2020Q3, pkgsrc-2020Q2-base, pkgsrc-2020Q2, pkgsrc-2020Q1-base, pkgsrc-2020Q1
Diff to: previous 1.59: preferred, colored
Changes since revision 1.59: +6 -5 lines
Add a ulimit flag for address space limits. Support it on NetBSD for
now.

Revision 1.59: download - view: text, markup, annotated - select for diffs
Thu Mar 12 17:01:39 2020 UTC (6 years, 8 months ago) by gdt
Branches: MAIN
Diff to: previous 1.58: preferred, colored
Changes since revision 1.58: +4 -1 lines
mk/platform/NetBSD.mk: Default to bsdtar

Native tar on NetBSD <=8 (and later, if MKBSDTAR is no) does not
handle archive formats increasingly being seen in pkgsrc.  bsdtar
("libarchive tar") does, and is natively provided on NetBSD >=9.

pkgsrc already has a mechanism to use /bin/tar as the bsdtar tool when
it is bsdtar, so this change should not cause anything different on
NetBSD >= 9.   On <=8, it will depend on archivers/bsdtar, which can
be built without using an extract tool, and which will then be broadly
usable.

As broadly discussed over multiple days on tech-pkg.

Revision 1.58: download - view: text, markup, annotated - select for diffs
Wed Jan 9 13:19:03 2019 UTC (7 years, 10 months ago) by wiz
Branches: MAIN
CVS tags: pkgsrc-2019Q4-base, pkgsrc-2019Q4, pkgsrc-2019Q3-base, pkgsrc-2019Q3, pkgsrc-2019Q2-base, pkgsrc-2019Q2, pkgsrc-2019Q1-base, pkgsrc-2019Q1
Diff to: previous 1.57: preferred, colored
Changes since revision 1.57: +2 -2 lines
Add RELRO support for clang, based on the gcc logic.

Revision 1.57: download - view: text, markup, annotated - select for diffs
Sun Nov 12 13:34:14 2017 UTC (9 years ago) by khorben
Branches: MAIN
CVS tags: pkgsrc-2018Q4-base, pkgsrc-2018Q4, pkgsrc-2018Q3-base, pkgsrc-2018Q3, pkgsrc-2018Q2-base, pkgsrc-2018Q2, pkgsrc-2018Q1-base, pkgsrc-2018Q1, pkgsrc-2017Q4-base, pkgsrc-2017Q4
Diff to: previous 1.56: preferred, colored
Changes since revision 1.56: +4 -1 lines
Add initial support for building packages reproducibly

It currently tackles two problems:
- gcc(1) hard-coding full paths in debugging information (with one
  caveat at the moment)
- ar(1) hard-coding user IDs in archive headers

This allows packages built from the same tree and options to produce
identical results bit by bit. This option should be combined with ASLR
and PKGSRC_MKPIE to avoid predictable address offsets for attackers
attempting to exploit security vulnerabilities.

This is still disabled by default, and only supports NetBSD so far.

As discussed on tech-pkg@

Revision 1.56: download - view: text, markup, annotated - select for diffs
Tue Oct 3 13:18:00 2017 UTC (9 years, 1 month ago) by jperkin
Branches: MAIN
Diff to: previous 1.55: preferred, colored
Changes since revision 1.55: +2 -1 lines
mk: Disable SSP checks on systems where it is provided in libc.

The currently implementation of SSP checks simply look for a DT_NEEDED
dependency on libssp, and doesn't yet have a way to check for it being
enabled when it is done via libc.

Revision 1.55: download - view: text, markup, annotated - select for diffs
Mon Aug 7 23:54:09 2017 UTC (9 years, 3 months ago) by maya
Branches: MAIN
CVS tags: pkgsrc-2017Q3-base, pkgsrc-2017Q3
Diff to: previous 1.54: preferred, colored
Changes since revision 1.54: +1 -7 lines
Remove hack working around NetBSD 1.5's specfiles.

Revision 1.54: download - view: text, markup, annotated - select for diffs
Mon Aug 7 23:44:53 2017 UTC (9 years, 3 months ago) by maya
Branches: MAIN
Diff to: previous 1.53: preferred, colored
Changes since revision 1.53: +6 -1 lines
Disable fortify on netbsd<6.

This appears to be causing issues with pkgsrc GCC attempting to insert
builtins it does not have, because we don't build libssp. unbreaks icu build.

there may be more problems from this issue in the future, but netbsd-7 is
better tested now.

Revision 1.53: download - view: text, markup, annotated - select for diffs
Mon Jul 24 08:19:08 2017 UTC (9 years, 3 months ago) by maya
Branches: MAIN
Diff to: previous 1.52: preferred, colored
Changes since revision 1.52: +3 -6 lines
Don't bother with a version check for alpha cflags

Revision 1.52: download - view: text, markup, annotated - select for diffs
Sun Jul 9 14:30:07 2017 UTC (9 years, 4 months ago) by khorben
Branches: MAIN
Diff to: previous 1.51: preferred, colored
Changes since revision 1.51: +7 -1 lines
Register support for PKGSRC_USE_STACK_CHECK

This adds -fstack-check to the CFLAGS (with GCC on NetBSD x86). Only
tested on NetBSD/amd64 so far.

Disabled by default.

Revision 1.51: download - view: text, markup, annotated - select for diffs
Tue Jul 4 18:29:24 2017 UTC (9 years, 4 months ago) by khorben
Branches: MAIN
Diff to: previous 1.50: preferred, colored
Changes since revision 1.50: +4 -2 lines
Implement a check for RELRO

This is only performed if PKG_DEVELOPER and RELRO are in use.

After a suggestion during my talk at BSDCan 2017; thanks!
Also, submitted on tech-pkg@ for review mid-June.

As a next step, it seems this can be extended to libraries, just like the
check for SHLIBS does (from which this is inspired).

Revision 1.50: download - view: text, markup, annotated - select for diffs
Wed May 31 22:55:01 2017 UTC (9 years, 5 months ago) by jlam
Branches: MAIN
CVS tags: pkgsrc-2017Q2-base, pkgsrc-2017Q2
Diff to: previous 1.49: preferred, colored
Changes since revision 1.49: +10 -2 lines
Move detection of shared library type into the platform file.

Only four platforms, all BSDs, need to resolve "ELF/a.out" into
either ELF or a.out.  Calculate it directly in the platform file
and return the value in ${_OPSYS_SHLIB_TYPE} and export that value
in bsd.prefs.mk as ${SHLIB_TYPE}.

Instead of requiring the file(1) tool, we can expect the base
system of those BSDs to have /usr/bin/file, so make use of it
directly.

Revision 1.49: download - view: text, markup, annotated - select for diffs
Thu Oct 27 12:29:17 2016 UTC (10 years ago) by wiz
Branches: MAIN
CVS tags: pkgsrc-2017Q1-base, pkgsrc-2017Q1, pkgsrc-2016Q4-base, pkgsrc-2016Q4
Diff to: previous 1.48: preferred, colored
Changes since revision 1.48: +3 -1 lines
Enable cwrappers by default on NetBSD.

Revision 1.48: 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-2016Q3-base, pkgsrc-2016Q3, pkgsrc-2016Q2-base, pkgsrc-2016Q2, pkgsrc-2016Q1-base, pkgsrc-2016Q1
Diff to: previous 1.47: preferred, colored
Changes since revision 1.47: +2 -10 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.47: 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.46: preferred, colored
Changes since revision 1.46: +30 -14 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.46: 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.45: preferred, colored
Changes since revision 1.45: +1 -6 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.45: download - view: text, markup, annotated - select for diffs
Mon Aug 10 21:44:34 2015 UTC (11 years, 3 months ago) by khorben
Branches: MAIN
CVS tags: pkgsrc-2015Q4-base, pkgsrc-2015Q4, pkgsrc-2015Q3-base, pkgsrc-2015Q3
Diff to: previous 1.44: preferred, colored
Changes since revision 1.44: +6 -1 lines
Add support for building with fortify

This is pretty much the same change as with SSP, and completes it with
support for fortify (like USE_FORT in NetBSD's base system). Like SSP, this
is disabled by default for the moment. Like in NetBSD's base system,
enabling fortify explicitly also enables SSP by default - but SSP can still
be disabled explicitly in this situation.

All four combinations tested on NetBSD/amd64.

Revision 1.44: download - view: text, markup, annotated - select for diffs
Mon Jul 27 23:37:38 2015 UTC (11 years, 3 months ago) by khorben
Branches: MAIN
Diff to: previous 1.43: preferred, colored
Changes since revision 1.43: +3 -3 lines
More efficient check if SSP is enabled

With this change, the check if the current architecture is supported is
only performed if SSP is enabled in the first place. This should not
change the current behavior; tested on NetBSD/amd64.

Suggested by wiz@

Revision 1.43: download - view: text, markup, annotated - select for diffs
Sun Jul 26 22:13:17 2015 UTC (11 years, 3 months ago) by khorben
Branches: MAIN
Diff to: previous 1.42: preferred, colored
Changes since revision 1.42: +11 -1 lines
Add support for compiling with stack-smashing protection

This is enabled with PKGSRC_USE_SSP in mk.conf(5), as documented there.
Most NetBSD platforms are supported (when compiling with gcc).

After consensus on tech-pkg@.

Revision 1.42: download - view: text, markup, annotated - select for diffs
Tue May 26 10:08:37 2015 UTC (11 years, 5 months ago) by joerg
Branches: MAIN
CVS tags: pkgsrc-2015Q2-base, pkgsrc-2015Q2
Diff to: previous 1.41: preferred, colored
Changes since revision 1.41: +1 -7 lines
Let's unconditionally depend on useradd on NetBSD. It has been in base
since 1.4 at least.

Revision 1.41: download - view: text, markup, annotated - select for diffs
Tue Apr 21 17:01:56 2015 UTC (11 years, 6 months ago) by joerg
Branches: MAIN
Diff to: previous 1.40: preferred, colored
Changes since revision 1.40: +2 -1 lines
Add a new ulimit modifier for cputime. Support raising limits for
package creation.

There are very few things in pkgsrc that needs more than one hour per
process on decently fast hardware, so setting that as (soft) limit for
bulk builds avoids the infinite loops seen in some other packages. There
are a few select exceptions, i.e. flightgear-data needs more than one
hour for pkg_create when using xz. This flag allows selectively giving
those places more time without wasting resources in the broken cases.

Revision 1.40: download - view: text, markup, annotated - select for diffs
Tue Sep 2 16:13:27 2014 UTC (12 years, 2 months ago) by gdt
Branches: MAIN
CVS tags: pkgsrc-2015Q1-base, pkgsrc-2015Q1, pkgsrc-2014Q4-base, pkgsrc-2014Q4, pkgsrc-2014Q3-base, pkgsrc-2014Q3
Diff to: previous 1.39: preferred, colored
Changes since revision 1.39: +4 -2 lines
Default to X11_TYPE=modular on netbsd-5.

Base xsrc on netbsd-5 has not really worked with pkgsrc for a while,
because various programs need newer versions of various X pieces.  The
2014Q2 official bulk builds are missing about 1500 packages as a
result of this.  Therefore, switch to modular on netbsd-5 (as netbsd-4
has been for a very long time), which should result in more useful
binary packages for netbsd-5 for 2014Q3.

(There is a notion of updating netbsd-5 base xsrc to more modern xorg.
If that happens, and there's a 5.x formal release, and builds show
that pkgsrc with native succeeds on it, this can perhaps be flipped
back.  Odds are that's not going to happen, and it's overwhelmingly
unlikely to happen soon.)

Anyone who prefers to stay with native can set X11_TYPE=native in
mk.conf.

Note that this is about pkgsrc and specifically the default
dependencies for pkgsrc programs that use X11, so the native servers
are unaffected and can be run from /usr/X11R7, the same as they are
now, without any changes being necessary.  (This message is in fact
being typed on a system with a native server, native xterm and modular
libs for pkgsrc.)

Discussed on tech-pkg, tech-x11 multiple times over the last 6 months
or so, and specifically encouraged by wiz@.

Revision 1.39: 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
CVS tags: pkgsrc-2014Q2-base, pkgsrc-2014Q2, pkgsrc-2014Q1-base, pkgsrc-2014Q1, pkgsrc-2013Q4-base, pkgsrc-2013Q4, pkgsrc-2013Q3-base, pkgsrc-2013Q3, pkgsrc-2013Q2-base, pkgsrc-2013Q2
Diff to: previous 1.38: preferred, colored
Changes since revision 1.38: +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.38: 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
CVS tags: pkgsrc-2013Q1-base, pkgsrc-2013Q1, pkgsrc-2012Q4-base, pkgsrc-2012Q4
Diff to: previous 1.37: preferred, colored
Changes since revision 1.37: +2 -2 lines
Make MOTIF_TYPE_DEFAULT as motif (LGPL Motif) instead of openmotif or lesstif.
No objection on tech-pkg@.

Revision 1.37: 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-2012Q3-base, pkgsrc-2012Q3, pkgsrc-2012Q2-base, pkgsrc-2012Q2, pkgsrc-2012Q1-base, pkgsrc-2012Q1
Diff to: previous 1.36: preferred, colored
Changes since revision 1.36: +1 -19 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.36: download - view: text, markup, annotated - select for diffs
Tue Feb 28 19:35:58 2012 UTC (14 years, 8 months ago) by tron
Branches: MAIN
Diff to: previous 1.35: preferred, colored
Changes since revision 1.35: +2 -2 lines
Fix comment about NetBSD X11: the default for NetBSD 4 is now "modular".

Revision 1.35: download - view: text, markup, annotated - select for diffs
Sun Sep 18 12:42:23 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.34: preferred, colored
Changes since revision 1.34: +2 -2 lines
switch NetBSD-4 and AIX to default to modular X11_TYPE

Revision 1.34: 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
Diff to: previous 1.33: preferred, colored
Changes since revision 1.33: +6 -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.33: 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.32: preferred, colored
Changes since revision 1.32: +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.32: 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-2010Q2-base, pkgsrc-2010Q2, pkgsrc-2010Q1-base, pkgsrc-2010Q1, pkgsrc-2009Q4-base, pkgsrc-2009Q4, pkgsrc-2009Q3-base, pkgsrc-2009Q3
Diff to: previous 1.31: preferred, colored
Changes since revision 1.31: +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.30.6.1: download - view: text, markup, annotated - select for diffs
Sat Aug 30 10:40:00 2008 UTC (18 years, 2 months ago) by tron
Branches: pkgsrc-2008Q2
Diff to: previous 1.30: preferred, colored; next MAIN 1.31: preferred, colored
Changes since revision 1.30: +2 -2 lines
Pullup ticket #2509 - requested by joerg
mk/platform/NetBSD.mk: portability fix

Revisions pulled up:
- mk/platform/NetBSD.mk	1.31
---
Module Name:	pkgsrc
Committed By:	joerg
Date:		Sun Aug 10 17:40:00 UTC 2008

Modified Files:
	pkgsrc/mk/platform: NetBSD.mk

Log Message:
Use patch --suffix instead of -b, the latter will be problematic when
PR  11220 gets addressed.

Revision 1.31: download - view: text, markup, annotated - select for diffs
Sun Aug 10 17:40:00 2008 UTC (18 years, 3 months ago) by joerg
Branches: MAIN
CVS tags: pkgsrc-2009Q2-base, pkgsrc-2009Q2, pkgsrc-2009Q1-base, pkgsrc-2009Q1, pkgsrc-2008Q4-base, pkgsrc-2008Q4, pkgsrc-2008Q3-base, pkgsrc-2008Q3, cube-native-xorg-base, cube-native-xorg
Diff to: previous 1.30: preferred, colored
Changes since revision 1.30: +2 -2 lines
Use patch --suffix instead of -b, the latter will be problematic when
PR  11220 gets addressed.

Revision 1.30: download - view: text, markup, annotated - select for diffs
Thu Apr 3 14:07:51 2008 UTC (18 years, 7 months ago) by joerg
Branches: MAIN
CVS tags: pkgsrc-2008Q2-base, pkgsrc-2008Q1-base, pkgsrc-2008Q1, cwrapper
Branch point for: pkgsrc-2008Q2
Diff to: previous 1.29: preferred, colored
Changes since revision 1.29: +4 -6 lines
Move handling of pkg_install version into flavor. Add an explicit
phase pkg_install-depends before bootstrap-depends that just tries to
install a new pkg_install if the current version is too old. Still
keep it as bootstrap dependency for the bulk build code.
For NetBSD, PKG_TOOLS_BIN has to be computed in shell code due to a make
bug.

OK: jlam@

Revision 1.29: 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
Diff to: previous 1.28: preferred, colored
Changes since revision 1.28: +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.28: download - view: text, markup, annotated - select for diffs
Wed Jan 16 14:03:31 2008 UTC (18 years, 10 months ago) by joerg
Branches: MAIN
Diff to: previous 1.27: preferred, colored
Changes since revision 1.27: +3 -1 lines
Make the default rpath for USE_CHECK_SHLIBS_ELF a platform variable.
Define the values for NetBSD and DragonFly.

Revision 1.27: 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
CVS tags: pkgsrc-2007Q4-base, pkgsrc-2007Q4
Diff to: previous 1.26: preferred, colored
Changes since revision 1.26: +13 -3 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.26: 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.25: preferred, colored
Changes since revision 1.25: +4 -14 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.25: download - view: text, markup, annotated - select for diffs
Tue Aug 21 22:49:33 2007 UTC (19 years, 3 months ago) by jlam
Branches: MAIN
CVS tags: pkgsrc-2007Q3-base, pkgsrc-2007Q3
Diff to: previous 1.24: preferred, colored
Changes since revision 1.24: +4 -1 lines
* Support netbsd-* as a valid platform in EMUL_PLATFORMS.  Use the
  pkgsrc/emulator/compat* and pkgsrc/emulator/netbsd32_compat* packages
  to provide the necessary shared libraries to run dynamically linked
  NetBSD binaries from the days of yore.

* Add some additional compat* packages for completeness:

	compat15, compat20, compat30

* Modify the compat* packages so that "compatNM" only provides files
  that aren't in "NetBSD-N.(M+1)".  For example, compat12 only provides
  files that don't exist in NetBSD-1.3.x, compat13 only provides files
  that don't exist in NetBSD-1.4.x, etc.

  As a result, if you are running NetBSD-3.0/alpha and want to run a
  1.3 dynamically linked binary, there is an automatic dependency
  chain that causes the following packages to be installed:

	compat13, compat14, compat15, compat16, compat20

  There are some deviations from this dependency chain on platforms
  that have changed executable formats, e.g. i386, m68, sparc, etc.
  However, in general pkgsrc will require that you have the necessary
  COMPAT_* options in your kernel to match the installed compat*
  packages.  This restriction is an artificial one imposed by pkgsrc,
  but allows for a single set of distfiles to be used on all versions
  of NetBSD.

* Provide compat* package support for every supported architecture
  of NetBSD.  Verily, it is now possible to run 1.2 binaries on
  NetBSD-1.5.3/pc532 by installing the compat12 package from pkgsrc.
  Rejoice, one and all!

* The netbsd32_compat* packages mirror the corresponding compat*
  packages for use by sparc64 and x86_64 to allow running 32-bit
  binaries with COMPAT_NETBSD32 kernel support.  The "extras" packages
  supply the additional shared libraries from the corresponding release
  of NetBSD so that the set of files in /emul/netbsd32 will be complete.

* pkgsrc/emulators/compat_netbsd contains infrastructure files shared
  by all of the compat* packages.

Revision 1.24: download - view: text, markup, annotated - select for diffs
Wed Aug 1 15:17:56 2007 UTC (19 years, 3 months ago) by jlam
Branches: MAIN
Diff to: previous 1.23: preferred, colored
Changes since revision 1.23: +2 -1 lines
Note the proper /emul/* dir for Darwin libraries.

Revision 1.23: 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
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +11 -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.22: download - view: text, markup, annotated - select for diffs
Mon Jul 2 14:03:40 2007 UTC (19 years, 4 months ago) by joerg
Branches: MAIN
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +1 -2 lines
Remove RSH definition.

Revision 1.21: 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-2007Q2-base, pkgsrc-2007Q2, pkgsrc-2007Q1-base, pkgsrc-2007Q1, pkgsrc-2006Q4-base, pkgsrc-2006Q4, pkgsrc-2006Q3-base, pkgsrc-2006Q3, jlam-pkgviews-base, jlam-pkgviews
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +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.5.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.5.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.20: 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.19: preferred, colored
Changes since revision 1.19: +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.19: 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.18: preferred, colored
Changes since revision 1.18: +1 -9 lines
Remove leftover code sections guarded by _USE_PLIST_MODULE which was
mainlined long ago.

Revision 1.18: 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.17: preferred, colored
Changes since revision 1.17: +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.17: 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.16: preferred, colored
Changes since revision 1.16: +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.16: 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
CVS tags: pkgsrc-2005Q3-base, pkgsrc-2005Q3
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +3 -3 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.15: 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
CVS tags: pkgsrc-2005Q2-base, pkgsrc-2005Q2
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +2 -2 lines
Turn IMAKE_MAKE into a public variable that may be set via /etc/mk.conf.

Revision 1.14: download - view: text, markup, annotated - select for diffs
Wed Jun 1 14:23:07 2005 UTC (21 years, 5 months ago) by markd
Branches: MAIN
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +4 -4 lines
On NetBSD, OpenBSD and BSDOS imake always installs man/catN pages with
a "0" suffix.

Revision 1.13: 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.12: preferred, colored
Changes since revision 1.12: +1 -73 lines
Remove the old tools framework and references to _USE_NEW_TOOLS.

Revision 1.5.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.5.2.2: preferred, colored; branchpoint 1.5: preferred, colored
Changes since revision 1.5.2.2: +18 -13 lines
sync [all but bsd.pkg.mk] with HEAD

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
CVS tags: tv-derecurse-merge
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +14 -11 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.10: download - view: text, markup, annotated - select for diffs
Tue Mar 22 19:15:04 2005 UTC (21 years, 8 months ago) by tron
Branches: MAIN
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +5 -1 lines
Several NetBSD ports (e.g. sparc64) don't have "/sbin/ldconfig". So check
whether it exists and use "true" otherwise.

Revision 1.9: download - view: text, markup, annotated - select for diffs
Tue Mar 22 15:40:06 2005 UTC (21 years, 8 months ago) by tv
Branches: MAIN
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +1 -2 lines
Bump LIBTOOL_REQD to 1.5.14; this unifies all the support again and fixes
a good number of bugs.

Revision 1.5.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.5.2.1: preferred, colored; branchpoint 1.5: preferred, colored
Changes since revision 1.5.2.1: +3 -5 lines
sync with HEAD

Revision 1.8: 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.7: preferred, colored
Changes since revision 1.7: +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.5.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.5: preferred, colored
Changes since revision 1.5: +2 -5 lines
sync with HEAD

Revision 1.7: 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.6: preferred, colored
Changes since revision 1.6: +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.6: 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.5: preferred, colored
Changes since revision 1.5: +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.5: 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.4: preferred, colored
Changes since revision 1.4: +1 -3 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.4: 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.3: preferred, colored
Changes since revision 1.3: +1 -2 lines
CPP_PRECOMP_FLAGS is a Darwinism only.  Move its frobbing of CPPFLAGS to
platform/Darwin.mk (simplification).

Revision 1.3: download - view: text, markup, annotated - select for diffs
Thu Nov 11 22:29:40 2004 UTC (22 years ago) by tv
Branches: MAIN
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +2 -1 lines
NetBSD now needs libtool-base-1.5.10nb6.

Revision 1.2: 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.1: preferred, colored
Changes since revision 1.1: +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.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>