summaryrefslogtreecommitdiff
path: root/mk/defs.Linux.mk
AgeCommit message (Collapse)AuthorFilesLines
2004-09-13Use /bin/false instead of false for NOLOGINmartti1-2/+2
2004-08-27Replace RPATH_FLAG with LINKER_RPATH_FLAG and COMPILER_RPATH_FLAG,jlam1-2/+1
which are the full option names used to set rpath directives for the linker and the compiler, respectively. In places were we are invoking the linker, use "${LINKER_RPATH_FLAG} <path>", where the space is inserted in case the flag is a word, e.g. -rpath. The default values of *_RPATH_FLAG are set by the compiler/*.mk files, depending on the compiler that you use. They may be overridden on a ${OPSYS}-specific basis by setting _OPSYS_LINKER_RPATH_FLAG and _OPSYS_COMPILER_RPATH_FLAG, respectively. Garbage-collect _OPSYS_RPATH_NAME and _COMPILER_LD_FLAG.
2004-06-27Use shell builtins where possible, particularly for TEST.jschauma1-9/+5
Pointed out by Roland Illig on tech-pkg.
2004-06-18Remove Motif 1.2 functionality.kristerw1-2/+1
2004-05-31Use a cleaner approach for previous:jschauma1-1/+4
- set RSH on an opsys-specific basis, defaulting to /usr/bin/rsh (XXX: please confirm/verify this on your OS) - set SSH_RSHPATH to RSH in bsd.pkg.defaults.mk
2004-05-12Mention how SETGIDGAME and the other GAME vars are set per default.jschauma1-1/+12
Add commented-out definitions for all OPSYS - please adjust.
2004-04-30Use the shell's builtin echo instead of /bin/echo.reed1-2/+2
2004-04-19Add the 'maximum command line check' to all defs.*.mk files for consistencyjmmv1-1/+9
across all of them, but let it commented out until each responsible person for each system modifies it to work correctly. Requested by agc@.
2004-04-13Remove redundant assignments of PKG_TOOLS_BIN. PKG_TOOLS_BIN isheinz1-5/+1
${LOCALBASE}/sbin on Linux, Darwin and IRIX.
2004-04-07Convert "${ECHO} -n" to "${ECHO_N}", and introduce that into the defs.*tv1-1/+2
files. On most platforms this resolves back to "${ECHO} -n".
2004-03-11Get rid of all occurrences of cpp-like tests for ${OPSYS} inagc1-1/+2
bsd.pkg.mk, and use the abstracted means of determining generic shared lib type per operating system.
2004-01-31Add some new variables for manual pages when using imake.xtraeme1-1/+5
They are: o IMAKE_KERNMAN_DIR (man4 or cat4) o IMAKE_MISCMAN_DIR (man7 or cat7) o IMAKE_KERNMAN_SUFFIX o IMAKE_MISCMAN_SUFFIX Ok'ed by Hubert Feyrer in private email.
2004-01-27Replace all occurrences of the "MAIL" definition with MAIL_CMD, sinceagc1-3/+3
some shells can set MAIL to be the mailbox of the user, and environment variables will override assignments in make when using conditional assignments.
2003-12-16Introduce command MAIL. It will be used to send messages like this:heinz1-1/+6
echo "message" | ${MAIL} -s"subject" add@ress.example
2003-12-16Allow _PATCH_BACKUP_ARG to be overridden in /etc/mk.conf (in order to use ↵heinz1-2/+2
different patch programs). Ok by agc
2003-10-19tell imake not to build HTML man pages.grant1-1/+3
2003-09-23add a TAR definition for a suitable tar implementation, notgrant1-1/+2
necessarily GNU tar. XXX GTAR should probably always point to real GNU tar later.
2003-09-14-lpthread is a no-op on Darwin, but it messes up buildlink. So add a newdanw1-1/+2
flag _OPSYS_PTHREAD_AUTO ("yes" for Darwin, "no" for everyone else) and make pthread.buildlink2.mk do basically nothing in that case.
2003-09-05Use LOCALBASE instead of ZOULARISBASEmartti1-5/+10
2003-09-02Merge pkgviews-mk branch into the HEAD by running:jlam1-1/+1
cd pkgsrc/mk cvs update -Pd -A cvs update -Pd -j pkgviews-mk-base -j pkgviews-mk
2003-08-26Create a symlink from the "make" requested by the package intojlam1-3/+2
${TOOLS_DIR}/bin/make. If a package wants GNU make, then it should set: USE_GNU_TOOLS+= make in the package Makefile. Allow for USE_GMAKE to continue to work until we get a chance to sweep through pkgsrc and remove the usage of this now-redundant variable. This change allows us to avoid patching makefiles that use a bare "make" command to invoke sub-make processes. Idea suggested by salo@netbsd.org in pkg/22509.
2003-08-25The standard "root" group under Linux is "root" not "wheel".reed1-2/+2
PR #22566
2003-08-23Set GMAKE to /usr/bin/make only of that actually exists, else set itjschauma1-2/+7
to ${LOCALBASE}/bin/gmake. Patch by Soren Jacobsen in PR pkg/22506. (Not closing that PR, as we should determine a procedure to bootstrap on a system without any make.)
2003-06-06test, too, can be in /bin or /usr/bin. Apparently.jschauma1-1/+5
2003-06-06Found some more programs that may be in either /bin or /usr/bin dependingjschauma1-2/+14
on what todays flavor of Linux is.
2003-04-20touch(1), cut(1) and nice(1) are not necessarily required in /bin on Linuxcjep1-1/+13
systems according to FHS. Make provision for distributions that don't put them there. From Jeremy Reed in PR#21235.
2003-04-15add OPSYS_{,NO_}WHOLE_ARCHIVE_FLAG which defines the argument passedgrant1-1/+6
to the linker to (not) extract all symbols from static archives and export these variables to packages as {,NO_}WHOLE_ARCHIVE_FLAG. these are not currently set for IRIX.
2003-03-20Alternative check if IPv6 is available with the OS.hubertf1-2/+2
Addresses PR 20019.
2003-03-04Move M4 default definition into the defs.$OPSYS.mk files: unconditionallyseb1-1/+2
set it to /usr/bin/m4 for everyone, at least for now.
2003-02-28Add definitions for HOSTNAME_CMD, so that just-in-time-su doesn't failjschauma1-1/+2
on Irix. Noted and suggested by Pavel Cahyna in a private email.
2003-02-27look for basename, egrep, fgrep, grep and sed in both /bin andgrant1-1/+21
/usr/bin, to deal with varying linux distributions. addresses PR pkg/20477 from Tracy Di Marco White.
2003-02-24When using imake, add a bunch of variables to the PLIST_SUBST list, injschauma1-1/+12
order to simplify man-page handling across platforms: If your application installs man pages on NetBSD into man/cat1/foo.0 but in man/man1/foo.1x on Linux, simply use ${IMAKE_MAN_DIR}/foo.${IMAKE_MANNEWSUFFIX} Definitions for Darwin provided by grant, others from /usr/X11R6/lib/X11/config/* This allows us to put away with having multiple PLISTs just for the different man page locations. PKGREVISION bumps of `grep -l USE_IMAKE pkgsrc/*/*/Makefile` coming up after revision and adjusting.
2003-01-15Make BUILD_DIR always point to a physical path by invoking /bin/pwd insteadjlam1-1/+2
of relying on the shell's builtin pwd. This makes BUILD_DIR consistently point to the correct directory regardless of the definition of SHELL. This fixes elusive some buildlink2 errors due to the fact that BUILDLINK_DIR is derived from BUILD_DIR and some paths were incorrectly being translated.
2003-01-10Install a ${PREFIX}/bin/shlibtool as part of the devel/libtool-basejlam1-2/+1
package. shlibtool will not build static libraries. Add handling in bsd.pkg.mk for a variable named "SHLIBTOOL_OVERRIDE" that is analogous to LIBTOOL_OVERRIDE and causes any listed libtool scripts to be replaced with a symlink to shlibtool, and teach buildlink2 about shlibtool. Bump PKGREVISION of devel/libtool* packages to 11.
2002-12-18Introduce _OPSYS_HAS_INET6, and use it to determine the defaultschmonz1-1/+6
value of USE_INET6.
2002-12-16Add TEE and TSORT (required for bulk builds).salo1-1/+3
2002-12-15Add DATE and NICE (required for bulk builds).salo1-1/+3
2002-12-15Add FGREP.salo1-1/+2
2002-12-03Eliminate another usage of ${OPSYS} in bsd.pkg.mk - realy on Darwinagc1-1/+2
defining _OPSYS_PERL_REQD to the correct value to make sure there's a valid perl version for that platform.
2002-12-03Add a layer of abstraction into bsd.pkg.mk for Java settings - set theagc1-1/+2
path to the java home directory depending upon whether the operating system includes Java by default. Use the operating system-dependent definitions files to set this value.
2002-12-03Use ${_PATCH_CAN_BACKUP} rather than hardcoding an OPSYS value intoagc1-1/+2
the logic for doing backups when applying patches, and set the value accordingly in the opsys-dependent defs file.
2002-12-03Use a more generic way of determining, on an opsys-dependent basis,agc1-1/+2
whether the gettext package should be used.
2002-12-03Handle the different rpath directive to the linker for Irix in a different,agc1-1/+2
more generic, way - use an abstraction called ${_OPSYS_RPATH_NAME} which takes the value "-rpath," or "-R", set appropriately in the opsys-dependent defs files.
2002-12-03Abstract out the base value of libtool required into _OPSYS_LIBTOOL_REQD,agc1-1/+2
and use that rather than a hardcoded ${OPSYS} default in bsd.pkg.mk
2002-10-23Remove USE_LIBINTL and _DO_LIBINTL_CHECKS, which have been replacedwiz1-2/+1
by devel/gettext-lib/buildlink2.mk.
2002-10-04Add definitions for EXPR == expr, used for portable shell arithmetic. Ijlam1-1/+2
was only able to check the paths for NetBSD and Linux...Solaris and Darwin pkgsrc developers should change the path to expr in the right defs.*.mk file.
2002-09-04Apply patches from Lubomir Sedlacik <salo@Xtrmntr.org> in PR 18115 toagc1-1/+2
generalise the linker flags used to export symbols by setting them on a per-OS basis. > many packages force -Wl,-export-dynamic which is not portable outside GNU ld > and cause problems e.g. on Solaris. some of these packages use if > conditionals either only for NetBSD or except SunOS, but the state is not > coherent and it may complicate later when support for new OS is added to > pkgsrc (e.g. ongoing work on HP-UX support). > > jlam proposed the following framework in discussion on tech-pkg: > > http://mail-index.netbsd.org/tech-pkg/2002/06/21/0009.html > > now, ${EXPORT_SYMBOLS_LDFLAGS} is used instead of directly defining > -Wl,-export-dynamic which is set in appropriate defs.*.mk to reasonable > values. packages should be converted to this framework by: > > 1) replacing LDFLAGS+= -Wl,-export-dynamic and LIBS+= -export-dynamic with: > > LDFLAGS+= ${EXPORT_SYMBOLS_LDFLAGS} > > 2) for use in patchfiles, add this variable to MAKE_ENV if needed: > > MAKE_ENV+= EXPORT_SYMBOLS_LDFLAGS=${EXPORT_SYMBOLS_LDFLAGS} > > 3) replace occurances of -Wl,-export-dynamic and -export-dynamic in patch > files with: > > $(EXPORT_SYMBOLS_LDFLAGS)
2002-08-28Allow more flexibility in the handling of UNLIMIT_RESOURCES.seb1-1/+4
Each word of UNLIMIT_RESOURCES is supposed to be a knob on ULIMIT_CMD_<word> variable which value if defined is added to _ULIMIT_CMD. The ULIMIT_CMD_* variables are set per $OPSYS in defs.*.mk and are overridable by the user. Solaris' default value of ULIMIT_CMD_memorysize adjusted as suggested in PR pkg/18087 by Jonathan Perkin <sketch@rd.bbc.co.uk>.
2002-07-15Provide per-${OPSYS} defaults for how to run a command as root.schmonz1-1/+2
Darwin ships with a disabled root account and a working "sudo".
2002-06-21Linux updates: match MTREE value in pkg_install, pass correct arg to patch ↵abs1-5/+5
to create .orig files, and update ZOULARISBASE to /usr/pkg