LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 10-06-2012, 09:14 PM   #1
towheedm
Member
 
Registered: Sep 2011
Location: Trinidad & Tobago
Distribution: Debian Squeeze
Posts: 585

Rep: Reputation: 118Reputation: 118
Error building a DEB library package


I've asked this on the Debian Forums site also.

I have successfully (at several times) build a single binary package with dh_make and debuild. I'm now trying to build a library package but have been stuck with different errors.

I'm presently trying to build the library package for libexcfeutil-4.10.0. I've debianized the source with dh_make -l and edited the respective files in the debian directory. This is my control file:
Code:
Source: libxfce4util
Priority: optional
Maintainer: Towheed Mohammed <e-mail edited>
Build-Depends: debhelper (>= 7.0.50~), autotools-dev
Standards-Version: 3.9.1
Section: xfce
Homepage: <insert the upstream URL, if relevant>
#Vcs-Git: git://git.debian.org/collab-maint/libxfce4util.git
#Vcs-Browser: http://git.debian.org/?p=collab-maint/libxfce4util.git;a=summary

Package: libxfce4util-dev
Section: libdevel
Architecture: any
Depends: libxfce4util6 (= ${binary:Version})
Description: This package contains the header files for libxfce4util6
 A long summanry.

Package: libxfce4util6
Section: libs
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}
Description: This package contains the lib files
 Another long summary.
And my rules file:
Code:
#!/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
%:
    dh_testdir
    dh_auto_clean
    dh_clean
    dh_testdir
    dh_auto_configure -- --disable-debug
    dh_auto_build
    dh_auto_test
    dh_testdir
    dh_testroot
    dh_installchangelogs
    dh_installdocs
    dh_installdirs
    dh_auto_install
    dh_install
    dh_compress
    dh_fixperms
    dh_strip
    dh_makeshlibs
    dh_shlibdeps
    dh_installdeb
    dh_gencontrol
    dh_md5sums
    dh_builddeb
After running:
Code:
debuild -us -uc
the build fails with the following error:
Code:
dh_install
dh_install: libxfce4util-dev missing files (usr/lib/lib*.a), aborting
make: *** [clean] Error 255
dpkg-buildpackage: error: fakeroot debian/rules clean gave error exit status 2
debuild: fatal error at line 1325:
dpkg-buildpackage -rfakeroot -D -us -uc failed
After much searching and reading:
http://www.netfort.gr.jp/~dancer/column/libpkg-guide/libpkg-guide.html#ftn.id249924
http://myitcorner.com/blog/?p=217
https://wiki.ubuntu.com/MOTU/School/LibraryPackaging
together with the usual Debian docs, I've found this post:
http://unix.stackexchange.com/questi...-libraries-deb

After reading that post, I changed the dh_auto_configure line in the rules file to:
Code:
    dh_auto_configure -- --disable-debug --enable-static
But now after debuild I get this error:
Code:
dh_install
dh_install: libxfce4util-dev missing files (usr/share/pkgconfig/*), aborting
make: *** [clean] Error 2
dpkg-buildpackage: error: fakeroot debian/rules clean gave error exit status 2
debuild: fatal error at line 1325:
dpkg-buildpackage -rfakeroot -D -us -uc failed
So I set my PKG_CONFIG_PATH env var to:
Code:
export PKG_CONFIG_PATH="/usr/lib/pkgconfig:/usr/share/pkgconfig:$PKG_CONFIG_PATH"
but I get the same error.

This is my debian/libxfce4util-dev.install file:
Code:
usr/include/*
usr/lib/lib*.a
usr/lib/lib*.so
usr/lib/pkgconfig/*
usr/lib/*.la
usr/share/pkgconfig/*
I've been at this for the last week and now I'm at my wits end.

I'd really appreciate any help and/or guidance in solving this.

Thanks.
 
Old 10-12-2012, 11:59 AM   #2
bts
LQ Newbie
 
Registered: Oct 2012
Location: Sweden
Distribution: Ubuntu
Posts: 2

Rep: Reputation: Disabled
Hi,

It's been a while since I built a debian library package, but you can check your debian/libxfce4util-dev.install file and make sure you don't try to install files that don't exist, e.g. *.a files are not in a dynamic library so you can remove that line.

BR
Tommy
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
which method is better for building deb package kushalkoolwal Debian 10 02-02-2008 06:58 AM
need help building deb package of qemu fakie_flip Programming 0 10-28-2007 04:54 PM
An unwanted link getting generated automatically: building .deb package varun_shrivastava Debian 0 10-08-2007 04:06 AM
Building my own .deb package (help on postinst config) odiseo77 Debian 3 01-28-2007 10:49 AM
How to create a .deb library package? FloFri Debian 3 05-03-2004 11:12 AM


All times are GMT -5. The time now is 11:30 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration