Re: debhelper "I have no package to build"

2002-05-19 Thread Joey Hess

Steve M. Robbins wrote:
> John H. Robinson, IV is correct to point out that HTML files are
> excluded from compression by default.  I didn't realise that.  In the
> case at hand, however, the HTML tree has more than .html files: it
> includes programming examples in .cpp files, for instance.  Compressing
> those broke browsing.
> 
> Since I'm the first to do this deliberately, according to Joey Hess,
> I'll simply continue using "|| true".

I wonder if you'd not be better off using something like 
dh_compress -X htmltree , to make it just not act on anything in
whatever directory your html and associated files are in. It would have
no effect on the other packages. Or for finer control you could use a
debian/package.compress file, although that's probably overkill.

-- 
see shy jo


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: debhelper "I have no package to build"

2002-05-19 Thread Steve M. Robbins

Hi,

In response to the two replies,

John H. Robinson, IV is correct to point out that HTML files are
excluded from compression by default.  I didn't realise that.  In the
case at hand, however, the HTML tree has more than .html files: it
includes programming examples in .cpp files, for instance.  Compressing
those broke browsing.

Since I'm the first to do this deliberately, according to Joey Hess,
I'll simply continue using "|| true".

Thanks to all,
-Steve

-- 
by Rocket to the Moon,
by Airplane to the Rocket,
by Taxi to the Airport,
by Frontdoor to the Taxi,
by throwing back the blanket and laying down the legs ...
- They Might Be Giants


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: debhelper "I have no package to build"

2002-05-18 Thread Joey Hess

Steve M. Robbins wrote:
> Surely this is not the first time someone has run into this.  Am I
> doing something silly?  It seems a bit odd to make the "no package to
> build" diagnostic a fatal error.

It's almost always a mistake. I think you're the first person to do this
on purpose.

-- 
see shy jo


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: debhelper "I have no package to build"

2002-05-17 Thread John H. Robinson, IV

On Fri, May 17, 2002 at 10:01:14PM -0400, Steve M. Robbins wrote:
> 
> The binary-common rule has lots of dh_* stuff there, including
> dh_compress.  I decided that compressing the HTML files would be a bad
> idea, so I modified it to skip that one package using

the dh_compress man page says:

   By default, dh_compress compresses files that debian polĀ­
   icy mandates should be compressed, namely all files in
   usr/share/info, usr/share/man, usr/X11R6/man, files in
   usr/share/doc that are larger than 4k in size, (except the
   copyright file, .html files, and files that appear to be
   already compressed based on their extensions), and all
   changelog files.


dh_compress contains the following snippet: (spacing changed)
find usr/doc usr/share/doc -type f \\( -size +4k -or -name "changelog*" \\) \\
\\( -name changelog.html -or ! -iname "*.htm*" \

so i would venture to guess that the .html files are already skipped,
and you need not do anything additional.

-john


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




debhelper "I have no package to build"

2002-05-17 Thread Steve M. Robbins

Hi,

I regularly use the template debian/rules file

  /usr/share/doc/debhelper/examples/rules.multi2

that has binary-indep and binary-arch rules that both use a single
binary-common rule.  The binary-common rule has lots of dh_* stuff
there, including dh_compress.  I decided that compressing the HTML
files would be a bad idea, so I modified it to skip that one
package using

dh_compress -Nlibboost-doc

However, the binary-indep rule sets DH_OPTIONS=-i before building
binary-common meaning that there is *no* package for dh_compress
to act upon when "binary-indep" is invoked.  The build dies with
the complaint of the subject line.

After puzzling this out, I worked around the problem using

dh_compress -Nlibboost-doc || true

to ignore the error.  

Surely this is not the first time someone has run into this.  Am I
doing something silly?  It seems a bit odd to make the "no package to
build" diagnostic a fatal error.

Thanks,
-Steve

P.S.  Cc's appreciated, as I don't subscribe.

-- 
by Rocket to the Moon,
by Airplane to the Rocket,
by Taxi to the Airport,
by Frontdoor to the Taxi,
by throwing back the blanket and laying down the legs ...
- They Might Be Giants


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]