FAQ Search Today's Posts Mark Forums Read

» Linux Archive
Home
New Posts
Search
FAQ


Go Back   Linux Archive > Debian > Debian dpkg

 
 
LinkBack Thread Tools
 
Old 05-29-2008, 07:56 PM
Russ Allbery
 
Default Generated changes and patch systems

Simon McVittie <smcv@debian.org> writes:

> Here's how gtk-doc *used to* work:
>
> * gtk-doc parses source code and writes out skeletal tmpl/*.sgml
> * svn ci -m 'initial version of gtkdoc templates' tmpl
> * upstream doc author inserts content into tmpl/*.sgml
> * svn ci -m 'wrote some docs' tmpl
> * gtk-doc parses source code (to pick up any new functions) + tmpl/*.sgml,
> and merges them
> * svn ci -m 'yay gtkdoc' tmpl
> * ...
>
> This is, as you've noticed, insane. Sane upstreams now write all the
> content for the documentation in /** */ comments in the source code, so
> the tmpl/*.sgml are purely generated and can safely be omitted from
> source-code control. (I have no opinion on whether your upstream is sane
> or not - please check.)
>
> However, the "no rule to make tmpl/*.sgml" issue still exists, as a
> relic of the old build process.

Thank you for the explanation! This now makes much more sense.

Sounds to me like the first thing to try would be to just regenerate all
of the tmpl/*.sgml files via gtk-doc and delete them in the clean rule and
see if that works properly for this project. That's what I'd do, at
least; that ensures a clean build without putting artifacts in the
*.diff.gz.

--
Russ Allbery (rra@debian.org) <http://www.eyrie.org/~eagle/>


--
To UNSUBSCRIBE, email to debian-devel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 
Old 05-30-2008, 09:55 AM
Neil Williams
 
Default Generated changes and patch systems

On Thu, 2008-05-29 at 11:56 -0700, Russ Allbery wrote:
> Simon McVittie <smcv@debian.org> writes:
>
> > Here's how gtk-doc *used to* work:
> >
> > * gtk-doc parses source code and writes out skeletal tmpl/*.sgml
> > * svn ci -m 'initial version of gtkdoc templates' tmpl
> > * upstream doc author inserts content into tmpl/*.sgml
> > * svn ci -m 'wrote some docs' tmpl
> > * gtk-doc parses source code (to pick up any new functions) + tmpl/*.sgml,
> > and merges them
> > * svn ci -m 'yay gtkdoc' tmpl
> > * ...
> >
> > This is, as you've noticed, insane. Sane upstreams now write all the
> > content for the documentation in /** */ comments in the source code, so
> > the tmpl/*.sgml are purely generated and can safely be omitted from
> > source-code control. (I have no opinion on whether your upstream is sane
> > or not - please check.)
> >
> > However, the "no rule to make tmpl/*.sgml" issue still exists, as a
> > relic of the old build process.
>
> Thank you for the explanation! This now makes much more sense.

Same here - I'm glad there was an explanation for this behaviour, it was
driving me nuts.
;-)

> Sounds to me like the first thing to try would be to just regenerate all
> of the tmpl/*.sgml files via gtk-doc and delete them in the clean rule and
> see if that works properly for this project. That's what I'd do, at
> least; that ensures a clean build without putting artifacts in the
> *.diff.gz.

Got a few other things to do first but yes, I will explore that before
uploading the new upstream version. Thanks both.

--
Neil Williams <codehelp@debian.org>
 
Old 05-30-2008, 10:58 AM
Simon McVittie
 
Default Generated changes and patch systems

On Thu, 29 May 2008 at 11:56:37 -0700, Russ Allbery wrote:
> Simon McVittie <smcv@debian.org> writes:
> > However, the "no rule to make tmpl/*.sgml" issue still exists, as a
> > relic of the old build process.
[...]
> Sounds to me like the first thing to try would be to just regenerate all
> of the tmpl/*.sgml files via gtk-doc and delete them in the clean rule and
> see if that works properly for this project.

Yeah, deleting tmpl/*.sgml during clean would probably be a good start; but
remember to do `touch tmpl/gtkdocs-makefile-sucks.sgml` or something before
running make!

Simon


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

Thread Tools




All times are GMT. The time now is 05:23 AM.

VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2007 - 2008, www.linux-archive.org