Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

How do I unpack the libc6 source code on Hardy without building everything?

I run

apt-get source libc6

and I get

$ ls -1d glibc-2.7/*
glibc-2.7/debian
glibc-2.7/glibc-2.7.tar.bz2
glibc-2.7/glibc-libidn-2.7.tar.bz2
glibc-2.7/glibc-linuxthreads-20071023.tar.bz2
glibc-2.7/glibc-ports-2.7.tar.bz2
glibc-2.7/stamp-dir

What I want is the unpacked and patched source code.

Using google find this obsolete blog:

Which says to run:

./debian/rules configure_i686 

But that gives me:

$ ./debian/rules configure_i686
make: *** No rule to make target `configure_i686'.  Stop.

Besides I want to unpack for amd64 (x86_64) not i686 anyway.

So what is the super-secret target for unpacking libc6 via debian/rules?

I do not want to start the build process. I not have the space for that.

Thanks

share|improve this question
add comment

1 Answer

Picking apart makefiles with unusual names using emacs find-grep iteratively eventually uncovered:

./debian/rules unpack
./debian/rules patch
share|improve this answer
    
The Debian Policy manual specifies patch as an optional rule. All the major advanced deb build suites (the glibc package uses Quilt) provide patch and unpatch targets. –  Gilles Oct 28 '10 at 22:45
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.