Commit Graph

1260 Commits

Author SHA1 Message Date
haad
a7a3d3b216 Revert lib_nvpair hack now when it is not needed when njoly@ commited his fix to
bsd.lib.mk.
2010-02-22 20:05:03 +00:00
joerg
87faf7cb4f \\ -> \e 2010-02-22 19:20:33 +00:00
tron
c76e590d3d Disable stack protection warnings for "dtrace.c" which uses alloca(3). 2010-02-22 12:21:27 +00:00
darran
e171441276 Prep for building as part of the toolchain. 2010-02-22 11:01:29 +00:00
darran
9583b24e87 Get rid of extra include files added while debugging the toolchain build
problem.
2010-02-22 10:59:08 +00:00
darran
97d3245ff3 Get libelf building in the toolchain again. 2010-02-22 10:48:32 +00:00
darran
7b822b43cb DTrace: fix a problem with library references for libctf and libdtrace. 2010-02-21 11:00:01 +00:00
darran
4e42fd7663 DTrace: remove extra libshare.h - shouldn't have added it and it breaks
the libzfs build.
2010-02-21 10:21:06 +00:00
darran
17b93c1002 DTrace: remove assert.h - shouldn't have been checked in (breaks libdtrace
build).
2010-02-21 09:52:08 +00:00
darran
f2505ce1e5 DTrace: remove file.h - it shouldn't have been added and breaks zfs. 2010-02-21 08:28:40 +00:00
darran
01c9547e57 Apply NetBSD changes to DTrace.
Ok with core@.
2010-02-21 01:46:32 +00:00
darran
bb8023b5c1 Add the FreeBSD 8-RC1 changes for DTrace.
Ok with core@.
2010-02-21 00:49:51 +00:00
joerg
808b2c3215 Remove a windows-only source file from the list. 2010-02-20 22:49:22 +00:00
joerg
a47bf818c5 Merge 2010-02-20 04:44:59 +00:00
joerg
2dbe35ad26 nstall-20100220:
Try harder to give the user an idea which file failed.
Addresses PR 42223.
2010-02-20 04:41:52 +00:00
darran
a864dc36a1 Import the rest of Opensolaris 20081117 needed for DTrace. No conflicts
with ZFS.
2010-02-20 04:33:34 +00:00
joerg
966b72ab39 Update build infrastructure for libarchive 2.8.0. 2010-02-20 02:55:52 +00:00
joerg
726cc99615 Do not leak setup_xattr into the public namespace. 2010-02-20 02:53:09 +00:00
joerg
d41f717e25 Merge changes 2010-02-20 02:51:32 +00:00
joerg
9fde539170 Import libarchive 2.8.0:
- Infrastructure:
  - Allow command line tools as fallback for missing compression
    libraries. If compiled without gzip for example, gunzip will
    be used automatically.
  - Improved support for a number of platforms like high-resolution
    timestamps and Extended Attributes on various Unix systems
  - New convience interface for creating archives based on disk content,
    complement of the archive_write_disk interface.
- Frontends:
  - bsdcpio ready for public consumption
  - hand-written date parser replaces the yacc code
- Filter system:
  - Simplified read filter chains
  - Option support for filters
  - LZMA, XZ, uudecode handled
- Format support:
  - Write support for mtree files based on file system or archive
    content
  - Basic read support for Joliet
  - Write support for zip files
  - Write support for shar archives, both text-only and binary-safe
2010-02-20 02:48:21 +00:00
christos
229a6fd0df make the default action abort for the empty log message; it used to be
continue. requested by joerg.
2010-02-19 23:50:55 +00:00
joerg
156dc8e835 Update build system for mdocml 1.9.15. 2010-02-19 23:02:41 +00:00
joerg
09c95e748e Merge 2010-02-19 23:01:28 +00:00
joerg
d5e63c8d55 Import mdocml 1.9.15 modulo a patch for .Xr handling:
- XHTML output support, more human-readable HTML output
- end-of-line white space detected in all lines
- fix subtle bug for list displays in some modes
- fix column handling
- full support for \f etc
- imporoved column handling
- various other bug fixes
- compatiblity support for strlcat/strlcpy
- groff-compatible .Xr [backed out]
2010-02-19 22:54:40 +00:00
njoly
347e02defd Regen initparse.c/initscan.c without #line directives, to avoid host
tool depency problems when NETBSDSRCDIR != /usr/src.
2010-02-19 14:22:43 +00:00
njoly
82d9c2fa0b Add nint_table.h and nint_vars.h to generated list files. 2010-02-19 13:55:46 +00:00
wiz
8f657e21de Fix typo (specifed -> specified). 2010-02-18 14:00:39 +00:00
christos
0f0ea55dc4 Fix build issue with our make system building libnvpair.so from libnvpair.c
and libnvpair.so from *.so by renaming libnvpair.c to lib_nvpair.c
2010-02-17 17:36:32 +00:00
plunky
5f25705455 actually include the top-level Makefile.inc 2010-02-11 14:36:32 +00:00
plunky
64f418c059 keep generated config.h file in a subdir
(avoids potential inclusion errors)
2010-02-11 14:22:30 +00:00
plunky
402aefd4ec provide endian information at build time rather than embedding it
in the config.h file.
2010-02-11 14:18:45 +00:00
macallan
0d91bbc4af build the suncg14 driver on sparc 2010-02-11 04:07:17 +00:00
plunky
f5c86c146d use
.if defined(HAVE_GCC) && ${HAVE_GCC} == 4

rather than

.if ${HAVE_GCC} == 4

as HAVE_GCC may be undefined
2010-02-08 07:56:06 +00:00
plunky
742b10af18 amd64 provides MACHINE_ARCH=x86_64 but pcc wants TARGMACH=amd64. handle that 2010-02-05 18:41:25 +00:00
plunky
8e1bb8f737 when making VERSSTR, provide the target os/machine rather than the host.
have the CVS checkout date in the PACKAGE_STRING rather than in a separate
definition
2010-02-05 17:18:31 +00:00
plunky
9422719fb6 be more adaptable when choosing the target arch, try to relate
the MACHINE_ARCH to the supported architectures before failing.
2010-02-05 08:58:47 +00:00
plunky
192b470eb8 just use the actual date in PACKAGE_CHECKOUT definition 2010-02-05 08:52:25 +00:00
plunky
accbe58577 don't build and install the crtbegin.o and crtend.o files at this stage,
they conflict with the system provided ones (lib/csu) and cause problems.
2010-02-05 08:46:25 +00:00
plunky
e8d2e908f8 use SUBDIR= not SUBDIR+= 2010-02-05 08:42:39 +00:00
plunky
ea7801f79b don't conditionally include the Makefile.inc, we need the BINDIR etc
definitions for installation
2010-02-05 08:41:13 +00:00
plunky
60d1d27f5d only go to WARNS=2 on these by default 2010-02-05 08:37:48 +00:00
tron
feced192ce Define "HAVE_TERMCAP_H" to fix build with the new terminfo library. 2010-02-04 13:22:34 +00:00
plunky
b3081dfecd fix the embedded VERSSTR by providing the correct machine architecture
at build time, and adding an import date to the version.
2010-02-03 22:13:13 +00:00
plunky
69337406ec following the documentation in mk.conf(5) and share/mk/bsd.README,
and prior art with the MKGCC and MKGCCCMDS build options, only build
and install the pcc commands (pcc, cpp & ccom) when MKPCCCMDS != no
2010-02-03 22:07:50 +00:00
plunky
bd99595db9 Install the CPP manpage as pcpp(1) to avoid conflicts with the GCC version 2010-02-03 22:03:56 +00:00
joerg
3185176d24 Merge 2010-02-03 19:31:49 +00:00
joerg
6ab7422234 Fix enum to prevent crash (PR 42734) 2010-02-03 19:27:01 +00:00
roy
98eb889579 Userland now builds and uses terminfo instead of termcap.
OK: core@, jdc@
2010-02-03 15:34:37 +00:00
joerg
e8182c96d5 pkg_install-20100203:
- Restore PKG_PREFIX in pkg_delete (PR 42731)
- Ensure that the current pkg_install version is at least as new as
  the version used to build the package
2010-02-03 14:23:39 +00:00
tls
529d2eb4cb Plug liblzf into build. Liblzf is a small (3504 byte shared library on i386),
very very fast, 2-clause BSD-licensed compressor.  We provide the LZF_STATE
version of the API, which is not the default for generic liblzf.
2010-02-03 06:25:54 +00:00
tls
55a82c0a98 Adjust liblzf to offer the LZF_STATE_ARG API, which is better for small-stack
environments (think bootblocks etc) and no worse elsewise (you can always
just pass the same state argument...) and have correct prototypes when doing
so.
2010-02-03 03:55:38 +00:00
tls
05206c0677 Import liblzf version 3.5 (2-clause BSD licensed by Marc Lehmann) 2010-02-03 03:50:40 +00:00
roy
afee245092 sync 2010-01-31 20:53:05 +00:00
roy
a7622e5331 Import dhcpcd-5.1.5 with the following changes:
* -H, --xidhwaddr uses the last 4 bytes of the hardware address as
  the DHCP xid
* -J, --broadcast tells the DHCP server to broadcast replies
* no longer warn about InfiniBand being an unsupported family
* infinite lease times are valid when reading old leases
* discard address correctly if lease is invalid
2010-01-31 20:50:16 +00:00
joerg
5ac0fc9ca9 pkg_install-20100130:
- pkg_add -U to rplace an installed version
- refactored man pages
- PKG_DBDIR / PKG_REFCOUNT_DBDIR as pkg_install.conf options
- synced license list
- use connection cache from libfetch
2010-01-30 21:33:08 +00:00
joerg
70160d7000 libfetch-2.30:
- Revamped connection cache, allowing more than one active session
- HTTP keep-alive support
2010-01-30 21:26:09 +00:00
wiz
c37f3f8b3c Mark up NULL. Join two sections describing same error. Remove trailing
whitespace.
2010-01-29 10:49:07 +00:00
matt
dfcdd41b29 Add a _is_local_label_name routine (taken from elf64-mips.c). 2010-01-29 06:09:36 +00:00
matt
07b94adbab Use bfd_ntrad{little,big}_vec and drop all non-trad vectors since they
make target matching ambiguous.
2010-01-29 06:08:01 +00:00
matt
335a046fbd Remove merge workaround - not needed. 2010-01-29 06:05:53 +00:00
matt
fade670606 Remove redundant mips*-*-netbsd* clause 2010-01-29 06:05:32 +00:00
darran
e8ef955492 Fix a problem with the handling of NOBITS sections (i.e. bss), where the
elf_getdata() function would return an invalid section error if the size
of the section was bigger than the raw size of the elf binary.
This is basically a sync with changeset 10 of the sourceforge repository
for this library (elftoolchain).
2010-01-28 21:38:29 +00:00
yamt
6ddbd5a7dd scsi_command_t: rather than putting cleanup code before every
return statememts, use goto to a single copy of the cleanup code.
no functional changes.
2010-01-25 13:45:16 +00:00
plunky
567387c17c execute lists of commands in sub-shells so that the cwd doesn't get
not changed between commands

(nbmake will execute all commands in the same context when given -j)

this allows HAVE_PCC=yes tools build to install the pcc files
2010-01-22 11:08:40 +00:00
yamt
44972f323c - remove unnecessary and confusing initialization of sess->d.
- add an assertion.
2010-01-20 11:50:28 +00:00
plunky
7d4f77f20f Clean up the build framework for pcc
- use <bsd.init.mk> to include <../Makefile.inc> files
  - add Makefile.inc files that pull in appropriate build settings
  - fix the LIBEXECDIR definition (should have trailing /)
  - make cc.1 install as pcc.1 to match the binary
  - use YHEADER= to build the yacc headers
  - general consistency tidy up
2010-01-20 11:45:54 +00:00
yamt
6b4ef1c2b1 implement REPORT LUNS for non-zero LUNs correctly. 2010-01-20 10:33:08 +00:00
yamt
fdeb814270 add missing trailing newline chars to some of iscsi_err messages. 2010-01-20 00:58:49 +00:00
yamt
a33cb43688 target_transfer_data: fix an incorrect flattening of RETURN_NOT_EQUAL
in rev.1.2.
2010-01-20 00:51:51 +00:00
yamt
ddd2fd462c disk_write: report an error from target_transfer_data instead of
silently write garbage to the storage.
2010-01-20 00:50:09 +00:00
mrg
ff65ddb460 link in libOSMesa as well. 2010-01-12 03:56:17 +00:00
mrg
9f817fe79f replace LIBS with LIBDPLIBS. makes these actually link against drm_intel.
should fix a problem reported by snj@.
2010-01-12 00:57:45 +00:00
joerg
85dea109fa libfetch-2.27:
Fix a bug in the connection caching for FTP.
2010-01-11 19:40:01 +00:00
tron
9ee09dfd6f Replace VATTR_NULL() with vattr_null(). The ZFS module can be loaded
again now.
2010-01-11 12:10:18 +00:00
mrg
1834ad25e5 fix a problem reported by jmorse:
- fix a line continuation that stopped SRCS= from working
- don't include intel_dri.c here
2010-01-10 17:35:33 +00:00
haad
f1a671f674 Fix problem in ZFS ZIL layer where unclean shutdown of filesystem can change
replayed file permissions to 777. Patch from FreeBSD. Original commit message:

Be careful which vattr fields are set during setattr replay.
Without this fix strange things can appear after unclean shutdown like
files with mode set to 07777.
2010-01-10 01:35:39 +00:00
joerg
f382d79a9f Fix markup. 2010-01-08 16:32:47 +00:00
joerg
1e94bcdda0 Fix the markup. 2010-01-08 16:32:23 +00:00
joerg
6738b10249 Use \(-> for the arrows and put them on a separate line because they are
not special symbols that .Xr handles.
2010-01-08 16:31:51 +00:00
ober
9067e90d8c Fix comment to meet style guidelines. 2010-01-08 03:41:58 +00:00
ober
c56ace41b0 Make sure the comment is specific to being a hack and that it needs to be pulled before production release and the real issues with UVM and ZFS need to be resolved. 2010-01-03 11:33:13 +00:00
ober
9bfbda61ad Set KM_PUSHPAGE to KM_SLEEP to prevent the arc_buf_alloc panics in ZFS.
ok haad@
2010-01-03 10:50:06 +00:00
matt
e34524fa00 Don't allow a symbol + offset in a merge section to translated to a
.section + offset reference if offset is negative.
2010-01-01 06:12:55 +00:00
joerg
abada83399 Do not use .Xo/.Xc to work around ancient roff limits.
Remove .TE without matching .TS.
2009-12-29 18:07:28 +00:00
thorpej
69ceabfc59 Include nbtool_config.h as needed. Should fix missing defn of __unused in
some host tool environments.
2009-12-29 17:32:18 +00:00
thorpej
4d886fcd1a Merge FreeBSD-8-0-RELEASE. All this does is remove the __RCSID() tags
due to the modified prepare-import.sh.
2009-12-29 17:05:58 +00:00
thorpej
8a81f35236 Import libelf from FreeBSD 8.0-RELEASE. The main purpose of this is to
get a new import after prepare-import.sh was changed to not insert NetBSD
__RCSID() macros (which are problematic for host tool builds).
2009-12-29 16:58:08 +00:00
thorpej
7c6f9e4c11 We don't really need __RCSID() tags in these files, so just get rid of them. 2009-12-29 16:56:25 +00:00
snj
875f862227 Properly replace @MKTEMP_SH_FUNCTION@, @MKTEMP@, and @SENDMAIL@.
Fixes PR bin/39629.
2009-12-29 06:00:35 +00:00
christos
ded3e18dc8 adjust entropy_add signature. (From Kurt Schreiner) 2009-12-27 17:27:29 +00:00
christos
e1523714f8 merge 9.7.0rc1 2009-12-26 23:08:21 +00:00
christos
d12c9ec32b Import bind 9.7.0rc1 2009-12-26 22:18:13 +00:00
wiz
dbb0a194be Make HTML-ready. 2009-12-23 09:54:22 +00:00
mbalmer
43a53fa2dc Fix typo in a comment, no code change. 2009-12-23 09:22:16 +00:00
mbalmer
a72f71643d Fix typo in comments, no code change. 2009-12-23 09:17:40 +00:00
roy
5f8a05b17d Import dhcpcd-5.1.4
Changes from dhcpcd-5.1.3 include:
 * dhcpcd logs even in quiet mode.
 * Sleep for 1/100th of a second to give time for kernel to send RELEASE.
 * -S option now works.
 * Only warn about using CSR on bind.
2009-12-23 08:30:06 +00:00
darran
ebf62180d8 Add libdwarf to the build. 2009-12-23 00:17:40 +00:00
darran
c6ebd49b09 Fix a signed vrs unsigned cast. 2009-12-23 00:12:57 +00:00
darran
73d7a467ee while (0) -> while (/*CONSTCOND*/0) 2009-12-23 00:11:30 +00:00
darran
e65b189966 Add build glue. 2009-12-23 00:10:15 +00:00
darran
bd99ed90ac Add a script to prepare libdwarf for import. 2009-12-23 00:06:53 +00:00
darran
88d2277d90 Import libdwarf from FreeBSD 8.0-RC1.
ok tls@.
2009-12-23 00:03:21 +00:00
jmmv
8fd5b13660 Update build files to match atf 0.7. 2009-12-22 13:38:10 +00:00
jmmv
21361fb856 Merge atf 0.7. 2009-12-22 13:36:56 +00:00
jmmv
12aa0b5af8 Import atf 0.7. Changes in this release:
* Added build-time checks to atf-c and atf-c++.  A binding for atf-sh
  will come later.

* Migrated all build-time checks for header files to proper ATF tests.
  This demonstrates the use of the new feature described above.

* Added an internal API for child process management.

* Converted all plain-text distribution documents to a Docbook canonical
  version, and include pre-generated plain text and HTML copies in the
  distribution file.

* Simplified the contents of the Makefile.am by regenerating it from a
  canonical Makefile.am.m4 source.  As a side-effect, some dependency
  specifications were fixed.

* Migrated all checks from the check target to installcheck, as these
  require ATF to be installed.

* Fixed sign comparison mismatches triggered by the now-enabled
  -Wsign-compare.

* Fixed many memory and object leaks.
2009-12-22 13:25:45 +00:00
nakayama
2570d7a0b1 Add -DAVOID_CPIO on sparc. 2009-12-22 09:12:42 +00:00
thorpej
3f0d4dd15e Note when this appeared in NetBSD. 2009-12-21 18:27:48 +00:00
thorpej
aa6d6cf7b8 Add support for building libelf in a host-tool environment.
XXX Makefile.disklabel is really mis-named, but I'm not going to tackle
that problem right now.
2009-12-21 18:21:17 +00:00
thorpej
a2307e2ec3 - _libelf_globals::libelf_arch and _libelf_globals::libelf_class are
completely unused.  Remove them.
- _libelf_globals::libelf_byteorder is really all about the byte order of
  the host running libelf, so replace it with a _libelf_host_byteorder()
  internal function that computes the host byte order in a very portable
  way (doesn't rely on BSD-specific header files).
2009-12-20 23:23:46 +00:00
mrg
204f6553a5 PRIVATE_VERSION(arch) isn't ever used, so don't try to setup this member
of _libelf{}.  ELF??_MACHDEP_ID may not be defined if ELFSIZE wasn't
defined before including this file.

this fixes a build error on mips platforms.
2009-12-20 19:38:13 +00:00
thorpej
d04120af38 Build libelf. 2009-12-20 05:52:41 +00:00
thorpej
acdbfc25c4 Enable __LIBELF_HAVE_ELF_SYMINFO. 2009-12-20 05:52:15 +00:00
thorpej
4c040305d0 Fix a typo. 2009-12-19 09:01:32 +00:00
thorpej
80a94d172a Add some range checks to quiet warnings. 2009-12-19 09:00:56 +00:00
thorpej
83ba8dcb86 We don't have an Elf_Note typedef, but Elf32_Nhdr and Elf64_Nhdr are
equivalent; use Elf32_Nhdr instead.
2009-12-19 08:47:46 +00:00
thorpej
e55f728904 Fix all sorts of problems with lint and compiler warnings. 2009-12-19 08:40:57 +00:00
thorpej
625b09a07e Squash a signed-vs-unsigned char * warning. 2009-12-19 07:59:24 +00:00
thorpej
3d218610e2 Change elf_hash() to take a const void *, rather than a const char *. 2009-12-19 07:58:24 +00:00
thorpej
f0689d90c7 Provide definitions of MALIGN() and MALIGN64() for the __lint__ case. 2009-12-19 07:54:32 +00:00
thorpej
900d25b3df ELF_ARCH, ELF_TARG_DATA, and ELF_TARG_CLASS are macros defined in a FreeBSD
header file.  For NetBSD, map to equivalent defines.
2009-12-19 07:52:59 +00:00
thorpej
d6ff3f1479 LIBELF_COPY_U32(), LIBELF_COPY_S32(): Make sure that the SRC values are
being compared as the maximum width and appropriate signed-ness.
2009-12-19 07:47:22 +00:00
thorpej
688970149e - _libelf_load_scn(): If shoff is larger than SSIZE_MAX, bail out with
a HEADER error.  Pass lint.
2009-12-19 07:44:27 +00:00
thorpej
20d9f43d9d <machine/elf.h> is a FreeBSD-specific header. 2009-12-19 07:37:34 +00:00
thorpej
66a732a72d <libelf.h> is responsible for including <sys/elf32.h> and <sys/elf64.h> on
FreeBSD; no need to do it here.
2009-12-19 07:33:06 +00:00
thorpej
560b6d58db Don't need to include <osreldate.h> here. 2009-12-19 07:31:44 +00:00
thorpej
e6c1c7c74e Centralize dependency on __FreeBSD_version into libelf.h, and generalize
the conditional inclusion of API/ELF features so that it works with NetBSD
as well.
2009-12-19 07:31:04 +00:00
thorpej
3e6f245099 <sys/limits.h> -> <limits.h> 2009-12-19 06:39:29 +00:00
thorpej
ca36dbd81a <sys/errno.h> -> <errno.h> 2009-12-19 06:22:25 +00:00
thorpej
c80991c598 while (0) -> while (/*CONSTCOND*/0) 2009-12-19 05:55:37 +00:00
thorpej
ae2945399a Initial build glue for libelf. Still a work-in-progress. 2009-12-19 05:52:01 +00:00
thorpej
0cf4bb02da Add a script to prepare libelf for import. 2009-12-19 05:45:28 +00:00
thorpej
d32c9dd64e Import the libelf from FreeBSD 8.0-RC3. 2009-12-19 05:43:39 +00:00
christos
5061b6b019 From Patrick Welche:
The following trivial typo fix gets rid of "unsecure session"s...
XDMATHDIR -> XDMXAUTHDIR
2009-12-18 17:28:47 +00:00
skrll
7a92e8e89d Use += otherwise COPTS loses important flags. 2009-12-16 14:13:18 +00:00
skrll
b1d73e2147 Re-run mknative for binutils. 2009-12-14 15:49:18 +00:00
mrg
f8913fe32e default netbsd*mips64 to n32. from matt-nb5-mips64. 2009-12-14 02:52:08 +00:00
mrg
42c67cd175 add all the binutils auto-generated files from matt-nb5-mips64 branch.
these are probably wrong and need to re-generated with mknative-binutils,
but get the build sort of limping along a bit better until then.
2009-12-14 02:36:31 +00:00
christos
e28d07b4f4 put back -Werror 2009-12-14 02:09:39 +00:00
christos
71af8d5cf6 constify 2009-12-14 00:49:45 +00:00
christos
10afd40910 fix bogus ctype casts 2009-12-14 00:46:21 +00:00
christos
065f57e189 fix for long long time_t 2009-12-14 00:43:58 +00:00
christos
9cf8c53771 don't warn about SLEW; ntpd defines it! 2009-12-14 00:43:09 +00:00
christos
e589aa514b use initgroups/setgroups
proper types for uid and gid.
2009-12-14 00:42:47 +00:00
christos
eff9ac27fd fix debug printf format
fix bogus ctype cast
2009-12-14 00:42:21 +00:00
christos
5dd48b0c34 bring back our status printing function 2009-12-14 00:41:03 +00:00
christos
61c775be3f constify 2009-12-14 00:40:26 +00:00
mrg
2e067db098 update the generated fonts.conf from the template.
from Jukka Salmi in PR #42169.
2009-12-14 00:39:58 +00:00
christos
ed38567fda fix bogus ctype casts 2009-12-14 00:38:48 +00:00
christos
7b8fd1634b don't redefine NANOSECOND 2009-12-14 00:38:20 +00:00
christos
7cabe5d03b (unsigned char) for ctype functions. 2009-12-13 23:25:40 +00:00