Bruce Dubbs wrote these words on 12/15/05 08:55 CST:
> Randy McMurchy wrote:
> 
>>sed -i 's/tail +122/tail -n +122/' ../jai-1_1_2_01-lib-linux-i586-jdk.bin &&
>>
>>I've tested this command to work and it doesn't affect the file
>>if the sed command is run more than once against the file. Anyone
>>see any issues with using this sed in the FOP instructions?
> 
> I think a bit more tweaking is necessary.  The .bin file also does
> 
> Upon testing, I get:
> sum=07893  2592 sum1=07893 sum2=2592
> 
> Perhaps we also need to add to the sed:
> -e "s/17963/07893/"
> 
> I don't know why the sum is different, but fop works for me with the
> different checksum.

My results are exactly the opposite. With only the sed that changes
the 'tail' command, it checksums perfectly. After the sed you suggest,
I get the 'bad checksum - don't install this file' message.

Hmmmm, we really need consistent results. Here is my method, could
you please duplicate my procedure and see what happens?

(Comments on what I'm doing are inserted)

[EMAIL PROTECTED]: ~/build/td > ls -l
total 0
[EMAIL PROTECTED]: ~/build/td > cp ../Sources/Installed/fop-0.20.5-JAI.bin .
[EMAIL PROTECTED]: ~/build/td > ls -l
total 2608
-rw-r--r-- 1 rml install 2665526 Dec 15 09:14 fop-0.20.5-JAI.bin

(the virgin file exists in a directory)

[EMAIL PROTECTED]: ~/build/td > sed -i 's/tail +122/tail -n +122/' 
fop-0.20.5-JAI.bin
[EMAIL PROTECTED]: ~/build/td > ls -l
total 2608
-rw-r--r-- 1 rml install 2665529 Dec 15 09:15 fop-0.20.5-JAI.bin

(You can see the sed adds 3 bytes to the file, the ' -n')

[EMAIL PROTECTED]: ~/build/td > chmod 755 fop*.bin
[EMAIL PROTECTED]: ~/build/td > ls -l
total 2608
-rwxr-xr-x 1 rml install 2665529 Dec 15 09:15 fop-0.20.5-JAI.bin

(file's executable bit is set)

[EMAIL PROTECTED]: ~/build/td > yes | ./fop-0.20.5-JAI.bin >logfile1
[EMAIL PROTECTED]: ~/build/td > tail logfile1

For inquiries please contact: Sun Microsystems, Inc., 4150 Network Circle, 
Santa Clara, California
95054, U.S.A
(LFI#143342/Form ID#011801)

Do you agree to the above license terms? [yes or no]
Unpacking...
Checksumming...
0
0
This is not a proper JDK directory.  Exiting install.

(you can see it checksummed okay)

[EMAIL PROTECTED]: ~/build/td > sed -i "s/17963/07893/" fop-0.20.5-JAI.bin
[EMAIL PROTECTED]: ~/build/td > grep 17963 fop*.bin
[EMAIL PROTECTED]: ~/build/td > grep 07893 fop*.bin
Binary file fop-0.20.5-JAI.bin matches

(You can see the checksum value *did* actually change)

[EMAIL PROTECTED]: ~/build/td > yes | ./fop-0.20.5-JAI.bin >logfile2
[EMAIL PROTECTED]: ~/build/td > tail logfile2
(LFI#143342/Form ID#011801)

Do you agree to the above license terms? [yes or no]
Unpacking...
Checksumming...
1
The download file appears to be corrupted.  Please refer
to the Troubleshooting section of the Installation
Instructions on the download page for more information.
Please do not attempt to install this archive file.

(you can see the file now fails the checksum)

-- 
Randy

rmlscsi: [GNU ld version 2.15.94.0.2 20041220] [gcc (GCC) 3.4.3]
[GNU C Library stable release version 2.3.4] [Linux 2.6.10 i686]
09:08:00 up 81 days, 18:32, 3 users, load average: 1.03, 0.81, 0.44
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to