Commit graph

985 commits

Author SHA1 Message Date
schmonz
e8c4951974 Fix comments in show-shlib-type pertaining to "dylib". 2002-05-29 21:30:30 +00:00
yyamano
5eb62eb51c Replace STRIPFLAG with _STRIPFLAG_INSTALL to fix pkg/15467. 2002-05-29 14:52:14 +00:00
fredb
f1ae32bea9 Pass ${OBJECT_FMT} into a package's make environment, to permit BSD-make
packages to build correctly on "transitional" systems, where the user
may have ${OBJECT_FMT} set in ${MAKECONF} to either a.out or ELF. On such
systems, you need something like this just to build the "pkg_install"
package. Closes PR pkg/16213.
2002-05-26 15:00:25 +00:00
hubertf
2b609a5840 Move description of variables used for config file handling to
Packages.txt.

Supplements PR 16971 by Julio Merino <jmmv@hispabsd.org>
2002-05-22 23:15:22 +00:00
schmonz
c5771424c8 Bump LIBTOOL_REQD (libtool support for Darwin). 2002-05-21 14:06:15 +00:00
dmcmahill
85b336f8d4 make f77 be the default fortran compiler instead of f2c-f77 for netbsd>=1.5.
f2c was really only needed in 1.4 and earlier days.
2002-05-19 03:42:14 +00:00
schmonz
d50a6c1a2b In do-shlib-handling, also fix up PLIST for Mach-O ("*.dylib")
shared libs, as found on Darwin. From Jeff Putsch <jdputsch@attbi.com>
as part of pkg/16104.
2002-05-18 21:33:32 +00:00
jschauma
e0fe1a65e9 Add and enable sun-jdk14 as an option for PKG_JVM:
If no PKG_JVM is specified, same behaviour as before.
If PKG_JVM=sun-jdk, check if on -current or linux and if so,
use sun-jdk14, else sun-jdk13.  Else believe user when she
specified PKG_JVM=sun-jdk13 or PKG_JVM=sun-jdk14.
2002-05-14 18:07:01 +00:00
seb
76b7de015d Introduce NULL_COOKIE and use it instead of /dev/null for touch (see PR 15597).
While here remove some old comments.
2002-05-14 12:47:48 +00:00
agc
51377b0bb1 Standardise on the format of continuation lines. No functional change. 2002-05-13 11:43:05 +00:00
schmonz
8af56028b3 ftp.loaded.net no longer has a CPAN mirror. Replace it with cpan.pair.com. 2002-05-12 15:37:30 +00:00
drochner
6ff6a4e94c add actual sourceforge mirrors, and remove non-working 2002-05-08 11:33:49 +00:00
agc
f5fed22767 Sourceforge seem to have implemented a new policy, whereby an http
request to the prdownloads.sourceforge.net site, which used to return
the distfile, now returns 8KB (roughly) of html, including
advertisements, and a link to the real distfile.

Delete prdownloads from the MASTER_SITE_SOURCEFORGE list (sadly,
because it seemed to be the quickest way to download files from
sourceforge).
2002-05-07 17:50:38 +00:00
agc
c2c474c2fb Be consistent throughout the file with line continuations and whitespace.
No functional changes.
2002-05-03 12:44:01 +00:00
seb
4dfe879a39 mtree' -> $$action' in _SU_TARGET 2002-04-29 09:12:20 +00:00
jlam
1bfebb4d37 Change some spaces to tabs. 2002-04-29 06:43:34 +00:00
hubertf
8e1aa76a27 bin-install: set DEPENDS_TARGET=bin-install, so depends are still
installed via binaries (if possible), even if there is no binary
pkg available for the current pkg.

Implementation still allows overriding DEPENDS_TARGET=build (etc.)
to force installation of dependencies by compiling if desired.

Patch submitted by Marko Schuetz <MarkoSchuetz@web.de> in private mail.
2002-04-25 21:58:55 +00:00
jlam
873d445762 Re-write do-patch target to fix broken behaviour where if patches/ didn't
exist, then the local patches weren't applied.
2002-04-25 00:02:41 +00:00
jwise
f3da648a14 Fix problem where CLASSPATH was not being added to MAKE_ENV, CONFIGURE_ENV,
or SCRIPTS_ENV in non-native jdk case.
2002-04-19 17:14:44 +00:00
agc
b905c0d8de In the do-su-install target, when the ${WRKDIR} contains an outdated
version of the package, and an attempt is made to install the package,
first "make clean" and then "make build" to pick up the new version of
the package before continuing with "make install", rather than printing
an error message and dying.
2002-04-18 20:54:51 +00:00
agc
c84be07a31 When creating the ${DLIST} file in the update target, don't create the
${WRKDIR} every time with "mkdir -p" - instead, use the ${WRKDIR}
target, so that any symlinks to it are created properly.

Also, when creating the ${DLIST} file in the update target, don't pipe
the output of pkg_info -R through "tail -n +4" - simply use pkg_info -qR
to achieve the same results.
2002-04-18 15:54:34 +00:00
agc
adfe02d503 There is no point in piping the output of awk through a pipe which does
"head -1" - use awk to do the work for us.
2002-04-18 15:23:43 +00:00
hubertf
fc8b8053ee Pass X11PREFIX in MAKE_ENV
Inspired by PR 16350, sanity-checked by tron
2002-04-17 09:55:59 +00:00
jlam
b85722ef51 Generalize how the PLIST contents are generated:
GENERATE_PLIST is a sequence of commands, terminating in a semicolon,
that outputs contents for a PLIST to stdout and is appended to the
contents of ${PLIST_SRC}.

Convert the perl5 packlist handling to use GENERATE_PLIST.
2002-04-16 04:10:08 +00:00
seb
2bc645d273 Somewhat tune the generation of "PLIST file" by print-PLIST target:
- remove unwanted entries earlier by using ${GREP} -v
 - substitute more specific bits before lesser ones: ${MACHINE_GNU_PLATFORM}
   before ${MACHINE_ARCH} and ${MACHINE_GNU_ARCH}
 - substitute *after* the sort so substitution does not move the
   pathnames around
 - add substitution of ${PKGVERSION}
 - substitute ${PKGLOCALEDIR}/locale (this can help actually catching PLIST,
   configuration, build, ... problems with respect to the correct locale
   directory varying from platform to platform)
2002-04-10 12:03:10 +00:00
jlam
d3dec729ba Move definition of PERL5 from bsd.pkg.mk into defs.*.mk. This is something
that is used regardless of whether perl is installed or not, and we
sometimes want its value before include bsd.pkg.mk.
2002-04-09 22:15:40 +00:00
dmcmahill
544ecb6a4e add CONFIG_SHELL to CONFIGURE_ENV. This avoids picking up bash as the shell
which complains about the buildlink vaiable names containing '.' in them.
2002-04-07 17:09:57 +00:00
rh
8f6639efa4 Do not attempt to update a package (deleting the package and all its
dependencies) if IGNORE is set.  This puts the 'update' target in line
with 'install', 'package', and other targets that use the same checks.
2002-04-05 23:26:49 +00:00
fredb
607557814c Add `_tar.gz' to the list of suffices to grok for the benefit of socks5. 2002-04-05 11:39:25 +00:00
seb
4e6697c2c8 Set minimum required version of the pkg_ tools to 20020218.
This is mostly to get the improved/fixed version number handling provided
by this version of the tools, but see the log of
pkgsrc/pkgtools/pkg_install/Makefile revision 1.47 for a summary of
changes.
2002-04-02 15:58:20 +00:00
agc
7de8949242 Make the "replace" and "undo-replace" targets more useful:
+ Check for the existence of pkg_tarup, and fail if it can't be found.

+ Place the binary package of the replaced-package in the ${WRKDIR},
rather than overwriting any instance in ${PKGREPOSITORY}.

+ Don't make a binary package when undoing the replacement.
2002-04-02 09:41:39 +00:00
skrll
8186bff76a Fix a bug when inferring the CXX tag which meant that for certain
libraries the following could occur

	- a.out platforms: c++rt0.o would be missing and therefore
	  global contstructors would not work.

	- ELF platforms libstdc++ and libm would not be explicitly
	  linked in.

This affected notably libqt and explains the build failure of kdelibs2 on
arm32.

Bump PKGREVISION and require it.
2002-03-26 16:31:27 +00:00
hubertf
7621c45c78 Rewrite REPLACE_PERL as shell-loop, so one can use shell wildcards,e.g.
REPLACE_PERL=   *.cgi *.perl *.pl

Code submitted by Amitai Schlair <schmonz@schmonz.com>
2002-03-24 14:06:22 +00:00
tron
105558c351 Remove depend directory file in "update" target if the deinstallation
fails because otherwise the next invokation of the "update" target will
not attempt to remove the package again. Fix provided by Aaron J. Grier
in PR pkg/15827.
2002-03-22 19:08:44 +00:00
tron
2012c2fb1e Remove "ftp.cs.columbia.edu" from GNU master sites because the mirror
is horribly outdated.
2002-03-20 11:31:33 +00:00
fredb
4407ae6f9f "ftp.cdrom.com" evidently no longer mirrors CTAN. 2002-03-17 16:44:28 +00:00
tron
8d0306c87f Invent a new variable "PKGNAME_NOREV" which holds the package name without
the package revision added. Replace "PKGNAME" in package list with this
value because the installed software doesn't know anything about package
system revision. This fixes package list problems in e.g. the "xemacs"
package.
2002-03-15 10:05:56 +00:00
tron
58c0212d2f Partitally backout revision 1.932:
We *must* record the version of "${.CURDIR}/Makefile" because we otherwise
only record the version of the wrong "Makefile" e.g.
"x11/xscreensaver-gnome/../xscreensaver/Makefile" for the
"xscreensaver-gnome" package. This will break the update target horribly.
2002-03-15 07:16:23 +00:00
lukem
35dc87e356 make _PATCH_BACKUP_ARG be more useful to callers by moving "-V simple"
definition to be part of it instead of appending to PATCH_ARGS.
otherwise, $VERSION_CONTROL or $PATCH_VERSION_CONTROL would still
override -b/-z.
2002-03-14 02:28:22 +00:00
wiz
3f676e4674 Remove one, and add four CPAN mirrors, more or less randomly chosen all over
the world.
2002-03-13 15:39:36 +00:00
agc
93aca3b1ec Fix PR 15755 from Simon Burge (simonb@wasabisystems.com) properly.
When constructing the build version information, avoid problems
when there is a filename with an embedded space in the directory.

With thanks to Stoned Elipot for the practical help.
2002-03-12 15:40:24 +00:00
fredb
5313e358fd Some tweaks to "fetch" and "fetch-list" re: DYNAMIC_MASTER_SITES:
- - For "fetch", move the assignment of the "getsite.sh" script to a more
    natural place, to get the full benefit of, and consistent handling for,
    setting MASTER_SORT and MASTER_SORT_REGEX

- - For "fetch-list", embed the "getsite.sh" script into the generated
    script, so that the calculation can be properly done at run-time.
    ("fetch-list" also respects MASTER_SORT and MASTER_SORT_REGEX.)
2002-03-10 17:15:29 +00:00
yyamano
11d1dafc2e Make fetch-list work on Darwin.
* Use ${MAKE}. On Darwin, we use bmake, not make.
* Replace PWD with WD. Darwin's sh is zsh and we can't override PWD.
2002-03-07 15:45:13 +00:00
fredb
811a403f71 Garbage collect "check-depends", as discussed on tech-pkg. The oddly named
"check-depends" target is what used to install dependencies before fetching
any files. ("install-depends" continues to perform that function for the
other main targets.)
2002-03-06 11:37:28 +00:00
fredb
2f53857f29 Generalize the handling for packages where "fetch" and "fetch-list"
only emit a message and don't actually fetch anything. This allows
us to make the output of "fetch-list" for these packages consistent
with other packages.

While we're in here, integrate DYNAMIC_MASTER_SITES with the
${ORDERED_SITES} macro. The only functional change here is that
${MASTER_SITE_OVERRIDE} is now respected. Still to do -- something
appropriate for "fetch-list" for these packages, like sourcing
"getsites.sh" into the generated script. (Well, "package", but there
are two others that do something similar in their "Makefile".)

Also eliminate the misbegotten _FETCH_ALLFILES macro -- now that only
"fetch" uses it, move it's functionality directly under "do-fetch".
2002-03-04 19:41:03 +00:00
jmc
137fef7db0 Redirect errors from grep in fake-pkg to /dev/null so complaints about not
being able to grep on a dir don't fly by and confuse people.
2002-03-04 17:21:46 +00:00
agc
9e721c1025 Add two new EXPERIMENTAL targets:
replace - this target updates a package in place, fixing up references
to and from other packages to the updated package.

undo-replace - undoes all the work of the previous replace operation.
For this target to work, the ${WRKDIR} must be preserved.

The replace target first makes a binary package of the existing
installed package, then a copy of the +REQUIRED_BY file is taken, if
it exists, and then the existing package is deleted.  The new package
is installed, and the preserved +REQUIRED_BY file is copied back into
place, using its contents to modify the +CONTENTS files of all the
packages which require it.  The undo-replace shares code with the
replace target, and does the same operation, but in reverse.

Warnings are displayed when either of these targets is used, since
they are experimental targets right now.
2002-03-04 11:56:54 +00:00
seb
27eb7cc257 Adding PLIST filtering based on MANINSTALL's content for the shake
of BSD-makefile'd packages.

By tuning MANINSTALL, passing it to a package's build process by
way of MAKE_ENV, one can retains the man related entries in
${PLIST_SRC} while keeping a correct generated ${PLIST}.  This is
mostly intended for packages being compiled on non-NetBSD platforms
when "andoc man pages" are difficult or impossible to process i.e.
depending on groff package is not realistic.
2002-03-04 11:47:25 +00:00
wiz
962f3ae515 Use show-all-depends-dirs-excl for build-depends-list target.
Makes e.g. "make readme" awfully faster.
TODO: Similar change for run-depends-list.
2002-03-02 16:09:14 +00:00
skrll
f948ebf12d Require the new libtool. 2002-03-01 15:59:16 +00:00