Bug#165896: glibc: errors applying makeconfig and locale-es_AR patches
Package: glibc
Version: 2.3.1-3
Severity: normal
The glibc source package refuses to build because two patches supplied have
problems. This occurs in at least 2.3.1-2 & 2.3.1-3.
Here is a transcript of a build attempt:
dpkg-buildpackage: source package is glibc
dpkg-buildpackage: source version is 2.3.1-3
dpkg-buildpackage: source maintainer is root <root@poopstick.avantextreme.com>
dpkg-buildpackage: host architecture is i386
debian/rules clean
mkdir i386-linux
sed -e 's%@libc@%libc6%g' \
-e 's%@archs@%arm i386 m68k mips mipsel powerpc sparc s390 hppa sh3 sh4
sh3eb sh4eb%g' < debian/control.in/libc > debian/control.in/libc6
sed -e 's%@libc@%libc6.1%g;s%@archs@%alpha ia64%g' < debian/control.in/libc >
debian/control.in/libc6.1
sed -e 's%@libc@%libc0.3%g;s%@archs@%hurd-i386%g;s/nscd, //' <
debian/control.in/libc > debian/control.in/libc0.3
sed -e 's%@libc@%libc1%g;s%@archs@%freebsd-i386%g' < debian/control.in/libc >
debian/control.in/libc1
cat debian/control.in/main > debian/controlT
cat debian/control.in/libc6 >> debian/controlT
cat debian/control.in/libc6.1 >> debian/controlT
cat debian/control.in/libc0.3 >> debian/controlT
cat debian/control.in/libc1 >> debian/controlT
cat debian/control.in/sparc64 >> debian/controlT
cat debian/control.in/libc-udeb >> debian/controlT
sed -e 's%@libc@%libc6%g;s%@glibc@%glibc%g' \
-e 's%@threads_archs@%alpha arm i386 m68k mips mipsel powerpc sparc ia64
hppa s390 sh3 sh4 sh3eb sh4eb freebsd-i386%g' < debian/controlT >
debian/control
rm debian/controlT
mode of `debian/glibc-doc/DEBIAN/prerm' changed to 0755 (rwxr-xr-x)
mode of `debian/glibc-doc/DEBIAN/postinst' changed to 0755 (rwxr-xr-x)
mode of `debian/libc/DEBIAN/postinst' changed to 0755 (rwxr-xr-x)
mode of `debian/libc/DEBIAN/postrm' changed to 0755 (rwxr-xr-x)
mode of `debian/libc/DEBIAN/preinst' changed to 0755 (rwxr-xr-x)
mode of `debian/libc-dev/preinst' changed to 0755 (rwxr-xr-x)
mode of `debian/libc-opt/postinst' changed to 0755 (rwxr-xr-x)
mode of `debian/libc-opt/preinst.m4' changed to 0755 (rwxr-xr-x)
mode of `debian/libc-sparc64/postinst' changed to 0755 (rwxr-xr-x)
mode of `debian/locales/DEBIAN/postinst' changed to 0755 (rwxr-xr-x)
mode of `debian/locales/DEBIAN/postrm' changed to 0755 (rwxr-xr-x)
mode of `debian/nscd/DEBIAN/prerm' changed to 0755 (rwxr-xr-x)
mode of `debian/nscd/DEBIAN/postinst' changed to 0755 (rwxr-xr-x)
mode of `debian/nscd/DEBIAN/postrm' changed to 0755 (rwxr-xr-x)
mode of `debian/glibc-doc/usr/share/doc-base/glibc-manual' changed to 0644
(rw-r--r--)
mode of `debian/libc/DEBIAN/conffiles' changed to 0644 (rw-r--r--)
mode of `debian/nscd/etc/init.d/nscd' changed to 0755 (rwxr-xr-x)
mode of `debian/locales/DEBIAN/conffiles' changed to 0644 (rw-r--r--)
mode of `debian/locales/usr/sbin/locale-gen' changed to 0755 (rwxr-xr-x)
mode of `debian/libc/etc/init.d/devpts.sh' changed to 0755 (rwxr-xr-x)
mode of `debian/libc/etc/default/devpts' changed to 0644 (rw-r--r--)
mode of `debian/libc/usr/sbin/tzconfig' changed to 0755 (rwxr-xr-x)
mode of `debian/locales/DEBIAN/config' changed to 0755 (rwxr-xr-x)
rm -rf glibc-2.3.1
rm -f debian/libc/DEBIAN/shlibs
rm -f debian/control.in/libc{6,6.1,0.3,1}
rm -f debian/files debian/substvars log-*
rm -f unpacked-source patched-source patched-sourceT -r patched
rm -f `find debian -name 'libc*' -type l`
rm -f `find debian -name '*~' -o -name '#*#'`
test -d i386-linux && rm -rf i386-linux
debian/rules build
/bin/sh -e prep.sh
I: Unpacking glibc-2.3.1.tar.bz2 as glibc-2.3.1 in temp-unpack/.
I: Overlaying glibc-linuxthreads-2.3.1.tar.bz2 on
/var/cache/apt/build/glibc-2.3.1/temp-unpack/glibc-2.3.1.
I: Finishing glibc-2.3.1 and removing temp-unpack/
/usr/bin/make -f debian/rules links
make[1]: Entering directory `/var/cache/apt/build/glibc-2.3.1'
Linking debian/libc6 -> libc.
Linking debian/libc6-dev -> libc-dev.
make[1]: Leaving directory `/var/cache/apt/build/glibc-2.3.1'
/usr/bin/make -f debian/rules setperms
make[1]: Entering directory `/var/cache/apt/build/glibc-2.3.1'
mode of `debian/glibc-doc/DEBIAN/prerm' changed to 0755 (rwxr-xr-x)
mode of `debian/glibc-doc/DEBIAN/postinst' changed to 0755 (rwxr-xr-x)
mode of `debian/libc/DEBIAN/postinst' changed to 0755 (rwxr-xr-x)
mode of `debian/libc/DEBIAN/postrm' changed to 0755 (rwxr-xr-x)
mode of `debian/libc/DEBIAN/preinst' changed to 0755 (rwxr-xr-x)
mode of `debian/libc-dev/preinst' changed to 0755 (rwxr-xr-x)
mode of `debian/libc-opt/postinst' changed to 0755 (rwxr-xr-x)
mode of `debian/libc-opt/preinst.m4' changed to 0755 (rwxr-xr-x)
mode of `debian/libc-sparc64/postinst' changed to 0755 (rwxr-xr-x)
mode of `debian/locales/DEBIAN/postinst' changed to 0755 (rwxr-xr-x)
mode of `debian/locales/DEBIAN/postrm' changed to 0755 (rwxr-xr-x)
mode of `debian/nscd/DEBIAN/prerm' changed to 0755 (rwxr-xr-x)
mode of `debian/nscd/DEBIAN/postinst' changed to 0755 (rwxr-xr-x)
mode of `debian/nscd/DEBIAN/postrm' changed to 0755 (rwxr-xr-x)
mode of `debian/glibc-doc/usr/share/doc-base/glibc-manual' changed to 0644
(rw-r--r--)
mode of `debian/libc/DEBIAN/conffiles' changed to 0644 (rw-r--r--)
mode of `debian/nscd/etc/init.d/nscd' changed to 0755 (rwxr-xr-x)
mode of `debian/locales/DEBIAN/conffiles' changed to 0644 (rw-r--r--)
mode of `debian/locales/usr/sbin/locale-gen' changed to 0755 (rwxr-xr-x)
mode of `debian/libc/etc/init.d/devpts.sh' changed to 0755 (rwxr-xr-x)
mode of `debian/libc/etc/default/devpts' changed to 0644 (rw-r--r--)
mode of `debian/libc/usr/sbin/tzconfig' changed to 0755 (rwxr-xr-x)
mode of `debian/locales/DEBIAN/config' changed to 0755 (rwxr-xr-x)
make[1]: Leaving directory `/var/cache/apt/build/glibc-2.3.1'
touch unpacked-source
if [ ! -d patched ]; then mkdir patched; fi
trying to apply patch makeconfig ...
error in applying makeconfig patch.
make: *** [patched-source] Error 1
debuild: fatal error at line 456:
dpkg-buildpackage failed!
The problem is caused by an extra set of spaces in the makeconfig.dpatch file.
I fixed this dpatch file and here is the diff with spaces converted to
underscores:
18,19c18,19
<_---_Makeconfig~ 2001/09/12_18:49:45 1.265
<_+++_Makeconfig 2001/10/07_20:56:17
---
>_---_Makeconfig~_ 2001/09/12_18:49:45 1.265
>_+++_Makeconfig_ 2001/10/07_20:56:17
^^
offending spaces.
The locale-es_AR.dpatch has a nearly identical problem.
After removing the spaces, everything compiles fine. I'ts important for me to
note that I am entirely unsure whether this is the correct fix for the problem,
and am also unsure if the ~s need to go too.
Dave Panofsky
<depanofsky97@alumni.amherst.edu>
-- System Information
Debian Release: testing/unstable
Kernel Version: Linux poopstick 2.4.19 #14 Sun Oct 6 19:04:54 EDT 2002 i686 AMD
Athlon(tm) XP 1800+ AuthenticAMD GNU/Linux
__________________________________________________
Do you Yahoo!?
Y! Web Hosting - Let the expert host your web site
http://webhosting.yahoo.com/
Reply to: