Debian :: Packaging / Preinst Script And Version Checking
Oct 27, 2015
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
  ;;
[Code] ....
View 0 Replies
ADVERTISEMENT
Jun 14, 2011
Is it possible to check out the log as well when you are checking out a version from some repo. For instance this is a game I like :-
[Code]...
The game is called dawn-rpg and one can find about it at dawn-rpg.sourceforge.net but that's not what I want to talk about. The thing it would be so much more convenient for me if instead of going to the svn mirror or whatever it is and checking out the log, it was local. I know I could do something like this :-
svn log > svnlog150611.txt
This would download the log file and put the contents in some text file I have named as svnlog150611.txt . The problem with this way of doing things is that each time I have to check out I would have to create a new txt file with that date. If there was a way one could check out the log as well when checking out a new version/release it would be nice. Its also possible that this might be already be there and there might be another command to use locally that I am not aware about. In that case, would look forward to people to share the same.
View 4 Replies
View Related
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?
View 5 Replies
View Related
Jan 3, 2009
I'm trying to package a Qt application using debuild. However, I can't figure out how to make qmake generate a correct Makefile.
The main problem is that the binary doesn't get put into ./usr/bin inside the .deb.
So dh_shlibdeps always fails and I get the following:
Code: Select alldpkg-gencontrol: warning: unknown substitution variable ${shlibs:Depends}
dpkg-gencontrol: warning: unknown substitution variable ${misc:Depends}
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
[code]....
View 6 Replies
View Related
Apr 12, 2014
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:
Attempt 1:
# -*- makefile -*-
%:
dh $@ --with-python2 --buildsystem=python_distutils
This try seemed to package up the python stuff nicely but proceeded to ignore my makefile for the shared library and therefore ultimately failed.
Attempt 2:
# -*- makefile -*-
%:
dh $@ --with-python2
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
Attempt 3:
# -*- makefile -*-
build:
dh $@
dh $@ --with-python2 --buildsystem=python_distutils
%:
dh $@ --with-python2 --buildsystem=python_distutils
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.
View 0 Replies
View Related
May 10, 2010
Sometimes at startup I get this message "Checking disk 1 of 1". Does that mean it's checking all partitions on the hd? After a bad shutdown there is no prompt for fsck to run and the system just boots up. In fstab I have both options set to "1" for the partition Ubuntu is on, all others set to "0". Any ideas on both?
View 3 Replies
View Related
Feb 25, 2011
I installed debian squeeze on an old computer that I found. (Pentium 4 3.2GHz HT) I installed from the i386 version, but now the uname command shows that its an i686. I don't find many packages that I need using apt-get. Do I need to compile each package I need from source or use dpkg to install the deb of an i386 version?
Can I use the i386 version on this computer rather than the i686 version? Will it cause a signifncant performance decreaes? (I use this computer to mostly do some reading and writing and file storage, no gaming etc.) How do I force the installer to use the i386 version?
[Code]...
View 3 Replies
View Related
Mar 8, 2011
Sometimes a kernel image seems to have the same version as the backported kernel image, for example:
linux-image-2.6.32-bpo.5-amd64
linux-image-2.6.32-5-amd64
What are the differences between the two?
View 5 Replies
View Related
Jun 17, 2011
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.
View 8 Replies
View Related
May 11, 2011
I can use spell check for English with vim, it works quite fine. But I don't succeed in doing it in another language. For example German spell checking: The command :mkspell ~/.vim/spell/de /usr/share/hunspell/de_DE.aff generates a de.utf-8.spl in the right folder, but vim marks every word as wrong when I activate it with
:setlocal spell spelllang=de
View 3 Replies
View Related
Jan 14, 2010
My problem is that I can't disable checking mail after logging (communique "You have mail." or "No mail") in my system Debian 5."CheckMail" option in OpenSSH is now inaccessible.I tried to set "MAIL_CHECK_ENAB" option to no in /etc/login.defs but it doesn't work.I added "unset MAILCHECK" in /etc/profile but this doesn't work too.I tried to comment line "session optional pam_mail.so standard" in /etc/pam.d/login but it didn't help.
View 2 Replies
View Related
Aug 19, 2015
Is there a way to find if a package is a dependency of some other package/s that you have installed it.
For instance, let's say there is a library called libkolabxml1
Now if I just install it and ask :-
Code: Select all$$ aptitude why libkolabxml1
Unable to find a reason to install libkolabxml1.
But I remember it being useful/needed somewhere.
View 1 Replies
View Related
Sep 15, 2010
I have switched recently from Ubuntu to Debian and overall I am enjoying it. However I was just wondering, does Debian, like Ubuntu check the filesystem at boot periodically or if damaged, because it is doing neither in my case? How do I get it to do this
View 6 Replies
View Related
Oct 21, 2010
How do the version numbers compare? Are they identical? I have Iceweasel 3.5.13, does that mean I essentially have Firefox 3.5.13?
View 11 Replies
View Related
Apr 16, 2010
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.
View 3 Replies
View Related
Jan 20, 2010
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 ?
View 2 Replies
View Related
Apr 12, 2011
Is there any spell checking functionality in the Squeeze version of the Arora browser?
View 1 Replies
View Related
Mar 16, 2010
Recently I started getting pop-up saying:
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:
Code:
# yum update
Loaded plugins: fastestmirror, presto, refresh-packagekit
Determining fastest mirrors .....
After lots of googling, I tried:
"yum clean all",
"yum-comlete-transaction",
"rm -f /var/lib/rpm/__db*" + "rpm -vv --rebuilddb" + "yum clean all",
Everything else is working well, and I am able to update with "--skip-broken", but I keep getting this pop-ups. I use fedora 12.
View 5 Replies
View Related
Oct 22, 2010
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?)
View 1 Replies
View Related
Jan 8, 2011
My computer start to .It just stop for a minute before continuing the boot
EDIT: Could this be the cause?
Log of fsck -C -R -A -a
Sun Jan 9 23:45:42 2011
[code]...
View 2 Replies
View Related
Jan 22, 2011
I followed this doc for the "debian method" for building the kernel: [URL]. I installed the source in /var/tmp/src/linux-2.6-2.6.32 , configured it, and tried make-kpkg modules-image. The error I get is:
checking for current directory... /usr/src/modules/alsa-driver
checking cross compile...
checking for directory with ALSA kernel sources... ../alsa-kmirror
checking for directory with kernel top-level makefile... /var/tmp/src/linux-2.6-2.6.32
checking for directory with kernel headers... failed
make[2]: *** [configure-stamp] Error 1
make[2]: Leaving directory `/usr/src/modules/alsa-driver'
make[1]: *** [kdist_image] Error 2
make[1]: Leaving directory `/usr/src/modules/alsa-driver'
Module /usr/src/modules/alsa-driver failed.
I tried some hacks such as setting KBUILD_SRC or ln -s linux-headers-2.6.32-5-amd64/ /usr/src/linux - but these fail too.
View 2 Replies
View Related
May 13, 2010
Is there any prorgam for checking USB Flash memory for errors, defects, bad clusters, etc...?Like MemTest86+ for RAM, but to check USB Flash-drives.
View 9 Replies
View Related
Feb 26, 2010
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
I'm using Fedora 12 x86_64.
View 12 Replies
View Related
Jan 15, 2010
" 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.
View 2 Replies
View Related
Jul 14, 2011
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?
View 6 Replies
View Related
Feb 5, 2010
Attempting to upgrade Firefox to 3.6. On opening synaptic package manager I get :-
An error occurred
E: dpg was interrupted, you must run 'dpkg--configure-a' to correct the problem.
E:_cache->open()failed,please report.
On entering 'dpkg--configure-a' on terminal I get 'command not found.
View 5 Replies
View Related
Mar 15, 2010
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?
View 2 Replies
View Related
Jul 19, 2010
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
View 8 Replies
View Related
May 26, 2010
I've just install debian squeeze version, or the testing one, but I am not really happy with it. Is not listening me all the time. If I install the debian stable I don't have internet connection. Is it possible to update the kernel somehow using the testing version?
View 12 Replies
View Related
May 10, 2011
When I installed Debian 6.0.1 (Squeeze) I decided not to install GRUB as I already had a GRUB2 set up from Ubuntu working fine. Now I find my self using Debian more and more and would like to be able to update Debian (in GRUB) without having to go into Ubuntu to update GRUB.
My question is what version of GRUB does Debian come pre-set with? Do I need to go into the synaptic and download GRUB2?
View 5 Replies
View Related