www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.announce - Making debian package for dmd.

reply Dawid =?UTF-8?B?Q2nEmcW8YXJraWV3aWN6?= <dawid.ciezarkiewicz gmail.com> writes:
Lately, I've moved to ubuntu edgy and as I like to have clean and healthy
system I try not to install custom files in it.

So I need to make .deb for DMD. In attachment there is a debian subdirectory
that will "debianize" dmd.

To build your own .deb file you will have to:
1) download dmd.xxx.zip
2) extract it
3) move debian directory into extracted dmd dir so it looks like this:
 ./dmd/bin
 ./dmd/debian
 ./dmd/lib
  (...)
4) adjust dmd version in the first line of ./dmd/changelog
5) in the main project dir (`cd ./dmd`) run `dpkg-buildpackage -rfakeroot`

And voila `cd ..; ls` - here are your precious debs.

NOTES: I'm not debian maintainer; I'm new to ubuntu; I don't think about
officially supporting dmd debianization - those names in files are there
just to fill needed holes; if something goes wrong please tell me here -
I'll try to help but without ANY warranty of any kind

Other than that - enjoy. Should work for all debian-like systems. :)
Nov 09 2006
next sibling parent Manfred Hansen <m.hansen kielnet.net> writes:
Am Thu, 09 Nov 2006 16:31:43 +0100 schrieb Dawid Ciężarkiewicz:

 Lately, I've moved to ubuntu edgy and as I like to have clean and healthy
 system I try not to install custom files in it.
 
 So I need to make .deb for DMD. In attachment there is a debian subdirectory
 that will "debianize" dmd.
 
 To build your own .deb file you will have to:
 1) download dmd.xxx.zip
 2) extract it
 3) move debian directory into extracted dmd dir so it looks like this:
  ./dmd/bin
  ./dmd/debian
  ./dmd/lib
   (...)
 4) adjust dmd version in the first line of ./dmd/changelog
 5) in the main project dir (`cd ./dmd`) run `dpkg-buildpackage -rfakeroot`
 
 And voila `cd ..; ls` - here are your precious debs.
 
 NOTES: I'm not debian maintainer; I'm new to ubuntu; I don't think about
 officially supporting dmd debianization - those names in files are there
 just to fill needed holes; if something goes wrong please tell me here -
 I'll try to help but without ANY warranty of any kind
 
 Other than that - enjoy. Should work for all debian-like systems. :)
Thank you. Run fine for me.
Nov 10 2006
prev sibling parent =?UTF-8?B?QW5kZXJzIEYgQmrDtnJrbHVuZA==?= <afb algonet.se> writes:
Dawid Ciężarkiewicz wrote:

 Lately, I've moved to ubuntu edgy and as I like to have clean and healthy
 system I try not to install custom files in it.
 
 So I need to make .deb for DMD. In attachment there is a debian subdirectory
 that will "debianize" dmd.
If you use redhat-like systems like Fedora, I have a DMD specfile that I update occasionally: http://www.algonet.se/~afb/d/dmd.spec Edit the vers number at the top, build with: rpmbuild -bb dmd.spec I usually try to patch it up to build without warnings, if enabled. --anders
Nov 11 2006