[packages] perl: link with libbsd for (e)glibc, refresh patches, Signed-off-by: Phili...
[openwrt/svn-archive/archive.git] / lang / perl / patches / 100-static_uudmap.patch
1 --- /dev/null
2 +++ b/generate_uudmap
3 @@ -0,0 +1,7 @@
4 +#!/bin/bash
5 +echo \{
6 +for i in {0..31}; do echo -n ' 0,'; done
7 +echo
8 +for i in {0..63}; do echo -n " $i,"; done
9 +echo
10 +echo \}
11 --- a/Makefile.micro
12 +++ b/Makefile.micro
13 @@ -173,13 +173,8 @@ uperlapi$(_O): $(HE) perlapi.c perlapi.h
14 uxsutils$(_O): $(HE) xsutils.c
15 $(CC) $(CCFLAGS) -o $@ $(CFLAGS) xsutils.c
16
17 -uudmap.h: generate_uudmap$(_X)
18 - $(RUN) ./generate_uudmap$(_X) >uudmap.h
19 -
20 -generate_uudmap$(_O): generate_uudmap.c
21 - $(CC) $(CCFLAGS) -o $@ $(CFLAGS) generate_uudmap.c
22 -
23 -generate_uudmap$(_X): generate_uudmap$(_O)
24 - $(LD) -o generate_uudmap $(LDFLAGS) generate_uudmap$(_O) $(LIBS)
25 +uudmap.h:
26 + chmod a+x generate_uudmap
27 + $(RUN) ./generate_uudmap >uudmap.h
28
29 # That's it, folks!
30 --- a/Makefile.SH
31 +++ b/Makefile.SH
32 @@ -478,11 +478,13 @@ opmini\$(OBJ_EXT): opmini.c
33
34 globals\$(OBJ_EXT): uudmap.h
35
36 -uudmap.h: generate_uudmap\$(EXE_EXT)
37 - \$(RUN) ./generate_uudmap\$(EXE_EXT) >uudmap.h
38 +uudmap.h: generate_uudmap
39 + chmod a+x generate_uudmap
40 + \$(RUN) ./generate_uudmap >uudmap.h
41
42 -generate_uudmap\$(EXE_EXT): generate_uudmap\$(OBJ_EXT)
43 - \$(CC) -o generate_uudmap \$(LDFLAGS) generate_uudmap\$(OBJ_EXT) \$(libs)
44 +generate_uudmap:
45 + cp ../generate_uudmap .
46 + touch generate_uudmap
47
48 !GROK!THIS!
49 $spitshell >>Makefile <<'!NO!SUBS!'