Ubuntu Installation :: How To Build A .deb Package From Git

Jan 4, 2011

I work at a small company where we use to deploy things by just checking out the repo and copying stuff to production servers. This has to come to an end, enter .deb packages!

So I'm wondering what's the best procedure to do that. I already know how to create .deb packages, most of our stuff is Python and we're going to use python-support and cdbs. But how to maximally automate this?

We have a Git repo and ideally the whole thing should work like this:

* a tag is created in the Git repo (the version can be provided manually)

* some file like 'version.py' is created so that setup.py and the packaged software can refer to it and know the tag

* changelog is created from the Git commit logs

* the package is built (that's the part I've worked out - python-support and cdbs are involved here)

* optionally, the package is uploaded somewhere

There's a .deb package named 'git-buildpackage', is it suitable for this task? So far I can tell that it has one drawback - it looks for the 'debian/' directory in the root of the repository, which is not the case - our repo consists of several subdirectories, each contains a subproject that will be packaged independently.

View 2 Replies


ADVERTISEMENT

Ubuntu Installation :: Build-Essential Package Missing / Obsoleted

Jun 20, 2011

Today is my first day to use ubuntu for my C++ programming. However, when I was trying to install build-essential, it failed. This is the output shown:

vie@vie-laptop:~/TestC++$ sudo apt-get install build-essential
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package build-essential is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package build-essential has no installation candidate
vie@vie-laptop:~/TestC++$ .....

View 3 Replies View Related

SUSE :: Package A War File As An RPM Package - Always Giving Errors In %build Stage

Feb 14, 2011

Still I am asked to package a war file as an RPM package. That is an unusual RPM packaging(To me). If you guys could guide me I have a war file inside a folder, that folder is inside a tar file as a SOURCE for RPM package. The structure is like below.

[Code]...

I simply want that the war file from sources is transferred to the web app of my tomcat server through RPM. I try to package it as an RPM, but its always giving me errors in %build stage. When I try to remove %build from stage from the spec file, then it says command missing.

My system details are:
SUSE Linux Enterprise Server 10 (x86_64)
VERSION = 10
PATCHLEVEL = 1
LSB_VERSION="core-2.0-noarch:core-3.0-noarch:core-2.0-x86_64:core-3.0-x86_64"

View 5 Replies View Related

Ubuntu :: E: Couldn't Find Package Build?

Jun 27, 2010

When I type this command ;sudo apt-get install build essentialI got this ;

Reading package lists... Done
Building dependency tree
Reading state information... Done

[code]...

View 2 Replies View Related

Fedora :: Can't Build Rpm Package?

Mar 9, 2010

I'm building an rpm from the following program source:[URL].. but I'm getting the following error after running rmpbuild: (here I only show the log after configure, see attachment for a full log):

configure: creating ./config.status
config.status: creating Makefile
----the prefix for installation directories is:/usr
If this choice is not convenient, re-execute this configure
with the --prefix option, e.g.

[Code]...

I can figure that it cannot install under /usr/bin, rather it have to install in %{buildroot}, but I don't know how to deal with that. Please I need help with this!

View 9 Replies View Related

Server :: Kernerl3.0.0 Build As Rpm Package?

Aug 16, 2011

i make rpm package from linux kerlne 3.0.0 source. default spec file in "linux-3.0/scripts/package/mkspec" ,i add %post lines,this step use to install new kernel with rpm (ivh) tools and configure grub automatically

Quote:

echo "%post"
echo '/sbin/new-kernel-pkg --mkinitrd --depmod --install "$__KERNELRELEASE" || exit $?'
then ,make rpm-pkg, it makes rpms bellow:
Wrote: /root/rpmbuild/SRPMS/kernel-3.0.0-1.src.rpm
Wrote: /root/rpmbuild/RPMS/x86_64/kernel-3.0.0-1.x86_64.rpm

[Code]...

View 3 Replies View Related

Programming :: Build A Package Using A Different Lib Than The One Installed?

Jul 11, 2011

Is is possible to compile (but not install) a library, and then compile a package using that library instead of the version that's installed?

View 4 Replies View Related

Fedora X86/64bit :: Build Multilib RPM Package In X86-64?

Dec 5, 2009

I am running Fedora 12 x86-64. I have a SRPM and want to build both x86-64 and i686 package. But the rpmbuild -ba can only build x86-64 package. --target=i686 is not working fine too, it try to find dependency in /usr/lib64. How can I build i686 package?

View 1 Replies View Related

General :: Build Package For Evolution - Brutus?

Jul 22, 2010

i am new to linus and trying to connect evolution to exchange 2007 using evolution-brutus plug in. However not able to complete the compiling stage. where to download the following rpm. I am using Ubuntu 10.04 LTS- the Lucid Lynx

configure: WARNING: You should have the rpmdev-setuptree program if building evolution-brutus RPMs checking for rpmdev-wipetree... no configure: WARNING: You should have the rpmdev-wipetree program if building evolution-brutus RPMs checking for build. no configure: WARNING: You should have the build program if building evolution-brutus RPMs on SUSE checking for dpkg-buildpackage..

View 4 Replies View Related

Slackware :: Build Notes For LFS 6.6 With Package Users?

Oct 20, 2010

Edit: Ack! Duplicate post. See my thread, What a slacker learned from building Linux from Scratch..., the build notes are in this post.

View 1 Replies View Related

Ubuntu :: LTIB Showing Package Not Present: Rpm-build Software Not Installed

Oct 15, 2010

ltib is showing following package not present: rpm-build Software not installed, even though rpmbbuild is already installed. I am trying this on Ubuntu.

View 1 Replies View Related

Fedora :: Package To Install To Build Packages From Source

Mar 15, 2010

What package do I have to install to build packages from sources? I am trying to build the TrueCrypt package from source.

View 1 Replies View Related

General :: Launch Firefox 7.0a1 Nightly Build From A .bz2 Package?

Jul 5, 2011

I got Thunderbird 5.0a2 Beta because it had the file that runs it in there, but I can't find it anywhere in the Firefox Nightly Build one. There's also no config file in there either, and I don't want to replace my Aurora 6.0a2 Beta with the very unstable Alpha until I try it out. I would try it in the Virtual Machine but it'd take too long to set it all up.

[URL]

I downloaded the .bz2 file and Archiver extracted it for me. I remember in Slackware you just use installpkg on .bz2 files... Or was it .gz... I forget, anyway, how can I run Nightly-Build? Run-Mozilla.sh opens my Aurora browser.

View 6 Replies View Related

Software :: Package Gpart Fails To Build On Powerpc?

Apr 17, 2010

Question is: How do I compile a package for little endian on big endian proceessors? Gpart is known to build on arm-el, ia64, i386, and amd64. I'm using gcc 4.3 and have versions 3.4, 4.1, 4.2. Build environment is debian lenny, powerpc.

View 4 Replies View Related

Slackware :: Build GCompris A Childrens Educational Package?

Jul 5, 2011

I've been trying to build gCompris a childrens educational package. I got the compressed source & build from slackbuilds.org The only dependency mentioned in the readme was gnet so built and installed that ok .

With gCompris the build was progressing fine until a it hit a point at " text2html" .Looked in the 4th install disk of slackware 13.37 no sign of either.looked in slackbuild also no mention of either.

View 11 Replies View Related

Ubuntu :: Dev Package For Intern.h Ruby - ERROR: Failed To Build Gem Native Extension

Oct 26, 2010

I am currently trying to get my RadRails working. There are certain tasks I cannot complete and I'm guessing that installing mongrel and some other items would get everything going. I run the update and it seems to fail horribly and I've been looking on google for the last 2 hours to the answer to this one. This is there errors I have gotten so far.

By the way I am currently using Ubuntu 10.04 if that makes any difference. I have already downloaded and installed sqlite3 and sqlite dev.

Code:

>gem install -l mongrel-1.1.5.gem
Building native extensions. This could take a while...
ERROR: Error installing mongrel-1.1.5.gem:
ERROR: Failed to build gem native extension.

[code]....

Now at this point I am just trying to find the intern.h header file and can't find out what to download to get that.

View 2 Replies View Related

General :: Use Compile File Build Package Without Messing Up Library

Apr 11, 2010

I want to build a package from source using src2pkg, but I don't know how to avoid library miss match. Suppose I have Firefox 3.5.2 on Slackware 13.0 64 and I want to upgrade it to 3.6.2. Last time when I venturesomely installed Firefox-3.6.2-current into my Slackware 13.0, I got library miss match. Thus, instead of upgrading the whole packages to current (which is impractical and cumbersome), I want to build 3.6.2 from source. How can I do this? Is there any guideline how to use src2pkg? Or should I rather use makepkg? Do I need to create a Makefile?

View 7 Replies View Related

Slackware :: Slackpkg Makes A Package And Uses The Adapted Build Script?

Jun 27, 2010

When I do slackpkg -N package I get a build script.I can change that so It will do what I want.

But what can I do so slackpkg makes a slackware package and uses the adapted build script ?

View 5 Replies View Related

Debian :: Build A Deb-package In Order To Detect And React To The --purge Switch?

Jun 27, 2010

how does one have to build a deb-package in order to detect and react to the --purge switch?

View 1 Replies View Related

Debian :: Installing Kernel Sources - Make Command To Build Package Fails

Jul 22, 2010

I'm trying to build the package zaptel on debian, but I'm encountering two errors:
1- When I try to run the "make menuselect" command, I get an error stating that I need ncurses which is missing. I tried to get it installed but didn't get to do it yet.
2- After that, there's the command "make" I think it's to build the package. Yet again this fails, and the error I get is "you do not appear to have the sources for the 2.6.26-2-686 kernel installed".

View 3 Replies View Related

Debian Configuration :: Build A Package - Debian / Rules Error?

Apr 2, 2011

I recently tossed Ubuntu for Debian Unstable for my personal machines and I'm having trouble building Emerald into a package. I've already configured and installed the package (using the usual ./configure, make, make install) but I wanted to make a deb for future use (for myself and for others). However every time I try to run dpkg-build I get the following error message.

dh_install -pemerald  --sourcedir=debian/tmp
dh_install: emerald missing files (usr/bin/*), aborting
make: *** [binary-install/emerald] Error 2
dpkg-buildpackage: error: debian/rules binary gave error exit status 2

[Code]...

View 2 Replies View Related

Slackware :: Slackware 13.1 Build Package Net-snmp With LmSensors Support?

Nov 17, 2010

I downloaded from http://ftp.nluug.nl/os/Linux/distr/s...ce/n/net-snmp/ source and I build new package and works ok no errors. If I change net-snmp.SlackBuild and add CFLAGS --with-mib-modules=ucd-snmp/lmSensors --with-ldflags=-lsensors while I need lmsensors support in net-snmp. But the package compiling ends with error:

[Code]...

View 2 Replies View Related

Ubuntu :: Package Installation Error / 'E: Unable To Locate Package Xxx'

Feb 3, 2011

I am following this guide to installing eclipse via terminal command-line on Linux. However, this seems to be happening lately with all the packages I try to install..I checked the Synaptic Package Manager and reloaded and rebooted the computer, but to no avail.

View 5 Replies View Related

Ubuntu Installation :: Installing Package Through Synaptic Package Manager?

Aug 3, 2011

I have a problem when installing this package through synaptic package manager. this is :

libpng12-dev
the error is:
W: Failed to fetch http://security.ubuntu.com/ubuntu/po...tu2.1_i386.deb
404 Not Found [IP: 91.189.92.167 80]
my distribution is ubuntu 10.4.

View 1 Replies View Related

Ubuntu Installation :: E: Encountered A Package With No Package: Header

Jun 20, 2010

I just finished installing a dual boot XP/Ubuntu 10.04 LTS for desktop about half an hour ago, and it's my first experience with a Linux OS. Now that my *complete idiot noob* flag is flying, I have an error I think I need to report:An error occurs with the Package Manager, I get this message when I try to run it, and when Ubuntu boots:

E: Encountered a Package with no Package: header
E: Problem with MergeList /var/lib/apt/lists/
us.archive.ubuntu.com_ubuntu_dists_lucid_restricte d_binary-i386_Packages
E: The package lists or status file could not be parsed or opened.

This usually means that your installed packages have unmet dependencies I tried to download and install Chrome, and it came up with a similar error.

Is my install corrupt/incomplete or something? My setup is a P4 2.4Ghz, 512Mb RAM, onboard graphics, wireless internet and the HDD is 40GB, split into 2 partitions, and my Ubuntu Partition is 10 GB. I'm running Ubuntu 10.04 LTS distribution, and the other OS is Windows XP Professional SP3.I installed Ubuntu by using the Wubi installer.

View 1 Replies View Related

Ubuntu Security :: Script Running As A Special Build User Which Performs An Automated Build That Fails With (Too Many Open Files)?

Feb 11, 2011

I have an init script running as a special build user which performs an automated build that fails with (Too many open files).I updated /etc/security/limits to allow the special user more open files, but that didn't work - the init script still isn't allowed more open files.Here's a demonstration of the problem;

Code:
$ su - sbsbuild -c "ulimit -n"
Password:

[code]....

View 1 Replies View Related

OpenSUSE :: Find All The Build-deps Or What They Are For That Matter To Build Boxee

Feb 20, 2010

I'm in love with my Opensuse 11.2. Love my KDE 4.4. The only thing I miss from my Ubuntu installation, is the ability to use Boxee. I would be more than willing to compile Boxee from source. I only have 2 problems with that:

1) I don't know where I can find all the build-deps or what they are for that matter to build Boxee.

2) I'm running on a Netbook. Yes, my measly Intel Atom is no fun for compiling and building.

What are my options/what can I do to get Boxee up and running on 11.2? I've tried searching on build service for an RPM, but I think due to legal restrictions, Boxee can't be on there.

View 9 Replies View Related

OpenSUSE :: Build Libevent-dev 2.0.10 In Ooder To Build New Version Of Transmission?

Feb 16, 2011

looking for LIBEVENT... configure: error: Package requirements (libevent >= 2.0.10) were not met: In order to build transmission 2.21.I need libeventnew version of transmission,I need to build libevent-dev >= 2.0.10 and installed first.But I can't get any information about building development files for libevent.

View 1 Replies View Related

Software :: Self Build Rpm Fails With Missing Dependencies On Build Host?

Sep 24, 2009

as I'm advancing in building some nice rpm I finally wanted to install on of my gems also the build was successful the actual install fails with missing dependencies.

Code:

$ rpm --root /home/sascha/rpmbuild/ -i ./RPMS/x86_64/memcached-1.4.1-2.x86_64.rpm
error: Failed dependencies:
libc.so.6()(64bit) is needed by memcached-1.4.1-2.x86_64
libc.so.6(GLIBC_2.2.5)(64bit) is needed by memcached-1.4.1-2.x86_64

[code]....

View 1 Replies View Related

General :: Package Kernel-package Has No Installation Candidate?

May 26, 2010

I want to install kernel package by this command sudo apt-get install kernel-packagebut it gives me the error :Package kernel-package has no installation candidate

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved