summaryrefslogtreecommitdiff
path: root/mk/check/check-interpreter.mk
AgeCommit message (Collapse)AuthorFilesLines
2008-02-13Adjusted the documentation to the source code.rillig1-2/+2
2008-02-05Convert to ${RUN}tnn1-4/+2
2007-11-30The interpreter check for packages which are their own interpreter,bjs1-2/+6
e.g. lang/perl5, was failing. Adding a check for ${DESTDIR}"$$interp" fixes this.
2007-11-07Activated the check-interpreter for PKG_DEVELOPERs. I don't remember whyrillig1-1/+5
activating this has taken so long.
2007-03-24More DESTDIR fixes in warnng/error messagesheinz1-5/+5
2007-03-24Removed unnecessary shell code:heinz1-2/+2
p|p) is the same as p)
2007-03-20Fix check-interpreter when using USE_DESTDIR. From Klaus Heinz onjoerg1-3/+3
tech-pkg.
2006-11-12Moved the test whether this check should be enabled to this file.rillig1-13/+7
Removed the dependency to NO_PKG_REGISTER. Renamed the check-interpreter target to _check-interpreter.
2006-11-12Improved the formatting of the comment and made the code a littlerillig1-21/+22
shorter.
2006-10-10s/LOCALBASE/PREFIX/, but thanks for catching this.joerg1-2/+2
2006-10-09Since a few hours, the .PLIST file does not contain the full pathnamesrillig1-1/+2
anymore. Therefore, cd to ${LOCALBASE} to correctly resolve the relative pathnames.
2006-10-09Main infrastructure for DESTDIR support.joerg1-2/+2
Packages may set PKG_DESTDIR_SUPPORT to either "destdir" or "user-destdir" to flag support for this, following the same rules as PKG_INSTALLATION_TYPES (e.g. define before first include of bsd.prefs.mk). The user activates it via USE_DESTDIR. When set to "yes", packages with "user-destdir" are handled as "destdir". The installation of the package will not go to ${LOCALBASE}, but a subdirectory of ${WRKDIR} instead. pre/post install scripts are not run and the package is not registered either. A binary package can be created instead to be installed normally with pkg_add. For "user-destdir" packages, everything is run as normal user and ownership is supposed to be correctled by pkg_create later. Since the current pkg_install code uses pax and it doesn't allow overwriting owners, this does not work yet. For "destdir" packages, installation, packaging and cleaning is run as root. This commit does not change the handling of DEPENDS_TARGET or bin-install to allow recursive usage.
2006-07-13Fixed default path wildcards for CHECK_INTERPRETER_SKIP. Now theyheinz1-4/+6
actually apply to the whole subtree.
2006-07-03Moved the command that generates the list of files to its own variable,rillig1-2/+4
so it can be overridden on the command line. This allows to check for example ${WRKSRC} instead of the installed files. Of course, since the variable starts with an underscore, this feature is not meant to be official.
2006-07-02I forgot to mention in the last commit that share/examples and share/docrillig1-1/+1
are automatically excluded from the checks, since those files are not intended to be executed directly.
2006-07-02Added a proper interface documentation. Instead of a .for loop, therillig1-9/+24
run-time for loop is used, which allows for white-space in CHECK_INTERPRETER_SKIP.
2006-06-16It is worth a warning if a freshly installed file is not readable.rillig1-1/+6
2006-06-14Create DELAYED_{ERROR,WARNING}_MSG macros that can be used to outputjlam1-8/+4
error and warning messages that are picked up by the error-check target. Use them instead of using a bare ${ECHO} for more code clarity. Implemented as suggested by Roland Illig.
2006-06-12Be more consistent about how we're emitting errors and warnings.jlam1-6/+8
2006-06-09Introduce the capability to gather all the warnings and errors thatjlam1-13/+17
are generated for a target and output them all at once at the conclusion of the target's invocation. The implementation is in bsd.pkg.error.mk, which defines a macro target "error-check" that will print out any non-empty warning and error files in ${WARNING_DIR} and ${ERROR_DIR} and exit appropriately if there were errors. Convert some targets that were just long sequences of ${ERROR_MSG} or ${WARNING_MSG} within a single shell statement to use the new delayed error output via error-check. Modify the compiler "fail" wrappers for C++ and Fortran to be less verbose during invocation. Instead collect the warnings and only print them at the end of the completed phase, e.g. after "configure" and/or "build" completes.
2006-06-07Use WARNING_MSG and ERROR_MSG for consistency.jlam1-4/+4
2006-06-06Check for [[:space:]] instead of [ ]. This fixes a misbehavior whenrillig1-2/+2
script files contain CRLF line-ends.
2006-06-03First pass at implementing support for package system flavors otherjlam1-0/+47
than pkgsrc's current one. This is an important lead-up to any project that redesigns the pkg_* tools in that it doesn't tie us to past design (mis)choices. This commit mostly deals with rearranging code, although there was a considerable amount of rewriting done in cases where I thought the code was somewhat messy and was difficult to understand. The design I chose for supporting multiple package system flavors is that the various depends, install, package, etc. modules would define default targets and variables that may be overridden in files from pkgsrc/mk/flavor/${PKG_FLAVOR}. The default targets would do the sensible thing of doing nothing, and pkgsrc infrastructure would rely on the appropriate things to be defined in pkgsrc/mk/flavor to do the real work. The pkgsrc/mk/flavor directory contains subdirectories corresponding to each package system flavor that we support. Currently, I only have "pkg" which represents the current pkgsrc-native package flavor. I've separated out most of the code where we make assumptions about the package system flavor, mostly either because we directly use the pkg_* tools, or we make assumptions about the package meta-data directory, or we directly manipulate the package meta-data files, and placed it into pkgsrc/mk/flavor/pkg. There are several new modules that have been refactored out of bsd.pkg.mk as part of these changes: check, depends, install, package, and update. Each of these modules has been slimmed down by rewriting them to avoid some recursive make calls. I've also religiously documented which targets are "public" and which are "private" so that users won't rely on reaching into pkgsrc innards to call a private target. The "depends" module is a complete overhaul of the way that we handle dependencies. There is now a separate "depends" phase that occurs before the "extract" phase where dependencies are installed. This differs from the old way where dependencies were installed just before extraction occurred. The reduce-depends.mk file is now replaced by a script that is invoked only once during the depends phase and is used to generate a cookie file that holds the full set of reduced dependencies. It is now possible to type "make depends" in a package directory and all missing dependencies will be installed. Future work on this project include: * Resolve the workflow design in anticipation of future work on staged installations where "package" conceptually happens before "install". * Rewrite the buildlink3 framework to not assume the use of the pkgsrc pkg_* tools. * Rewrite the pkginstall framework to provide a standard pkg_* tool to perform the actions, and allowing a purely declarative file per package to describe what actions need to be taken at install or deinstall time. * Implement support for the SVR4 package flavor. This will be proof that the appropriate abstractions are in place to allow using a completely different set of package management tools.