1 --- rpm-4.4.1/lib/rpmrc.c.orig 2005-07-19 18:53:09.096470264 +0200
2 +++ rpm-4.4.1/lib/rpmrc.c 2005-07-19 19:00:48.610613496 +0200
14 #if defined(__linux__) && defined(__powerpc__)
16 @@ -1815,13 +1821,13 @@
20 - if (strlen(home) > (sizeof(fn) - strlen(r))) {
21 + if (strlen(_HE(home)) > (sizeof(fn) - strlen(r))) {
22 rpmError(RPMERR_RPMRC, _("Cannot read %s, HOME is too large.\n"),
28 + strcpy(fn, _HE(home));
31 strncat(fn, r, sizeof(fn) - (strlen(fn) + 1));
32 --- rpm-4.4.1/rpmio/macro.c.orig 2005-07-19 18:53:09.358430440 +0200
33 +++ rpm-4.4.1/rpmio/macro.c 2005-07-19 19:04:25.098702304 +0200
39 +#include <home_etc.h>
45 #define isblank(_c) ((_c) == ' ' || (_c) == '\t')
48 /* XXX Prepend the URL leader for globs that have stripped it off */
50 for (i = 0; i < gl.gl_pathc; i++) {
51 - if ((nb = strlen(&(gl.gl_pathv[i][0]))) > maxb)
52 + if ((nb = strlen(_HE(&(gl.gl_pathv[i][0])))) > maxb)
57 const char * globFile = &(gl.gl_pathv[i][0]);
58 if (globRoot > globURL && globRoot[-1] == '/')
59 while (*globFile == '/') globFile++;
60 - strcpy(globRoot, globFile);
61 + strcpy(globRoot, _HE(globFile));
63 fprintf(stderr, "*** rpmGlob argv[%d] \"%s\"\n", argc, globURL);
64 argv[argc++] = xstrdup(globURL);
65 --- rpm-4.4.1/lib/Makefile.am.orig 2005-07-19 18:53:08.705529696 +0200
66 +++ rpm-4.4.1/lib/Makefile.am 2005-07-19 19:04:59.525468640 +0200
68 librpm_la_LDFLAGS = -release 4.4 $(LDFLAGS) \
69 $(top_builddir)/rpmdb/librpmdb.la \
70 $(top_builddir)/rpmio/librpmio.la \
72 + -lpopt @HOME_ETC_LIB@ \
76 --- rpm-4.4.1/rpmio/Makefile.am.orig 2005-07-19 18:53:09.387426032 +0200
77 +++ rpm-4.4.1/rpmio/Makefile.am 2005-07-19 19:04:42.440066016 +0200
80 $(top_builddir)/file/src/libmagic.la \
83 + -lneon -lpthread @HOME_ETC_LIB@
84 librpmio_la_LIBADD = # $(BEECRYPTLOBJS)
85 librpmio_la_DEPENDENCIES = # .created
87 --- rpm-4.4.1/configure.ac.orig 2005-07-19 18:53:09.385426000 +0200
88 +++ rpm-4.4.1/configure.ac 2005-07-19 19:10:49.732229120 +0200
91 AC_SUBST(WITH_SELINUX_LIB)
94 +AC_ARG_WITH(home_etc, [ --with-home_etc build with home_etc support ])
95 +if test $withval != no ; then
96 + AC_DEFINE(USE_HOME_ETC, 1, [Build with home_etc support?])
97 + HOME_ETC_LIB="-lhome_etc"
99 +AC_SUBST(HOME_ETC_LIB)