Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Wed 16 Aug 2017, 13:45
All times are UTC - 4
 Forum index » Advanced Topics » Puppy Derivatives
Is there an RPM tool for Fatdog 7.10
Moderators: Flash, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 2 [16 Posts]   Goto page: 1, 2 Next
Author Message
PappyPuppy

Joined: 30 Sep 2016
Posts: 220

PostPosted: Sun 11 Jun 2017, 10:25    Post subject:  Is there an RPM tool for Fatdog 7.10
Subject description: Or some method to unpack/load the RPM
 

I am running an install_server script and it stops with the message:

"Unable to query RPM for package names. RPM must be installed and functioning for package installations."

I will look under ibiblio, maybe I just didn't load it.
Back to top
View user's profile Send private message 
PappyPuppy

Joined: 30 Sep 2016
Posts: 220

PostPosted: Sun 11 Jun 2017, 10:34    Post subject: I know thereis a link
Subject description: http://www.murga-linux.com/puppy/viewtopic.php?t=82611&start=75&sid=387567ab5ea35b7cdc76d9ed19aa4215
 

But it's not an RPM installation or is it?
Back to top
View user's profile Send private message 
csipesz


Joined: 08 Nov 2013
Posts: 180
Location: Isaszeg, Hungary

PostPosted: Sun 11 Jun 2017, 18:33    Post subject:  

Excuse me dear PappyPuppy, but it does not disturb you, that this is the Advanced Topics/Derivatives here, not though the House Training/Anything?
Or - why you do not write actually into a Fatdog topic?
Back to top
View user's profile Send private message 
s243a

Joined: 02 Sep 2014
Posts: 649

PostPosted: Sun 11 Jun 2017, 19:04    Post subject:  

I believe I've done this before by using the rpm2pet tool
http://www.murga-linux.com/puppy/viewtopic.php?t=39756

and then converting the pet to a fatdog64 package. However, maybe look to see if their is a slack-build package available first and if not try compiling it from source on your own. I believe that you'll get better results this way. As a further plus the sandbox.sh too makes it very easy to build packages in fatdog64.

Also before you do anything simply try right clicking on the rpm file. There might already be an option to convert the rpm package into a fatdog64 package.

As a final option you can simply extract the files and build the fatdog64 package from the extracted binaries. If your interested I can give you further instructions.
Back to top
View user's profile Send private message 
PappyPuppy

Joined: 30 Sep 2016
Posts: 220

PostPosted: Wed 14 Jun 2017, 12:37    Post subject: Hi, thank you for the idea of what to try
Subject description: I am in a hurry and needed the insights
 

I have been off this forum due to it was not working on my machine - I was getting an SQL query not achieved error whenever I clicked on a thread.

I will boot up and try your ideas and hopefully one or more of them will work.

The project I'm working on has software written for and tested on RedHat and Solaris - written like 10 years ago. I normally try to find the source code, then simply compile and all is well. And sometimes a .deb file will work. I just haven't yet tried an RPM. We'll see how it goes. I'm not that worried if it fails - I'll work around it somehow.
Back to top
View user's profile Send private message 
PappyPuppy

Joined: 30 Sep 2016
Posts: 220

PostPosted: Wed 14 Jun 2017, 12:54    Post subject: I opened the RPM files in PupZip
Subject description: Pupzip converted them automatically to .tar (tarball) files
 

Then I was able to extract them to directories.
Back to top
View user's profile Send private message 
s243a

Joined: 02 Sep 2014
Posts: 649

PostPosted: Wed 14 Jun 2017, 14:51    Post subject: Re: I opened the RPM files in PupZip
Subject description: Pupzip converted them automatically to .tar (tarball) files
 

PappyPuppy wrote:
Then I was able to extract them to directories.


If the package is that old then the binaries might be 32bit, in which cas you'll need to install the 32 bit compatibility layer.
Back to top
View user's profile Send private message 
PappyPuppy

Joined: 30 Sep 2016
Posts: 220

PostPosted: Thu 15 Jun 2017, 20:18    Post subject: Is there an RPM tool for Fatdog 7.10 - A Justification
Subject description: for this thread, by PappyPuppy
 

I have a slight problem because I am about to build a driver for an IBM tape drive(s) on Fatdog, which was originally designed only to run on Redhat (certain releases) and Solaris. It might NOT work, or it might. To me, that is stepping the bounds of Fatdog kindergarten, at least into 1st or 2nd grade.

For example:
1) My first command for the build will be as follows:

rpmbuild --rebuild lin_tape-1.xx.0-1.src.rpm

The above command will build an rpm file that I will then install with the following additional command:

rpm -ivh /usr/src/redhat/RPMS/i386/lin_taped-1.xx.0-rhel5.i386.rpm

except I will replace the redhat everywhere with fatdog.

After this research is done (which is hard because I don't have an rpm nor rpmbuild command), I will simply work with newer tape drives that are better supported software-wise, so I don't strain myself or this forum with my crazy requests for threads. I am very sorry that I chose to build a driver on an OS for which it never had any support. And I'm sorry that I only spent a small amount of money on tape drives, to avoid buying the newer ones. That's just my style - I start out with basics. So soon I will be done with older tape drives and concentrate almost entirely on newer ones.

I just want to finish this project for completeness sake to see "IF IT CAN BE DONE".

So that is my justification - ie. I'm getting ready to dive into waters for which there are no rpm nor rpmbuild commands, and I have to substitute something fast or I will get stuck.

What's cool is that today I found the source code for the drivers for my tape drive as it's fairly generic and will work with many of IBM's tape drives.

For the record, I DO have the src RPM file all unzipped so I can browse the source files, the Makefile, etc.. In theory, I could simply try to build it all without rpm.

Perhaps this is where the "sandbox" comes in? I'll have to see if I can experiment with running some rpm/rpmbuild outside of fatdog. Otherwise, I'll have to try to build it rather tediously by understanding the makefile. I suspect that I will have to fully understand the makefile anyway.

Another thought occured to me that's similar to the Adapter Design pattern in software engineering. Could I take the source directories and files, and package them up to something that would go like this:

rpmFatdogbuild --rebuild lin_tape-1.xx.0-1.src.rpmFatdog

In other words, does Fatdog have an automatic command to build a package from source and then another command, to install it from the binary package? HMMPH!

Embarassed
Back to top
View user's profile Send private message 
PappyPuppy

Joined: 30 Sep 2016
Posts: 220

PostPosted: Fri 16 Jun 2017, 07:47    Post subject: I may have accidentally deleted a /lib/modules/4.4.35 file
Subject description: I have the following files in that directory
 

the folder kernel
modules.alias
modules.alias.bin
modules.builtin
modules.builtin.bin
modules.dep
modules.dep.bin
modules.devname
modules.order
modules.softdep
modules.symbols
modules.symbols.bin

I do not have a build directory or command, and I might have deleted a file - I accidentaly slipped with the mouse and moved it to another folder and then I deleted that file. I thought I could undelete it.

My make is failing because there is no build, I don't mind if later it can't rpm.
Back to top
View user's profile Send private message 
PappyPuppy

Joined: 30 Sep 2016
Posts: 220

PostPosted: Fri 16 Jun 2017, 07:51    Post subject: I am downloading kernel-modules.sfs-4.4.35 now
Subject description: Perhaps I can look inside that and find that directory?
 

Hopefully, I'll rebuild that directory from that file somehow.
Back to top
View user's profile Send private message 
PappyPuppy

Joined: 30 Sep 2016
Posts: 220

PostPosted: Fri 16 Jun 2017, 08:08    Post subject: I am also downloading kernel-source-4.4.35.sfs
Subject description: That might help me enumerate all the files in the lib/modules ...
 

4.4.35 directory.
Back to top
View user's profile Send private message 
PappyPuppy

Joined: 30 Sep 2016
Posts: 220

PostPosted: Fri 16 Jun 2017, 09:55    Post subject: I found an rpm symbolic link
Subject description: to bin/busybox.
 

I'll have to busybox --help - maybe this might help after I find a way to open .sfs files and see if I lost a file.

So busybox will run whatever utility it can using those symbolic links or however. It has rpm. Now I need to see if I can get a build directory.
Back to top
View user's profile Send private message 
PappyPuppy

Joined: 30 Sep 2016
Posts: 220

PostPosted: Fri 16 Jun 2017, 10:15    Post subject: I have now unsquashed that .sfs file I mentioned
Subject description: I see some directories but no files
 

squashfs-root
squashfs-root/lib
squashfs-root/lib/modules
squashfs-root/lib/modules/4.4.35
squashfs-root/lib/modules/4.4.35/build

Mine doesn't have build and it this output does not show the files.

I issued the command
unsquashfs -l -f kernel-source-4.4.35.sfs > list.out

I need to list the files too.
Back to top
View user's profile Send private message 
PappyPuppy

Joined: 30 Sep 2016
Posts: 220

PostPosted: Fri 16 Jun 2017, 11:28    Post subject: Ok, I now realize I need to look at
Subject description: kernel-modules.sfs-4.4.35
 

I made a silly mistake and looked at the src. Under ibiblio, I needed to look at the one with the actual files.

Under that, I see:

squashfs-root/lib/modules/4.4.35/modules.alias, modules.alias.bin, modules.builtin, modules.builtin.bin, modules.dep, modules.dep.bin, modules.devname, modules.order, modules.softdep, modules.symbols, and modules.symbols.bin.

So I should be able to compare now. I do NOT see the build part so perhaps I need to build that for myself.
Back to top
View user's profile Send private message 
PappyPuppy

Joined: 30 Sep 2016
Posts: 220

PostPosted: Fri 16 Jun 2017, 11:54    Post subject: I am now unsquashing the files
Subject description: but the command
 

just created 51,297 files and 4765 directories, and 13 symlinks, when all I wanted was the lib/modules/4.4.35/build.

Hard command to use:

I typede unsquashfs -f -d squashfs-root/lib/modules/4.4.35 kernel-source-4.4.35.sfs thinking it would give me what I wanted.

Man, was I wrong. I got more than what I wanted by a long shot.
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 2 [16 Posts]   Goto page: 1, 2 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Puppy Derivatives
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0761s ][ Queries: 13 (0.0083s) ][ GZIP on ]