Feedback

type to search

patches for glibc-source package in lenny

Asked by

I have downloaded the source by adding entry in /etc/apt/source.list and executing apt-get install glibc-source.


I have extracted all bz2 archives in /usr/src/glibc by executing tar xjvf.

But how to apply all the patches in “patches” folder. Is there a specific command or script? Or do I have to execute patch command each diff file manually?


Thanks
NN comments
helmut
-

This looks like an x-y-problem. You want to solve x and you think that you therefore need to solve y, so you ask for y. But maybe y isn’t needed? Could you tell us what you really want?

rednewguy
-

For debugging, I needed the pthread mutex source. I’m using pthread library for arm from lenny. After downloading the glibc-source, I saw few archives and a patches folder. I was lost on how to use them. However, after some deliberation, figured out myself. Now, I’m good with applying patches. This was my ‘y’! 


 And ‘x’ is that my application runs into a point where two threads appeared to have acquired the mutex. But that was my bad. I saw the ‘lock’ member of pthreadmutext and it showed 2. I mistook that as both threads have locked the mutex. 

 So, now my question narrows down to: 
1. What is the purpose of this variable ‘lock’? 
2. While my second thread is waiting to lock the mutex, how is it possible that my first thread is happily able to lock and release the mutex many times?
or Cancel

1 answer

Your answer

You need to join Debian to complete this action, click here to do so.