Commit graph

1369 commits

Author SHA1 Message Date
wiz
a22c2cf461 Another refactoring patch from Roland Illig applied. 2004-08-10 10:07:20 +00:00
cube
1a5d6acbd1 Gross hack to prevent quoting errors when root's shell is the unfamous csh.
Should hopefully fix PR 26551, but if anyone has a better solution, or is
willing to do the necessary work to allow pkg_tarup to be run by any user,
ideas are welcomed.

Say hi to version 1.6.2.
2004-08-09 21:13:37 +00:00
jlam
52c8d0ef3c Mimic how bsd.pkg.mk calls the GNU configure script in do-configure when
configuring libnbcompat.  This adds more things to the environment, e.g.
AWK, CFLAGS, CPPFLAGS, etc.  This should fix problems building on IRIX 5.3
where the system nawk wasn't being properly found.
2004-08-09 06:21:24 +00:00
wiz
0e61bc2045 Apply patch from Roland Illig, in private mail:
- replaced literal "1" and "0" by "true" and "false" where appropriate

No functional change, thus no PKGREVISION bump.
2004-08-08 22:57:04 +00:00
jlam
fa97dd7fdd Sync with version 20040730 from src/usr.sbin/pkg_install on the HEAD:
> Re-work the code which checks the recorded build versions of a binary
> package to make pkg_add work properly when no +BUILD_INFO file exists.
>
> Modify the return value from read_buildinfo() to return 1 for success
> and 0 for failure.
>
> Use symbolic constants, rather than integers.
>
> If we can't read the build information, always tell of this fact.
>
> Bump version to 20040730
>
> Addresses PR 26429; a different version of these mods were verified to
> allow a +BUILD_INFO-less binary package to be added by Martin Husemann.
2004-08-06 16:57:03 +00:00
jlam
d80f435723 Update pkgtools/libnbcompat to 20040805. Changes from version 20040512
include:

  (1) Add a statvfs() implementation based on statfs(), and remove the
      statfs() NetBSD-compatibility implementation.  statvfs() is used
      in src/usr.sbin/pkg_install on the HEAD branch.

  (2) Add a fnmatch() implementation, needed by IRIX.  fnmatch() is used
      in src/usr.sbin/pkg_install on the HEAD branch.

  (3) Remove fseeko(), inet_ntop(), inet_pton(), sl_*() strptime(), and
      timegm() as they're not used by any of the bootstrap packages that
      require libnbcompat (pax, mtree, pkg_install).  All that's left is
      what's necessary to bootstrap those three packages.
2004-08-06 16:55:06 +00:00
schmonz
cc44d60978 This appears to work on Darwin as well. Respect RCD_SCRIPTS_DIR. 2004-08-01 08:56:10 +00:00
xtraeme
fb4351fba7 I don't know why, but using XFree86 or xorg from pkgsrc, doesn't get
the correct link flags, anyway adding ExtraLoadFlags seems to fix this.

Bump version to 1.12 (XFree86/xorg fix).
2004-07-31 01:42:06 +00:00
wiz
cd1ea8d961 Bump date for previous. 2004-07-28 11:01:18 +00:00
atatat
8e5eea93aa Teach pkgdepgraph now to understand the output of lintpkgsrc -g. This
particular data set has the current directories under ${pkgsrc} for
all known packages, unlike the location of where the package lived
when you built it.  It may have moved, you see.  This makes it
possible for pkgdepgraph to rebuild (so to speak) packages that have
moved.

And now there are 2.7.
2004-07-28 01:42:43 +00:00
agc
7aa093c24e Catch up with changes to the pathnames of postgres packages. 2004-07-27 17:59:58 +00:00
grant
9d4a06c7ba handle X.org 6.7 and treat it the same way as XFree86 4.4 for the
moment.
2004-07-24 07:00:39 +00:00
atatat
e3621ea59d Add binpatch 2004-07-23 03:41:47 +00:00
atatat
a52703912f A small package to arbitrary tiny patches to binaries (where the
source cannot otherwise be patched).
2004-07-23 03:37:26 +00:00
jmmv
2e523147e9 Fix a minor typo. 2004-07-21 22:27:35 +00:00
xtraeme
478499e6f4 Enable pkgviews installation. 2004-07-19 23:17:16 +00:00
xtraeme
9b7fd8ff8f Added pkgse-0.1 2004-07-19 23:15:45 +00:00
xtraeme
9b420f2eb8 Initial import of pkgse-0.1 from pkgsrc-wip, contributed by iMil.
pkgse is a simple perl script that fetch informations about a NetBSD package
from pkgsrc.netbsd.se website.
2004-07-19 23:13:51 +00:00
erh
85a992eb48 Fix bug in handling of wildcarded package names on the command line.
Bump version to 1.6.1
2004-07-19 17:38:36 +00:00
wiz
df7e861d9f Update to 3.88:
Fix some bugs wrt MESSAGE and PLIST checking.

From Roland Illig in private mail.
2004-07-14 17:43:43 +00:00
wiz
c736613b06 Sort options; sort SEE ALSO; new sentence,
new line; miscellaneous other fixes.
2004-07-14 16:51:05 +00:00
erh
4a08154cb6 Update pkg_tarup to 1.6.
Add several command line options to control how and where pkg_tarup creates
 packages.  pkg_tarup is now functional enough that pkg_tarup_all just runs it.
Add various bits of quoting to make packages that contain filenames with
 spaces more likely to work.
Add a man page.
2004-07-14 16:08:48 +00:00
snj
568ec1e1b3 agc says we do not want binary mode files in the pkgsrc repository, so
let's not suggest using -ko.

Welcome to 3.87.
2004-07-10 05:55:50 +00:00
hubertf
1a1af65ff9 Code cleanup, by Roland Illig. More to come.
Bump to 3.86.
2004-07-09 00:18:28 +00:00
wiz
7df01041ca buildlink2 -> buildlink3. 2004-07-06 23:39:40 +00:00
wiz
9f9244dd81 Remove support for creating buildlink2.mk files.
Make buildlink3.mk file output the default, and ignore any "-3" flags
on the command line for people who can't change their habits quickly.
Increase version to 3.5.
2004-07-06 23:18:04 +00:00
wiz
546b8ebebf Look for buildlink3 instead of 2, and complain about USE_BUILDLINK2 being
set. Welcome to 3.85!
2004-07-06 23:07:35 +00:00
wiz
a0b0e370e1 Convert to bl3. 2004-07-06 22:13:14 +00:00
cube
28792806d7 o Allow use if sysctl for MIBs shorter or longer than 2
o Instead of returning an error, pass the control to the actual call. This
  avoids a failure in make because of broken uname() when libkver is used.

OK'd by seb@.
2004-07-06 09:45:38 +00:00
abs
5e6ca54461 Update pkglint 3.84
Parse Make .{if,endif,else,elif,include} directives which
    contain a space between the . and the directive. Fix an include
    path issue which this threw up. Now 'lintpkgsrc -d' correctly
    extracts the PKGNAMEs for the gcc3 packages.
    It still doesn't understand 'dewey' versions with alpha chars, or
    some of the more interesting makefile constructs, but it looks closer
    to reality.
2004-07-01 20:14:58 +00:00
hubertf
7018e1c7fc Update pkglint to 3.83. Changes:
- made the program compile with "use strict"
- completely rewrote some subs to make the code more readable
- converted the global ("local") variables into local ("my") ones ;-)
- limited the scope of variables where possible
- added file and line number to the error messages where possible

Patch contributed by Roland Illig in private mail.
2004-06-30 18:49:36 +00:00
abs
d35589253f Update pkg_chk to 1.49:
When -v (verbose) is given with -l (list binary packages required for
    target config), display which package pulled in a particular dependency
2004-06-30 09:53:42 +00:00
hubertf
e2cc546ce5 Update to 3.82, committing yesterday's changes from Roland Illig.
Changes:
- Handle a rarely used patch format correctly
- Do not output superflouus linebreaks anymore
- Check the contents of the COMMENT field only if it exists
- Handle invalid dependency specifications correctly
- Correctly handle Makefile variables ordering
- Output complete filename of absolute filenames
- Added a new scheme for loading text files into memory so that the
  location of an error or warning can be given exactly (file + line) to
  the user.
- Refactored the checkfile_patches_patch subprogram to use the new text
  file processing and to make clearer what is checked.
2004-06-28 14:33:47 +00:00
abs
2a71890df1 Update pkglint to 3.81
- Rework undefined variable handling. Fixes issue introduces in 3.80
    - Never run a pkg_info in pkgdistdir. Avoids a serious misfeature of
      pkg_info whereby it looks for a package in the current directory
      by default.
2004-06-28 09:55:44 +00:00
abs
1283b608f0 Update pkglint to 3.80. Changes to lintpkgsrc.
- Append appropriate dirs to path - should fix pkg/23534
 - Undefined variables evaluate to blank not UNDEFINED - should fix pkg/24475
 - Handle ${C and ${S constructs that use separators other than /
 - Slightly more debugging
 - die if uname fails
2004-06-27 22:47:38 +00:00
grant
c0f5eb9d9a don't pass gcc specific flags.
XXX this is still bogus because it passes -fpic to generate pic code
to build a shared obbject which is not always desired (eg. Interix).
2004-06-27 13:40:20 +00:00
hubertf
3e7babfcb5 Update to pkglint 3.79
== functional changes ==
- prints the various "OK: ..." messages only when called with "-v".
- prints a summary after pkgsrc category checks
- fixed a bug for commented category entries (in line 1718)
- removed the option "-q". It has become unnecessary

== refactoring ==
- more consistent naming scheme for variables and functions
- replaced some "local" with "my" when possible
- clustered the variables that are processed by the ${SED} commands
- provided function prototypes for argument checking
- replaced the old perror by log_{error,warning,info}.
- Avoided the (implicit or explicit) use of $_ in many places

Patch contributed by Roland Illig via private mail.
2004-06-26 18:53:17 +00:00
hubertf
5f67629488 Commit patch from PR 25222 by Roland Illig:
* use strict mode (already found one error... hi wiz!)
 * add -q (quiet) flag
 * Identifie if patch files don't patch any or more than one file
2004-06-25 19:03:26 +00:00
xtraeme
adb7d70024 + pkgclean, pkgfind 2004-06-22 20:06:11 +00:00
xtraeme
cfa234c781 Initial import of pkgclean-20040622 from pkgsrc-wip, written by
Peter Postma.

pkgclean cleans up your pkgsrc by removing the work directories.
It's a fast alternative for ``cd /usr/pkgsrc && make clean''.
2004-06-22 20:02:41 +00:00
xtraeme
17e9870aaf Initial import of pkgfind-20040622 from pkgsrc-wip, written by
Peter Postma.

pkgfind can find packages in pkgsrc.  It tries to find packages which
matches a keyword in the package name.
2004-06-22 20:01:01 +00:00
minskim
c1bfff64bb Let xpkgwedge to create a symlink ${PREFIX}/bin/mkfontscale, which is
required to install fonts/jmk-fonts and fonts/sgi-fonts with recent X.
Suggested by Kibum Han.

Also add mkfontscale to CONFLICTS because mkfontscale installs
bin/mkfontscale.

Bump PKGVERSION to 1.11.
2004-06-15 02:27:10 +00:00
jmmv
07f6381c77 Update to 1.19 (ok'ed by agc@, as we are in a freeze):
- Ensure that the first attempt to build pkgtools/digest inside the
  chroot works by explicitly setting PKGSRC_COMPILER to gcc (pkg_comp
  assumes NetBSD in lots of places, so this assumption is acceptable).

  It was failing because it set PKGSRC_COMPILER to the empty string in
  the environment, which breaks the build.
2004-06-10 09:16:48 +00:00
schmonz
368a1c6355 Warn if a file is marked executable. Welcome to 3.77.
It's misleading to have uninstalled rc.d scripts in ${FILESDIR}
marked executable just because they were inadvertently committed
that way; they need to be processed by the install machinery in
order to work.

Since we set desired permissions at install time, it's generally
best to avoid having "executable" files in pkgsrc (with the notable
exception of pkglocate, which runs in place).

For files not yet committed, please correct the permissions before
committing. For files already in the repository, you'll need help
from an administrator.
2004-06-06 16:37:53 +00:00
wiz
2c170153bc regen. 2004-06-06 04:09:09 +00:00
wiz
a0bef6e143 Fix two xrefs, and remove trailing whitespace. 2004-06-06 04:08:18 +00:00
atatat
14b0f0140f Add "impact" as a consideration for rebuilding packages. Impact can
either indicate how involved the rebuild process is (how many
interrelated packages can be deleted/rebuilt at once) or specific
packages you do not want to impact (like...perl?).

Welcome to 2.6.
2004-06-05 06:17:37 +00:00
jmmv
2d370bcf31 s/netbsd/NetBSD/ in email address. 2004-06-04 16:17:13 +00:00
minskim
d9205a030c Import 20040601.
- Handle symlinks in a view correctly.
  - Remove superfluous escapes in BRE.

This closes PR pkg/24190.
2004-06-01 17:32:20 +00:00
minskim
2b6ee83857 Use statvfs if sys/statvfs.h is available. Based on patches provided
by Kibum Han in PR pkg/25560.

PKGVERSION will be bumped shortly when 20040601 is imported.
2004-06-01 17:29:09 +00:00
tron
d682e72d67 Update "rpm2pkg" package to version 2.1:
- Improve I/O buffer mangement.
- Don't put "@exec" and "@unexec" in the package list for symbolic links
  which point to normal files. This allows the automatic manual
  decompression to handle symbolic links to manual pages correctly.

The update fixes PR pkg/25723 by Kouichirou Hiratsuka.
2004-05-27 10:28:00 +00:00
danw
a004c74eac print "can't strip away rcs ids" message to stderr, not stdout 2004-05-23 21:55:47 +00:00
heinz
23c1021c80 Use option "-r" instead of "-e" for ${TEST} since this is not portable to some
operating systems (eg UnixWare).
2004-05-15 13:57:12 +00:00
salo
b2da799f0f Back out changes made in 3.75, it's too slow for lintpkgsrc. Make it 3.76. 2004-05-13 10:46:01 +00:00
grant
32e2857685 bump to 20040512 (another poll.h fix) 2004-05-12 21:51:08 +00:00
grant
57355eed05 don't include poll.h or sys/poll.h, but instead, undefine HAVE_POLL_H
and HAVE_SYS_POLL_H if we don't have a native poll() implementation.
prevents including of libnbcompat's poll.h as well as the system's
poll.h where we should be ignoring the system's poll.h.

fix tested by Jeff Rizzo on MacOSX 10.3.3.
2004-05-12 21:50:43 +00:00
salo
6fbe8cb2a7 Welcome to 3.75.
Use real value of PKGNAME, suppress bogus warnings when PKGNAME is created
from altering DISTNAME with make modifiers (e.g., S or C).
2004-05-10 08:53:05 +00:00
atatat
c206ac21df The existence of the kde-i18n-sr@Latn pkg makes it clear that _pkg
also needs escapement treatment so that the eval doesn't barf.  Since
_ver is the only thing left, do that one, too.  This makes 3.74.
2004-05-10 00:19:43 +00:00
wiz
83b1cb95f4 Unused. 2004-05-09 22:39:55 +00:00
abs
98d45c8b05 Update pkg_chk to 1.48
Fix awk usage for nawk in 2.0
2004-05-09 17:56:17 +00:00
jschauma
c214c1eb69 Resurrect do-extract target, following atatat's advice.
This way, sources are extracted first as any other package, allowing for
local patches.
2004-05-09 05:13:24 +00:00
grant
c50af98acb sync with src/ rev. 1.101:
fix typo.
2004-05-08 16:54:28 +00:00
jlam
fe56564bbd Import pkg_install-20040508. Fixes the -N flag to not cause the -Q
codepath to be executed by correcting the SHOW_* macro definitions.  Also
fix up some function prototypes so this builds with -Wall.  Fixes from
pkg/25494.
2004-05-08 14:51:23 +00:00
jlam
6d1d20e2c3 Import pkg_install-20040507 from src/usr.sbin/pkg_install:
Add a new flag -Q (for "query") to pkg_info(1) to query the build
information for the definitions of specific variables that were saved
from build time, e.g.

	$ pkg_info -Q PKGPATH glib
	devel/glib
	$ pkg_info -Q PROVIDES glib
	/usr/pkg/lib/libglib.so.13
	/usr/pkg/lib/libgmodule.so.13
	/usr/pkg/lib/libgthread.so.13
2004-05-07 16:40:41 +00:00
tv
36e9aa6dbf 1.10: Add a chunk of shlib override make-code to make this work on Interix,
and patch site.def (but differently from how it is patched on OpenWindows).
2004-04-30 19:44:21 +00:00
tv
930f375cd4 20040428: In pkg_add, set the umask nice and early, and remove an absolute
setting of mode in a mkdir command.
2004-04-28 15:38:17 +00:00
tv
238a2b31dc Obey additional bits of CONFIGURE_ENV when configuring libnbcompat. 2004-04-28 11:10:37 +00:00
tv
932d9603ec "${ECHO} -n" -> "${ECHO_N}" 2004-04-27 18:33:52 +00:00
dmcmahill
50af634b67 use grep >/dev/null instead of grep -q for the benefit of solaris 2004-04-27 03:51:24 +00:00
wiz
ed85bb3137 Convert to bl3. 2004-04-25 11:50:39 +00:00
grant
010b8db118 fix a sentence, fix a typo, s/netbsd.org/NetBSD.org/ 2004-04-24 10:53:03 +00:00
reed
ad63b80827 pkglint now reports if sees etc/rc.d in Makefile or PLIST.
Should use RCD_SCRIPTS mechanism (which can automatically
install to ${RCD_SCRIPTS_EXAMPLEDIR}) which automatically
registers the rc.d script(s) in the PLIST.

New version is 3.73.
2004-04-24 00:17:19 +00:00
grant
c7c360f8eb make sure we define HAVE_POLL if a usable poll() implementation is
found, and re-arrange the test a little for clarity.

fixes build on (at least) FreeBSD 5.x.
2004-04-23 11:42:46 +00:00
tv
3fa7f59e65 Sync to 20040421: fix an uninitialized array member access in pkg_add. 2004-04-21 20:11:55 +00:00
wiz
057018bdaf 1.5.2: Use proper number of dollars for variable.
Reported by Kouichirou Hiratsuka in PR 25259.
2004-04-20 16:26:07 +00:00
grant
faed5ac7c6 bump version to 20040420 (Darwin 7 poll() fix). 2004-04-20 12:14:44 +00:00
grant
5ff49d0108 workaround poll() being a compatibility function on Darwin 7
(MacOSX 10.3) by adding a custom test for _POLL_EMUL_H_ which is
defined in poll.h on some MacOSX 10.3 systems.

not all 10.3 systems have poll.h, so only do the poll() test if at
least one of the header files is found.
2004-04-20 12:13:05 +00:00
grant
89ad0dbc4e no need to test for poll() twice. 2004-04-20 10:45:48 +00:00
heinz
afc767e6bc Include limits.h if available to shut down warnings about UINT_MAX on
Unixware.
Also tested on Linux, Solaris and NetBSD.
2004-04-18 06:02:19 +00:00
seb
e29c7652a0 Update to version 3.72.
Use more portable Cwd::cwd() instead of $ENV{'PWD'}
2004-04-17 17:26:40 +00:00
heinz
0f9f9185be Use statvfs on UnixWare, similar to Solaris and IRIX. 2004-04-16 23:59:32 +00:00
heinz
e1cd632373 Introduce HAVE_FILE_FLAGS if the system declares UF_SETTABLE and SF_SETTABLE
in addition to member 'st_flags' of struct stat. Use HAVE_FILE_FLAGS instead
of HAVE_STRUCT_STAT_ST_FLAGS.
This avoids confusion on UnixWare which has 'st_flags' but does _not_ support
file flags.
2004-04-16 23:43:36 +00:00
jmmv
329d10ab29 Update to 3.71: print a fatal error if there are any direct dependencies to
the -dirs packages.  Suggest usage of USE_DIRS instead.
2004-04-15 09:41:22 +00:00
abs
82516b2772 Update pkg_chk to 1.47:
- Substitute in @SH@, to ensure we get a sane shell on Solaris
	  From Ben Secrest
2004-04-13 14:36:23 +00:00
schmonz
eab3e5b69c Convert to buildlink3 and enable pkgviews installation. 2004-04-13 02:27:46 +00:00
jmmv
c763264884 Update to 3.70: give errors if the package installs documenation files under
PREFIX/doc or if it registers configuration files in PREFIX/etc (because it
does not honour PKG_SYSCONFDIR properly).
2004-04-12 08:52:14 +00:00
salo
39edd2c1a3 Check for pkgsrc-wip remnants. Welcome to 3.69. 2004-04-12 01:02:19 +00:00
jschauma
1d366a4215 Add pre-generated .0 manpages; only regen under SunOS or AIX. 2004-04-11 21:35:21 +00:00
jschauma
72a9791f20 Add a pre-generated .0 manpage; only regen under SunOS or AIX. 2004-04-11 21:29:52 +00:00
jschauma
d94a9697a9 Add pre-formatted catman pages, so we don't rely on the OPSYS providing
nroff, nor do we need to depend on textproc/groff.
Regen .0 pages under SunOS and AIX as for audit-packages.
2004-04-11 18:29:34 +00:00
rh
c7e5425240 Update pkg_install to 20040411, pulling up the changes in the NetBSD source
tree:

Make pkg_add recognise binary packages built with ignored recommendations
(IGNORE_RECOMMENDED set in the presence of RECOMMENDED pre-requisites).
This change is fully backward-compatible: binary packages have set the
corresponding BUILD_INFO since RECOMMENDED was implemented.  Packages
built before that time will install as before.
Bump PKGTOOLS_VERSION to 20040411.
This closes PR pkg/24712 by Thomas Klausner.
2004-04-11 06:56:11 +00:00
snj
118b6ca25a Convert to buildlink3. 2004-04-11 01:54:20 +00:00
rh
9d4fdc97d6 Update url2pkg to 1.25. The only change is that this now sets
USE_BUILDLINK3 instead of USE_BUILDLINK2.
2004-04-11 00:48:51 +00:00
tv
5f8f17eb0b Merge 20040409: Parameterize the umask calls so that defs.*.mk can change
it on a per-opsys basis (and so that mk.conf can override it to match what
the pkgsrc builder is using).
2004-04-09 18:38:12 +00:00
abs
d913adcace Update pkg_chk to 1.46:
- Fix nawk issues (NetBSD-2.0 and Solaris) - Fixes PR pkg/24931
    - Fix inverted -k test when generating list of binary packages
    - Misc cleanup & removal of debugging entry
2004-04-08 18:48:53 +00:00
agc
2a8f9c23d4 Bring over a fix from main sources:
revision 1.5
date: 2004/04/06 05:56:07;  author: agc;  state: Exp;  lines: +14 -11
Fix signature verification after pkg_add and friends were changed to use
fexec() - trying to exec "gpg --verify %s" won't work with fexec, so split
up the command into separate words.
2004-04-07 22:44:23 +00:00
jmmv
e4b165c217 It's INSTALLATION_DIRS, not INSTALL_DIRS. 2004-04-07 20:16:14 +00:00
jmmv
44a715b2b3 Update to 1.18:
- Make kern-GENERIC.tgz part of the default SETS value, so that we get a kernel
  inside the chroot.  If the user removes it from the list, and no /netbsd file
  exists after extraction, create an empty /netbsd kernel.
  This fixes packages that look for a kernel during compilation, like net-snmp.
  Found by cube@.
2004-04-02 18:03:01 +00:00
jlam
88588c9c0b Use "XF86_VERSION" instead of "_XF86_VERSION" as the variable name since
we use it in several places within pkgsrc as a public variable.
2004-03-30 17:04:06 +00:00
tv
9e75df93f9 Sync with 20040330. 2004-03-30 15:28:08 +00:00