Commit Graph

2603 Commits

Author SHA1 Message Date
mrg 73c4e30a68 GCC 5.3 now lives in gcc.old.
add Xfont2 to X11 list.
2017-07-23 20:45:31 +00:00
joerg 1f166bfee9 Build PIC libs on MIPS and PPC64. While the normal calling convention is
position-independent, real PIC defaults to Global Dynamic as TLS model,
while non-PIC and PIE code can use more restrictive models like Initial
Exec. This is most visible with the thread_local destructor code now
using TLS in libc as it would be clobbered by any other shared library
with TLS due to static offset assignment by ld.
2017-07-18 14:36:43 +00:00
jmcneill 2be84737fc Latest mandoc no longer supports multiple -O options. Instead it expects
option values to be separated by commas. PR toolchain/52402
2017-07-14 17:30:31 +00:00
christos 3634c48306 add MKDTC 2017-06-05 23:41:52 +00:00
christos 703982a7f9 remove ugly profiling hack now that the compiler is fixed. 2017-05-29 03:52:43 +00:00
christos b71afc21c9 XXX: Remove -fPIE for profiled libraries because this breaks relocations for
the call to __mcount.
2017-05-23 00:54:13 +00:00
riastradh ef315f7931 Remove MKCRYPTO option.
Originally, MKCRYPTO was introduced because the United States
classified cryptography as a munition and restricted its export.  The
export controls were substantially relaxed fifteen years ago, and are
essentially irrelevant for software with published source code.

In the intervening time, nobody bothered to remove the option after
its motivation -- the US export restriction -- was eliminated.  I'm
not aware of any other operating system that has a similar option; I
expect it is mainly out of apathy for churn that we still have it.
Today, cryptography is an essential part of modern computing -- you
can't use the internet responsibly without cryptography.

The position of the TNF board of directors is that TNF makes no
representation that MKCRYPTO=no satisfies any country's cryptography
regulations.

My personal position is that the availability of cryptography is a
basic human right; that any local laws restricting it to a privileged
few are fundamentally immoral; and that it is wrong for developers to
spend effort crippling cryptography to work around such laws.

As proposed on tech-crypto, tech-security, and tech-userlevel to no
objections:

https://mail-index.netbsd.org/tech-crypto/2017/05/06/msg000719.html
https://mail-index.netbsd.org/tech-security/2017/05/06/msg000928.html
https://mail-index.netbsd.org/tech-userlevel/2017/05/06/msg010547.html

P.S.  Reviewing all the uses of MKCRYPTO in src revealed a lot of
*bad* crypto that was conditional on it, e.g. DES in telnet...  That
should probably be removed too, but on the grounds that it is bad,
not on the grounds that it is (nominally) crypto.
2017-05-21 15:28:36 +00:00
riastradh 1fa400f7fa Remove some vestiges of MKCRYPTO_IDEA/MKCRYPTO_MDC2. 2017-05-21 14:24:05 +00:00
riastradh 09956316a6 Remove MKCRYPTO_RC5. Unconditionally include RC5 in libcrypto.so.
This option existed only because RC5 is covered by patents that, twenty
years ago, we had reason to suspect the patent holder, RSA, Inc., might
litigate.  The two US patents in question are 5,724,428 and 5,835,600.

According to the USPTO Patent Term Calculator web site at
<https://www.uspto.gov/patent/laws-and-regulations/patent-term-calculator#heading-5>
(retrieved 2017-05-21), patents filed after 1995-06-07 expire twenty
years after the filing date.

number          filing date
5,724,428       1995-11-01
5,835,600       1997-04-21

Thus, these patents appear to be expired.

As proposed on tech-crypto and tech-security:

https://mail-index.netbsd.org/tech-crypto/2017/05/05/msg000718.html
https://mail-index.netbsd.org/tech-security/2017/05/05/msg000927.html
2017-05-21 14:20:44 +00:00
chs 4da28eb39f fix another parallel-build race with MKDEBUG=yes by creating the .so.link
with a temporary name and renaming to the final name only after
the file is fully written.
2017-04-24 17:09:37 +00:00
ozaki-r 1300188462 Introduce MKSTRIPSYM build option
If it's yes, all local symbols of shared libraries are stripped
(default). If it's no, only temporary local symbols are stripped;
for example, symbols of static functions are kept. Keeping such
symbols is useful on using DTrace for userland libraries and
getting a backtrace from a rump server loading modules (shared
libraries).

Proposed and discussed on tech-kern and tech-toolchain
2017-04-20 09:29:10 +00:00
joerg 6a14b8a272 Add netpgpverify to the library list. 2017-04-19 23:41:00 +00:00
chs 7e30e94394 provide a common softfloat fenv implemenation and use it for softfloat builds.
restore ABI compatibility with previous releases for ieeefp.h on sh3.
add namespace.h protection for all the fenv interfaces.
use MKSOFTFLOAT on sh3 instead of assuming softfloat.
standardize on comparing MKSOFTFLOAT with "no".
remove the arm-specific softfloat fenv code (which also had several bugs).
fix logic errors in the arm hardfloat feraiseexcept() and feupdateenv().
2017-03-22 23:11:07 +00:00
rin 0b097c4bf6 add missing LIBCXX 2017-02-20 16:05:34 +00:00
snj 1e51c718db prune duplicate xkeyboard-config and xkbcomp 2017-02-13 16:33:14 +00:00
christos a4f2a376eb add MKDIRPERM 2017-02-10 16:46:55 +00:00
christos 609217c32d Add MKDIRMODE 2017-02-10 16:44:55 +00:00
kamil 0892a29a1a libpthread_dbg(3) deletion from the base distribution
libpthread_dbg(3) is a remnant library from the M:N thread model
(pre-NetBSD-5.0) API to introspect threads within a process and for use
of debuggers.

Currently in the 1:1 model it's not used in GDB neither in LLDB and it's
not either planned to be used. It's current function to read pthread_t
structures is realizable within a regular debugger capable to
instrospect objects within a tracee (GDB, LLDB...).

Remaining users of this API can still use this library from
pkgsrc/devel/libpthread_dbg.

Sponsored by <The NetBSD Foundation>
2017-02-08 03:44:40 +00:00
christos 3048692a87 Kernel build objdirs have a kernel name after the objdir. Use a regex for
that. Note that debug-prefix-map and debug-regex-map insert entries in a
linked list in reverse order.
2017-02-07 21:19:13 +00:00
christos c6003a6601 add sqlite3 to statically linked libraries for pam. 2017-01-29 21:43:56 +00:00
matt 2f6f26dc42 Resort _MKVARS.no 2017-01-18 02:33:25 +00:00
joerg 86b4c819bd Don't randomly break the build and restrict -Wsystem-headers to gcc. 2017-01-17 11:09:10 +00:00
christos 927c23dd97 enable again system header warnings now amd64 builds. 2017-01-13 14:34:58 +00:00
christos 7ca638644a disable until we fix the build. 2017-01-12 19:10:34 +00:00
christos 519cf8e7d5 PR/51831: Don't suppress warnings coming from system header macro expansions. 2017-01-12 16:47:18 +00:00
joerg f9c2736326 Disable a couple of warnings until further investigation. 2017-01-11 12:19:43 +00:00
maya 3b4ebb08a0 -Wa,--fatal-warnings is a GCC flag and unknown to clang. make it
GCC specific, so we can (try to) build a kernel with higher WARNS
using clang.
2017-01-10 17:16:19 +00:00
skrll 6093e5eae2 binutils 2.26 is no more. 2017-01-10 13:47:18 +00:00
christos 13da18a371 - centralize setting of MK* vars in bsd.own.mk
- make sure that the default setting of all vars is done in _MKVARS.{yes,no}
  if possible.
2017-01-08 17:40:44 +00:00
christos 44ed840a46 add nsd 2017-01-07 22:27:36 +00:00
christos ffa88d505d Add to lint flags for MKREPRO 2016-12-24 17:44:22 +00:00
christos 41f4de4258 Don't attempt to shorten resolved path names (via realpath) because it could
lead to inconsistencies between different builds.
2016-12-23 21:11:45 +00:00
christos 45fd52509c wildcard obj dirs 2016-12-21 03:13:00 +00:00
christos 50b4b37dbe Don't remap mkdep, otherwise we add dependencies for /usr/include instead
of ${DESTDIR}/usr/include and things go south.
2016-12-21 03:00:51 +00:00
scole 975ce79004 Make ia64 considered 64bit for the _XSERVER64 define so a release with x11 will at least build. 2016-12-14 16:03:19 +00:00
christos e04e53e08d complete the transition to binutils-2.27 2016-12-11 06:37:49 +00:00
mrg 9aed0f5ab2 aarch64 builds work with binutils 2.27. switch it. hppa builds,
just needs a run time test if someone wants.  then we're done!
2016-12-11 03:40:57 +00:00
mrg 692b61f19e switch mips (32 bit) and arm to binutils 2.27. hppa and aarch64 left. 2016-12-11 02:38:54 +00:00
mrg d3581646bd revert binutils check polarity. now we know that only these are
not updated to binutils 2.27: aarch64*, *arm*, hppa, mipse[lb]
2016-12-10 23:40:03 +00:00
mrg 8d6d8e66db switch ppc* to binutils 2.27. 2016-12-10 23:19:26 +00:00
christos 34152e53bb Back in 1993 ${MACHINE} was a unique way to define objdirs for
every platform. Thus setting OBJMACHINE, allowed one to keep
in-tree objdirs with multiple builds. With the advent of evb*, this
has become impossible until now. Introduce OBJMACHINE_ARCH that
adds ${MACHINE_ARCH} to the objdir so that we have unique objdirs
per build again. Until we restructure things to that this is not
necessary, it is the simplest fix.
2016-12-10 23:12:39 +00:00
christos db332cd014 factor out expression. 2016-12-08 03:25:35 +00:00
christos 86dd6d287c move sh3 to new binutils 2016-12-08 03:22:36 +00:00
christos c4cb6918e1 switch sparc/sparc64 to binutils 227 2016-12-03 16:02:10 +00:00
christos 1b08d10df9 move alpha to new binutils 2016-12-03 04:06:25 +00:00
christos 2de9513676 switch mips64 to new binutils and gdb. 2016-12-03 02:18:38 +00:00
christos 0ab93415f3 switch m68k to new binutils and gdb 2016-12-02 17:54:35 +00:00
christos 787783f1e0 switch vax to new binutils and gdb. 2016-11-27 18:53:05 +00:00
snj 7ae8358cfa nuke xf86-video-nvxbox, as xbox support went away in 2011. 2016-11-21 17:00:32 +00:00
joerg 30cf47a558 Drop remarks about AArch64 ABI being PIC following a discussion with Tim
Northover. The default code model is small and globals are expected to
be within the lower 4GB if not explicitly using -fPIC.
2016-11-14 20:42:46 +00:00