[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [texlive-new] Creating rules file from a single template



Hi Frank!

On Mit, 20 Dez 2006, Frank Küster wrote:
> I just had a look at tpm2deb-source.pl in texlive-new, and found this:
> 
> `eperl -d arch=$arch -d srcpackage=$package -dbinpackages="@{$SourcePackages{$package}}" $mydir/all/debian/rules.in > $debdest/rules`;
> 
> and in rules.in things like
> 
> <: if ($srcpackage eq "texlive-bin") { _:>//
> build-stamp: patch-stamp
>         [...]
> 
> 	touch build-stamp
> <: } else { _:>//
> build-stamp: patch-stamp
> 	touch build-stamp
> <: } :>//
> 
> I severly doubt that this is a good approach in the long term.  This
> file would accumulate lots of special cases, and become hardly
> readable.  Just think about the things we will probably cross-port from
> tetex, like texdoc.php with its apache configuration.  
> 
> Or the things that I wanted to try right now, namely treating a couple
> of files with ucf.  


Why not, or we just create one rule file for each package and manage
them by hand... but then, this can be done when it is really
complicated.

> Of course this can all be done, and we could even add those commands to
> all packages and just let them do nothing because no
> "<package>.ucf-list" file is there or no "<package>.apache.conf.d"
> file.  But we'd end up creating something like cdbs, only specialised to
> TeX.

Aehhmm, Sorry, I have no idea about the ucf stuff.

> I'd rather have a more modular structure, where the main rules file is
> kept in all/debian (I'm fine with its being ePerl source), but other
> parts are just added from parts in <package>/debian/

Why not, good idea. This should be doable. Some eperl magic from
included in all/debian/rules.in which includes files if they are
present. 

On Mit, 20 Dez 2006, Frank Küster wrote:
> > Or the things that I wanted to try right now, namely treating a couple
> > of files with ucf.  
> 
> Hm, to do this I probably don't need to touch debian/rules at all, if
> it's possible to use mapping in tpm2deb.cfg.  What are the possible
> values for "action"?

;-) I saw your comment!

BUT PLEASE PLEASE PLEASE

Do all these changes in the current REAL texlive, not texlive-new! Or
better in both. The -new is still to experimental AND DOES NO WORK!!!

My perl is just to bad:

If someone can help:
in tpm2debcommon.pm:
	sub myopen() {
		my ($fd,$fn) = @_;
		open($fd,$fn) or die("vaf...\n");
	}
but this doesn't work if I do in tpm2deb-source.pl:
	myopen(FOO,"<blaa");
because reading gives nothing. Some error with -w. Damned.
Thats the reason why the -source script does not work, it produces
completely empty stuff

Any ideas?

On Mit, 20 Dez 2006, Frank Küster wrote:
> Instead of answering, rather check my commits to tpm2deb.cfg...

Good.

Best wishes

Norbert

-------------------------------------------------------------------------------
Dr. Norbert Preining <preining@logic.at>                    Università di Siena
Debian Developer <preining@debian.org>                         Debian TeX Group
gpg DSA: 0x09C5B094      fp: 14DF 2E6C 0307 BE6D AD76  A9C0 D2BF 4AA3 09C5 B094
-------------------------------------------------------------------------------
YONDER BOGINE (n.)
The kind of restaurant advertised as 'just three minutes from this
cinema' which clearly nobody ever goes to and, even if they had ever
contemplated it, have certainly changed their mind since seeing the
advert.
			--- Douglas Adams, The Meaning of Liff



Reply to: