how to apply a patch to glibc and build it?

skar skar.karthikeyan at
Mon Oct 12 05:59:39 UTC 2009


I've got a intrepid chroot which doesn't work on RedHat based systems. 
Since RH kernels with thttpd support use the 02000000 flag for their own 
purpose, intrepid's glibc O_CLOEXEC flag doesn't work and so getting 
owner and group info for files/dirs fails sometimes.

Now, I've built vanilla glibc with the O_CLOEXEC flag set to 0 and now 
the problem is solved. I understand that removing O_CLOEXEC isn't a nice 
idea, but it's ok for my demo purposes.

I ran "apt-get source glibc" and the following files are there in the 
current dir:

> glibc_2.8~20080505-0ubuntu9.diff.gz  glibc_2.8~20080505-0ubuntu9.dsc  
> glibc_2.8~20080505.orig.tar.gz
The question is, how do I build glibc sources with my patch using the 
"debuild" command?


The life so short, the craft so long to learn. 

More information about the Ubuntu-devel-discuss mailing list