Help, the template debian/rules is too simple

View: New views
6 Messages — Rating Filter:   Alert me  

Help, the template debian/rules is too simple

by waixy zhou :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

hi,
I want to package the cross-complie tools for RTEMS(a realtime operation used in embedded system), and use dh_make to generate the template of "debian/" directory, then i find the file debian/rules is too simple, just 3 lines left after eliminating the comments, as follows:
          #! /usr/bin/make -f
          %:
                      dh   $@

This is very different from the Debian New Maintainers' GuideThis is my first time to do package, so I am confused. How can I generate the template debian/rules file containing the details as New Maintainers' Guide? I do not want the cross-complie tools such as gcc/gdb mix up with my host-complie tools. So I want to assign at least these complie options: --prefix and --target. How can I do that?

Thanks.

Waixy

Re: Help, the template debian/rules is too simple

by Osamu Aoki :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Mon, Nov 02, 2009 at 08:25:01PM +0800, waixy zhou wrote:
> hi,
> I want to package the cross-complie tools for RTEMS(a realtime operation
> used in embedded system), and use dh_make to generate the template of
> "debian/" directory, then i find the file *debian/rules* is too simple, just
> 3 lines left after eliminating the comments, as follows:
>           #! /usr/bin/make -f
>           %:
>                       dh   $@

I have not used dh_make under squeeze recently ...  but I know lenny one
now comes with option to create package with cdbs.  This cdbs is not
covered by NM guide.
 
> This is very different from the ***Debian New Maintainers' Guide**. *This is
> my first time to do package, so I am confused.

You should have answered differently to the question.

> How can I generate the
> template debian/rules file containing the details as New Maintainers' Guide?

Read:

$ man dh_make

> I do not want the cross-complie tools such as gcc/gdb mix up with my
> host-complie tools. So I want to assign at least these complie options:
> --prefix and --target. How can I do that?

I guess, if you have not created normal package, you are doing something
beyond your current skill.  You need to lean step by step.

Osamu


--
To UNSUBSCRIBE, email to debian-user-REQUEST@...
with a subject of "unsubscribe". Trouble? Contact listmaster@...


Re: Help, the template debian/rules is too simple

by Boyd Stephen Smith Jr.-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Monday 02 November 2009 06:25:01 waixy zhou wrote:
> I use dh_make to generate the template of
> "debian/" directory, then i find the file *debian/rules* is too simple,
> just 3 lines left after eliminating the comments, as follows:
>           #! /usr/bin/make -f
>           %:
>                       dh   $@

dh is so awesome now, that's all a lot of programs need.  I'm serious.

> This is very different from the ***Debian New Maintainers' Guide**. *This
> is my first time to do package, so I am confused.

[...]

> I do not want the cross-complie tools such as gcc/gdb mix up with my
> host-complie tools. So I want to assign at least these complie options:
> --prefix and --target. How can I do that?

The wildcard is only used for targets without explicit commands.  If you need
to do something unusual in a target you could always simply append your
version of the target to the makefile.

I'm betting there's a document on the new dh features somewhere, but I don't
know a link handy.  Have you checked the dh-* manpages from Sid?

Finally, you might get better help on packaging issues (i.e. making your own
packages) on the debian-mentors mailing list.
--
Boyd Stephen Smith Jr.           ,= ,-_-. =.
bss@...             ((_/)o o(\_))
ICQ: 514984 YM/AIM: DaTwinkDaddy `-'(. .)`-'
http://iguanasuicide.net/            \_/



signature.asc (204 bytes) Download Attachment

Re: Help, the template debian/rules is too simple

by waixy zhou :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I admit what I'm doing is a little beyond my current skill, after all, I'm just a user of Debian not a developer. But I think it is better using apt/dpkg to manage the software/tools I need in my research than just using "./configure && make && make install". I prefer to use the ready-made packages if there is any. I googled, but unfortunately I can't find any.

I find a way to solve the this issue by answering 'b' to the question asked by dh_make, that is using cdbs, then setting the variables
DEB_CONFIGURE_EXTRA_FLAGS and DEB_CONFIGURE_PREFIX in debian/rules. 

I am not sure weather this is the right way or the best way, but at least it works.

Thanks anyway!

Waixy

2009/11/2 Osamu Aoki <osamu@...>
On Mon, Nov 02, 2009 at 08:25:01PM +0800, waixy zhou wrote:
> hi,
> I want to package the cross-complie tools for RTEMS(a realtime operation
> used in embedded system), and use dh_make to generate the template of
> "debian/" directory, then i find the file *debian/rules* is too simple, just
> 3 lines left after eliminating the comments, as follows:
>           #! /usr/bin/make -f
>           %:
>                       dh   $@

I have not used dh_make under squeeze recently ...  but I know lenny one
now comes with option to create package with cdbs.  This cdbs is not
covered by NM guide.

> This is very different from the ***Debian New Maintainers' Guide**. *This is
> my first time to do package, so I am confused.

You should have answered differently to the question.

> How can I generate the
> template debian/rules file containing the details as New Maintainers' Guide?

Read:

$ man dh_make

> I do not want the cross-complie tools such as gcc/gdb mix up with my
> host-complie tools. So I want to assign at least these complie options:
> --prefix and --target. How can I do that?

I guess, if you have not created normal package, you are doing something
beyond your current skill.  You need to lean step by step.

Osamu


Re: Help, the template debian/rules is too simple

by Andrew Reid-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Monday 02 November 2009 23:42:54 waixy zhou wrote:
> I admit what I'm doing is a little beyond my current skill, after all, I'm
> just a user of Debian not a developer. But I think it is better using
> apt/dpkg to manage the software/tools I need in my research than just using
> "./configure && make && make install". I prefer to use the ready-made
> packages if there is any. I googled, but unfortunately I can't find any.

  Do you know about "stow"?  It's kind of a poor-man's package
management system.  It's pretty sophisticated, but the vanilla
use-case for it is, you build applications inside a directory,
/usr/local/stow/<app-name>, and the installer creates bin, lib,
share, and so forth inside that directory.

  Then you run "stow <app-name>" from /usr/local/stow, and it
creates sym-links so that your software shows up under /usr/local/bin
and /usr/local/lib and so forth, just as if you had built and installed
it with --prefix=/usr/local.

  The beauty of this, of course, is that you can *un*-stow the
thing, when you upgrade or when you're finished with it, and it
cleanly removes it without leaving piles of cruft in /usr/local.

  This might be a more appropriate solution to your problem, if
your software doesn't have complicated dependencies.

                                -- A.
--
Andrew Reid / reidac@...


--
To UNSUBSCRIBE, email to debian-user-REQUEST@...
with a subject of "unsubscribe". Trouble? Contact listmaster@...


Re: Help, the template debian/rules is too simple

by Wolodja Wentland-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Mon, Nov 02, 2009 at 20:25 +0800, waixy zhou wrote:

> "debian/" directory, then i find the file mdebian/rules is too simple, just  
> 3 lines left after eliminating the comments, as follows:                    

>           #! /usr/bin/make -f                                                
>           %:                                                                
>                       dh   $@                                                

> This is very different from the Debian New Maintainers' Guide. This is my    
> first time to do package, so I am confused. How can I generate the          
> template debian/rules file containing the details as New Maintainers'        
> Guide?

Have a look at:
   
http://ftp.acc.umu.se/pub/debian-meetings/2009/debconf9/high/1060_Not_your_grandpas_debhelper.ogv

regards

    Wolodja


signature.asc (853 bytes) Download Attachment