Commit graph

136 commits

Author SHA1 Message Date
rillig
2b1a9a3af0 mk/scripts: fix a few of the HTML injections in README generation
These are needed for the djb-errno-hack option, which includes the <>
characters.
2020-05-10 07:48:10 +00:00
rillig
e4719c2d8a mk/subst.mk: allow identity substitutions with escaped dots
This fixes the build of converters/help2man in SUBST_NOOP_OK=no mode.
2020-05-06 06:14:56 +00:00
rillig
4bafb8759a mk/subst.mk: allow identity substitutions in SUBST_NOOP_OK=no mode
There are several cases where patterns like s|man|${PKGMANDIR}| appear in
SUBST_SED.  Up to now, these had been categorized as no-ops and required
extra code to make the package build when SUBST_NOOP_OK was set to "no".

This was against the original intention of SUBST_NOOP_OK, which was to
find outdated substitution patterns that do not occur in SUBST_FILES
anymore, most often because the packages have been updated since.

The identity substitutions do appear in the files, they just don't change
them.  Typical cases are for PKGMANDIR, DEVOSSAUDIO, PREFIX, and these
variables may well be different in another pkgsrc setup.  These patterns
are therefore excluded from the SUBST_NOOP_OK check.
2020-04-29 18:33:56 +00:00
maya
3659de2832 gcc{48,49,5,6,7,8}: In the case of a "system GCC", detect if the system
libgcc is newer than the one about to be installed. If so, don't install
the libgcc.

Having an older libgcc appear in the lookup may result in binaries not
running, as they need symbols from the newer libgcc.
Such a case is PR pkg/54506.

Leaves SunOS unchanged, by request from jperkin.
2019-09-08 14:47:52 +00:00
maya
6c25dec844 Remove clauses 3,4 from TNF-only copyright blocks.
This is based on the decision The NetBSD Foundation made in 2008 to
do so, which was already applied to src.

This change has been applied to code which is likely not in other
repositories.

ok board@, reviewed by riastradh@
2018-08-22 20:48:36 +00:00
jlam
6f3e827791 Remove unused scripts/shlib-type script.
The platform/${OPSYS}.mk files now use platform-specific code to
set ${_OPSYS_SHLIB_TYPE} which is the default value for
${SHLIB_TYPE}.  All previous uses of this script to detect the
native shared library type or native executable format have been
removed from pkgsrc.
2017-06-01 13:30:52 +00:00
wiz
7464e41200 Less noise. 2016-08-19 12:17:26 +00:00
wiz
dd02618689 Be less verbose. 2016-07-07 12:01:22 +00:00
wiz
e3a74a47f5 Be less verbose. 2016-07-07 11:29:34 +00:00
bsiegert
f0d23e414a Add a list of options to generated README.html files. Patch from
Daniel Loffgren on tech-pkg, slightly modified by me to use dl tags.
2015-10-03 13:17:57 +00:00
spz
0a14d71201 Fix
/pub/pkgsrc/current/pkgsrc/mk/scripts/mkreadme: ls: argument list too long
2015-06-13 12:09:32 +00:00
riastradh
9e0c502480 Split BUILD_DEPENDS into TOOL_DEPENDS and BUILD_DEPENDS in mk/.
Build depends are target packages that are needed at build-time for,
e.g., static libraries to link against, header files to include, &c.
Tool depends are native packages that are needed at build-time for,
e.g., compilers/linkers/&c. to run.

ok agc
2013-05-09 23:37:25 +00:00
joerg
af3cbe2308 Allow running on systems where pkg_admin is not in PATH 2013-04-12 13:53:57 +00:00
spz
e17a6f70d6 fix up paths on ftp.NetBSD.org:
- reading through the null mounts is deprecated
- writing through the null mounts is not allowed (not possible)
2011-04-22 09:03:52 +00:00
spz
36ab4b3e9a give the readme creation scripts the option to be a lot less talkative,
by optionally disabling progress report type output.
This will make the daily pkgmastr mail a lot smaller without dropping
useful information.
2010-07-21 12:29:46 +00:00
spz
10b9a21ac4 we nowadays have too many packages to have the grep for IPv6 in Makefiles
and options.mk to succeed, so grep by category instead
2010-07-15 05:25:30 +00:00
spz
d669f18614 fix file permission != directory permission problem for the pkg_summary.bz2 2010-03-13 11:45:16 +00:00
spz
7032673141 update pkg_summary.bz2 files if existing (and the pkg_summary.gz gets updated) 2010-03-12 20:19:15 +00:00
spz
a76d742409 delete the summary and cache files in case the dir is writeable, but the
file isn't (as suggested by bouyer@)
fix typo in output message
2010-02-27 12:00:54 +00:00
wiz
68eb24b1c0 Teach remove_todo how to remove entries for Python packages. 2009-09-10 15:35:50 +00:00
wiz
71c2cba0e6 When making an entry to the CHANGES-* file using 'make changes-entry',
the target now automatically also removes any TODO entries for the
package that was updated.

Script improved based on version by dholland; further suggestions
by gdt and joerg.
2009-08-21 12:51:07 +00:00
dbj
06b5331c6d this script was not visiting packages in the proper order when subpackages
had common dependencies.  This change hopefully fixes that.
2009-01-05 02:37:05 +00:00
wiz
d2d7499b6b Apply patch from Aleksej Saushev to fix index generation. 2008-09-07 11:13:51 +00:00
tnn
d7188a9079 fix "make readme" error due to awk changes in -current.
From Aleksej Saushev.
2008-08-03 16:24:53 +00:00
joerg
45efa7e875 Change the code generation README.html to use the new
"pkg_admin audit-history" command to print the full list of
vulnerabilities and use further pkg_admin pmatch logic to mark them as
fixed or still open. For pkg_install versions before 20080415, skip the
vulnerability processing.

Discussed with: dmcmahill
2008-04-18 14:26:36 +00:00
joerg
1375bd1199 Remove remaining compat code for old pkg_install versions. 2008-03-15 16:27:42 +00:00
adrianp
8c8f2165fb * Rename AP var to AUDIT_PACKAGES as the former was a bit obscure
* Add DOWNLOAD_VULN_LIST var
* Get AUDIT_PACKAGES and DOWNLOAD_VULN_LIST to point to the right binaries
  taking into consideration OPSYS and pkg_install version
* Replace all references to audit-packages and download-vulnerability-list
  with AUDIT_PACKAGES and DOWNLOAD_VULN_LIST
2008-01-03 20:51:21 +00:00
rillig
78baea8080 Changed ${TEST} to [...], since only the very basic conditions are
checked, which is handled the same by every implementation of test(1).

Removed the comment saying that absolute directories can be handled. It
doesn't work.
2007-10-31 19:20:08 +00:00
adrianp
64dfe76316 Rename PKGTOOLS_VER to PKGTOOLS_VERSION and use that everywhere
Export PKGTOOLS_VERSION so that genreadme.awk can use it
This will sync the output between './mkreadme' and 'make readme'
2007-10-20 13:35:12 +00:00
rillig
6521357648 The "debug" variable was often used like "if [ $debug = yes ]; then ...;
fi". There is an easier way to solve the same problem with much less
code.
2007-10-13 17:46:12 +00:00
rillig
de3c265e94 The --database option doesn't exist. 2007-10-13 17:29:26 +00:00
martti
bd986edbc7 Remove trailing spaces. 2007-10-09 19:19:08 +00:00
rillig
f60e7ea91d Fixed CVS Id and trailing empty lines. 2007-10-09 14:33:25 +00:00
jlam
07dd3147c6 Convert packages that test and use USE_INET6 to use the options framework
and to support the "inet6" option instead.

Remaining usage of USE_INET6 was solely for the benefit of the scripts
that generate the README.html files.  Replace:

	BUILD_DEFS+=	USE_INET6
with
	BUILD_DEFS+=	IPV6_READY

and teach the README-generation tools to look for that instead.

This nukes USE_INET6 from pkgsrc proper.  We leave a tiny bit of code
to continue to support USE_INET6 for pkgsrc-wip until it has been nuked
from there as well.
2007-09-07 22:12:10 +00:00
adrianp
583342970a The code for the pkg_install<20070714 vulnerability checks used in the
README.html generation are broken.  It will not find vulnerabilities in any
packages that have complex names in the pkg-vulnerabilties file.
e.g. php{4,5}-perl and sun-{jdk,jre}15
Post pkg_install-20070714 this is now fixed and only currently known
vulnerabilities are shown in the generated README.html files for packages.

You will need to update to pkg_install>=20070714 to get this fix.
2007-08-29 23:26:30 +00:00
adrianp
7178eb82ce Be more intelligent when setting PVDIR. If pkg_install<20070714 then use
PKGVULNDIR; else extract the current setting using audit-packages -Q and use
that.  In addition to this mkreadme can still be called with -V to specify
a pkg-vulnerabilities file that will override any automatic detection.
2007-08-02 22:42:05 +00:00
jlam
21129d3f69 Don't bother using environment variables to pass info the shlib-type
shell script.  Just specify everything on the command line.  Also,
since shlib-type is a plain-old shell script with no bells and whistles,
we can safely run it with "sh" and not "${SH}", which is necessary
because "${SH}" isn't defined at this point.
2007-08-02 16:00:33 +00:00
jlam
6c4f985be1 Rewrite in a more portable way (basically cripple ourselves to Solaris
/bin/sh).
2007-08-02 15:46:33 +00:00
jlam
2d76049e1e Add back a facility to rebuild the run-time library search paths database
on platforms that need it.

XXX Right now, if the platform needs it, then it runs for every package.
XXX This needs to be fixed to only run for packages that install shared
XXX libraries.

* Move mk/plist/shlib-type to mk/scripts.

* Move definition of SHLIB_TYPE from mk/plist/plist.mk to bsd.pkg.mk.

* Move inclusion of bsd.pkginstall.mk below bsd.tools.mk so that it
  can use SHLIB_TYPE.  This is necessary because SHLIB_TYPE's value
  is the result of evaluating a command, and the command needs "TOOL"
  definitions provided by bsd.tools.mk.
2007-07-18 18:01:02 +00:00
martti
5867247b54 Remove trailing spaces. 2007-05-28 11:07:00 +00:00
adrianp
e345235eb8 * Add an extra -V option to mkreadme to support a non-standard PKGVULNDIR
* Add the necessary changes to allow genreadme.awk to process the v1.1.0
  format pkg-vulnerabilities file.
* Changes are fully backward compatable i.e. mkreadme should be able to
  parse v1.0.0 and v1.1.0 format files.
2007-02-18 00:08:36 +00:00
adrianp
f58ba92ec6 Don't mention -m in the example when the script does not support it. 2007-01-08 20:52:59 +00:00
rillig
b51c2d32b3 Added the FAIL command, which can be prepended to an arbitrary shell
command, making it return with a non-zero exit status.

The first use of it is in a command called FAIL_MSG, which prints an
error message and exits immediately. ERROR_MSG itself doesn't do that.
2007-01-06 19:53:01 +00:00
martti
e2610fb8c8 Remove trailing tabs. 2006-12-15 13:15:06 +00:00
martti
2cc4216d5e Remove trailing spaces. 2006-12-15 12:46:23 +00:00
rillig
212ec91f00 Removed setargs_from_cmd, as it is unused. 2006-10-22 00:35:26 +00:00
dmcmahill
c667b853e3 Update the usage output to reflect current reality. Noted by Stoned
Elipot.
2006-07-28 20:52:35 +00:00
dmcmahill
99b57ce645 remove spurious empty line at the top of the summary files 2006-07-28 18:41:53 +00:00
dmcmahill
63bfc354d4 Allow the binpkg-cache script to also generate pkg_summary.gz files
if requested.  Suggested by Joerg Sonnenberger.
2006-07-28 02:41:07 +00:00
dmcmahill
4d7c638162 Add a script that can be used to scan for NO_BIN_ON_FTP packages using
the cache files left by the README.html generation.  This is indended
to be used to monitor a ftp server, not for generating a file list for
uploading to a ftp server.
2006-07-01 11:11:21 +00:00