Subject: Re: how to clean after every DEPENDS?
To: Alan Barrett <apb@cequrux.com>
From: =?ISO-8859-1?Q?C=E9sar_Catri=E1n?= C. <ccatrian@eml.cc>
List: tech-pkg
Date: 04/01/2004 23:44:07
On Thu, 1 Apr 2004 17:02:54 +0200
Alan Barrett <apb@cequrux.com> wrote:
> On Thu, 01 Apr 2004, C=E9sar Catri=E1n C. wrote:
> > > $ make install clean-depends
> >=20
> > That's fine with a lot of free space, but I need to install a depends,
> > then clean. Install the next depends and clean again, one by one,
> > instead of doing the cleaning at the end of the process.
>=20
> make DEPENDS_TARGET=3D"install clean-depends" install clean-depends
>=20
> --apb (Alan Barrett)
The result of that operation was double cleaning depends, one after another=
, at the end.
The script for some reason takes only the first word of the content assigne=
d to the variable.
The only way it worked for me was double-quoting:
make DEPENDS_TARGET=3D"'install clean-depends clean'"
and replacing:
--- bsd.pkg.mk.orig Thu Apr 1 15:31:14 2004
+++ bsd.pkg.mk Thu Apr 1 23:20:41 2004
@@ -4182,7 +4182,7 @@
${ECHO_MSG} "${_PKGSRC_IN}> Required installed package $$pk=
g: $${found} found"; \
else \
${ECHO_MSG} "${_PKGSRC_IN}> Required package $$pkg: NOT fou=
nd"; \
- target=3D${DEPENDS_TARGET}; \
+ target=3D"${DEPENDS_TARGET}"; \
${ECHO_MSG} "${_PKGSRC_IN}> Verifying $$target for $$dir"; =
\
if [ ! -d $$dir ]; then \
${ECHO_MSG} "=3D> No directory for $$dir. Skipping=
.."; \
Obs: the "'reinstall clean'" target as above produces an inmediate cleaning=
before applying patches (fail).