using statvfs() on systems that provide it. I'm assuming that the
SVR4 statvfs() is a standardized call across systems that have it.
This should allow IRIX to build the statfs call into libnbcompat.
getopt.h implies having getopt_long. Also Fix checks for setmode, pwcache,
and vis so that if any of a list of functions is missing, then use the
nbcompat versions.
version are removing sha2* object files from libnbcompat.a. It turns
out that the functions defined there aren't provided by NetBSD, so it
makes no sense for libnbcompat to define them, and none of the
utilities in pkgsrc that link against libnbcompat actually use these
functions anyway.
include:
* Move headers out of the global namespace and into the nbcompat
directory. Since there are no headers other than nbcompat.h in
${PREFIX}/include/libnbcompat, just install it directly in
${PREFIX}/include. Using libnbcompat is now a matter of including
nbcompat.h at the top of *.c files and linking against -lnbcompat.
* Only build functions into libnbcompat.a if they aren't already in
the system libraries.
* Move several *.[ch] files that are pax- or mtree-specific out
of libnbcompat (they should belong with those packages).
On NetBSD 1.6 systems, libnbcompat.a now contains just the bare minimum:
the sha2 routines.
symbol and comment in nbconfig.h.in for us in the correct place. The
previous way of using AH_BOTTOM also worked but separated the symbol
definition from the accompanying C comment text, which was a little harder
to maintain.
* Check for errors in reading from the file descriptor for the ftp
process, and correct the error messages.
* Nuke some code for older NetBSDs that's better handled in
pkgtools/libnbcompat.
* Don't prevent user from using views other than the default view.
* Properly declare statfs() and fstatfs() if we use the libnbcompat
versions.
* Move some headers into a private directory in the installed
location so that they don't override headers of the same name
on the system.
* Define TAILQ_HEAD_INITIALIZER if it doesn't exist.
* Add a poll() implementation using select() for poll()-less systems.
Thanks for Charles Blundell for the implementation!
* Fix the vis.h check for systems whose vis() is not as featureful
as NetBSD's.
are moving the definitions of the TAILQ accessor methods into the top level
of nbcompat.h. This should fix using nbcompat.h to replace sys/queue.h
on Linux systems.
* Don't install namespace.h, extern.h and stat_flags.h, which are
only used internally.
* Clean up util.h by using '#if !HAVE_xxx' instead of
'#ifndef !HAVE_xxx', removing some LIST_* definitions that are
defined by <nbcompat.h>, and removing static declarations.
* If fparseln is in libutil (as it is in NetBSD), then don't build
it into libnbcompat.a.
package views. Pkgsrc changes include:
* Convert to use pkgtools/libnbcompat so that it's easier to keep
this in sync with src/usr.sbin/pkg_install.
* Add a src2nbcompat script that converts src/usr.sbin/pkg_install
into an appropriate start for pkgtools/pkg_install. The script
removes the Makefiles, adds CPP inclusion guards around each
#include <...> line, and includes <nbcompat.h> at the top of each
*.c file. This should make it even easier to keep sources in
sync with the HEAD.
* Add mkdtemp, TAILQ_*, and statfs.
* Install a nbconfig.h file containing the discovered system information
and include it directly in nbcompat.h. Make all files use nbconfig.h
instead of config.h. Ensure that all installed headers don't include
any local header files. This makes libnbcompat more self-contained.
* Consistently use "#if HAVE_HEADER_H" instead of "#ifdef HAVE_HEADER_H"
since sometimes people put -DHAVE_HEADER_H=0 on their command lines.
USE_PKGINSTALL is "YES". bsd.pkg.install.mk will no longer automatically
pick up a INSTALL/DEINSTALL script in the package directory and assume that
you want it for the corresponding *_EXTRA_TMPL variable.
- Introduce two new variables, MOUNT_SCRIPT and UMOUNT_SCRIPT, that let the
user specify a script file run after mounting known filesystems and before
unmounting them, respectively. Patch by seb@, thanks!
* Use bsd.pkg.install.mk instead of supplying custom INSTALL/DEINSTALL
scripts.
* Note that this package doesn't really use buildlink.
* Remove ancient BUILDLINK_DEPENDS= line at the bottom of the file that
we no longer need since the buildlink1 days of yore.
on tech-pkg@ at various times. This means that regardless of what kind of
GL support comes with X11, if a package depends on GL, Mesa 5.0.1 (or higher)
will be installed into ${LOCALBASE}.
Some troubleshooting after the latest patches by Krister Walfridsson.
Pkgvi fix: deal with pathnames like `dir-with.a-dot/file-without-dot'
for which the temporary file pathname hold in $tmp ended up as
`dir-with.a-dot/file-without-dot.$$.a-dot/file-without-dot'.
Teach pkglint about new rules related to info files handling.
- remove old checks of PLIST related to install-info.
- emit a FATAL error for "@exec install-info" and similar in PLIST.
- emit a FATAL error for inclusion of texinfo.mk.
patch to the well-known digest package. The output is the same for
files, but if rdigest is given a directory as an argument, it will
recursively checksum the directory in such a manner as to:
(1) give a repeatable checksum
(2) with no regard for file ownership
(3) or timestamps
(4) or modes
(5) while taking into account empty files and directories
such that the checksum of an extracted tar file will match the
checksum of the same tree as retrieved via cvs, or two allegedly
matching trees from different cvs servers, etc.
- Add the NETBSD_RELEASE variable. This is used to automatically configure
pkgtools/libkver inside the chroot so that packages see the right kernel
version when issuing calls to sysctl(8). Suggested by seb@.
- Turn on emacs editing mode by default in sh/ksh.
- Added support for audit-packages. pkg_comp will now automatically setup
the vulnerabilities file inside the chroot so that pkgsrc can check for
security flaws before building packages. See the USE_AUDIT_PACKAGES
variable in the manpage.
- Added support for gcc3. pkg_comp will now automatically install the gcc3
compiler inside the chroot and build all packages using it. See the
USE_GCC3 variable in the manpage.
- The new MKCONF_VARS variable lets you add any variable to the generated
mk.conf file from the configuration file (no need for EXTRAMK in most
cases).
- Deprecated the removepkgs target. It was buggy and difficult to adapt to
the new changes. removeroot+makeroot should produce the same effect.
- Some code cleanup, specially regarding to template file generation and
default values for variables. (See next change item)
- Configuration file semantics have changed. Variables are now set to their
default value if they are NOT set in the configuration file. This changes
the behaviour of SETS_X11 specially, which needs to be explicitly set to
"no" to disable X11.
- Fixed shell profile configuration. Now PS1 is properly set when using the
"chroot" target.
contents with the package database, reporting files that are in
the file system but not in the package database.
Written by Dieter Baron (dillo@) with man pages from Thomas Klausner (wiz@).
This package provides a shared library and a replacement for
sysctl(1) (when needed i.e. when the original one is statically linked)
so that the real version numbers and strings of the running NetBSD
kernel as returned by sysctl(3) and uname(3) are overridden by
those fixed during compilation.
This is useful for -among other things- building packages in
sandboxed/chrooted environment for a different NetBSD release than the
system hosting the sandbox/chroot.
----------------------------
revision 1.59
date: 2003/07/04 14:14:10; author: lukem; state: Exp; lines: +1 -7
Revert previous; the "return" if rc.subr had already loaded had issues
in some circumstances where run_rc_script()'s sourcing of an rc.d file
which then sourced rc.subr, the `optimisation' in rc.subr to "return as
we're already loaded" would finish more than just the inner-most sourcing.
I haven't tracked down the exact issue, but removing the `optimisation'
fixes the problem I noticed in starting up certain rc.d scripts, and
may fix [bin/22053] as well.
----------------------------
revision 1.58
date: 2003/06/27 05:01:21; author: lukem; state: Exp; lines: +7 -1
If _rc_subr_loaded=true, "return" immediately, otherwise set that var
and continue as normal.
Gains ~ 2 seconds on 110 runs of ". rc.subr" on a shark.
Suggested by Andrew Cagney in [bin/18400]
----------------------------
revision 1.57
date: 2003/06/27 04:06:01; author: lukem; state: Exp; lines: +2 -2
run_rc_command(): when checking if ${command} exists before executing it,
be sure to check under ${name_chroot} (if set).
Fix from Ed Ravin in [bin/18523]
----------------------------
revision 1.56
date: 2003/06/03 14:00:45; author: christos; state: Exp; lines: +4 -4
Use more concise shell syntax:
1. for i in $* -> for i
2. foo=$* -> foo="$@"
I expect that since all possible code paths through this function did,
as their last step, an assignment of what was to be the return value,
that the registers somehow ended up nicely arranged after we fell out
of the bottom of the function.
But it's still better just to return a value.
hashes (fooInit(), fooUpdate(), fooFinal(), and fooFile()) are in the
array of structs that list the digests we support.
This makes the code somewhat simpler, easier to patch, and makes it
much easier to add new algorithms.
Note that since this *only* changes the inner workings of the digest
program, we don't need to touch the version number.
Approved (finally) by agc. :)
allows you to get context style or plain diffs from mkpatches or
pkgdiff, instead of the default unified format.
Sometimes it's very nice to be able to look at a different diff
format.
XSgi is based on Release 6 of the X Consortium distribution, but it also
has a whole bunch of symlinks into Motif libraries and headers.
When installing the links, grab the right ABI.
__sun is defined by cpp. Hence the build was quite broken
on Solaris.
Fix by adding configure bits to check for locale.h, setlocale() and
LC_MESSAGES.
Build is now ok on Solaris 9 and Solaris 8.
Bump PKGREVISION.