Fedora :: Building A Rpm From A Tarball Not Containing The Spec File?
Jun 29, 2011
I found that "autospec" can construct a spec file. But autospec-0.8-1 is not compatible with python 2.7.1 Moreover autospec seems to be considered as deprecated. Is there a more recent version or some other equivalent utility?
I am interested in package building rpms, just stumped on how packagers such as remi and atomic rocket get their spec files. Are these written from other packagers or do you need to write each spec file yourself to be considered as a "packager".
i want to compile the vanilla kernel 2.6.37-rc3, but i want to obtain a .rpm file. I found this guide long time ago (i used it many times) but it use src.rpm package and the contained kernel.spec file have many lines for adding patches. Someone know where can i download a kernel.spec for vanilla kernel or a guide to obtain an rpm file
I want to change some thing inside the post install script of an existing rpm.there is any way to create a nearest spec file of this rpm, in order to change a bit the post install script inside this spec and then create again the rpm with the fixed spec file? no body wrote any program that can create spec file(99% identical from the orig spec file?)?
is it possible to write ksh script in the spec file? the target is after I perform rpm -i my_rpm.rpm according to the spec file , ksh script will do some installation & configuration for example run other script and edit some files
I'm trying to create a set of rpm files to install the requirements for a program.I found a great utility named cpanspec that will create a spec file for perl modules and have started building rpm files. I was able to create an rpm file for Business::CreditCard as a regular user. Now I'm trying to build another module that requires B::CC, and rpmbuild -ba fails saying that I am missing B::CC. I don't want to install it just to create another rpm file.Is there a way to make rpmbuild "think" that B::CC is installed in the build environment without installing it on the system?
I have written a spec file for packaging my application in an rpm, but it reports a conflict when I am trying to update my service script in /etc/init.d/. This is a file that I do need to update/replace so how might I force the rpm to do that?
Code:
Summary: A program that increases WAN performance. Name: packetsqueezer Version: 0.3.05 Release: 1
was originally looking to setup some kind of NAS in my house due to the fact that me and my wife both access the same music libraby, photo library etc. and was looking at one of the IcyBox enclosures.I realised that whilst this was a quick and possibly easy way to set something up, it wasn't in keeping with the true geek within so decided to look into setting up a full RAID5 file server. This would then allow me to install and setup various other services such as Web and FTP server, Mail server and DNS server should I ever want to.
I have an old machine (Duron 1GHz I think) with 1GB ram but the only problem is that is doesn't have an on board SATA controller so I was wondering what PCI SATA controller cards work with Fedora? Doesn't need to have RAID capabilities since i'll be using Software RAID anyway, just need a nice cheap Fedora friendly controller card that'll do the job.
is there a way to specify that I need a 32bit version of a certain library on the "Requires" line of a SPEC file?Since my software contain (a lot of) binaries from other sources (not always RPM compatible) I had to do "AutoReqProv: No" so I can do it manually.Is there a way to explicid say that I need the 32bit version of some library?
I have inherited our Linux packaging and as the number of versions increase, the number of conflicts is starting to get a bit unmanageable. I believe the easiest way would have been to keep the package names the same and just change the release in the spec file but unfortunately I am past that as a lot of these packages are rolled out to our estate. (I am told there were reasons for not keeping the package name the same and incrementing the version/release)
Is it possible to wildcard conflicts so I don't need to keep adding as new versions are created. For example, instead of using all the conflicts below, have something along the lines of AAtest45* <= 1.4 & BBtest45* <= 1.4 Meaning that all I would need to do was change this to 1.5 at the next release (the packages below version matched the release in the spec file)
I'm trying to install radare and under the binary section for fedora it has a .spec file. It this a sort of script for the rpm command? I found a lot of info on how to make spec files but nothing on what they are or how to use them. So I have a radare.spec file, how can I use it to install the program?
using YUM to install an .rpm but I have a couple of bots of software that come only as a tarball- I am interested in the latest RC of Firefox as an example. Having downloaded a t tarball, how do I go about installing it in fedora
Trying to make sense of this Linux stuff, by trying to install Fedora 14. First impressions are it?s a parallel universe populated by those who hark back to the era of Windows 3.1 / DOS, and earlier, where command line instructions and messing around with .ini files was all the rage. Which might all be a great little hobby to go back to, being more 'at one, and intimate' with my machine and learning a new skill to take some pride in, but all it means so far is my patience is being really tested by needing to learn it all from scratch!
The installation guides seem to suggest that if your graphics card is not good enough then the installation will default to the text based one. Which is what happened in my case. I can get to the login prompt after the installation, but that's the point where it gets really frustrating in having my machine think it?s a mid 1980s Commodore 64 or something!! Never mind PEEK and POKE, I just want to THUMP or KICK it.
I read somewhere I should start X Start to start the GUI. Nope, x start or xstart doesn't do anything. I then read that only works if I had installed X Windows. Can't find where or how I install X Windows though! I then read, as I say, things default to purely text if your graphics card is not good enough, but then I can't find anything about what the minimum spec is. Seems odd that a card that can cope with Windows can't work with a system as basic as linux/fedora with its frustrating command line-intensive way of working.
- what the minimum graphics card spec is to enable GUI? - how to install this X Windows thing?
Prior to installing F11, I used fwbackups to archive some data to a bzip2 tarball. The archiving and compression went just fine. When I attempt to decompress the archive bunzip2 chokes with the following error:
Code:
bunzip2: Compressed file ends unexpectedly; perhaps it is corrupted? *Possible* reason follows. bunzip2: No such file or directory Input file = Backup-stuff-archive-2009-06-14_01-00.tar.bz2, output file = Backup-stuff-archive-2009-06-14_01-00.tar
It is possible that the compressed file(s) have become corrupted. You can use the -tvv option to test integrity of such files. You can use the `bzip2recover' program to attempt to recover data from undamaged sections of corrupted files. bunzip2: Deleting output file Backup-stuff-archive-2009-06-14_01-00.tar, if it exists. Now I'm fairly sure that the problem is a couple of zero length files (dead pipes or the like) have been included in the tarball and it seems that GNU tar and allied tools are braindamaged when it comes to zero length files in an archive, treating them as end of file markers. I've had this issue with a gzipped tarball. Alas bzip2recover is not an option as the archive is 106.1 gigabytes in size (I know, I know) and to handle a file of this size it requires recompiling.
Googling for an answer returns grim news. It seems that tarballs like this are forever borked. I was wondering if any of the gurus here can offer some advice. Can my poor Shrek of a tarball be salvaged or is he a hopeless case? The lesson I have learned is not to create HUGE archives. Also using tools like tar and bzip (or even gzip) may not the best idea when archiving/backing up.
In my rpm I need gdbm 32b.when installing on RHEL x86_64 the Reqires section passes with no error since gdbm 64b was found.I need to distinguish between gdbm 64b to gdbm 32b in my spec file.In my spec I use the following :Requires: gdbm = 1.8.0
this is my output when I try to compile samba 4.0.0 alpha 7 in Ubuntu using the spec file provided in the samba packages:
bin/mergedobj/samba-util.o: In function `file_lines_parse': (.text+0x595c): undefined reference to `_talloc_steal' bin/mergedobj/samba-util.o: In function `data_blob_talloc_named':[code]....
I have an FC13 x86_64 server and having trouble building RPMs, but I don't think it's specifically an RPM problem. I think it's a tty management or other type of problem.
When spec files have a "%files -f filelist.txt", which contains the list of files for the RPM, it calls the /usr/lib/check-files script, which sorts the files that are supposed to be in the RPM and compares them with the files that are in the built RPM before they are packaged.
The trouble is that the sort fails.
Here's the trace from the check-files script:
The above doesn't show that the output from sort is redirected into those /tmp files. The first sort succeeds because it reads data sent by the "find" in the same shell. The second sort fails because (I think) it cannot read data from stdin for some reason.
What could possibly cause this? I've checked various permissions, libraries, even used strace extensively, all of which is inconclusive.
This is one of my test server boxes, so this problem is something that I've caused, but I have no idea what.
libc controls input and output, correct? Could it somehow be a glibc problem, or a devpts problem? I can run a simple command and pipe it to sort with no problem. It appears to only be related to sub-shells.
I also replaced sort with cat and just tried to redirect stdin in that file to a temporary file, and that also fails.
I've tried running it with selinux disabled and that has no effect.
I build simple spec file and build rpmI transfer the new rpm to other Linux machine in order to install the new rpmaccording to the spec file the new rpm -> test.sh-6.2-2.i386.rpm should create the /tmp/MY_RPM_TESTS directory , but this rpm not create the MY_RPM_TESTS and sub directoriesplease advice why , what I need to fix in the spec file? RPM installation:
[root@linux1 rpm -Uvh /root/rpmbuild/RPMS/i386/test.sh-6.2-2.i386.rpm Preparing... ########################################### [100%] This is preinstall script
when i try to load ubunto after a few moments i get a message on the screen saying "sync out of spec". I have looked for a fix for this problem and it is suggested that i run a X86config file. Where do i get this file and how do i run it if i cant see anything on the screen.
I am trying to build a system that will run both KDE and GNOME. I currently have just GNOME installed. So I need to install KDE and KDM (which I know how to do). The thing that I don't know how to do is make it default to KDM when it boots rather than GDM. Also I need a way to get rid of the GNOME apps in the menus in KDE and the KDE apps in the menus in GNOME. Also, this system in running Fedora 11 x86_64
I am trying to compile a kernel (so that the USBIP module gets built, I've enabled it via menuconfig) in the following directory:
Is this src tree "intended" to be rebuilt?
I'm trying to compile an "EXPERIMENTAL" module (w/in the tree already) USBIP so this seems to be my ONLY recourse. I do not have the ability to connect the machine to the net, nor bring in things like non-professionally burned CD's nor flash drives...