LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 08-12-2008, 08:52 AM   #1
Yury_T
Member
 
Registered: Aug 2008
Distribution: Slackware
Posts: 63
Blog Entries: 10

Rep: Reputation: 16
Installpkg truncates log paths, cripples installations?


If I try to install OpenOffice 3.* from the developers' builds' RPM's *converted* to TGZ (by rpm2tgz), the archives contain some files with fairly long paths.

The installpkg (and, possibly, updatepkg -- didn't try recently, so don't remember) *truncates* such paths at 80-something chars and *then* tries to install the result, effectively crippling the installation. Such truncation isn't reported by installpkg, AFAIK. I see that the installpkg utils are shell scripts, is there some shell limit in effect?

The example of truncated archive path follows (it's .xcu ini archive, but the .xc is actually installed):

opt/openoffice.org/basis3.0/share/registry/schema/org/openoffice/Office/UI/DbReportWindowState.xc

The RPM installation of original RPM's completes without errors. The Slackware is 12.1, with some additional pkgs.
 
Old 08-12-2008, 09:20 AM   #2
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,928

Rep: Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612
Try using src2pkg to convert the rpm package instead of rpm2tgz.
 
Old 08-12-2008, 12:13 PM   #3
Yury_T
Member
 
Registered: Aug 2008
Distribution: Slackware
Posts: 63

Original Poster
Blog Entries: 10

Rep: Reputation: 16
No, no, the conversion itself works fine. I told you, I've checked the paths in TGZ archive.

It's the installpkg of this TGZ that produces an error.
 
Old 08-12-2008, 01:55 PM   #4
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,928

Rep: Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612
The problem is most likely due to errors with tar-1.13. I observed the exact same problem with some large archives.
 
Old 08-12-2008, 02:17 PM   #5
Yury_T
Member
 
Registered: Aug 2008
Distribution: Slackware
Posts: 63

Original Poster
Blog Entries: 10

Rep: Reputation: 16
The tar here is GNU tar 1.16.1. Is this of any relevance?
 
Old 08-12-2008, 02:56 PM   #6
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,928

Rep: Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612
Yes, installpkg and makepkg use tar-1.13.

I observed the exact same problem while trying to get src2pkg to use later versions of tar. The problem occurs because rpm2tgz uses the later version(1.16) to create the archive. But, installpkg uses tar-1.13 to unpack the archive. The two don't work well together.

Try using tar-1.13 to list the contents of the converted rpm and you'll see the diffference.

Again, I'll suggest that you use src2pkg to convert the rpm. It uses tar-1.13 throughout to insure consistency. I just converted an OO rpm using it to make sure and the files you indicate are correctly installed and named. The other option is for you to hand edit the rpm2targz program and make it call tar-1.13 instead of tar. Still, src2pkg will do a much better job of converting the rpms as it does lots of sanity checks and corrections if needed.

The difference between the tar versions boils down to this: tar-1.3 creates tar archives where each file/dir path is preceeded by './'. When tar-1.13 is used to unpack the archive, it strips off the first two chars of the file path. Later versions of tar have different behaviour, depending on the exact version. When archives created using later versions of tar are unpacked with tar-1.13 the path gets mangled. You can probably see more evidence of this by looking closely at the package database created in /var/log/packages when you installed the rpm2tgz-converted package -I would nearly bet that the first two chars of the paths are missing for the file listings.
Don't ask me why it's the *last* two chars which get stripped from the actual filename, It is because of the way that tar-1.13 counts the number of characters -since it intends to ignore the first two chars it gets the count wrong. In short, it'S not that the pathname gets limited to a certain number of chars -just that the last two don't get read.

You might want to report the bug to PatV -he can fix rpm2targz so that it uses tar-1.13, but it would be nice if you report your success with src2pkg if you use it... rpm2tgz is not really adequate for creating installable packages and should only be used to convert rpm *source* archives -I spent a lot of maddening days to figure out what was going on with this(and other) tar problems.
 
Old 08-12-2008, 04:23 PM   #7
Yury_T
Member
 
Registered: Aug 2008
Distribution: Slackware
Posts: 63

Original Poster
Blog Entries: 10

Rep: Reputation: 16
Thanks, I'll try to digest and try what you suggest.

As for the reporting to Pat -- where does one do that? This forum is linked from slackware.com -- is there any real issue tracker somewhere?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Apple cripples Sun's open source jewel LXer Syndicated Linux News 0 01-22-2008 07:20 PM
Mplayer truncates files on Ubuntu ninjabob7 Linux - Software 1 10-27-2007 11:08 PM
Webalizer truncates User Agents to 61 characters deoren Linux - General 4 01-17-2005 05:55 AM
Running FTP inside Shell Script truncates files jbhanc0125 Red Hat 3 01-16-2004 11:37 AM
Automatically resolving WINDOWS paths to pre-configured Linux paths gazzy Linux - General 1 09-05-2003 10:15 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 02:01 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration