Commit graph

2654 commits

Author SHA1 Message Date
tron
ef247410ff Bump minimum required version of "x11-links" package. 2003-10-18 18:24:56 +00:00
agc
8a94a2a19b Fix PR 17883 by adding code to perform just-in-time su(1) functionality
for the bin-install target.
2003-10-18 12:29:26 +00:00
grant
29952c062d move the libstdc++ fake libtool archive stuff out of
!defined(COMPILER_MK) for now.

some packages include bsd.prefs.mk before defining USE_BUILDLINK2,
which resulted in the libstdc++ fake-la target being missed.

XXX the real fix is to include compiler.mk from both bsd.prefs.mk and
XXX bsd.pkg.mk, and have compiler.mk make the right decisions based on
XXX where it was included from.
2003-10-18 09:14:47 +00:00
grant
362aa4e7b9 properly quote the value of PKGNAME_REQD when calling ${MAKE} to
build a dependency so that the shell does not attempt to do
interpret the value of PKGNAME_REQD.

noticed on Linux building graphics/mplayer where the build of
audio/nas was broken because ${MAKE} was being called with
PKGNAME_REQD=nas>=1.4.2 instead of PKGNAME_REQD="nas>=1.4.2"
2003-10-18 05:23:48 +00:00
salo
e809a25d8c Set default for SILC_CLIENT_WITH_PERL here. 2003-10-16 12:36:29 +00:00
veego
4d271b3397 Update pkgtools/x11-links to 0.16.
Changes include supporting XFree86-4.3.99.14 aka XFree86-current.
Added some new library versions and some freetype2 include files.
And bump the required version number in the bsd.buildlink mk's.
2003-10-13 15:55:11 +00:00
jschauma
8c394acac4 Add a dot before the 'if' statement.
Pointed out by Bas van Oostveen in PR pkg/23141.
2003-10-13 00:23:49 +00:00
grant
30e601d197 fix logic error introduced in last, sync comments about CC_VERSION
with reality.
2003-10-12 03:05:37 +00:00
grant
1e6dc66ad0 use 'solaris2' instead of 'solaris' in MACHINE_GNU_PLATFORM to
fix breakage in some GNU configure scripts.

based on patch from Jonathan Perkin in PR pkg/20701.
2003-10-11 06:46:45 +00:00
grant
bd1a3a58f0 add a BUILD_DEPENDS on devel/patch if no suitable patch(1) is
available.

fixes my PR pkg/18380, with hints from jschauma.
2003-10-11 05:09:39 +00:00
grant
8031c4141d set CC_VERSION for non-gcc and use it in the BUILD_INFO file. 2003-10-11 03:43:14 +00:00
grant
beb87586be don't hardcode the -DHasGcc2... flags to imake, pass them only if
we're actually using gcc on Solaris.

fixes building of imake PIC code when the compiler is not gcc.
2003-10-11 02:44:17 +00:00
grant
93835fcfa7 find the right GREP and SED programs and use them. 2003-10-11 02:39:24 +00:00
hubertf
bba9c15fbd This patch addresses three problems:
1) When checking if any of the required binary pkgs is newer, it's
   not good to look into the (already existing) binary pkg, as that
   might be unchanged. Instead, look at the DEPENDS.

   In the context of the recent jpeg changes, the gd package itself was
   not changed, but the DEPENDS were (via buildlink files). Now looking
   into the existing gd binary pkg still said it wanted jpeg-6b instead
   of the now-wanted jpeg>=6b, which was only available via the DEPENDS.

   That's the first chunk of the patch below.

2) While debugging this, I found that the change in rev. 1.48 was
   wrong, as can be seen throughout the last bulk build, search for errors
   like:

	find: "/usr/cvs.local/pkgsrc/packages/i386/All/gd-2.0.15.tgz": No such file or directory

   As the whole operation is really on two files (as assured by "pkg_admin
   lsbest" for pkg and REFS by definition), the quotes can be ommitted.

   Why this wasn't caught when that change was tested is beyond me - maybe
   different sh(1) behaviour? (The error happened on 1.6.1_STABLE, see
   e.g. http://smaug.fh-regensburg.de/~feyrer/ftp/pub/NetBSD/pkgstat-i386/last/www/p5-Template-Toolkit/.broken.yui.html).

   Anyways, that's addressed in the second part of the patch below, too.

3) Use ${FIND} while there.
2003-10-10 21:45:55 +00:00
jschauma
dbf59fa554 Follow Dan Winships solution from the teTeX-bin package to check for
OS_VERSION >= 6.0 by using
${OS_VERSION:R} >= 6
2003-10-10 15:46:08 +00:00
jlam
9118eddb47 Change the way in which arguments are processed by the wrappers. We
know read the arguments by first placing them in a buffer and taking
the argument in the first non-empty buffer as the argument to process.
The buffer is there to allow "splitting" an argument into multiple
arguments (currently up to five arguments), e.g. "-Wl,-R/path1:/path2"
is split into "-Wl,-R/path1" and "-Wl,-R/path2".  Each split argument
is placed into a buffer.  Using a buffer lets us read and process all
of the arguments in a single pass despite "pushing" more arguments
onto the front of the argument array.
2003-10-09 12:15:15 +00:00
jlam
52539db8bd It's "skipargs", not "skip". 2003-10-09 08:19:47 +00:00
agc
2e630c6cd7 Use the -S argument to pkg_admin(1) if it exists. 2003-10-08 10:07:20 +00:00
jlam
ec20dd29fa Use sed instead of requiring gawk (for gensub) for portability. 2003-10-08 09:11:33 +00:00
jlam
eb469bd90b Revert previous change as gsub() doesn't quite work like gensub() with
respect to \1, \2, etc. subexpression replacement.
2003-10-07 10:59:41 +00:00
jlam
653a32a9bc Allow a new variable SUBST_FILTER_CMD.<class> that is a command filter or
pipeline that takes stdin, performs the substitions and writes the result
to stdout.  It defaults to ${SED} ${SUBST_SED.<class>}.  Use this variable
to replace the sed command with something else, like an awk process.
2003-10-07 10:19:09 +00:00
seb
7760a337ee Insure that the install-info we found is not one provided by the gtexinfo
package by comparing its "base path" against LOCALBASE.

This should fix the problem mentioned in PR pkg/20450.
2003-10-07 09:09:56 +00:00
grant
1e3a7c9905 allow lang/gcc{,3} to be used to build themselves by only adding the
(build) dependency if the package being built is not the package which
is providing the compiler.
2003-10-06 11:14:22 +00:00
jlam
827195bab5 Simplify by using gsub() instead of gensub() in awk script. 2003-10-06 10:51:04 +00:00
grant
e6c85cbd25 avoid F77/PKG_FC being recursively defined.
reported by krister.

XXX the Fortran gunk in bsd.pkg.mk will be moved to here later.
2003-10-06 07:11:19 +00:00
grant
cc5e29a43e require libtool nb16 on Darwin for latest library name fix. 2003-10-05 08:20:44 +00:00
jlam
12a8599501 Add some documentation. 2003-10-04 10:20:09 +00:00
jlam
8ecc105e86 Darwin's special GCC uses "-install_name /path/shlib" to indicate
the final installed location for the named shared library, and we
need to protect the full path from "/path/shlib" -> "-L/path -lshlib"
transformation.
2003-10-03 19:40:55 +00:00
jlam
197d02376d Factor out some more commonly used bits of the wrapper system into
their own files: buildcmd and quotearg, which are used to build up the
command line and to quote arguments.  Also add the ability to skip
processing the next few arguments and add them directly to the command
line.  Now, either the marshall script or the cache scripts can
request skipping the N arguments by setting skipargs=N.
2003-10-03 19:39:19 +00:00
xtraeme
4dbf3fe48d Initial import. 2003-10-03 18:15:34 +00:00
kristerw
808443fbe1 kaffe and wonka works for "arm" too (not only "arm32"). 2003-10-03 16:38:22 +00:00
gavan
a50a7200b7 Allow variables to be set on a per-OS basis. 2003-10-02 15:45:31 +00:00
gavan
bf5773bd51 Fail-safe check for circular dependencies. 2003-10-02 14:41:42 +00:00
jlam
0995d71967 Set the final form of the template buildlink3.mk file, after I've had a
strong cup of coffee.  This now works the way it was intended: the
buildlink3.mk file sets a variable that can be checked within itself to
see whether it's already been included or not.
2003-09-30 10:17:30 +00:00
jlam
c094c5fc84 Set the final form of the template buildlink3.mk file as a guideline for
buildlink3.mk writers.
2003-09-30 00:32:57 +00:00
jlam
9e14aa4f47 Update the template buildlink3.mk file so that it may be used for
non-recursive dependencies.  We now use the check:

.if !defined(BUILDLINK_PACKAGES) || empty(BUILDLINK_PACKAGES:Mfoo)
...
.endif

to replace the FOO_BUILDLINK3_MK guards.
2003-09-28 12:51:46 +00:00
jlam
d3196f084c Create _BLNK_{DEPENDS,PACKAGES} that are "uniq"ed versions of
BUILDLINK_{DEPENDS,PACKAGES} and use them throughout bsd.buildlink3.mk.
A lot of processing iterates over these variables and assumes that there
are no repeated items in those lists.
2003-09-28 12:36:52 +00:00
jlam
baf8baf9b8 Rearrange order of the targets for the various helper scripts for the
wrappers, and ensure that they're only defined once.  Also add some more
targets to create the sunpro-* helper scripts.
2003-09-28 10:38:03 +00:00
grant
5a32f4d868 sync comments with reality.
note once again that USE_GCC2/USE_GCC3 must not be defined in package
Makefiles. also note CC_VERSION and provide a usage example.
2003-09-28 09:53:56 +00:00
grant
cd5be5b371 if /usr/lib/libstdc++.la exists, create the corresponding fake libtool
archive in ${BUILDLINK_DIR}/lib so packages can find and use it.

fixes some build problems seen on Slackware Linux 9.
2003-09-28 09:48:00 +00:00
jlam
a9f08159c4 Back out last change related to moving ncurses/buildlink2.mk to
curses.buildlink2.mk.  This was wrong because we _really_ do want to
express that we want _n_curses when we include the buildlink2.mk file.

We should have a better way to say that the NetBSD curses doesn't
quite work well enough.  In fact, it's far better to depend on ncurses
by default, and exceptionally note when it's okay to use NetBSD curses
for specific packages.  We will look into this again in the future.
2003-09-28 09:13:55 +00:00
grant
d5a8f38186 use PKGBASE instead of PKGNAME when printing informational messages
such as "Deinstalling", as this lead to confusing/misleading output
when the (previously) installed pkg has a different version number
than the pkgsrc version.
2003-09-28 08:52:13 +00:00
grant
fadc08de4b set CC and CXX defaults for SunPro when USE_SUNPRO is defined.
the path to cc and CC can be overridden in /etc/mk.conf or on
the command line.
2003-09-27 17:20:38 +00:00
grant
7a71199b50 move ncurses/buildlink2.mk to mk/curses.buildlink2.mk, as it provides
support for base system curses/ncurses as well as ncurses itself.

suggested by wiz.
2003-09-27 17:07:34 +00:00
seb
34bb1693e1 Add CVS signature. Noted by reed@. 2003-09-27 14:53:46 +00:00
danw
a191a12a24 don't put ${RPATH_FLAG} in X11_LDFLAGS if _USE_RPATH==no (darwin) 2003-09-25 02:25:12 +00:00
danw
e8c72c625e update required libtool to revision nb15 2003-09-25 02:13:15 +00:00
grant
f8dc52ce38 make CC_VERSION available to packages by including bsd.prefs.mk.
it is of the form 'gcc-<version>' if gcc is being used, or empty
otherwise (for now).

requested by tron.
2003-09-24 12:22:03 +00:00
grant
3351b952f0 back out revision 1.67, as it does not work as it should due to the
way the buildlink2 wrappers are implemented.
2003-09-24 07:40:03 +00:00
itojun
dc88db30ec PATCH_BACKUP_ARG for pre-3.4 (-b <suffix>) 2003-09-24 06:26:21 +00:00