Subject: /bin/sh and large number of distfiles
To: None <tech-pkg@netbsd.org>
From: Martti Kuparinen <martti.kuparinen@iki.fi>
List: tech-pkg
Date: 02/07/2002 16:15:54
Hi!

Have we considered changing the "make makesum" target so that
it wouldn't fail if there's a huge number of distfiles for
some pkg? Something which would take max N distfiles at the
time and finally concatenate the several parts into one and update
the real distfile.

I'd like to have something like this in vim-share/Makefile.common
to make it easier for me (=the maintainer):


VIM_VERSION=            6.0
VIM_PATCHLEVEL=         185
...
PATCH_SITES+=           ${MASTER_SITES:S/unix/patches/}
PATCHFILES!=            p=0;                                            \
                        while [ $$p -le ${VIM_PATCHLEVEL} ]; do \
                                printf "${VIM_VERSION}.%03d " $$p;      \
                                p=$$(($$p + 1));                        \
                        done
SKIP_PATCHES=           012 027 048 053 064 070 073 087 093 106 107 115 \
                        116 117 119 121 122 123 125 135 137 138 144 147 \
                        152 161 162 164 165 179
.for p in ${SKIP_PATCHES}
PATCHFILES:=            ${PATCHFILES:N6.0.${p}}
.endfor


This will, however, result the following error:

dhcp118:/usr/pkgsrc/editors/vim-share> make makesum
make: Exec of `/bin/sh' failed (Argument list too long)
*** Error code 1

I have asked vim to produce patch "clusters" like 6.0-001-100.diff
but I didn't get any reply...

Martti

---
Martti Kuparinen <martti.kuparinen@iki.fi>      NetBSD - No media hype
http://www.iki.fi/~kuparine/                    http://www.netbsd.org/