Commit graph

35 commits

Author SHA1 Message Date
wiz
f367007762 *: gd.tuwien.ac.at/ftp.tuwien.ac.at is gone, remove it from various mastersites 2018-04-21 13:38:04 +00:00
agc
30b55df38e Convert all occurrences (353 by my count) of
MASTER_SITES= 	site1 \
			site2

style continuation lines to be simple repeated

	MASTER_SITES+= site1
	MASTER_SITES+= site2

lines. As previewed on tech-pkg. With thanks to rillig for fixing pkglint
accordingly.
2017-01-19 18:52:01 +00:00
richard
330f5ef8c6 Use '$(CPP) -P' to inhibit generation of linemarkers foiling siglist.sh
Noticed on aarch64-linux-gnu with gcc5.3
2016-08-28 13:15:13 +00:00
richard
b546d92e4c PR/51142: address for/select loop compatibility with ksh93 in pdksh 2016-06-05 04:44:56 +00:00
dsainty
b2abaf2265 On Linux, Bash is fine if you don't mind your package builds spending 50% of
their time compiling, and 50% spinning in shell scripts.  If you'd rather
spend your power bill on useful gcc cycles though, you might desire to use a
different shell for running build scripts - like pdksh, which is conveniently
available at bootstrap time.

But what if pdksh does this to you?

pdksh -c 'f=`pdksh -c set | wc -l`; f=$((f+1)); while ((f < 100000)); do f=$((f+1)); eval "v_${f}=0"; echo "$f"; done'|tail -1
 13106
segmentation fault (core dumped)  pdksh -c

Well that's annoying, isn't it.

% echo $(((13106*10+7)/8))
16383

... that's a magical number.  Coincidence?  Well, no.

tp->nfree = 8*nsize/10; /* table can get 80% full */

This particularly ugly overflow happens because tp->size is a short.  When
texpand() does:

  p = &ntblp[hash(tblp->name) & (tp->size-1)];

tp->size-1 will, given enough variables (80% of 2^15), type coerce into a
sign-extended 32-bit value of:

info registers $ecx
ecx            0xffff7fff       -32769

That hash() function does more or less what you guess, it's a 32 bit unsigned
value.  The chances of the final pointer pointing inside the valid allocated
block of memory are very low indeed.

The least-change solution is to change tp->size to a 32 bit value.  I've left
it signed because that matches, for example, the size parameter passed to
texpand().  But really this code would be more correct with a liberal
sprinkling of "unsigned", and perhaps a bit of "size_t".

This change allows ffmpeg's configure script, as interpreted by pdksh, to
produce more usable output than a core file.

Bump PKGREVISION for code change.
2015-09-07 06:43:48 +00:00
wiz
cda18437be Remove pkgviews: don't set PKG_INSTALLATION_TYPES in Makefiles. 2014-10-09 14:05:50 +00:00
asau
5c2dd9e784 "user-destdir" is default these days 2012-09-11 23:19:33 +00:00
hauke
2c4c3da644 Merge the following revisions from NetBSD src:
siglist.sh 1.9: Solaris 7 sort(1) issue with missing whitespace between
option and parameter
lex.c 1.14: C99ish inlined variable declaration
2011-01-23 17:29:30 +00:00
jmmv
9a786011ff Bump PKGREVISION to reflect the recent change in pkginstall/shells to use
etcutils to update /etc/shells.
2010-05-07 12:02:43 +00:00
ahoka
dfc17f736d Fix build on HP-UX.
pdksh is so messy.
2009-06-27 23:42:39 +00:00
joerg
368d71b62e Remove redundant NO_CHECKSUM and EXTRACT_ONLY definitions. 2009-04-09 00:48:06 +00:00
tnn
98164b3a8b Merge the following revisions from NetBSD src:
c_ulimit.c 1.9: avoid sign extension problem
lex.c 1.13: bugfix related to nested quotes
Bump PKGREVISION.
2009-02-21 20:06:30 +00:00
joerg
da712f263e Add a marker for bootstrap packages to allow special cases them during
bulk builds.
2008-06-19 18:36:51 +00:00
tnn
bba810bba3 - Drop __RCSID's
- Define __UNCONST in sh.h instead of on the command line to fix build
  issue with !latest Sun Studio.
2008-06-15 14:20:08 +00:00
tnn
4455b34762 Bump the PKGREVISION for NetBSD-current bugfix merge. 2008-05-31 16:51:10 +00:00
tnn
07f2d7c8b3 Merge assorted bugfixes to pdksh-5.2.14, taken as diff between
PDKSH-5_2_14 and NetBSD-current HEAD as of 2008-05-31.
- Fixes rare segfault seen on Solaris.
- add strlcpy and strlcat fallback implementations from libnbcompat
- regenerate configure (using autoconf-2.12, ugh)
2008-05-31 16:47:36 +00:00
tnn
b2f2840f1f - Adapt to use local distribution.
- Add DESTDIR support.
2008-05-23 17:27:09 +00:00
tnn
6a0de4cf48 merge pkgsrc's patch-ab (remove extern int errno;) 2008-05-23 17:19:49 +00:00
tnn
6e55d25b31 Import subset of pdksh-5.2.14 distribution.
Only the files required to build it, for pkgsrc bootstrap purposes.
2008-05-23 17:15:14 +00:00
wiz
7df37351d3 Remove Ex-MASTER_SITE. From Zafer Aydogan. 2007-12-02 12:29:02 +00:00
heinz
0f470ec87d Removed ftp.rge.com from MASTER_SITES, doesn't resolve anymore
in DNS. Mentioned by Zafer Aydogan in PR pkg/37321.
2007-11-12 20:05:38 +00:00
jlam
dc9594e09d Remove USE_PKGINSTALL from pkgsrc now that mk/install/pkginstall.mk
automatically detects whether we want the pkginstall machinery to be
used by the package Makefile.
2005-12-29 06:21:30 +00:00
joerg
82795aa82a Depend on errno.h for errno. 2005-11-10 22:21:56 +00:00
rillig
bd9061ca03 Fixed pkglint warning. 2005-10-23 15:26:30 +00:00
jlam
5b62763c63 Teach the +SHELLS helper script to not create an /etc/shells file if
one doesn't exist.  From now on, we only add the listed PKG_SHELL to
the /etc/shells file if it already exists.  This fixes PR pkg/27162.
2005-09-20 04:23:48 +00:00
jlam
9813468816 * Separate out the shell registration into a separately unpacked script
+SHELL.

* Turn PKG_REGISTER_SHELLS into a variable that can be set in the shell
  environment so that admins can make a choice when installing from
  binary packages.

* PKG_SHELL is now a list of paths, and if the path is relative, then it
  is taken to be relative to ${PREFIX}.  Convert packages that set
  PKG_SHELL to take advantage of this new feature by changing the full
  paths to the shells into relative paths.
2005-07-29 18:32:17 +00:00
tv
f816d81489 Remove USE_BUILDLINK3 and NO_BUILDLINK; these are no longer used. 2005-04-11 21:44:48 +00:00
agc
d81d19f8e0 Add RMD160 digests. 2005-02-24 12:51:41 +00:00
jlam
49b57e1360 bl3ify 2004-01-05 12:36:41 +00:00
jlam
df094066fa pdksh is no longer used to bootstrap buildlink2. 2003-10-04 10:23:16 +00:00
grant
ca3be631f2 s/netbsd.org/NetBSD.org/ 2003-07-17 22:50:55 +00:00
jmmv
1fccbd08f5 Add several mirrors to MASTER_SITES. 2003-07-16 14:10:11 +00:00
jlam
d7f69e47ce Instead of including bsd.pkg.install.mk directly in a package Makefile,
have it be automatically included by bsd.pkg.mk if USE_PKGINSTALL is set
to "YES".  This enforces the requirement that bsd.pkg.install.mk be
included at the end of a package Makefile.  Idea suggested by Julio M.
Merino Vidal <jmmv at menta.net>.
2003-01-28 22:03:00 +00:00
jlam
ff94e8aa1d Bump PKGREVISION of shells/pdksh to 1: rename installed shell to "pdksh",
as this isn't really the real Korn shell, and "pdksh" is a more accurate
name for it.  Also don't use buildlink2 so that this shell may be used to
bootstrap buildlink2.
2002-11-28 07:42:05 +00:00
schmonz
36d5ea5304 Import pdksh-5.2.14 into the NetBSD Packages Collection.
PD-ksh is a mostly complete AT&T ksh look-alike.  Work is mostly
finished to make it fully compatible with both POSIX and AT&T ksh
(when the two don't conflict). Since pdksh is free and compiles
and runs on most common unix systems, it is very useful in creating
a consistent user interface across multiple machines.
2002-11-28 07:12:09 +00:00