Milos Mandaric | 1 Jan 2009 18:22
Picon
Favicon
Gravatar

Re: error in packaging guide-CDBS

U Čet, 01. 01. 2009., u 12:09 +0100, Milos Mandaric je napisao/la:
> I had a lot of problems with this guide. It says that debian/rules file
> using CDBS can fit in 2 lines:
> 
>  include /usr/share/cdbs/1/rules/debhelper.mk
>  include /usr/share/cdbs/1/class/autotools.mk
> 
> I always get error:
> 
>  debian/rules: line 3: include: command not found
>  debian/rules: line 4: include: command not found
>  dpkg-buildpackage: failure: fakeroot debian/rules clean gave error exit status 127
>  debuild: fatal error at line 1329:
>  dpkg-buildpackage -rfakeroot -D -us -uc failed
> 
> After changing debian/rules to:
>  
>  #!/usr/bin/make -f
>  include /usr/share/cdbs/1/rules/debhelper.mk
>  include /usr/share/cdbs/1/class/autotools.mk
> 
> it works fine.
> Am I doing something wrong or this guide has errors?

I forgot to put link:
https://wiki.ubuntu.com/PackagingGuide/Complete#Packaging%20With%20CDBS

U Čet, 01. 01. 2009., u 12:09 +0100, Milos Mandaric je napisao/la:
(Continue reading)

Jonathan Marsden | 2 Jan 2009 21:56
Gravatar

Re: error in packaging guide-CDBS (fixed)

Milos Mandaric wrote:

>> I had a lot of problems with this guide. It says that debian/rules file
>> using CDBS can fit in 2 lines: ...

>> After changing debian/rules to:
>>  
>>  #!/usr/bin/make -f
>>  include /usr/share/cdbs/1/rules/debhelper.mk
>>  include /usr/share/cdbs/1/class/autotools.mk
>>
>> it works fine.

The wiki source read:

{{{
#!/usr/bin/make -f

include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/autotools.mk}}}

But the wiki formatting detection silently swallows up the
#!/usr/bin/make -f line, so it is invisible when reading the page.

I just edited https://wiki.ubuntu.com/PackagingGuide/Howtos/CDBS (which
is included in https://wiki.ubuntu.com/PackagingGuide/Complete ) to fix
this by duplicating the #!/usr/bin/make -f line in the wiki source for
that page, so it actually gets displayed (once).

Jonathan
(Continue reading)

Milos Mandaric | 3 Jan 2009 02:17
Picon
Favicon
Gravatar

Re: error in packaging guide-CDBS (fixed)

U Pet, 02. 01. 2009., u 12:56 -0800, Jonathan Marsden je napisao/la:
> Milos Mandaric wrote:
> 
> >> I had a lot of problems with this guide. It says that debian/rules file
> >> using CDBS can fit in 2 lines: ...
> 
> >> After changing debian/rules to:
> >>  
> >>  #!/usr/bin/make -f
> >>  include /usr/share/cdbs/1/rules/debhelper.mk
> >>  include /usr/share/cdbs/1/class/autotools.mk
> >>
> >> it works fine.
> 
> The wiki source read:
> 
> {{{
> #!/usr/bin/make -f
> 
> include /usr/share/cdbs/1/rules/debhelper.mk
> include /usr/share/cdbs/1/class/autotools.mk}}}
> 
> But the wiki formatting detection silently swallows up the
> #!/usr/bin/make -f line, so it is invisible when reading the page.
> 
> I just edited https://wiki.ubuntu.com/PackagingGuide/Howtos/CDBS (which
> is included in https://wiki.ubuntu.com/PackagingGuide/Complete ) to fix
> this by duplicating the #!/usr/bin/make -f line in the wiki source for
> that page, so it actually gets displayed (once).
> 
(Continue reading)

Milos Mandaric | 1 Jan 2009 16:48
Picon
Favicon
Gravatar

Re: error in packaging guide-CDBS

Emilio Pozuelo Monfort wrote:
> Did you copied & pasted it from the wiki? If so, you likely have formatting
> errors. Writing it from scratch in a text editor should solve your issues.

Writing it from scratch didn't help. Same error. 

Emilio Pozuelo Monfort wrote:
> Did you copied & pasted it from the wiki? If so, you likely have formatting
> errors. Writing it from scratch in a text editor should solve your issues.

Writing it from scratch didn't help. Same error. 

Steve Stalcup | 1 Jan 2009 16:55
Favicon
Gravatar

Re: error in packaging guide-CDBS

On Thu, Jan 1, 2009 at 10:48 AM, Milos Mandaric <milos@...> wrote:

> Writing it from scratch didn't help. Same error.

The guide assumes the packager used dh-make (which creates the
template for rules among other things)

If you are creating the rules file from scratch (meaning not using
dh_make), then yes, you would need to add  '#!/usr/bin/make -f'

Milos Mandaric | 1 Jan 2009 17:30
Picon
Favicon
Gravatar

Re: error in packaging guide-CDBS

U Čet, 01. 01. 2009., u 10:55 -0500, Steve Stalcup je napisao/la:
> On Thu, Jan 1, 2009 at 10:48 AM, Milos Mandaric <milos@...> wrote:
> 
> > Writing it from scratch didn't help. Same error.
> 
> The guide assumes the packager used dh-make (which creates the
> template for rules among other things)
> 
> If you are creating the rules file from scratch (meaning not using
> dh_make), then yes, you would need to add  '#!/usr/bin/make -f'
> 

Yes, I used dh_make. After that I edited debian/rules so it only
contains those two lines(erased everything and wrote those two lines).
U Čet, 01. 01. 2009., u 10:55 -0500, Steve Stalcup je napisao/la:
> On Thu, Jan 1, 2009 at 10:48 AM, Milos Mandaric <milos@...> wrote:
> 
> > Writing it from scratch didn't help. Same error.
> 
> The guide assumes the packager used dh-make (which creates the
> template for rules among other things)
> 
> If you are creating the rules file from scratch (meaning not using
> dh_make), then yes, you would need to add  '#!/usr/bin/make -f'
> 

Yes, I used dh_make. After that I edited debian/rules so it only
contains those two lines(erased everything and wrote those two lines).
(Continue reading)

Siegfried-Angel | 1 Jan 2009 17:44
Picon
Gravatar

Re: error in packaging guide-CDBS

So you are missing the   #!/usr/bin/make -f     at the first line.

--

-- 
Siegfried-Angel Gevatter Pujals (RainCT)
Ubuntu Developer. Debian Contributor.


Gmane