Debian :: Packaging Tarball Which Already Has A Directory?
Apr 4, 2011
I have an upstream source tarball which, by coincidence, already contains a directory named "debian", but which has nothing to do with the "debian" directory for packaging. Assume also that renaming this directory would be difficult, for example because many other parts of the code would need to be modified. On an rpm based system, this poses no problem to the packager, since the rpm build process is driven by an external spec file and never has to modify the original source. What would be the best way to package this on a debian system? Is it absolutely necessary to rename the original "debian" directory? Or can I make the dpkg build tools operate out of a different directory?
The resulting debian package then has an empty "depends" field and no binary.
I used the Qt Hello World example application to start.
I changed debian/rules (generated by dh_make) so that it runs qmake as follows:
Code: Select all#!/usr/bin/make -f # -*- makefile -*- # Sample debian/rules that uses debhelper. # This file was originally written by Joey Hess and Craig Small. # As a special exception, when this file is copied by dh-make into a # dh-make output file, you may use that output file without restriction. # This special exception was added by Craig Small in version 0.37 of dh-make. # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1
How can I use the preinst script to check to see if the version that is installed older than the version trying to be installed and if so, take an action?
For example: if the software installed is at a version less than 6.14 then take an action, else return 0?
preinst: Code: Select allset -e case "$1" in install|upgrade) # if version installed <6.14 then do something else return 0 ;;
I have written a shared library and successfully used debhelper 9 to create a Debian package from source using a Makefile generated by cmake. I then went about writing a python wrapper to that library and wish to package that wrapper in with the library so I can have a single distributable rather than 2 separate ones.
All of my attempts so far have me placing my python source and a setup.py file in the same directory as the makefile at the time where I call debuild.
From here I have tried a couple different configurations to my debian/rules file as seen below:
This try ran make, but completely ignored the python stuff. From some research I have gathered that the --buildsystem flag tells debuild to ignore any makefiles in the directory, which obviously causes a problem in my case.
Another attempt was to modify the build dependency to first run make and then call the python build process that file looked like this
This appears to somewhat work as both processes do build, but a few of the python files are still not getting installed.
Is this the way I should be going about doing this? I've noticed that most python wrappers tend to package themselves individually and then make that package dependent on the library it is attempting to wrap.
Is there any other site where I can download the Bluecurve Debian Tarball? When I try to download from the Freshmeat site it gives me a 404 not found. I search the site, and nothing. Can Anyone Help Please?
With tar, it is possible to back up your desktop system like so (probably best done from runlevel 1 or a live medium):
# cd / # or wherever your root directory is mounted # tar --exclude=dev/* --exclude=proc/* --exclude=sys/* --exclude=tmp/* --exclude=backup.tar.gz -czvpf backup.tar.gz .
I've been using Ubuntu so far. There is a system of launchpad repositories where there are lots of programs available that are not in official repo. I've already added rpm fusion but still I miss many programs that I had on Ubuntu. I found this page and I wonder where I can ask for making rpm's. I need several programs:
No package acidrip available. No package bombono-dvd available. No package cdcat available.
[code]....
I now that I can compile from source code but I'm new to linux and it's too difficult for me. I haven't even found program alien on Fedora that allows to install packages from other distributions.
I have nearly completed a project.My team developed using C,shell scripts and qt.I would like to know how to package it as a .deb file??Also during installation,i want it to check for the existence of few packages in the system.If they are not there,i want it to download them using apt.
I have a C++ application consisting of several source/header files. As part of the release management procedure, I use a shell script to package all necessary sources/headers in a tar file for a successful compilation on end-user site.However, for example, each time a new directory is created within application's source tree, I need to edit the shell script to implement necessary changes, which is error-prone.What is the best practice to package the source/header files of an application into a tar file ? Is there any tool that I can use for packaging purposes rather than writing my own shell scripts ? For example, how is Linux kernel itself packaged into a tar file ?
Code: Failed to initialize Failed to initialize packaging backend This may occur if other packaging tools are being used simultaneously. under more details i get:
Code: There are unfinished transactions remaining. Please run yum-complete-transaction as root. I get to terminal, and as a root I try yum-complete-transaction, but it just says there are no unfinished transactions left. I tried to update thru yum, but this is what I get:
I have a SUSE Linux traffic shaper that can manage bandwidth usage per user and etc.for use it, we must configure LDAP server &client ,edit sudoerr's file, create mysql database with some tables� . Its interface is base on cgi&perl language . How do I package this project? i don't know what part of proj is necessary for packaging (what is source code for creating a RPM package?)
I have error in KPackageKit when i try to install anything or check for updates:
Failed to initialize packaging backend. This may occur if other packaging tools are being used simultaneously.
Details: There are unfinished transactions remaining. Please run yum-complete-transaction as root.
I don't know anything about other packaging tools - I think I don't using any. Yum works fine in terminal. Reinstall PackageKit and KPackageKit files doesn't helped me. I also try to rebuilt rpm db:
rm -f /var/lib/rpm/__db* rpm -vv --rebuilddb yum clean all
" p, li { white-space: pre-wrap; }Cannot get the exclusive lock on the packaging backend. Please close any other legacy packaging tools that may be open." I cannot update anything, and I haven't opened another package downloader. The only one open is KpackageKit. Please help, is this a big or have a I got a virus or something? I don't know what information is needed so if I need to expand tell me what I need to retrieve and ill post it.I'm not good with Kubuntu problems.
I've got a CentOS 5.2 installation with broken package system. When I try to do "yum update" I get lots of "Missing Dependency" errors. How could I restore it to a usable state?
From the GUI, software update gives the error "Failed to Initialize - Failed to initialize the packaging backend. This may occur if other packaging tools are being used simultaneously." In the more details, "There are unfinished transactions remaining.
I run a terminal, switch to root and do as it tells me. It returns saying that there are no unfinished transactions. I've run it several times with the same result. Then I run "yum clean all" and "yum upgrade." The upgrade processes runs and reports "there are unfinished transactions..." However, the upgrade process still completes. Basically it is now a severe annoyance, but the system does seem to upgrade. I just cannot figure out why there are somehow unfinished transactions that I cannot get rid of. I tried reinitializing the rpm database - no luck. How can I somehow reset yum?
I recently installed Fedora 13 on my system, and I'm still in the process of setting it up as I like. As the FCEU and snes9x versions on rpmfusion are old (fceultra 0.98, snes without GUI), I wanted to compile my own RPMs Everything went OK, but I found myself having to build the packages several times because of missing LDFLAGS. I got several errors like "symbol X missing, it was found on Y so you may want to add Y to the linker flags", which I fixed by modifying & exporting LDFLAGS.
So, 2 questions:
1.- why are the LDFLAGS missing? How can I avoid having to set them up manually? 2.- There should be a way to avoid re-compiling the source and only run the rpm packaging stuff with the already built things (some option like 'don't build, only package'). how can I do that?
BTW, I can share my (pretty much hacked) .spec files if you are interested
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
my dads decided to try out ubuntu on his pc, so far everythings up and running smoothly. i am trying to get the video capture card working with tvtime. I have ran "lspci" in the terminal which has detected the following.
I have a large tarball which is bz2 compressed, and I would like to get a md5 sum of the files contained in it, as I have a separate directory on another server containing what I think are the same files. I want to check to see if the tarballs files are the same as the uncompressed files on the remote server. The files are big 10gb+ so I was wondering if there was a quick way without having to uncompress them all and then md5 them.
i downloaded a souce tarball for aircrack-ng from linux, when i extract it and move the terminal to its directory and run make and make install it gives me errors like the following
Code: >make make -C src all make[1]: Entering directory `/home/baronobeefdip/aircrack-ng-1.1/src' make -C osdep
[Code]...
as you can see by the little icon next to my penguin i am using fedora (goddard) but i want to know how to install this in several other distros other than fedora because tarballs are universal with linux distros and i wanna know how to install it without using the internet (just want to know how to install it from tarball)
I'm trying to package Apache Tomcat binary tarball into a RPM package on CentOS 5.5. The idea is to package the tarball, extract it into /usr/local/, create a tomcat user, change permission on the /usr/local/tomcat install dir, copy the init startup script to /etc/init.d/
Since it's a binary/pre-compiled package, I don't need to compile the source codes.
I recently downloaded a tarball which contains a .src file for a program to convert .ttf fonts to .cxf fonts for use in Qcad drawings. how to compile and install this program in linuxmint 9 or ubuntu lucid. What I downloaded from the ribbonsoft.com website is a tarball called ttf2cxf-0.0.0.1-src.tar.gz. It contains a directory /ttf2cxf-0.0.0.1-src, which contains three files: main.cpp, Makefile, and ttf2cxf. I can post the contents of these files. This is not a high priority problem but i have been messing around with this for a while and have made no progress.
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?