GNU bug report logs -
#17149
shred - tape data
Previous Next
Full log
Message #79 received at 17149 <at> debbugs.gnu.org (full text, mbox):
On 04/04/2014 11:49 AM, Rupert Russell wrote:
> Paul,
>
> I have a confession to make and that is I'm not sure really how to deal with the diff file and now the fixup for the patch.
> Googling around, I can see that
> patch -p1 < shred1.diff
> needs to be run from where the source resides.
> But then it's not immediately obvious to me, at my relatively light level of Linux knowledge, if this requires a remake or compilation of the kernel.
> If it does, then it's not something I've done before, and depending on where I read, the methods for doing this aren't universally the same.
>
> Might I have a few pointers please?
The patch works around the kernel behavior and so no changes are needed there.
To compile a new shred binary for testing:
mkdir shred-test && cd shred-test
wget http://ftp.gnu.org/gnu/coreutils/coreutils-8.22.tar.xz
tar -xf coreutils-8.22.tar.xz
cd coreutils-8.22
wget 'http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=patch;h=88545ad0' -O- | patch -p1
./configure --quiet && make -j $(nproc)
Now the new shred is available in src/shred.
You can run it directly from there or copy to somewhere like /usr/local/bin.
cheers,
Pádraig.
This bug report was last modified 11 years and 44 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.