Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Re: how to create a new debian package

1,583 views
Skip to first unread message

Osamu Aoki

unread,
Oct 11, 2009, 6:52:33 PM10/11/09
to
Hi,

On Mon, Oct 12, 2009 at 12:27:51AM +0800, george wrote:
> Hi all
>
> How to create a new Debian package from my source ? I want to create binary
> packages from the source I have.
>
> When I using "dpkg-buildpackage -rfakeroot -b -d" to cli ,I got the error
> msg as follows :
...
> tail: cannot open `debian/changelog' for reading: No such file or directory
>
> dpkg-buildpackage: failure: tail of debian/changelog gave error exit status
> 1

Did you created source with debian/* ?

It seems you did not run dh_make and editted files there.

Please read:
http://www.debian.org/doc/devel-manuals#maint-guide
(somewhat outdated examples but good enough for you to get idea)

Then read related manpages and key documents:
http://www.debian.org/doc/devel-manuals#policy
http://www.debian.org/doc/devel-manuals#devref

Osamu


--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org

george

unread,
Oct 11, 2009, 6:53:55 PM10/11/09
to

Hi all

How to create a new Debian package from my source ? I want to create binary packages from the source I have.

When I using “dpkg-buildpackage -rfakeroot -b –d” to cli ,I got the error msg as follows :

dpkg-buildpackage: warning: using a gain-root-command while being root

dpkg-buildpackage: set CFLAGS to default value: -g -O2

dpkg-buildpackage: set CPPFLAGS to default value:

dpkg-buildpackage: set LDFLAGS to default value: -Wl,-Bsymbolic-functions

dpkg-buildpackage: set FFLAGS to default value: -g -O2

dpkg-buildpackage: set CXXFLAGS to default value: -g -O2

tail: cannot open `debian/changelog' for reading: No such file or directory

dpkg-buildpackage: failure: tail of debian/changelog gave error exit status 1

 

 

Cheers,

george

Javier Barroso

unread,
Oct 11, 2009, 6:55:19 PM10/11/09
to
Hi,

dpkg-buildpackage is used for debian source packages (apt-get source
XXX ; apt-get build-dep XXX; cd XXX-y; dpkg-buildpackage ...)

If you want to create a deb package from zero you need go to any
tutorial [1], or read the guide from d.o:

[1] http://www.google.es/search?q=debian+packaging+tutorial&ie=utf-8&oe=utf-8&aq=t&rls=com.ubuntu:es-ES:official&client=firefox-a
[2] http://www.debian.org/doc/maint-guide/

Regards,

0 new messages