Re: Please test gzip -9n - related to dpkg with multiarch support

2012-02-08 Thread Marco d'Itri
On Feb 09, Steve Langasek  wrote:

> I think there are pretty solid benefits to proceeding with a dpkg that
> allows sharing files across M-A: same packages.
Agreed. Fix the tools instead of breaking the standard to adapt to 
broken tools.
Myself, I like the idea of the implicit Replaces.

-- 
ciao,
Marco


signature.asc
Description: Digital signature


Re: Please test gzip -9n - related to dpkg with multiarch support

2012-02-08 Thread Guillem Jover
On Wed, 2012-02-08 at 22:01:23 +0100, Jakub Wilk wrote:
> In practice, the only compressor we need to care is gzip, which is
> not actively maintained upstream[0]. Chances that a new version of
> it will break large number of packages are minute.

That assumes that we will never want to switch to a better/faster
compressor for any gzip compressed file. Or that there's no existing
files compressed with anything other than gzip.

> But anyway, I believe that in the long run we should simply
> deprecate compressing stuff in /usr/share/doc/.

So the main reason people are arguing for shared files boils down to
used size, either in installed files, or Packages files, etc, yet you
want to fix the compression issue by not compressing them and using
even more space?

While this could benefit the multiarch installations (for which they
can easily use --path-exclude), it would use lots more space on single
arch installations.

Also splitting files into new arch:all packages should usually reduce
archive size usage for example.

regards,
guillem


-- 
To UNSUBSCRIBE, email to debian-devel-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20120209024549.gb6...@gaara.hadrons.org



Re: Please test gzip -9n - related to dpkg with multiarch support

2012-02-08 Thread Guillem Jover
On Wed, 2012-02-08 at 15:14:35 -0800, Steve Langasek wrote:
> So I had a look at the Ubuntu archive, which already has a large collection
> of packages converted to Multi-Arch: same, to provide some hard facts for
> this discussion.
> 
>  - 2197 files are shipped in /usr/share by these packages, outside of
>/usr/share/doc - which, by and large, are files that can actually be
>shared between architectures.
>  - These files are distributed between 47 different subdirectories:
> 703 ./usr/share/man
>  11 ./usr/share/info
>   3 ./usr/share/java

These three are always compressed so would need to be split anyway.

> 187 ./usr/share/lintian
>  53 ./usr/share/bug
>   4 ./usr/share/mime-info
>   4 ./usr/share/menu
>   3 ./usr/share/applications

These should usually be pkgname based, thus can be just kept arch-qualified.

I've not checked the rest in detail, but just with these, the 2197 files
get reduced to 1229 which might not need moving out otherwise.

>  - For many of these files, it would be actively harmful to use
>architecture-qualified filenames.  Manpages included in -dev packages
>should not change names based on the architecture; having
>/usr/share/pam-config contain multiple files for the same profile, one
>for each architecture of the package that's installed, would not work
>correctly; etc.

I said that arch-qualifying should apply for things that are currently
pkgname based, but never that this should be used to avoid any file
conflict, for the rest the correct solution would be to just split them
out.

>  - If we needed to split the arch-indep contents out of the M-A: same
>package instead of reference counting in dpkg, that would be roughly 170
>new binary packages.  139 of them would contain 10 files or less
>(exclusive of /usr/share/doc).

Given that several of those would need to be created regardless due to
the many compressed files above, and several others do not need to be
split at all, the resulting number of packages does not seem onerous
to me at all, it actually seems like the right thing to do, after all.

Riku mentioned as an argument that this increases the data to download
due to slightly bigger Packages files, but pdiffs were introduced
exactly to fix that problem. And, as long as the packages do not get
updated one should not get pdiff updates. And with the splitting of
Description there's even less data to download now.

> I think there are pretty solid benefits to proceeding with a dpkg that
> allows sharing files across M-A: same packages.  Even if we decided we
> couldn't rely on gzip, there are still lots of other cases where this
> matters.

While there's obviously some benefits, otherwise we'd not have
considered shared files an option at all, I don't think they outweigh
at all the problems and fragility they introduce.

> And besides, consider that a M-A: same package shipping contents in a
> non-architecture-qualified path that vary by architecture is *always* a bug
> in that package, which will need to be fixed.  Requiring that M-A: same
> packages don't use non-architecture-qualified paths even for files which
> *don't* vary by architecture doesn't help much to ensure that we won't have
> bugs.  It would be easier for lintian to spot errors in M-A: same packages
> if we can say that any file that doesn't have an architecture-qualified path
> is buggy, but at this point we already have Jakub's reports anyway, which we
> could make a regular part of our archive consistency checks.  So I don't
> believe that having dpkg be more strict about files that *could* be shared
> will make the user experience any better; it just presents more occasions
> for packages to be regarded as buggy and for dpkg to error out.

W/o automatic checks or actual installation testing any such issues can
be introduced, this is not specific to M-A: same packages, we do have
similar problems when moving files around two packages, or when stomping
over other package namespaces, etc.

Adding shared file support into dpkg, introduces additional uneeded
complexity, that can never be taken out, and which seems clear to me
should be dealt with at the package level instead.

regards,
guillem


-- 
To UNSUBSCRIBE, email to debian-devel-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20120209023428.ga6...@gaara.hadrons.org



Re: Please test gzip -9n - related to dpkg with multiarch support

2012-02-08 Thread Wookey
+++ Russ Allbery [2012-02-08 13:47 -0800]:
> Neil Williams  writes:
> > Russ Allbery  wrote:
> 
> Oh, good point, I'd forgotten that for multiarch the symlink is
> architecture-dependent.  So yes, the -dev package is inherently
> architecture-dependent.
> 
> > I would drop the .a but that doesn't mean I can make the -dev package
> > Multi-Arch: foreign.
> 
> You're right.  -dev packages are going to have to be multi-arch: same.
> 
> I think the hardest problem is then going to be the documentation
> (including man pages) that are normally now in the -dev package, and any
> -config scripts or the like.  We already have multiarch path solutions for
> header files and for the symlinks, although it requires duplicating the
> header files for each architecture.

This part of the thread is getting into the general problem of what
exactly the spec and guidelines to packagers should be for multi-arch
-dev packages.

We have purposely concentrated so far on the library packages in the
detailed spec and left the -dev packaging details a bit vague to see
exactly what the issues were. (and it is rather less important for -dev
packages to actually be co-installable, because you can get by by just
installing one or the other for cross- building purposes, although
co-installability is definately desireable IMHO).

I was thinking of starting a thread on this anyway soon, but as we are
now discussing it anyway it might be a good time to go over the
various issues.

Some of the issues are already clear I think (moving arch-dependent
headers into arch-qualified dirs, but leaving the others where they
are), but the docs haven't cught up, and there are some trickier bits
(like foo-config files where upstream don't want to move to
pkg-config, and to what degree it is worthwhile making all -dev
packages co-installable), that need some discusion and packages that
probably just want splitting up (ones with a lot of binary utilities
in).

I'll start a new thread with some doc pointers and list of issues. 

Wookey
-- 
Principal hats:  Linaro, Emdebian, Wookware, Balloonboard, ARM
http://wookware.org/


-- 
To UNSUBSCRIBE, email to debian-devel-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20120209013357.gh14...@dream.aleph1.co.uk



Re: Please test gzip -9n - related to dpkg with multiarch support

2012-02-08 Thread Russ Allbery
Steve Langasek  writes:
> On Wed, Feb 08, 2012 at 04:55:02PM -0800, Russ Allbery wrote:
>> Steve Langasek  writes:

>>> The unfounded assumption here is that you will always install a
>>> foreign-arch M-A: same package together with the native-arch version.
>>> If I install libaudio2:i386 because I want to play a game that's only
>>> available as a 32-bit binary and has this lib as a dependency, and
>>> nothing else on my system uses libaudio2, I still expect to get
>>> /usr/share/libaudio2/AuErrorDB installed.

>> How is that not a serious policy violation already?  AuErrorDB isn't
>> versioned with the SONAME, so libaudio2 and libaudio3 would not be
>> coinstallable.

> Because libaudio2 is in the directory name.

Oh, duh.  Sorry, I'm just blind.

> Also, it's not a policy violation for a library package to contain files
> that don't have sensibly versioned names; it's only a policy violation
> for the name to not change on soname bump.  So even if this were called
> /usr/share/AuErrorDB, it could be changed to
> /usr/share/libaudio3/AuErrorDB on soname change and still be compliant.

Good point.

-- 
Russ Allbery (r...@debian.org)   


-- 
To UNSUBSCRIBE, email to debian-devel-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/87ty30iz9a@windlord.stanford.edu



Re: Please test gzip -9n - related to dpkg with multiarch support

2012-02-08 Thread Steve Langasek
On Wed, Feb 08, 2012 at 04:55:02PM -0800, Russ Allbery wrote:
> Steve Langasek  writes:
> 
> > The unfounded assumption here is that you will always install a
> > foreign-arch M-A: same package together with the native-arch version.
> > If I install libaudio2:i386 because I want to play a game that's only
> > available as a 32-bit binary and has this lib as a dependency, and
> > nothing else on my system uses libaudio2, I still expect to get
> > /usr/share/libaudio2/AuErrorDB installed.

> How is that not a serious policy violation already?  AuErrorDB isn't
> versioned with the SONAME, so libaudio2 and libaudio3 would not be
> coinstallable.

Because libaudio2 is in the directory name.

Also, it's not a policy violation for a library package to contain files
that don't have sensibly versioned names; it's only a policy violation for
the name to not change on soname bump.  So even if this were called
/usr/share/AuErrorDB, it could be changed to /usr/share/libaudio3/AuErrorDB
on soname change and still be compliant.

-- 
Steve Langasek   Give me a lever long enough and a Free OS
Debian Developer   to set it on, and I can move the world.
Ubuntu Developerhttp://www.debian.org/
slanga...@ubuntu.com vor...@debian.org


signature.asc
Description: Digital signature


Re: Please test gzip -9n - related to dpkg with multiarch support

2012-02-08 Thread Russ Allbery
Steve Langasek  writes:

> The unfounded assumption here is that you will always install a
> foreign-arch M-A: same package together with the native-arch version.
> If I install libaudio2:i386 because I want to play a game that's only
> available as a 32-bit binary and has this lib as a dependency, and
> nothing else on my system uses libaudio2, I still expect to get
> /usr/share/libaudio2/AuErrorDB installed.

How is that not a serious policy violation already?  AuErrorDB isn't
versioned with the SONAME, so libaudio2 and libaudio3 would not be
coinstallable.

-- 
Russ Allbery (r...@debian.org)   


-- 
To UNSUBSCRIBE, email to debian-devel-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/874nv0n7vd@windlord.stanford.edu



Re: Please test gzip -9n - related to dpkg with multiarch support

2012-02-08 Thread Charles Plessy
Le Wed, Feb 08, 2012 at 07:54:47PM +, Roger Leigh a écrit :
> 
> Relating to binNMU changelogs: do they really serve any purpose?  There
> are no source changes, so is there any real need for a changelog change
> at all?  AFAICT the only reason we do for historical reasons, it being
> the only way previously to effect a version change.

Hi,

I think that it is important for maintainers that who decided the binNMU and
the reason for it are recorded in the changelog, because often these changes
are not triggred or coordinated by the maintainers themselves.

Have a nice day,

-- 
Charles Plessy
Debian Med packaging team,
http://www.debian.org/devel/debian-med
Tsurumi, Kanagawa, Japan


-- 
To UNSUBSCRIBE, email to debian-devel-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20120209005416.gb17...@falafel.plessy.net



Re: Comments on introducing a new Essential package: base-init?

2012-02-08 Thread Colin Watson
On Wed, Feb 08, 2012 at 08:03:27PM +, Roger Leigh wrote:
> An alternative would be for an existing Essential package such as
> base-files to provide the Depends, which would save the need for
> a separate base-init package.  Is there any reason this would be
> undesirable?  (I note that it currently has no depends other than
> a pre-depends on awk.)

I think it would be better to avoid adding dependencies to base-files if
possible.  base-files is one of the "super-Essential" packages with
special-case handling in debootstrap to install it very early indeed,
unpacked and configured while even dpkg has still only been extracted;
while that installation is done with --force-depends, I still think it
would be worth keeping its dependency tree as trivial as possible.

-- 
Colin Watson   [cjwat...@debian.org]


-- 
To UNSUBSCRIBE, email to debian-devel-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/20120208235309.gf3...@riva.dynamic.greenend.org.uk



Re: Please test gzip -9n - related to dpkg with multiarch support

2012-02-08 Thread Steve Langasek
On Wed, Feb 08, 2012 at 10:22:17AM +, Neil Williams wrote:

> After all, this is how cross/foreign architecture packages have
> *always* been handled in Debian via dpkg-cross. Nothing in /usr/share/
> matters for a cross package created by dpkg-cross (with the possible
> exception of /usr/share/pkg-config which was always anachronistic). Some
> template files are added but the package name includes the
> architecture, so these files are effectively in multiarch paths.

> There is nothing useful in /usr/share of a Multiarch: same package
> when installed as foreign architecture package. Emdebian & dpkg-cross
> have proved that by having nothing else until Multi-Arch. Anything you
> might need is in the native architecture package, so the best thing to
> do is widen the implicit exclusion to all of /usr/share in the incoming
> Multi-Arch: same package.

The unfounded assumption here is that you will always install a foreign-arch
M-A: same package together with the native-arch version.  If I install
libaudio2:i386 because I want to play a game that's only available as a
32-bit binary and has this lib as a dependency, and nothing else on my
system uses libaudio2, I still expect to get /usr/share/libaudio2/AuErrorDB
installed.

In general, anything that introduces assymetric handling between native and
foreign arch packages at the dpkg level is probably going to be a bad idea.

-- 
Steve Langasek   Give me a lever long enough and a Free OS
Debian Developer   to set it on, and I can move the world.
Ubuntu Developerhttp://www.debian.org/
slanga...@ubuntu.com vor...@debian.org


signature.asc
Description: Digital signature


Re: Please test gzip -9n - related to dpkg with multiarch support

2012-02-08 Thread Steve Langasek
On Wed, Feb 08, 2012 at 11:56:06AM -0800, Russ Allbery wrote:
> Riku Voipio  writes:
> > On Wed, Feb 08, 2012 at 05:56:11PM +0100, Guillem Jover wrote:

> >> The same principle that applies to all dpkg output to avoid ambiguity
> >> would apply everywhere, whenever there's a “Multi-Arch: same” package
> >> name that needs to be unambiguous, it just always gets arch-qualified.
> >> The rest would stay as they are.

> > That is a major waste of space of having multiple copies of identical
> > files with different arch-qualified names. Is that really better
> > architecture to have multiple copies of identical files on user systems?

> Is it really, though?  The files we're talking about are not generally
> large.  I have a hard time seeing a case where the files would be large
> enough to cause any noticable issue and you wouldn't want to move them
> into a separate -common or -doc package anyway.

So I had a look at the Ubuntu archive, which already has a large collection
of packages converted to Multi-Arch: same, to provide some hard facts for
this discussion.

 - 1219 binary packages are marked Multi-Arch: same
 - 2197 files are shipped in /usr/share by these packages, outside of
   /usr/share/doc - which, by and large, are files that can actually be
   shared between architectures.
 - These files are distributed between 47 different subdirectories:
703 ./usr/share/man
604 ./usr/share/ada
187 ./usr/share/lintian
185 ./usr/share/locale
 93 ./usr/share/alsa
 70 ./usr/share/gtk-doc
 53 ./usr/share/bug
 36 ./usr/share/qt4
 35 ./usr/share/libtool
 22 ./usr/share/themes
 16 ./usr/share/lua
 16 ./usr/share/libphone-ui-shr
 15 ./usr/share/aclocal
 14 ./usr/share/icons
 11 ./usr/share/pam-configs
 11 ./usr/share/info
 10 ./usr/share/vala
  9 ./usr/share/gtk-engines
  8 ./usr/share/qalculate
  8 ./usr/share/OGRE
  7 ./usr/share/xml
  7 ./usr/share/libwacom
  7 ./usr/share/gir-1.0
  7 ./usr/share/dbconfig-common
  6 ./usr/share/mupen64plus
  6 ./usr/share/libgphoto2
  5 ./usr/share/pixmaps
  5 ./usr/share/openchange
  4 ./usr/share/mime-info
  4 ./usr/share/menu
  4 ./usr/share/libofx4
  4 ./usr/share/gstreamer-0.10
  3 ./usr/share/java
  3 ./usr/share/gconf
  3 ./usr/share/gcc-4.6
  3 ./usr/share/applications
  2 ./usr/share/guile
  2 ./usr/share/application-registry
  1 ./usr/share/tdsodbc
  1 ./usr/share/psqlodbc
  1 ./usr/share/pascal
  1 ./usr/share/libpam-ldap
  1 ./usr/share/libmyodbc
  1 ./usr/share/libaudio2
  1 ./usr/share/kde4
  1 ./usr/share/gst-plugins-base
  1 ./usr/share/avahi
 - For many of these files, it would be actively harmful to use
   architecture-qualified filenames.  Manpages included in -dev packages
   should not change names based on the architecture; having
   /usr/share/pam-config contain multiple files for the same profile, one
   for each architecture of the package that's installed, would not work
   correctly; etc.
 - If we needed to split the arch-indep contents out of the M-A: same
   package instead of reference counting in dpkg, that would be roughly 170
   new binary packages.  139 of them would contain 10 files or less
   (exclusive of /usr/share/doc).

I think there are pretty solid benefits to proceeding with a dpkg that
allows sharing files across M-A: same packages.  Even if we decided we
couldn't rely on gzip, there are still lots of other cases where this
matters.

And besides, consider that a M-A: same package shipping contents in a
non-architecture-qualified path that vary by architecture is *always* a bug
in that package, which will need to be fixed.  Requiring that M-A: same
packages don't use non-architecture-qualified paths even for files which
*don't* vary by architecture doesn't help much to ensure that we won't have
bugs.  It would be easier for lintian to spot errors in M-A: same packages
if we can say that any file that doesn't have an architecture-qualified path
is buggy, but at this point we already have Jakub's reports anyway, which we
could make a regular part of our archive consistency checks.  So I don't
believe that having dpkg be more strict about files that *could* be shared
will make the user experience any better; it just presents more occasions
for packages to be regarded as buggy and for dpkg to error out.

> foo-config binaries, as opposed to pkg-config files, are indeed going to
> continue to be a problem in model 2, but they're a problem anyway, no?

Yes, they definitely are.

> There's no guarantee that the amd64 and i386 version of a package will
> want the same flags, so we really need some way of having a
> multiarch-aware verson of the -config script.

Preferably by s/foo/pkg/.  pkgconfig gets this right, the standalone tools
all get it wrong, there's no good reason not to just replace them with
pkgconfig.

-- 
Steve Langasek   Give me a l

Re: Please test gzip -9n - related to dpkg with multiarch support

2012-02-08 Thread Russ Allbery
Neil Williams  writes:
> Russ Allbery  wrote:

>> There are two main cases for libfoo-dev that I think cover most such
>> packages:
>> 
>> 1. The header files are architecture-dependent (definitions of data member
>>sizes, for example), in which case they need to be arch-qualified
>>anyway if you're going to allow multiple libfoo-dev packages to be
>>installed for different architectures.
>> 
>> 2. The header files are architecture-independent, and the only
>>architecture-dependent content inside libfoo-dev is the static library.

> So the symlink would have to move to the shared library alongside the
> other symlink?

> -dev:
> ./usr/lib/x86_64-linux-gnu/libgpelaunch.so -> libgpelaunch.so.0.0.0

> lib:
> ./usr/lib/x86_64-linux-gnu/libgpelaunch.so.0 -> libgpelaunch.so.0.0.0

Oh, good point, I'd forgotten that for multiarch the symlink is
architecture-dependent.  So yes, the -dev package is inherently
architecture-dependent.

We can't move the symlink to the shared library package because then the
shared library packages aren't co-installable.

> pkg-config files are also Multi-Arch sensitive:
> libdir=${prefix}/lib/x86_64-linux-gnu

> Those need to be in Multi-Arch paths:
> ./usr/lib/x86_64-linux-gnu/pkgconfig/libgpelaunch.pc

Correct.  Anyone converting a library to multiarch should already be
moving them, IMO.  I have with all of mine.

> I would drop the .a but that doesn't mean I can make the -dev package
> Multi-Arch: foreign.

You're right.  -dev packages are going to have to be multi-arch: same.

I think the hardest problem is then going to be the documentation
(including man pages) that are normally now in the -dev package, and any
-config scripts or the like.  We already have multiarch path solutions for
header files and for the symlinks, although it requires duplicating the
header files for each architecture.

-- 
Russ Allbery (r...@debian.org)   


-- 
To UNSUBSCRIBE, email to debian-devel-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/87d39pq9ph@windlord.stanford.edu



Re: Taking over conffiles from other packages while cleaning up properly [Re: Problems detected: package initscripts left obsolete init.d script behind]

2012-02-08 Thread Michael Biebl

Am 08.02.2012 22:28, schrieb Michael Biebl:

Could you give a short example how postinst would look like for the case
that package foo is split int foo in version 1.0-1


Making the example a bit more verbose:

before the split:
binary package foo:
 /bin/foo
 /bin/bar
 /etc/foo.conf
 /etc/bar.conf
(both marked as conffiles)

after the split (done in version 1.0-1):
binary package foo:
 /bin/foo
 /etc/foo.conf
binary package bar:
 /bin/bar
 /etc/bar.conf


Package foo in version 1.0-1 does not have a dependency on bar, so bar 
is not guaranteed to be installed.
There is also the case, where bar has been split off upstream into a 
separate src package, but I assume this can be handled equally.


Now I'm interested how the maintainer scripts have to look like, so we 
don't get any obsolete conffiles in foo.


Cheers,
Michael
--
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?


--
To UNSUBSCRIBE, email to debian-devel-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/4f32eae9.8040...@debian.org



Re: Taking over conffiles from other packages while cleaning up properly [Re: Problems detected: package initscripts left obsolete init.d script behind]

2012-02-08 Thread Michael Biebl

Hi,

Am 08.02.2012 08:27, schrieb Raphael Hertzog:


What's difficult in implementing this?


I haven't found cocumentation how to correctly move conffiles from one 
package to another. Neither at [1] nor the dpkg-maintscript-helper man page.
As mentioned, a simple Replaces in the newly split-off package is not 
sufficient, as you will have obsolete conffiles, in case the new 
split-off package is not installed.
I've seen this problem a couple of times and I thought it would be 
worthwile getting a best practice for this case documented.




You can't really use dpkg-maintscript-helper conditionnaly because the
installation state of bootlogd might change between preinst and postinst
but you could at least remove the (unmodified) files in postinst if you see that
bootlogd is not at least unpacked (usage of dpkg-query in maintainer
scripts is safe).


It would be awesome, if the aforementioned wiki and/or the 
dpkg-maintscript-helper man page would document how to do this which a 
short example.
Could you give a short example how postinst would look like for the case 
that package foo is split int foo in version 1.0-1

and bar takes over the conffile /etc/baz.conf from foo.

I'm still not quite sure which states I should check for using dpkg-query.

Cheers,
Michael

[1] http://wiki.debian.org/DpkgConffileHandling

--
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?


--
To UNSUBSCRIBE, email to debian-devel-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/4f32e903.6080...@debian.org



Re: Please test gzip -9n - related to dpkg with multiarch support

2012-02-08 Thread Sune Vuorela
On 2012-02-08, Russ Allbery  wrote:
> There are two main cases for libfoo-dev that I think cover most such
> packages:

3) to ensure that things can keep working on slow archs while they build
a new edition of src:foo

/Sune


-- 
To UNSUBSCRIBE, email to debian-devel-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/slrnjj5q48.p7v.nos...@sshway.ssh.pusling.com



Re: Comments on introducing a new Essential package: base-init?

2012-02-08 Thread Roger Leigh
On Wed, Feb 08, 2012 at 09:49:26PM +0100, Sven Joachim wrote:
> On 2012-02-08 21:03 +0100, Roger Leigh wrote:
> 
> > This is regarding Bug #645540 ("Essential" package conflict between
> > sysvinit and systemd-sysv).
> >
> > sysvinit is currently Essential.  In order to permit the replacement
> > of sysvinit with an alternative init system, I'd like to propose the
> > creation of a new Essential package "base-init", with a Depends on
> > "sysvinit | init", where "init" is a virtual package provided by all
> > packages providing /sbin/init.  This would be provided by sysvinit,
> > systemd, upstart, etc.
> 
> Assuming they all provide /sbin/init, they need to conflict with each
> other, right?  In that case, switching init systems has the dangerous
> effect that apt will remove the current provider before unpacking the
> replacement, leaving a window where /sbin/init does not exist.  Sounds
> rather dangerous to me.

This is a good point, but is there a safer alternative?  Upstart
and systemd currently have a Replaces: sysvinit to replace it outright,
but it still requires sysvinit to be installed in the first place, and
it is still Essential.  Any alternative init system is required to do
this, and it would be ideal to have a means of removing sysvinit
entirely.  If there's a way which does not involve a virtual package,
we could do that--I guess it's not strictly necessary, but it does
avoid the need for init-providers to explicitly conflict/replace
each other.  For example, upstart currently conflicts/replaces
sysvinit /anyway/, so it's not like the virtual package would
introduce a window of breakage which is not already present today.
Obviously, a perfectly safe and clean solution would be preferred!


Regards,
Roger

-- 
  .''`.  Roger Leigh
 : :' :  Debian GNU/Linux http://people.debian.org/~rleigh/
 `. `'   Printing on GNU/Linux?   http://gutenprint.sourceforge.net/
   `-GPG Public Key: 0x25BFB848   Please GPG sign your mail.


-- 
To UNSUBSCRIBE, email to debian-devel-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20120208210910.gl8...@codelibre.net



Re: Please test gzip -9n - related to dpkg with multiarch support

2012-02-08 Thread Jakub Wilk

* Guillem Jover , 2012-02-08, 21:02:
Let's assume compressor (gzip/bzip2/xz/etc) version M gets uploaded to 
sid generating a reproducible output across all current architectures. 
Time passes, compressor version N (and even O and P and Q etc) gets 
uploaded, which starts producing new ouput (on each of those versions). 
A new architecture gets added to Debian, and because previous 
compressor versions are not in the archive anymore, all packages built 
with them have different checksums than the new ones. This means *all* 
those packages have to be binNMUed across *all* the architectures, or 
the porters need to hunt down every specific compressor version used to 
build those packages to be able to reproduce the build on their arch.


In practice, the only compressor we need to care is gzip, which is not 
actively maintained upstream[0]. Chances that a new version of it will 
break large number of packages are minute.


But anyway, I believe that in the long run we should simply deprecate 
compressing stuff in /usr/share/doc/.



[0] From 
:
"[...] gzip is in maintenance-only mode. [...] I am working on gzip 
solely to fix bugs and maintain a certain level of portability and 
robustness." 


--
Jakub Wilk


--
To UNSUBSCRIBE, email to debian-devel-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20120208210123.ga5...@jwilk.net



Re: Please test gzip -9n - related to dpkg with multiarch support

2012-02-08 Thread Riku Voipio
On Wed, Feb 08, 2012 at 09:02:43PM +0100, Guillem Jover wrote:
> Let's assume compressor (gzip/bzip2/xz/etc) version M gets uploaded to
> sid generating a reproducible output across all current architectures.
> Time passes, compressor version N (and even O and P and Q etc) gets
> uploaded, which starts producing new ouput (on each of those versions).
> A new architecture gets added to Debian, and because previous compressor
> versions are not in the archive anymore, all packages built with them
> have different checksums than the new ones. This means *all* those
> packages have to be binNMUed across *all* the architectures, or the
> porters need to hunt down every specific compressor version used to
> build those packages to be able to reproduce the build on their arch.

You are making assumption that compressor versions M, N, O, P and Q happen
during a timeframe shorter than libraries are uploaded/binNMU'd in debian.
Gzip development is glacial. Last upstream version changing uploads in Debian
were 1.3.12 in 2007 and 1.4 in 2011. Most changes in gzip code shouldn't even
affect the output of gzip -n9, as they are mostly fixes to make gzip build
in world changing around it.

New architectures don't happen every day, while library maintaincene does.
Throwing away the "Allow identical files on Multi-Arch: same" convinience
for library maintainers to make including new architectures a bit easier 
is a bit daft tradeoff.


-- 
To UNSUBSCRIBE, email to debian-devel-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20120208205724.ga7...@afflict.kos.to



Re: Comments on introducing a new Essential package: base-init?

2012-02-08 Thread Sven Joachim
On 2012-02-08 21:03 +0100, Roger Leigh wrote:

> This is regarding Bug #645540 ("Essential" package conflict between
> sysvinit and systemd-sysv).
>
> sysvinit is currently Essential.  In order to permit the replacement
> of sysvinit with an alternative init system, I'd like to propose the
> creation of a new Essential package "base-init", with a Depends on
> "sysvinit | init", where "init" is a virtual package provided by all
> packages providing /sbin/init.  This would be provided by sysvinit,
> systemd, upstart, etc.

Assuming they all provide /sbin/init, they need to conflict with each
other, right?  In that case, switching init systems has the dangerous
effect that apt will remove the current provider before unpacking the
replacement, leaving a window where /sbin/init does not exist.  Sounds
rather dangerous to me.

Cheers,
   Sven


-- 
To UNSUBSCRIBE, email to debian-devel-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/874nv19hk9@turtle.gmx.de



Re: Please test gzip -9n - related to dpkg with multiarch support

2012-02-08 Thread Jakub Wilk

* Ben Hutchings , 2012-02-08, 20:23:
Relating to binNMU changelogs: do they really serve any purpose? 
There are no source changes, so is there any real need for a changelog 
change at all?  AFAICT the only reason we do for historical reasons, 
it being the only way previously to effect a version change.


We briefly discussed on #debian-buildd last week whether it was 
possible to use --changes-option to override the distribution during 
building. If it is also possible to override the version of the 
generated .debs, this would make it possible to rebuild (NMU) without 
messing around editing the changelog.


There are some source packages that always generate binary versions 
different from the source version, e.g. linux-latest. They must 
currently use dpkg-parsechangelog to get the default binary version. If 
the binNMU is not mentioned in the changelog they would get the source 
version and would not include any binNMU suffix in the generated binary 
versions.  We could make dpkg-parsechangelog obey a version override 
too, but it's rather ugly!


(Hmm, it looks like linux-latest runs dpkg-parsechangelog at source 
package build time so it's not binNMU-safe now. But this is fixable so 
long as dpkg-parsechangelog makes binNMUs recognisable.)


Right. What we want to change is not how debian/changelog is being 
modified by build software, but what happens to it when it lands in 
/usr/share/doc/$pkgname/.


Packages could simply split debian/changelog into two parts:
/u/s/d/$p/changelog(.Debian).gz - the architecture-independent part;
/u/s/d/$p/changelog.binNMU-$arch.gz - the binNMU part.

That would have to be implemented in dh_installchangelogs and a few 
M-A:same that don't use debhelper.


--
Jakub Wilk


--
To UNSUBSCRIBE, email to debian-devel-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20120208203432.ga4...@jwilk.net



Re: Please test gzip -9n - related to dpkg with multiarch support

2012-02-08 Thread Guillem Jover
On Wed, 2012-02-08 at 11:56:06 -0800, Russ Allbery wrote:
> Riku Voipio  writes:
> > That is a major waste of space of having multiple copies of identical
> > files with different arch-qualified names. Is that really better
> > architecture to have multiple copies of identical files on user systems?
> 
> Is it really, though?  The files we're talking about are not generally
> large.  I have a hard time seeing a case where the files would be large
> enough to cause any noticable issue and you wouldn't want to move them
> into a separate -common or -doc package anyway.

Exactly, in addition this is already an “issue” with lots of packages
(regardless of multi-arch) which do not use a common symlinked doc dir.

These are some numbers I'm getting on my system (w/ the attached
quickly hacked up script), all wild approximations, just to get a feel
of it:

  Approx. installed m-a:same lib waste (w/o -dev,-doc): 20051501
  Approx. installed m-a:same lib waste (w/ -dev,-doc): 23310229
  Approx. installed m-a:same lib waste per package (23310229 / 293): 79557.09
  Approx. predicted lib waste per arch (779 * 79557.09): 61974973.11
  Approx. total lib waste per arch (4003 * 79557.09): 318467031.27

So, supposedly, if all possible libs were to be multiarchified I'd
waste 60 MiB in case I wanted to have all of them installed for each
architecture I enable. Which is not going to be the case. But if it
was and 60 MiB were such a problem I could just as well use
«dpkg --exclude-path» support.

Also I think there's problably some room for improvement which would
benefit non-multiarch installations too. For example TODO, USAGE and
lots of similar files should be moved to the -dev packages. AUTHORS
THANKS and CREDITS files should probably be already represented in
copyright, etc. Provably a lintian warning could be introduced for
this.

regards,
guillem
#!/bin/sh

echo "List of files that might be candidates to be split out"
grep-status -n -sPackage -FMulti-Arch same | \
  egrep -v -e '-(dev|doc)' | xargs dpkg -L | grep '\/usr\/share\/' | \
  egrep -v '(copyright|changelog|NEWS|README)' | \
  while read f; do test -f "$f" && printf "$f\0"; done | \
  du -bsch --files0-from -

waste_libs=$(grep-status -n -sPackage -FMulti-Arch same | \
  egrep -v -e '-(dev|doc)' | xargs dpkg -L | grep '\/usr\/share\/' | \
  while read f; do test -f "$f" && printf "$f\0"; done | \
  du -bc --files0-from - | tail -n 1 | cut -f1)
echo "Approx. installed m-a:same lib waste (w/o -dev,-doc): $waste_libs"

waste_same=$(grep-status -n -sPackage -FMulti-Arch same | \
  xargs dpkg -L | grep '\/usr\/share\/' | \
  while read f; do test -f "$f" && printf "$f\0"; done | \
  du -bc --files0-from - | tail -n 1 | cut -f1)
echo "Approx. installed m-a:same lib waste (w/ -dev,-doc): $waste_same"

inst_same=$(grep-status -n -sPackage -FMulti-Arch same|wc -l)
waste_per_lib=$(echo "scale=2; $waste_same / $inst_same" | bc -l)
echo "Approx. installed m-a:same lib waste per package ($waste_same / 
$inst_same): $waste_per_lib"

inst_libs=$(grep-status -n -r -sPackage -FSection libs| \
  egrep -v '(common|data|-bin)'| wc -l)
waste_inst=$(echo "scale=2; $inst_libs * $waste_per_lib" | bc -l)
echo "Approx. predicted lib waste per arch ($inst_libs * $waste_per_lib): 
$waste_inst"

total_libs=$(grep-aptavail -n -r -sPackage -FSection libs| \
  egrep -v '(common|data|-bin)'| wc -l)
waste_total=$(echo "scale=2; $total_libs * $waste_per_lib" | bc -l)
echo "Approx. total lib waste per arch ($total_libs * $waste_per_lib): 
$waste_total"


Re: Please test gzip -9n - related to dpkg with multiarch support

2012-02-08 Thread Ben Hutchings
On Wed, Feb 08, 2012 at 07:54:47PM +, Roger Leigh wrote:
> On Wed, Feb 08, 2012 at 11:47:19AM -0800, Russ Allbery wrote:
> > Guillem Jover  writes:
> > > On Wed, 2012-02-08 at 13:19:17 +, Ian Jackson wrote:
> > > And while the binNMU changelog issues might seem like a corner case,
> > > it's just a symptom of something that's not quite right.
> > 
> > Also true.  In fact, it's something that's been bothering me for a long
> > time with linked doc directories.  I'd like to prohibit them in more cases
> > so that we get the binNMU changelogs on disk.
> 
> Relating to binNMU changelogs: do they really serve any purpose?  There
> are no source changes, so is there any real need for a changelog change
> at all?  AFAICT the only reason we do for historical reasons, it being
> the only way previously to effect a version change.
> 
> We briefly discussed on #debian-buildd last week whether it was
> possible to use --changes-option to override the distribution during
> building.  If it is also possible to override the version of the
> generated .debs, this would make it possible to rebuild (NMU) without
> messing around editing the changelog.

There are some source packages that always generate binary versions
different from the source version, e.g. linux-latest.  They must
currently use dpkg-parsechangelog to get the default binary version.
If the binNMU is not mentioned in the changelog they would get the
source version and would not include any binNMU suffix in the
generated binary versions.  We could make dpkg-parsechangelog obey a
version override too, but it's rather ugly!

(Hmm, it looks like linux-latest runs dpkg-parsechangelog at source
package build time so it's not binNMU-safe now.  But this is fixable
so long as dpkg-parsechangelog makes binNMUs recognisable.)

Ben.

-- 
Ben Hutchings
We get into the habit of living before acquiring the habit of thinking.
  - Albert Camus


-- 
To UNSUBSCRIBE, email to debian-devel-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20120208202317.gd12...@decadent.org.uk



Re: Please test gzip -9n - related to dpkg with multiarch support

2012-02-08 Thread Russ Allbery
Joey Hess  writes:

> pristine-tar hat tricks[1] aside, none of gzip, bzip2, xz are required
> to always produce the same compressed file for a given input file, and I
> can tell you from experience that there is a wide amount of
> variation. If multiarch requires this, then its design is at worst
> broken, and at best, there will be a lot of coordination pain every time
> there is a new/different version of any of these that happens to
> compress slightly differently.

> Maybe there was a reason for Guillem to want to tread carefully.

I wanted to come back to this and make a quick comment on it since it's an
important point.

I completely agree there were very good reasons for Guillem to want to
tread carefully.  But I think that having a public alpha test and to have
other people poking at it is critical, because otherwise that discussion
has a tendency to only happen in the head of a few developers, with
everyone else tending to assume there aren't problems.  We collectively
have a lot of wisdom and a lot of experience with edge cases, and I think
we needed the project in general to get involved in this discussion.  And
in practice that usually doesn't happen until there's a thing that people
can use and encounter problems with, and that feels like it might become
the future unless people object or report bugs.  And it also makes it
clear what those problems are, so that people who are anxious to see the
new features can see publicly what has to be dealt with first before
they can be made available.

My feeling is that this discussion is exactly the sort of outcome that I
was hoping for from a public alpha test.  We found a problem that wasn't
completely thought-through, and now we're discussing it.  It wasn't the
*ideal* outcome, which would have been that everything was great and we
could move forward into our happy Multi-Arch future, but it's an important
and useful outcome.

-- 
Russ Allbery (r...@debian.org)   


-- 
To UNSUBSCRIBE, email to debian-devel-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/87sjilqdrg@windlord.stanford.edu



Re: Please test gzip -9n - related to dpkg with multiarch support

2012-02-08 Thread Neil Williams
On Wed, 08 Feb 2012 11:56:06 -0800
Russ Allbery  wrote:

> There are two main cases for libfoo-dev that I think cover most such
> packages:
> 
> 1. The header files are architecture-dependent (definitions of data member
>sizes, for example), in which case they need to be arch-qualified
>anyway if you're going to allow multiple libfoo-dev packages to be
>installed for different architectures.
> 
> 2. The header files are architecture-independent, and the only
>architecture-dependent content inside libfoo-dev is the static library.

So the symlink would have to move to the shared library alongside the
other symlink?

-dev:
./usr/lib/x86_64-linux-gnu/libgpelaunch.so -> libgpelaunch.so.0.0.0

lib:
./usr/lib/x86_64-linux-gnu/libgpelaunch.so.0 -> libgpelaunch.so.0.0.0

That's going to need a Replaces: in the lib against the -dev.

pkg-config files are also Multi-Arch sensitive:
libdir=${prefix}/lib/x86_64-linux-gnu

Those need to be in Multi-Arch paths:
./usr/lib/x86_64-linux-gnu/pkgconfig/libgpelaunch.pc

>In this case, if you want to make libfoo-dev multi-arch, I would
>advocate seriously considering just dropping the static library and
>making the -dev package arch: all.  I think static libraries are
>increasingly of very questionable utility on a Linux system.  But,

I would drop the .a but that doesn't mean I can make the -dev package
Multi-Arch: foreign.

> foo-config binaries, as opposed to pkg-config files, are indeed going to
> continue to be a problem in model 2, but they're a problem anyway, no?

... yes...

> There's no guarantee that the amd64 and i386 version of a package will
> want the same flags, so we really need some way of having a
> multiarch-aware verson of the -config script.

It's not just amd64|i386, Multi-Arch - to me and probably Riku - is
about amd64|armel etc.

-- 


Neil Williams
=
http://www.linux.codehelp.co.uk/



pgpbzC5ypYoUA.pgp
Description: PGP signature


Re: Please test gzip -9n - related to dpkg with multiarch support

2012-02-08 Thread Russ Allbery
Roger Leigh  writes:
> On Wed, Feb 08, 2012 at 11:47:19AM -0800, Russ Allbery wrote:

>> Also true.  In fact, it's something that's been bothering me for a long
>> time with linked doc directories.  I'd like to prohibit them in more
>> cases so that we get the binNMU changelogs on disk.

> Relating to binNMU changelogs: do they really serve any purpose?  There
> are no source changes, so is there any real need for a changelog change
> at all?  AFAICT the only reason we do for historical reasons, it being
> the only way previously to effect a version change.

It seems weird not to have a record of *why* the package was rebuilt
somewhere, but I guess I can't think of any reason why I would care off
the top of my head.

In the long run, I really like Guillem's point about making the changelog
dpkg metadata.  We could still put it somewhere on disk by default, but it
would make things like this much cleaner conceptually, or at least it
feels like it would on first glance.

-- 
Russ Allbery (r...@debian.org)   


-- 
To UNSUBSCRIBE, email to debian-devel-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/874nv1rsko@windlord.stanford.edu



Re: Please test gzip -9n - related to dpkg with multiarch support

2012-02-08 Thread Russ Allbery
Guillem Jover  writes:

> Let's assume compressor (gzip/bzip2/xz/etc) version M gets uploaded to
> sid generating a reproducible output across all current architectures.
> Time passes, compressor version N (and even O and P and Q etc) gets
> uploaded, which starts producing new ouput (on each of those versions).
> A new architecture gets added to Debian, and because previous compressor
> versions are not in the archive anymore, all packages built with them
> have different checksums than the new ones. This means *all* those
> packages have to be binNMUed across *all* the architectures, or the
> porters need to hunt down every specific compressor version used to
> build those packages to be able to reproduce the build on their arch.
> This seems highly suboptimal and “future-unproof”...

Yes, agreed.  I think this is a rather compelling argument against relying
on reproducibility of compressor output.

-- 
Russ Allbery (r...@debian.org)   


--
To UNSUBSCRIBE, email to debian-devel-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/87wr7xqdys@windlord.stanford.edu



Comments on introducing a new Essential package: base-init?

2012-02-08 Thread Roger Leigh
This is regarding Bug #645540 ("Essential" package conflict between
sysvinit and systemd-sysv).

sysvinit is currently Essential.  In order to permit the replacement
of sysvinit with an alternative init system, I'd like to propose the
creation of a new Essential package "base-init", with a Depends on
"sysvinit | init", where "init" is a virtual package provided by all
packages providing /sbin/init.  This would be provided by sysvinit,
systemd, upstart, etc.

With this package in place, sysvinit could be removed from the
Essential set, but remain the default init system.  This would
permit alternative init systems to entirely replace sysvinit.

An alternative would be for an existing Essential package such as
base-files to provide the Depends, which would save the need for
a separate base-init package.  Is there any reason this would be
undesirable?  (I note that it currently has no depends other than
a pre-depends on awk.)

Any comments?


Thanks,
Roger

-- 
  .''`.  Roger Leigh
 : :' :  Debian GNU/Linux http://people.debian.org/~rleigh/
 `. `'   Printing on GNU/Linux?   http://gutenprint.sourceforge.net/
   `-GPG Public Key: 0x25BFB848   Please GPG sign your mail.


-- 
To UNSUBSCRIBE, email to debian-devel-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20120208200327.gj8...@codelibre.net



Re: Please test gzip -9n - related to dpkg with multiarch support

2012-02-08 Thread Guillem Jover
On Wed, 2012-02-08 at 11:25:28 -0800, Don Armstrong wrote:
> On Wed, 08 Feb 2012, Neil Williams wrote:
> > I don't get it. That would only affect packages which were built
> > during the time that a new upload of gzip is made and all the
> > buildd's making that new version available. Now, if there is a
> > binNMU after a new version of gzip is uploaded, yes it is probably
> > wise to rebuild all architectures if the package includes a
> > Multi-Arch: same library. How often does that happen?
> 
> Isn't this something that we can test for in the archive, and require
> rebuilds for all affected packages before entering testing?
> [Multi-Arch: same with the same path that have differing md5sums?]

This has for example the following implication:

Let's assume compressor (gzip/bzip2/xz/etc) version M gets uploaded to
sid generating a reproducible output across all current architectures.
Time passes, compressor version N (and even O and P and Q etc) gets
uploaded, which starts producing new ouput (on each of those versions).
A new architecture gets added to Debian, and because previous compressor
versions are not in the archive anymore, all packages built with them
have different checksums than the new ones. This means *all* those
packages have to be binNMUed across *all* the architectures, or the
porters need to hunt down every specific compressor version used to
build those packages to be able to reproduce the build on their arch.
This seems highly suboptimal and “future-unproof”...

regards,
guillem


-- 
To UNSUBSCRIBE, email to debian-devel-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20120208200243.ga29...@gaara.hadrons.org



Re: Please test gzip -9n - related to dpkg with multiarch support

2012-02-08 Thread Russ Allbery
Riku Voipio  writes:
> On Wed, Feb 08, 2012 at 05:56:11PM +0100, Guillem Jover wrote:

>> The same principle that applies to all dpkg output to avoid ambiguity
>> would apply everywhere, whenever there's a “Multi-Arch: same” package
>> name that needs to be unambiguous, it just always gets arch-qualified.
>> The rest would stay as they are.

> That is a major waste of space of having multiple copies of identical
> files with different arch-qualified names. Is that really better
> architecture to have multiple copies of identical files on user systems?

Is it really, though?  The files we're talking about are not generally
large.  I have a hard time seeing a case where the files would be large
enough to cause any noticable issue and you wouldn't want to move them
into a separate -common or -doc package anyway.

> Another major frustration your no-shared-files proposal adds, is the
> need to split the M-A: same libfoo-dev packages to libfoo-dev-common in
> order to avoid overwriting /usr/include contents and /usr/bin/foo-config
> binaries.

There are two main cases for libfoo-dev that I think cover most such
packages:

1. The header files are architecture-dependent (definitions of data member
   sizes, for example), in which case they need to be arch-qualified
   anyway if you're going to allow multiple libfoo-dev packages to be
   installed for different architectures.

2. The header files are architecture-independent, and the only
   architecture-dependent content inside libfoo-dev is the static library.
   In this case, if you want to make libfoo-dev multi-arch, I would
   advocate seriously considering just dropping the static library and
   making the -dev package arch: all.  I think static libraries are
   increasingly of very questionable utility on a Linux system.  But,
   assuming that you do want to keep it, you could still move the header
   files to /usr/include/ instead, which is relatively painless.

foo-config binaries, as opposed to pkg-config files, are indeed going to
continue to be a problem in model 2, but they're a problem anyway, no?
There's no guarantee that the amd64 and i386 version of a package will
want the same flags, so we really need some way of having a
multiarch-aware verson of the -config script.

-- 
Russ Allbery (r...@debian.org)   


--
To UNSUBSCRIBE, email to debian-devel-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/87haz1rtex@windlord.stanford.edu



Re: Please test gzip -9n - related to dpkg with multiarch support

2012-02-08 Thread Roger Leigh
On Wed, Feb 08, 2012 at 11:47:19AM -0800, Russ Allbery wrote:
> Guillem Jover  writes:
> > On Wed, 2012-02-08 at 13:19:17 +, Ian Jackson wrote:
> > And while the binNMU changelog issues might seem like a corner case,
> > it's just a symptom of something that's not quite right.
> 
> Also true.  In fact, it's something that's been bothering me for a long
> time with linked doc directories.  I'd like to prohibit them in more cases
> so that we get the binNMU changelogs on disk.

Relating to binNMU changelogs: do they really serve any purpose?  There
are no source changes, so is there any real need for a changelog change
at all?  AFAICT the only reason we do for historical reasons, it being
the only way previously to effect a version change.

We briefly discussed on #debian-buildd last week whether it was
possible to use --changes-option to override the distribution during
building.  If it is also possible to override the version of the
generated .debs, this would make it possible to rebuild (NMU) without
messing around editing the changelog.


Regards,
Roger

-- 
  .''`.  Roger Leigh
 : :' :  Debian GNU/Linux http://people.debian.org/~rleigh/
 `. `'   Printing on GNU/Linux?   http://gutenprint.sourceforge.net/
   `-GPG Public Key: 0x25BFB848   Please GPG sign your mail.


-- 
To UNSUBSCRIBE, email to debian-devel-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20120208195447.gi8...@codelibre.net



Re: Please test gzip -9n - related to dpkg with multiarch support

2012-02-08 Thread Russ Allbery
Guillem Jover  writes:
> On Wed, 2012-02-08 at 13:19:17 +, Ian Jackson wrote:

>> Well, it does mean that you might be lacking important information
>> because the other changelog wouldn't be present on the system.

> While the implicit Replaces seems the easy way out, it just seems even
> more fragile than the shared files approach.

Yes, this is definitely true.  I was mentioning it as an easy way out, but
it's aesthetically unappealing.

> And while the binNMU changelog issues might seem like a corner case,
> it's just a symptom of something that's not quite right.

Also true.  In fact, it's something that's been bothering me for a long
time with linked doc directories.  I'd like to prohibit them in more cases
so that we get the binNMU changelogs on disk.

> Instead of this, I'd rather see the shared files approach just dropped
> completely, and /usr/share/doc/ files for “Multi-Arch: same” packages be
> installed under /usr/share/doc/pkgname:arch/. This would solve all these
> problems in a clean way for the common case with just the two or three
> mandated files (changelog, changelog.Debian and copyright), if a package
> provides lots more files then they should be split anyway into either a
> libfooN-common libfoo-doc, or similar. And finally this would not be
> really confusing, given that one of the last interface changes was to
> make all dpkg output for all “Multi-Arch: same” packages be always
> arch-qualified.

The only thing I'm worried about here is that we lose something from the
UI perspective.  That's going to be a change historically from where we've
told users to look, and it's a little awkward.  But, thinking it over, the
set of packages that we're talking about is fairly limited.

-- 
Russ Allbery (r...@debian.org)   


--
To UNSUBSCRIBE, email to debian-devel-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/87liodrttk@windlord.stanford.edu



Re: Please test gzip -9n - related to dpkg with multiarch support

2012-02-08 Thread Don Armstrong
On Wed, 08 Feb 2012, Neil Williams wrote:
> I don't get it. That would only affect packages which were built
> during the time that a new upload of gzip is made and all the
> buildd's making that new version available. Now, if there is a
> binNMU after a new version of gzip is uploaded, yes it is probably
> wise to rebuild all architectures if the package includes a
> Multi-Arch: same library. How often does that happen?

Isn't this something that we can test for in the archive, and require
rebuilds for all affected packages before entering testing?
[Multi-Arch: same with the same path that have differing md5sums?]

Even outside of the gzip case, this would catch cases where
maintainers had screwed up.


Don Armstrong

-- 
The sheer ponderousness of the panel's opinion [...] refutes its
thesis far more convincingly than anything I might say. The panel's
labored effort to smother the Second Amendment by sheer body weight
has all the grace of a sumo wrestler trying to kill a rattlesnake by
sitting on it---and is just as likely to succeed.
 -- Alex Kozinski, Dissenting in Silveira v. Lockyer
(CV-00-00411-WBS p5983-4)

http://www.donarmstrong.com  http://rzlab.ucr.edu


-- 
To UNSUBSCRIBE, email to debian-devel-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20120208192528.gd6...@rzlab.ucr.edu



Re: Please test gzip -9n - related to dpkg with multiarch support

2012-02-08 Thread Neil Williams
On Wed, 8 Feb 2012 17:13:20 +0100
Guillem Jover  wrote:

> On Wed, 2012-02-08 at 13:19:17 +, Ian Jackson wrote:
> > Well, it does mean that you might be lacking important information
> > because the other changelog wouldn't be present on the system.

> Instead of this, I'd rather see the shared files approach just dropped
> completely, and /usr/share/doc/ files for “Multi-Arch: same” packages
> be installed under /usr/share/doc/pkgname:arch/. This would solve all

I agree with this for /usr/share but I don't think the shared files
approach should be dropped entirely - /usr/include is one place where
it will be very helpful and appears to be working properly already.

> these problems in a clean way for the common case with just the two or
> three mandated files (changelog, changelog.Debian and copyright), if
> a package provides lots more files then they should be split anyway

This works for shared library packages - it is -dev packages which
still need the shared files approach.

-- 


Neil Williams
=
http://www.linux.codehelp.co.uk/



pgpOR6BFNxFXN.pgp
Description: PGP signature


Re: Endianness of data files in MultiArch (was: Please test gzip -9n - related to dpkg with multiarch support)

2012-02-08 Thread Aron Xu
On Thu, Feb 9, 2012 at 01:35, Simon McVittie  wrote:
> On 08/02/12 17:22, Aron Xu wrote:
>> Some packages come with data files that endianness matters, and many
>> of them are large enough to split into a separate arch:all package if
>> endianness were not something to care about. AFAIK some maintainers
>> are not aware of endianness issues in their packages and then just
>> ignored it (not sure how many, but if any of them are discovered it
>> should lead to RC bug).
>
> Hopefully Jakub Wilk's automatic checks for conflicting files
>  will already be picking
> this up, in cases where the less-used-endianness architectures aren't
> broken already.
>
> If the less-used-endianness architectures are already broken, that's
> also a bug (potentially an RC one), just like code that compiles but
> doesn't work on a particular endianness due to other assumptions - and
> if nobody has noticed it yet, presumably the package doesn't have any
> users (or regression tests) on those architectures.
>

Or some of them just gave up because it is "less-used" architecture.

>> It would be great to have some mechanism to
>> handle such kind of problems in Debian, to avoid forcing those data to
>> be placed into arch:any package.
>
> If the right endianness is critical: libfoo:i386 Depends:
> libfoo-data-le, libfoo:powerpc Depends: libfoo-data-be, both data
> packages arch:all, data files in /usr/share/foo/le and /usr/share/foo/be
> respectively?
>

This looks not very nice, because we need to maintain a list of
architectures in debian/control, and when new architectures are added
the package is potentially broken.

Also, arch:all packages are usually generated by the uploading DD on
one architecture, mostly amd64 and i386 today, how can he managed to
generate be data files if he doesn't have access to such a machine?
Adding an option to the data generator/parser and make it able to
generate be/le data on any architecture seems not to be a reasonable
approach.

> Or just make sure the data has an endianness marker, and enhance the
> reading package to do the right byteswapping based on the endianness
> marker - e.g. this has been discussed for gettext, which ended up just
> writing out the same endianness on all platforms. Many formats
> (particularly those that originated on Windows) are always
> little-endian, and big-endian platforms reading them just take the minor
> performance hit; formats that respect "network byte order" have the
> opposite situation.
>

This is valid for most-used applications/formats like gettext, images
that are designed to behave in this way, but on the contrary there are
upstream that don't like to see such impact, especially due to the
complexity and performance impact.

Currently I am using arch:any for data files which aren't be affected
with multiarch, i.e. not "same" or "foreign". For endianness-critical
data that is required to make a library working, I have to force them
to be installed into /usr/lib//$package/data/ and mark them
as "Multiarch: same", this is sufficient to avoid breakage, but again
it consumes a lot of space on mirror.

I thought about something like /usr/share/$package/data/{be,le} in
arch:all, but appears to be not a reasonable solution because we need
to modify the data generator/parser.

-- 
Regards,
Aron Xu


-- 
To UNSUBSCRIBE, email to debian-devel-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/CAMr=8w6s+itap8usgjaqf86mffypaop+qjodetjhdyumb7a...@mail.gmail.com



Re: Please test gzip -9n - related to dpkg with multiarch support

2012-02-08 Thread Riku Voipio
On Wed, Feb 08, 2012 at 05:56:11PM +0100, Guillem Jover wrote:
> On Wed, 2012-02-08 at 17:29:22 +0100, Mike Hommey wrote:
> > If you remove the shared files approach, how do you handle files like
> > lintian overrides, reportbug presubj and scripts, etc. ?
> 
> The same principle that applies to all dpkg output to avoid ambiguity
> would apply everywhere, whenever there's a “Multi-Arch: same” package
> name that needs to be unambiguous, it just always gets arch-qualified.
> The rest would stay as they are.

That is a major waste of space of having multiple copies of identical files
with different arch-qualified names. Is that really better architecture to
have multiple copies of identical files on user systems?

> So, at least for lintian and reportbug, given that these file/dir names
> are package name based they would just get arch-qualified when needed.

Another major frustration your no-shared-files proposal adds, is the need
to split the M-A: same libfoo-dev packages to libfoo-dev-common in order to
avoid overwriting /usr/include contents and /usr/bin/foo-config binaries. Our
packages are already heavily split slowing down Packages.gz downloads and
all other apt operations.

Riku


-- 
To UNSUBSCRIBE, email to debian-devel-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20120208175241.ga6...@afflict.kos.to



Re: Endianness of data files in MultiArch (was: Please test gzip -9n - related to dpkg with multiarch support)

2012-02-08 Thread Simon McVittie
On 08/02/12 17:22, Aron Xu wrote:
> Some packages come with data files that endianness matters, and many
> of them are large enough to split into a separate arch:all package if
> endianness were not something to care about. AFAIK some maintainers
> are not aware of endianness issues in their packages and then just
> ignored it (not sure how many, but if any of them are discovered it
> should lead to RC bug).

Hopefully Jakub Wilk's automatic checks for conflicting files
 will already be picking
this up, in cases where the less-used-endianness architectures aren't
broken already.

If the less-used-endianness architectures are already broken, that's
also a bug (potentially an RC one), just like code that compiles but
doesn't work on a particular endianness due to other assumptions - and
if nobody has noticed it yet, presumably the package doesn't have any
users (or regression tests) on those architectures.

> It would be great to have some mechanism to
> handle such kind of problems in Debian, to avoid forcing those data to
> be placed into arch:any package.

If the right endianness is critical: libfoo:i386 Depends:
libfoo-data-le, libfoo:powerpc Depends: libfoo-data-be, both data
packages arch:all, data files in /usr/share/foo/le and /usr/share/foo/be
respectively?

Or just make sure the data has an endianness marker, and enhance the
reading package to do the right byteswapping based on the endianness
marker - e.g. this has been discussed for gettext, which ended up just
writing out the same endianness on all platforms. Many formats
(particularly those that originated on Windows) are always
little-endian, and big-endian platforms reading them just take the minor
performance hit; formats that respect "network byte order" have the
opposite situation.

S


-- 
To UNSUBSCRIBE, email to debian-devel-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/4f32b26f.8050...@debian.org



Re: Please test gzip -9n - related to dpkg with multiarch support

2012-02-08 Thread Jonathan Nieder
Ian Jackson wrote:

> Another relevant question is whether there are other files that are
> shared, and which don't want to move, besides ones in /usr/share/doc.

One example is header files in /usr/include, from -dev packages.  In
the simple examples I've seen, putting them in /usr/include/,
works fine.  It is always possible to split off a separate "Multiarch:
foreign" -dev-common package if needed in order to save space.

Another example is manpages, also in -dev packages.  That's more
fussy.


-- 
To UNSUBSCRIBE, email to debian-devel-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20120208172627.GA6712@burratino



Endianness of data files in MultiArch (was: Please test gzip -9n - related to dpkg with multiarch support)

2012-02-08 Thread Aron Xu
I want to speak up about endianness of data files, this is a
suggestion but not a flaw which I just want to discover the
possibility of improvement to current status by the chance of
implementing Multi-Arch in Debian.

Some packages come with data files that endianness matters, and many
of them are large enough to split into a separate arch:all package if
endianness were not something to care about. AFAIK some maintainers
are not aware of endianness issues in their packages and then just
ignored it (not sure how many, but if any of them are discovered it
should lead to RC bug). It would be great to have some mechanism to
handle such kind of problems in Debian, to avoid forcing those data to
be placed into arch:any package.


-- 
Regards,
Aron Xu


-- 
To UNSUBSCRIBE, email to debian-devel-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/CAMr=8w494xg1bwj3lr5rqnjrgrcung-e6igqb+xt6bdygpr...@mail.gmail.com



Re: Please test gzip -9n - related to dpkg with multiarch support

2012-02-08 Thread Ian Jackson
Guillem Jover writes ("Re: Please test gzip -9n - related to dpkg with 
multiarch support"):
> On Wed, 2012-02-08 at 13:19:17 +, Ian Jackson wrote:
> > One thing which no-one yet seems to have suggested is to have
> > multiarch:same packages put the changelog in a filename which is
> > distinct for each architecture.  (It wouldn't have to be the triplet;
> > the shorter Debian arch would do.)  Perhaps there are obvious reasons
> > (which I have missed) why this is a terrible idea, but it seems to me
> > that it's something we should consider.
> 
> Instead of this, I'd rather see the shared files approach just dropped
> completely, and /usr/share/doc/ files for “Multi-Arch: same” packages
> be installed under /usr/share/doc/pkgname:arch/.

Right, that's kind of what I was suggesting although you've
generalised it.  It doesn't seem like an unreasonable idea to me.

Obviously it would mean that some (Debian-specific) software which
currently doesn't need to be multiarch-aware would need to be taught
about these new directory names.  But that seems like a reasonable
price to pay for solving the varying compressed shared files problem.

Another relevant question is whether there are other files that are
shared, and which don't want to move, besides ones in /usr/share/doc.
I haven't been following this in detail but if there are then we may
need to retain the possibility to have actually-identical shared
files.

Ian.


--
To UNSUBSCRIBE, email to debian-devel-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/20274.43538.832430.612...@chiark.greenend.org.uk



Re: Please test gzip -9n - related to dpkg with multiarch support

2012-02-08 Thread Guillem Jover
On Wed, 2012-02-08 at 17:29:22 +0100, Mike Hommey wrote:
> If you remove the shared files approach, how do you handle files like
> lintian overrides, reportbug presubj and scripts, etc. ?

The same principle that applies to all dpkg output to avoid ambiguity
would apply everywhere, whenever there's a “Multi-Arch: same” package
name that needs to be unambiguous, it just always gets arch-qualified.
The rest would stay as they are.

So, at least for lintian and reportbug, given that these file/dir names
are package name based they would just get arch-qualified when needed.

regards,
guillem


-- 
To UNSUBSCRIBE, email to debian-devel-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20120208165611.ga25...@gaara.hadrons.org



Re: Help making r-cran-rsqlite use Debian's sqlite3 (Was: Re: Bug#657919: ITP: r-cran-digest - Create cryptographic hash digests of R objects)

2012-02-08 Thread Andreas Tille
[Moving a non-Debian Med related issue to debian-devel.  (reply-to set)
 The relevant part of this thread starts at
   http://lists.debian.org/debian-med/2012/02/msg00074.html
 and might be interesting for people building R packages. ]

On Wed, Feb 08, 2012 at 09:37:12AM -0600, Dirk Eddelbuettel wrote:
> | Other examples can be viewed here:
> | 
> | http://anonscm.debian.org/viewvc/debian-med/trunk/packages/R/
> 
> I asked you to email it.  It's ten lines. 

Sorry, I missed the "email" part - can perfectly do so in case we agree
about the requested patch makes sense or not.

> | But a textual substitution by *what*?
> 
> Value of the most current R, which I am always running on the system I
> prepare the debian/* files
> 
> A helper script could even have a _constant_ value (or in a dot.rc file)
> which we update every six months.

Sorry, I do not get your point in how far this should help reducing the
effort.
  
> | > Then I am /much/ less interested in the patch as it doesn't really help 
> with
> | > the workflow for the maintainer.  We're going from a manual edit of two
> | > fields on a file to one. Still leaves us needing to open/edit the file.
> | 
> | Why?  I do not need to edit the control file of r-cran-epi (and others)
> | any more.  Your statement is true if (and only if) the package in
> 
> Then you are doing it wrong.  As soon as a new R forces changes, you *need to
> build with those*.

I'm actually doing this by building in a recent unstable chroot:

  $ sudo cowbuilder --update
  $ pdebuild

How can you tell this the wrong approach?  That's default that you build
against the R version recently available in unstable.

> See eg the recent changes to the help system. Also, when
> CRAN packages interdepend you often need the newest version, Build-Depends on
> the newest R gets you that (albeit indirectly).

There is no need to Build-Depend from the newest R if it is determined
by the way you build the package.  The best you gain when fixing the
Build-Depends to a certain version is that backporters will have to
touch the packaging.  If you are not fixing the Build-Depends version
and rather make the Depends according to the version the package was
builded against, you can safely build it even as backport / other
distributions.

> You may have too narrow a Debian focus here.

Sorry, I can not parse this.  Please explain.
 
> | question has some version constraint set upstream and you need a
> | versioned Build-Depends.  If you can use "any recent R version" it is
> 
> It's not. Sometimes we need a specific miminum version that may not have been
> built on all arches etc pp.

So far as I understand this actual "sometimes" is determined by upstream
requirements as I wrote or am I missing something?

> | fine to go with a non-versioned Build-Depends (and we are doing so in
> | the majority if not all Debian Med packages).  The ${R:Depends} just
> | records which actual version of r-base-dev was used in the build
> | process and you are done.
> | 
> | > A tool to more easily set the Build-Depends would be of use.  
> | 
> | *If* you need to adjust a versioned Build-Depends of an R package
> | because upstream needs a specific version, you need to edit something
> | anyway - so why not doing it at the usual place.  I admit I do not
> | really understand your feature request.
> 
> Yes, we are wasting each other's time. Let's keep things the way they are;
> you guys add your snippet if you feel you need it. 
> 
> What we have works reliably for over a hundred packages. No need for changes.

On the contrary there are about 50 packages using a method you are
calling builded the wrong way.  If you are right I would see a need for
changes.

You initially said we found a "Nice substvars trick."[1]  I volunteered
to provide a patch to make it avialable for all R packages (BTW, when
not using ${R:depends} in your debian/control nothing happens at all -
so it is totally non-invasive to your packaging).

When discussing this more detailed you claim that we are doing things
wrong.  I know that in Debian Science this method is used as well
(that's why I'm asking for the wider audience to make them aware of a
more general problem).  So if we are really doing things wrong I would
love to read a better explanation I'm able to understand to fix things
(also bug reports are welcome).

Kind regards

  Andreas.

[1] http://lists.debian.org/debian-med/2012/02/msg00023.html 

-- 
http://fam-tille.de


-- 
To UNSUBSCRIBE, email to debian-devel-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20120208162735.gq9...@an3as.eu



Re: Please test gzip -9n - related to dpkg with multiarch support

2012-02-08 Thread Mike Hommey
On Wed, Feb 08, 2012 at 05:13:20PM +0100, Guillem Jover wrote:
> On Wed, 2012-02-08 at 13:19:17 +, Ian Jackson wrote:
> > Well, it does mean that you might be lacking important information
> > because the other changelog wouldn't be present on the system.
> 
> While the implicit Replaces seems the easy way out, it just seems even
> more fragile than the shared files approach.
> 
> And while the binNMU changelog issues might seem like a corner case,
> it's just a symptom of something that's not quite right. And after
> this was brought up again I started considering that the shared file
> approach might have been flawed afterall, even if it might have seemed
> neat at the time (it's one of the reasons that part of the code has
> not been merged yet). The main reason it was enviaged was to handle the
> changelog and copyright files and to avoid needing to introduce an
> additional common package per source, for just those two/three files.
> 
> As a side remark, I think at least those two are actual package
> metadata and do belong in the .deb control member [0], and as such in
> the dpkg database. But that's for discussion on another time, because
> that would not fix the issue as upstream changelogs do conflict too,
> for example.
> 
>   
> 
> > One thing which no-one yet seems to have suggested is to have
> > multiarch:same packages put the changelog in a filename which is
> > distinct for each architecture.  (It wouldn't have to be the triplet;
> > the shorter Debian arch would do.)  Perhaps there are obvious reasons
> > (which I have missed) why this is a terrible idea, but it seems to me
> > that it's something we should consider.
> 
> Instead of this, I'd rather see the shared files approach just dropped
> completely, and /usr/share/doc/ files for “Multi-Arch: same” packages
> be installed under /usr/share/doc/pkgname:arch/. This would solve all
> these problems in a clean way for the common case with just the two or
> three mandated files (changelog, changelog.Debian and copyright), if
> a package provides lots more files then they should be split anyway
> into either a libfooN-common libfoo-doc, or similar. And finally this
> would not be really confusing, given that one of the last interface
> changes was to make all dpkg output for all “Multi-Arch: same”
> packages be always arch-qualified.

If you remove the shared files approach, how do you handle files like
lintian overrides, reportbug presubj and scripts, etc. ?

Mike


-- 
To UNSUBSCRIBE, email to debian-devel-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20120208162922.ga28...@glandium.org



Re: Please test gzip -9n - related to dpkg with multiarch support

2012-02-08 Thread Guillem Jover
On Wed, 2012-02-08 at 13:19:17 +, Ian Jackson wrote:
> Well, it does mean that you might be lacking important information
> because the other changelog wouldn't be present on the system.

While the implicit Replaces seems the easy way out, it just seems even
more fragile than the shared files approach.

And while the binNMU changelog issues might seem like a corner case,
it's just a symptom of something that's not quite right. And after
this was brought up again I started considering that the shared file
approach might have been flawed afterall, even if it might have seemed
neat at the time (it's one of the reasons that part of the code has
not been merged yet). The main reason it was enviaged was to handle the
changelog and copyright files and to avoid needing to introduce an
additional common package per source, for just those two/three files.

As a side remark, I think at least those two are actual package
metadata and do belong in the .deb control member [0], and as such in
the dpkg database. But that's for discussion on another time, because
that would not fix the issue as upstream changelogs do conflict too,
for example.

  

> One thing which no-one yet seems to have suggested is to have
> multiarch:same packages put the changelog in a filename which is
> distinct for each architecture.  (It wouldn't have to be the triplet;
> the shorter Debian arch would do.)  Perhaps there are obvious reasons
> (which I have missed) why this is a terrible idea, but it seems to me
> that it's something we should consider.

Instead of this, I'd rather see the shared files approach just dropped
completely, and /usr/share/doc/ files for “Multi-Arch: same” packages
be installed under /usr/share/doc/pkgname:arch/. This would solve all
these problems in a clean way for the common case with just the two or
three mandated files (changelog, changelog.Debian and copyright), if
a package provides lots more files then they should be split anyway
into either a libfooN-common libfoo-doc, or similar. And finally this
would not be really confusing, given that one of the last interface
changes was to make all dpkg output for all “Multi-Arch: same”
packages be always arch-qualified.

regards,
guillem


-- 
To UNSUBSCRIBE, email to debian-devel-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20120208161319.ga24...@gaara.hadrons.org



Re: Please test gzip -9n - related to dpkg with multiarch support

2012-02-08 Thread Neil Williams
On Wed, 8 Feb 2012 15:06:46 +0100
Adam Borowski  wrote:

> On Wed, Feb 08, 2012 at 02:14:22PM +0100, Cyril Brulebois wrote:
> > For those not subscribed to that bug, how to reproduce[1] and possible
> > fix[2] are available now. There might be other places where buffers are
> > reused, I only spent a few minutes on this during my lunch break.
> > 
> >  2. http://bugs.debian.org/cgi-bin/bugreport.cgi?msg=60;bug=647522
> 
> Even if you ensure a particular build behaves exactly the same on a given
> architecture, you're merely introducing future problems.
> 
> gzip's output is likely to change:
> * on a new version
> * after a bugfix (including security ones)
> * on a different architecture
> * with different optimizations
> * with a different implementation (like those parallel ones)
> * possibly with a different moon phase
> 
> Especially the first is pretty guaranteed to bite: whenever the upstream
> does a small improvement, binaries in the archive get invalidated until
> rebuilt with the new gzip.

I don't get it. That would only affect packages which were built during
the time that a new upload of gzip is made and all the buildd's making
that new version available. Now, if there is a binNMU after a new
version of gzip is uploaded, yes it is probably wise to rebuild all
architectures if the package includes a Multi-Arch: same library. How
often does that happen?

It doesn't matter for other packages in the archive - it only matters
for binary packages of the same Multi-Arch source which can install the
same file in the same place from two or more architectures.

Binaries in the archive already are completely unaffected by a new gzip
- the only collision is between compressed files in the same location
under /usr/share/doc and Policy already handles that with the exception
of problems inherent to Multi-Arch. 

> Breaking the ideas for diverting /bin/gzip by pigz is not nice, too.

However, having said all that, I think that an approach which borrows /
inherits from existing dpkg-cross behaviour by simply assuming that
anything in /usr/share of a Multi-Arch: same package just doesn't
matter for the functionality of the package is much better, much more
reliable allowing any collisions to just get silently ignored.

It avoids all of the gzip problems and the only remaining collisions
can be fixed as bugs.

-- 


Neil Williams
=
http://www.linux.codehelp.co.uk/



pgpV9cgoGAweg.pgp
Description: PGP signature


Re: Bug#657949: Cannot install libhdf5-mpi-dev and libnetcdf-dev

2012-02-08 Thread Francesco P. Lovergine
On Wed, Feb 08, 2012 at 02:32:07PM +, Alastair McKinstry wrote:
> Hi Francesco,
> 
> Do you recommend that we build the next NetCDF from 4.1.1 or should we
> use the 4.1.3 from experimental as the base?
> 
> Regards
> Alastair
> 

AFAIK Sylvestre is going to reset the dependencies chain in hdf5 to avoid that
kind of problem. About 4.1.3 in experimental, it still needs a bit of work,
and I'm going to split in separate packages current netcdf 4.1.1 
before, in order to have a decent organization of all solibs to
have a smooth migration to 4.1.3. You have free access to the git repository,
so a branch can be prepared for having a parallel flavor too.

-- 
Francesco P. Lovergine


-- 
To UNSUBSCRIBE, email to debian-devel-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20120208152707.gb3...@gandalf.is-a-geek.org



Re: Please test gzip -9n - related to dpkg with multiarch support

2012-02-08 Thread brian m. carlson
On Wed, Feb 08, 2012 at 11:33:37AM +0100, Bernhard R. Link wrote:
> On the other hand most uncompressors silently ignore unexpected
> data after end of file markers. So the compressed file is even more
> easily tempered with (especially as debsums only stores md5 without
> size and md5 does not include the size in the hash like the sha* do.
> So if one can append arbitrary stuff, it is easy prey).

This is not true.  MD5 and the SHA variants are all Merkle-Damgård
constructions, which is what makes them vulnerable to length extension
attacks if the compression function is not secure.  Merkle-Damgård
constructions include the number of bits hashed in the hash.

But yes, MD5 is vulnerable to length extension attacks.

-- 
brian m. carlson / brian with sandals: Houston, Texas, US
+1 832 623 2791 | http://www.crustytoothpaste.net/~bmc | My opinion only
OpenPGP: RSA v4 4096b: 88AC E9B2 9196 305B A994 7552 F1BA 225C 0223 B187


signature.asc
Description: Digital signature


Re: Bug#657949: Cannot install libhdf5-mpi-dev and libnetcdf-dev

2012-02-08 Thread Alastair McKinstry
Hi Francesco,

Do you recommend that we build the next NetCDF from 4.1.1 or should we
use the 4.1.3 from experimental as the base?

Regards
Alastair


On 2012-02-07 13:17, Francesco P. Lovergine wrote:
> On Tue, Feb 07, 2012 at 09:28:00AM +, Alastair McKinstry wrote:
>> On 2012-02-02 01:43, Steve M. Robbins wrote:
>>> Hi,
>>>
>>> I'd like to contribute towards a solution for this.  I'm forwarding to
>>> debian-devel to get some others' ideas.
>>> Naively, I don't understand why netcdf can't offer multiple variants,
>>> just as hdf5 does.  Or, at least, one package libnetcdf-mpi-dev that
>>> links with the "default" MPI implementation.
 I am not involved in the netcdf. You should report a bug on this
 package.
>>> I'm prepared to do so, but I'd first like to get agreement that
>>> netcdf is where the problem lies.  Netcdf maintainers, please
>>> chime in!
>>>
>>>
>>> I think we can no longer live in the status quo (see all the blockers
>>> of #631019), so something has to give.  Even if it is painful, perhaps
>>> Debian could pioneer something and pass patches back to upstream?
>>>
>>> Thoughts?
>>>
>>> -Steve
>>>
>> As of now, I have several packages (eg ADIOS, CDO) that used to build
>> against netcdf and libhdf5-mpi-dev
>> that don't. Without fixes to netCDF (I appreciate what Francesco says
>> about netcdf upstream
>> not giving the libraries proper names), there needs to be a regression:
>> either the packages
>> build with netcdf but no MPI, or  MPI but no netcdf.
>>
> The problem is the following: with latest update to hdf5, the chain of
> dependencies changed, so that now libnetcdf6 depends on the pure serial
> version of hdf5, while the previous one depended on serial or parallel:
>
> Version: 1:4.1.1-6+b1
> Depends: libc6 (>= 2.7), libcurl3-gnutls (>= 7.16.2), libgcc1 (>= 1:4.1.1), 
> libgfortran3 (>= 4.3), libhdf5-7 (>= 1.8.7), libquadmath0 (>= 4.6), 
> libstdc++6 (>= 4.4.0)
>
> Version: 1:4.1.1-6
> Depends: libc6 (>= 2.7), libcurl3-gnutls (>= 7.16.2-1), libgcc1 (>= 1:4.1.1), 
> libgfortran3 (>= 4.3), libhdf5-serial-1.8.4 | libhdf5-1.8.4, libquadmath0 (>= 
> 4.6), libstdc++6 (>= 4.4.0)
>
> So at least at packaging level, that should be fixed to follow the previous 
> criteria.
>
> That said, indeed NetCDF provides nc_create_par and nc_open_par in both serial
> and parallel versions, but needs to be built with --enable-parallel to take
> advantage of parallel I/O in HDF5, else it works in pure serial mode.
>


-- 
Alastair McKinstry  ,  , 
http://blog.sceal.ie

Anyone who believes exponential growth can go on forever in a finite world
is either a madman or an economist - Kenneth Boulter, Economist.



-- 
To UNSUBSCRIBE, email to debian-devel-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/4f328767.1060...@debian.org



Re: Bug#658783: MATE Desktop Environment in Debian

2012-02-08 Thread Stefano Karapetsas

Il 2012-02-08 15:23 Josselin Mouette ha scritto:
GConf is deprecated, but it is still maintained. It is still used 
e.g.

by evolution.

I don’t see the point of renaming it, starting another daemon, and
whatnot, if you provide the same functionality. If you want to keep
maintaining GConf for longer than they plan, I don’t think upstream
developers will prevent you from doing it.


This is a good news. I didnt know that GConf is still maintained. This
is a good point where we can start to share our forces!


--
To UNSUBSCRIBE, email to debian-devel-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/85e5d3caf3db02ce87e346f3b460f...@karapetsas.com



Re: Transition to PHP 5.4 starting soon (Re: PHP 5.4 transition in unstable)

2012-02-08 Thread Thijs Kinkhorst
On Wed, February 8, 2012 15:00, Thomas Goirand wrote:
> On 02/08/2012 12:50 AM, Filipus Klutiero wrote:
>> Thankfully there's a page being built to track problems in packages
>> that contain PHP code: http://wiki.debian.org/PHP/54Transition
>>
> This is very nice, but how come PHP Lint isn't in Debian?
> It seems to be shipped under a BSD license, so it shouldn't be an issue.

The string "PHP Lint" here refers to invoking php with the -l option,
which is documented as "lint mode": checking input files on PHP syntax. So
if this fails with parse errors, normal execution will also fail on those
same errors.

> Also, for one of the package I'm maintaining, extplorer (which is a nice
> web file manager), it seems to report a false positive, because it's not
> parsing correctly a traditional Chinese string.

If I include() that file in an otherwise empty PHP script and execute
that, I also get the same parse error (PHP from wheezy). Are you sure that
it actually works?


Thijs


-- 
To UNSUBSCRIBE, email to debian-devel-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/fa965050a16316f0bd7ffa5dddb65fd4.squir...@wm.kinkhorst.nl



Re: Bug#658783: MATE Desktop Environment in Debian

2012-02-08 Thread Josselin Mouette
Le mercredi 08 février 2012 à 14:52 +0100, Stefano Karapetsas a écrit : 
> GConf is deprecated. MateConf is born to have a temporary solution 
> until
> we choose the replacement for it.

GConf is deprecated, but it is still maintained. It is still used e.g.
by evolution. 

I don’t see the point of renaming it, starting another daemon, and
whatnot, if you provide the same functionality. If you want to keep
maintaining GConf for longer than they plan, I don’t think upstream
developers will prevent you from doing it.

-- 
 .''`.  Josselin Mouette
: :' :
`. `'
  `-


--
To UNSUBSCRIBE, email to debian-devel-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/1328710995.3202.429.camel@pi0307572



Re: Transition to PHP 5.4 starting soon (Re: PHP 5.4 transition in unstable)

2012-02-08 Thread Thomas Goirand
On 02/08/2012 12:50 AM, Filipus Klutiero wrote:
> Thankfully there's a page being built to track problems in packages
> that contain PHP code: http://wiki.debian.org/PHP/54Transition
>
This is very nice, but how come PHP Lint isn't in Debian?
It seems to be shipped under a BSD license, so it shouldn't be an issue.

Also, for one of the package I'm maintaining, extplorer (which is a nice
web file manager), it seems to report a false positive, because it's not
parsing correctly a traditional Chinese string. The fact that PHP Lint
isn't in Debian prevents me from reporting a bug in the Debian BTS,
and tracking issues (sure, I can report it upstream, but that's not
same...).

Filipus, do you think you'd have time to package PHP Lint?

Thomas


-- 
To UNSUBSCRIBE, email to debian-devel-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/4f327ff1.4050...@debian.org



Re: Please test gzip -9n - related to dpkg with multiarch support

2012-02-08 Thread Neil Williams
On Wed, 8 Feb 2012 14:14:22 +0100
Cyril Brulebois  wrote:

> Neil Williams  (07/02/2012):
> > I'd like to ask for some help with a bug which is tripping up my tests
> > with the multiarch-aware dpkg from experimental - #647522 -
> > non-deterministic behaviour of gzip -9n.
> 
> For those not subscribed to that bug, how to reproduce[1] and possible
> fix[2] are available now. There might be other places where buffers are
> reused, I only spent a few minutes on this during my lunch break.
> 
>  1. http://bugs.debian.org/cgi-bin/bugreport.cgi?msg=55;bug=647522
>  2. http://bugs.debian.org/cgi-bin/bugreport.cgi?msg=60;bug=647522

Thanks for taking that one stage on, Cyril. I ran out of time to look
at this any further yesterday, I've only just got back to the bug and
noticed the hint about multiple files on the command line from Zack
Weinberg. It makes sense that with a single file on the command line,
the "aberrant" compressed file never appears when with more than one,
it can.

-- 


Neil Williams
=
http://www.linux.codehelp.co.uk/



pgp66v2fJQSo5.pgp
Description: PGP signature


Re: Bug#658783: MATE Desktop Environment in Debian

2012-02-08 Thread Stefano Karapetsas

Il 2012-02-08 14:41 Josselin Mouette ha scritto:
Le mercredi 08 février 2012 à 14:05 +0100, Stefano Karapetsas a écrit 
:
Yeah. In our roadmap there is the dismissal of the obsolete 
libraries,

like the replacement of MateConf (the fork of GConf) with GSettings,
and
so on.

Sorry but what is the point of *forking* GConf? What does it bring,
apart from more work for you and more processes for your users?


GConf is deprecated. MateConf is born to have a temporary solution 
until

we choose the replacement for it.


--
To UNSUBSCRIBE, email to debian-devel-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/9e93a1a64a5422eb07cefad74af92...@karapetsas.com



Re: Please test gzip -9n - related to dpkg with multiarch support

2012-02-08 Thread Josh Triplett
Wouter Verhelst wrote:
> On Tue, Feb 07, 2012 at 10:04:04PM +, Neil Williams wrote:
> > Maybe the way to solve this properly is to remove compression from the
> > uniqueness check - compare the contents of the file in memory after
> > decompression. Yes, it will take longer but it is only needed when the
> > md5sum (which already exists) doesn't match.
> 
> Actually, I think the real way to fix this properly is to not compress
> files in the package at all.
> 
> The contents.tar.gz is already a .tar.gz, which means it's compressed.

s/contents/data/

> Doubly-compressing files hardly ever nets a benefit, so we're not
> compressing files for the benefit of our mirrors.
> 
> The only reason why we compress files in /usr/share/doc is so that that
> directory doesn't waste too much space. If that is the case, I think it
> makes much more sense for files to be packaged inside .debs
> uncompressed, and (optionally) for dpkg to compress them on the fly
> should the system administrator request it. It would then make much more
> sense for dpkg to consider the contents of the file, rather than the
> on-disk representation, and not cause this kind of issues.

I agree with this entirely.  Doing this would actually save *more* space
in the .deb files, since it allows gzip (or xz, or whatever compresses
the data.tar) to see the contents of multiple files at once.  It also
allows the administrator to set local policies for compression to cover
cases like the one you mentioned below.  Those local policies would also
allow the use of compression formats other than .xz, as well as deciding
to leave files uncompressed due to the use of a filesystem with built-in
compression.

It wouldn't work in all cases, since sometimes the package requires a
compressed file in a certain location, but it should work for just about
all files in /usr/share/doc.

The only downside that I can see: packages couldn't refer to a
particular file under /usr/share/doc/$package/ by path, because those
packages wouldn't know how the administrator might choose to compress
their files.  Given the policy of not depending on files under
/usr/share/doc/ to function, at most this will result in manpages and
similar referencing paths that then need a .gz or .xz appended, and that
doesn't seem like a big deal; people will cope and tools can learn to
check for compressed variants.

> As an additional benefit, this will also allow those among us (like me)
> who hate having to use 'gunzip -c /usr/share/doc/foo/bar.pdf.gz >
> /tmp/bar.pdf; xpdf /tmp/bar.pdf' in order to be able to read some
> documentation, to just request that files are not compressed.

Try "zrun" from the moreutils package:
zrun xpdf /usr/share/doc/foo/bar.pdf.gz

Or use evince, which can handle compressed files directly.

- Josh Triplett


-- 
To UNSUBSCRIBE, email to debian-devel-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20120208135032.GA21503@leaf



Re: Please test gzip -9n - related to dpkg with multiarch support

2012-02-08 Thread Adam Borowski
On Wed, Feb 08, 2012 at 02:14:22PM +0100, Cyril Brulebois wrote:
> For those not subscribed to that bug, how to reproduce[1] and possible
> fix[2] are available now. There might be other places where buffers are
> reused, I only spent a few minutes on this during my lunch break.
> 
>  2. http://bugs.debian.org/cgi-bin/bugreport.cgi?msg=60;bug=647522

Even if you ensure a particular build behaves exactly the same on a given
architecture, you're merely introducing future problems.

gzip's output is likely to change:
* on a new version
* after a bugfix (including security ones)
* on a different architecture
* with different optimizations
* with a different implementation (like those parallel ones)
* possibly with a different moon phase

Especially the first is pretty guaranteed to bite: whenever the upstream
does a small improvement, binaries in the archive get invalidated until
rebuilt with the new gzip.

Breaking the ideas for diverting /bin/gzip by pigz is not nice, too.

-- 
// If you believe in so-called "intellectual property", please immediately
// cease using counterfeit alphabets.  Instead, contact the nearest temple
// of Amon, whose priests will provide you with scribal services for all
// your writing needs, for Reasonable and Non-Discriminatory prices.


-- 
To UNSUBSCRIBE, email to debian-devel-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20120208140646.gb25...@angband.pl



Re: Doesn't contain source for waf binary code

2012-02-08 Thread Mike O'Connor
On Wed, 8 Feb 2012 08:59:30 +1100, Karl Goetz  wrote:
> I don't know anything about waf not mentioned in this thread, but
> would it be possible to patch the package to work with a packaged waf
> instead?
> thanks,
> kk
> 

See the reasons for removal previously referenced by Alexander:
http://lists.debian.org/debian-devel/2010/02/msg00714.html and the URLs
referenced from there.  waf upstream is hostile to this idea to the
point that he intentionally changed the documentation licence to a
non-free license in order to discourage us.

stew


-- 
To UNSUBSCRIBE, email to debian-devel-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/87liodfn3p@cardinal.vireo.org



Re: Bug#658783: MATE Desktop Environment in Debian

2012-02-08 Thread Stefano Karapetsas

Il 2012-02-08 14:23 Mehdi Dogguy ha scritto:

I saw some gnome design team mockups of all applications, and I find
its far from GNOME2.

Then, why don't you help them? (It is easier than re-packaging and
maintaining Gnome2).

Regards,


I just answered before. GNOME3 is a completely different desktop, and I
dont think it can have two ideas in same environment. It should follow
it main goal to have an attractive desktop.
We started to work on MATE and we understand that it's possible and
human to work and maintain it.

Best regards,
Stefano


--
To UNSUBSCRIBE, email to debian-devel-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/1d1cccb7365b7c593fdac90c0fbb8...@karapetsas.com



Re: MATE Desktop Environment in Debian

2012-02-08 Thread Josselin Mouette
Le mercredi 08 février 2012 à 14:05 +0100, Stefano Karapetsas a écrit : 
> Yeah. In our roadmap there is the dismissal of the obsolete libraries,
> like the replacement of MateConf (the fork of GConf) with GSettings, 
> and
> so on. 

Sorry but what is the point of *forking* GConf? What does it bring,
apart from more work for you and more processes for your users?

-- 
 .''`.  Josselin Mouette
: :' :
`. `'
  `-


--
To UNSUBSCRIBE, email to debian-devel-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/1328708469.3202.417.camel@pi0307572



Re: Please test gzip -9n - related to dpkg with multiarch support

2012-02-08 Thread Ian Jackson
Russ Allbery writes ("Re: Please test gzip -9n - related to dpkg with multiarch 
support"):
> Another possible solution is to just give any package an implicit Replaces
> (possibly constrained to /usr/share/doc) on any other package with the
> same name and version and a different architecture.  This isn't as
> defensive, in that it doesn't catch legitimate bugs where someone has made
> a mistake and the packages contain different contents, but it also solves
> the binNMU issue (well, "solves"; the changelog will randomly swap back
> and forth between the packages, but I'm having a hard time being convinced
> this is a huge problem).

Well, it does mean that you might be lacking important information
because the other changelog wouldn't be present on the system.

One thing which no-one yet seems to have suggested is to have
multiarch:same packages put the changelog in a filename which is
distinct for each architecture.  (It wouldn't have to be the triplet;
the shorter Debian arch would do.)  Perhaps there are obvious reasons
(which I have missed) why this is a terrible idea, but it seems to me
that it's something we should consider.

Ian.


-- 
To UNSUBSCRIBE, email to debian-devel-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/20274.30293.295855.341...@chiark.greenend.org.uk



Re: Doesn't contain source for waf binary code

2012-02-08 Thread Jelmer Vernooij
On Wed, Feb 08, 2012 at 11:51:50AM +, Jon Dowland wrote:
> On Wed, Feb 08, 2012 at 10:47:13AM +0100, Alexander Reichle-Schmehl wrote:
> > I have no idea, but I'm not really sure if it's a good idea to remove
> > samba either...
> Absolutely not.  They might be persuade-able away from waf though.
Waf has worked very well for Samba, and I don't see us moving away
any time soon.

The main developer of Waf upstream is indeed often hard to work with - and
I think that's been its main disadvantage so far - but with some patience we've
always been able to work things out when we disagreed.

I'd rather see if we can do something constructive that works for both
waf upstream and Debian.

Cheers,

Jelmer


signature.asc
Description: Digital signature


Re: MATE Desktop Environment in Debian

2012-02-08 Thread Mehdi Dogguy

On 08/02/12 14:05, Stefano Karapetsas wrote:

I saw some gnome design team mockups of all applications, and I find
its far from GNOME2.


Then, why don't you help them? (It is easier than re-packaging and
maintaining Gnome2).

Regards,

--
Mehdi


--
To UNSUBSCRIBE, email to debian-devel-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/4f327766.4010...@dogguy.org



Re: MATE Desktop Environment in Debian

2012-02-08 Thread Stefano Karapetsas


Il 2012-02-08 11:44 Mehdi Dogguy ha scritto:

On 08/02/12 09:55, Josselin Mouette wrote:

MATE introduces a lot of code duplication, which is considered bad
in Debian, and is based on obsolete technologies - not just GTK2,
which will of course remain for a long time, but also things like
Bonobo which very few people really understand, and which are the
cause of a lot of not-well-understood bugs.

Maybe this could benefit to both parties if MATE team tries to reduce
usage of obsolete libraries to a bare minimum, and avoid using bug
monsters (like Bonobo and others). I guess this means a lot of work, 
but
that's the price to pay to ease its maintainability on the long term 
and
having it packaged within Debian. Did MATE team consider such a plan? 
If

yes, what was the outcome of the discussion?


Yeah. In our roadmap there is the dismissal of the obsolete libraries,
like the replacement of MateConf (the fork of GConf) with GSettings, 
and

so on. We are studying how replace Bonobo and ORBIT, too.
About this point I talked some time ago with Karen Sandler to find a
meeting point with GNOME3 developers to share more libraries possible
between the two desktop environments, to reduce the duplicated work.
I dont think work only on fallback session is the solution, because
GNOME3 is based on a different idea. I saw some gnome design team 
mockups

of all applications, and I find its far from GNOME2.


--
To UNSUBSCRIBE, email to debian-devel-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/1c760a5fa4a51c4b2868ef9f9f288...@karapetsas.com



Re: Please test gzip -9n - related to dpkg with multiarch support

2012-02-08 Thread Cyril Brulebois
(Dropping everyone but dd@.)

Wouter Verhelst  (08/02/2012):
> As an additional benefit, this will also allow those among us (like me)
> who hate having to use 'gunzip -c /usr/share/doc/foo/bar.pdf.gz >
> /tmp/bar.pdf; xpdf /tmp/bar.pdf' in order to be able to read some
> documentation, to just request that files are not compressed.

Try: xpdf /usr/share/doc/debian-policy/policy.pdf.gz

Mraw,
KiBi.


signature.asc
Description: Digital signature


Re: Please test gzip -9n - related to dpkg with multiarch support

2012-02-08 Thread Cyril Brulebois
Neil Williams  (07/02/2012):
> I'd like to ask for some help with a bug which is tripping up my tests
> with the multiarch-aware dpkg from experimental - #647522 -
> non-deterministic behaviour of gzip -9n.

For those not subscribed to that bug, how to reproduce[1] and possible
fix[2] are available now. There might be other places where buffers are
reused, I only spent a few minutes on this during my lunch break.

 1. http://bugs.debian.org/cgi-bin/bugreport.cgi?msg=55;bug=647522
 2. http://bugs.debian.org/cgi-bin/bugreport.cgi?msg=60;bug=647522

Mraw,
KiBi.


signature.asc
Description: Digital signature


Re: Please test gzip -9n - related to dpkg with multiarch support

2012-02-08 Thread Wouter Verhelst
On Tue, Feb 07, 2012 at 10:04:04PM +, Neil Williams wrote:
> Maybe the way to solve this properly is to remove compression from the
> uniqueness check - compare the contents of the file in memory after
> decompression. Yes, it will take longer but it is only needed when the
> md5sum (which already exists) doesn't match.

Actually, I think the real way to fix this properly is to not compress
files in the package at all.

The contents.tar.gz is already a .tar.gz, which means it's compressed.
Doubly-compressing files hardly ever nets a benefit, so we're not
compressing files for the benefit of our mirrors.

The only reason why we compress files in /usr/share/doc is so that that
directory doesn't waste too much space. If that is the case, I think it
makes much more sense for files to be packaged inside .debs
uncompressed, and (optionally) for dpkg to compress them on the fly
should the system administrator request it. It would then make much more
sense for dpkg to consider the contents of the file, rather than the
on-disk representation, and not cause this kind of issues.

As an additional benefit, this will also allow those among us (like me)
who hate having to use 'gunzip -c /usr/share/doc/foo/bar.pdf.gz >
/tmp/bar.pdf; xpdf /tmp/bar.pdf' in order to be able to read some
documentation, to just request that files are not compressed.

-- 
The volume of a pizza of thickness a and radius z can be described by
the following formula:

pi zz a


-- 
To UNSUBSCRIBE, email to debian-devel-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20120208131025.ga27...@grep.be



Bug#659098: ITP: idm-console-framework -- IDM Console Framework for the 389 Directory Server Console

2012-02-08 Thread Timo Aaltonen
Package: wnpp
Severity: wishlist
Owner: Timo Aaltonen 

* Package name: idm-console-framework
  Version : 1.1.7
  Upstream Author : Red Hat, Inc.
* URL : http://directory.fedoraproject.org/sources
* License : LGPL
  Programming Lang: Java
  Description : IDM Console Framework for the 389 Directory Server Console

 A Java Management Console framework, used for 389 Directory Server remote 
 management.



-- 
To UNSUBSCRIBE, email to debian-devel-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/20120208114436.15218.79584.reportbug@eldon.tyrell



Re: Please test gzip -9n - related to dpkg with multiarch support

2012-02-08 Thread Ben Hutchings
On Wed, 2012-02-08 at 07:57 +, Lars Wirzenius wrote:
> On Tue, Feb 07, 2012 at 10:49:23PM +, Ben Hutchings wrote:
> > But it's worse than this: even if dpkg decompresses before comparing,
> > debsums won't (and mustn't, for backward compatibility).  So it's
> > potentially necessary to fix up the md5sums file for a package
> > installed for multiple architectures, if it contains a file that was
> > compressed differently.
> 
> I'm uncomfortable with the idea of checking checksums only for
> uncompressed data. Compressed files have headers, and at least for
> some formats, it seems those headers can contain essentially 
> arbitrary data. This allows compressed files to be modified in
> rather significant ways, without debsums noticing, if debsums
> uncompresses before comparing.
> 
> Further, uncompressors have the potential for security problems.
> See https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2009-2624 for example.
> In other words: debsums needs to decompress to verify that no
> files have been tampered with, but doing so can invoke an attack.
> Such an attack may be unlikely, but it would seem to be a better design
> to not open up the possibility for it.

I wasn't suggesting debsums would do decompression.

Ben.

-- 
Ben Hutchings
The generation of random numbers is too important to be left to chance.
- Robert Coveyou


signature.asc
Description: This is a digitally signed message part


Re: Doesn't contain source for waf binary code

2012-02-08 Thread Jon Dowland
On Wed, Feb 08, 2012 at 10:47:13AM +0100, Alexander Reichle-Schmehl wrote:
> I have no idea, but I'm not really sure if it's a good idea to remove
> samba either...

Absolutely not.  They might be persuade-able away from waf though.


-- 
To UNSUBSCRIBE, email to debian-devel-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20120208115150.GA22294@debian



Re: Please test gzip -9n - related to dpkg with multiarch support

2012-02-08 Thread Simon McVittie
On 08/02/12 10:22, Neil Williams wrote:
> Nothing in /usr/share/ matters for a cross package created by
> dpkg-cross (with the possible exception of /usr/share/pkg-config
> which was always anachronistic).

I'd understood that /usr/share/pkgconfig should be used for the
sort of packages that would now be Multi-Arch:foreign?

Looking in my instance of that directory, I only see Architecture:all
packages (like gnome-icon-theme and gtk-doc), and Architecture:any
packages whose API is in terms of running executables or making D-Bus
calls rather than linking libraries (like udev and systemd).

udev and systemd both also ship libraries, as it happens, but those
libraries have their own .pc files, which are correctly under /usr/lib.

If this is a concern, maybe we should have a Lintian check that
/usr/share/pkgconfig/*.pc must not have a non-trivial value in their
Libs, Cflags or Libs.private fields? (Some arch-independent .pc files do
have those fields, but their values are empty, as in gnome-icon-theme -
that seems valid.)

S


-- 
To UNSUBSCRIBE, email to debian-devel-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/4f325d41.9030...@debian.org



Re: Please test gzip -9n - related to dpkg with multiarch support

2012-02-08 Thread Daniel Baumann
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 02/07/2012 11:04 PM, Neil Williams wrote:
> I'm not convinced that this is fixable at the gzip level, nor is it
> likely to be fixable by the trauma of changing from gzip to 
> something else.

while the original point of not considering compressors that are not
producing identical output across all archs in dpkgs multi-arch
implementation still stands, it might be worth noting (and at least
jftr) that lzip does not suffer from that problem in the first place.

- -- 
Address:Daniel Baumann, Donnerbuehlweg 3, CH-3012 Bern
Email:  daniel.baum...@progress-technologies.net
Internet:   http://people.progress-technologies.net/~daniel.baumann/
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk8yWOYACgkQ+C5cwEsrK57kRACg4LIBEB+Yn6bMC9E+xybh/doX
FJAAn2Ufes5sZTMn4XHYQ2fr5ja/w6W6
=qbRU
-END PGP SIGNATURE-


-- 
To UNSUBSCRIBE, email to debian-devel-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/4f3258e6.9060...@progress-technologies.net



Re: Please test gzip -9n - related to dpkg with multiarch support

2012-02-08 Thread Neil Williams
On Wed, 8 Feb 2012 21:54:30 +1100
Russell Coker  wrote:

> On Wed, 8 Feb 2012, Neil Williams  wrote:
> > > Expecting that the compression gives the smallest file every time is 
> > > reasonable.
> > 
> > By a single byte - I've not seen file size changes beyond that range.
> 
> It's a matter of principle.  A compression program is supposed to reliably 
> compress data.

That doesn't mean to a specific size, the principle of "reliable
compression" means that you always get back the file you put in,
without compression causing losses or corruption. 

-- 


Neil Williams
=
http://www.linux.codehelp.co.uk/



pgp9pMVdVDcBr.pgp
Description: PGP signature


Re: Please test gzip -9n - related to dpkg with multiarch support

2012-02-08 Thread Russell Coker
On Wed, 8 Feb 2012, Neil Williams  wrote:
> > Expecting that the compression gives the smallest file every time is 
> > reasonable.
> 
> By a single byte - I've not seen file size changes beyond that range.

It's a matter of principle.  A compression program is supposed to reliably 
compress data.

-- 
My Main Blog http://etbe.coker.com.au/
My Documents Bloghttp://doc.coker.com.au/


-- 
To UNSUBSCRIBE, email to debian-devel-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/201202082154.31137.russ...@coker.com.au



Re: Please test gzip -9n - related to dpkg with multiarch support

2012-02-08 Thread Bernhard R. Link
* Lars Wirzenius  [120208 08:58]:
> On Tue, Feb 07, 2012 at 10:49:23PM +, Ben Hutchings wrote:
> > But it's worse than this: even if dpkg decompresses before comparing,
> > debsums won't (and mustn't, for backward compatibility).  So it's
> > potentially necessary to fix up the md5sums file for a package
> > installed for multiple architectures, if it contains a file that was
> > compressed differently.
>
> I'm uncomfortable with the idea of checking checksums only for
> uncompressed data. Compressed files have headers, and at least for
> some formats, it seems those headers can contain essentially
> arbitrary data. This allows compressed files to be modified in
> rather significant ways, without debsums noticing, if debsums
> uncompresses before comparing.

On the other hand most uncompressors silently ignore unexpected
data after end of file markers. So the compressed file is even more
easily tempered with (especially as debsums only stores md5 without
size and md5 does not include the size in the hash like the sha* do.
So if one can append arbitrary stuff, it is easy prey).

But the point is a bit moot, as debsums is not really useful for
security (if you modify files, why not modify the md5sums files, too?).

It is useful for reliability, as it checks for files being corrupted by
bad discs[1], bad memory[1], bad DMA controlers[1], ...

Bernhard R. Link

[1] Been there, got bitten, learned to love debsums.


-- 
To UNSUBSCRIBE, email to debian-devel-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20120208103337.gb28...@client.brlink.eu



Re: MATE Desktop Environment in Debian

2012-02-08 Thread Mehdi Dogguy

On 08/02/12 09:55, Josselin Mouette wrote:

Le mercredi 08 février 2012 à 00:53 +0100, Stefano Karapetsas a écrit
:

Many users are using it well. Now that this is enough stable, I
begun the process for ask the inclusion in Debian. The first
package is mate-common.
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=658783 (ITP)
http://lists.debian.org/debian-mentors/2012/02/msg00115.html (RFS)
With this mail I wish to have opinions and suggestions about our
work from Debian Developers.


MATE introduces a lot of code duplication, which is considered bad
in Debian, and is based on obsolete technologies - not just GTK2,
which will of course remain for a long time, but also things like
Bonobo which very few people really understand, and which are the
cause of a lot of not-well-understood bugs.



Maybe this could benefit to both parties if MATE team tries to reduce
usage of obsolete libraries to a bare minimum, and avoid using bug
monsters (like Bonobo and others). I guess this means a lot of work, but
that's the price to pay to ease its maintainability on the long term and
having it packaged within Debian. Did MATE team consider such a plan? If
yes, what was the outcome of the discussion?

Regards,

--
Mehdi


--
To UNSUBSCRIBE, email to debian-devel-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/4f325217.8050...@dogguy.org



Bug#659092: ITP: libapache2-mod-nss -- NSS-based SSL module for Apache2

2012-02-08 Thread Timo Aaltonen
Package: wnpp
Severity: wishlist
Owner: Timo Aaltonen 

* Package name: libapache2-mod-nss
  Version : 1.0.8
  Upstream Author : Red Hat, Inc.
* URL : http://directory.fedoraproject.org/sources/
* License : GPL-2, Apache-2.0
  Programming Lang: C
  Description : NSS-based SSL module for Apache2

 This Apache module provides strong cryptography for the Apache 2.0 webserver
 via the Secure Sockets Layer (SSL v2/v3) and Transport Layer Security (TLS
 v1) protocols by the help of the SSL/TLS implementation library NSS.



-- 
To UNSUBSCRIBE, email to debian-devel-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/20120208101956.10508.26345.reportbug@eldon.tyrell



Re: Please test gzip -9n - related to dpkg with multiarch support

2012-02-08 Thread Neil Williams
On Wed, 8 Feb 2012 02:52:52 +0200
Riku Voipio  wrote:

> If it turns out not reasonable to expect the compression results to be
> identical, we should probably look into using dpkg --path-exclude= with
> /usr/share/{doc,man,info}/* when installing foreign-architecture packages.

That would be a suitable alternative to decompression checksums.

It sounds like an implicit Replaces: on the same package of any other
architecture for Multi-Arch: same packages limited
to /usr/share/{doc,man,info}/*.

> Very few Multi-Arch: same packages need to install identical compressed
> files outside these directories. In case it happens, the package needs to 
> use multiarch paths or split files to -common package. 

It's not that ugly - with a few looks at the list of problematic files.
e.g. libslang2-dev, in common with a number of other -dev packages,
includes a few example files in the -dev instead of using a -doc
package. The compression of those files causes conflicts in the -dev
package, at which point creating a -doc package doesn't seem that bad
an idea. Other options would be to not compress example files when
packaged inside -dev packages - after all, if the example files are
large enough for a lack of compression to matter, the examples should
be in a -doc package.

http://people.debian.org/~jwilk/multi-arch/same-md5sums.txt

> The ugliness of this
> solution is that the "specialness" of /usr/share/doc and others needs to
> embedded into the package system somewhere.

Packages can use multiarch paths for their own files, but there are
currently 80 occurrences of changelog.Debian.gz in the list of
problematic files. dpkg needs to handle that, packages have no option.

I'm wondering if /usr/share/{doc,man,info}/* is the right pattern.
Maybe it really is just /usr/share/*.

After all, this is how cross/foreign architecture packages have
*always* been handled in Debian via dpkg-cross. Nothing in /usr/share/
matters for a cross package created by dpkg-cross (with the possible
exception of /usr/share/pkg-config which was always anachronistic). Some
template files are added but the package name includes the
architecture, so these files are effectively in multiarch paths.

There is nothing useful in /usr/share of a Multiarch: same package
when installed as foreign architecture package. Emdebian & dpkg-cross
have proved that by having nothing else until Multi-Arch. Anything you
might need is in the native architecture package, so the best thing to
do is widen the implicit exclusion to all of /usr/share in the incoming
Multi-Arch: same package.

In the list, the only listings in the above file which are not
in /usr/share do look like bugs:

usr/bin/kvirc
usr/bin/croco-0.6-config
usr/bin/croco-0.6-config
usr/include/dspam/auto-config.h
usr/include/isl/stdint.h
usr/bin/magics-config
usr/include/OGRE/OgreBuildSettings.h
usr/include/pci/config.h
usr/lib/pkgconfig/popt.pc
usr/bin/ppl_pl
usr/bin/ppl-config
usr/include/ppl.hh
usr/include/ppl_c.h
usr/bin/ppl-config
usr/include/ppl.hh
usr/include/ppl_c.h
usr/lib/sasl2/berkeley_db.txt
usr/lib/libwrap.a
usr/include/XdmfConfig.h
usr/bin/whiptail

usr/lib/pkgconfig/popt.pc - needs to be a multiarch path
usr/bin/* is just wrong - bug reports invited.

usr/include/* means that the package concerned needs to use a multiarch
path for that include file(s).

That leaves:
usr/lib/sasl2/berkeley_db.txt
usr/lib/libwrap.a

.a files need multiarch paths, clearly.

So, apart from /usr/share which I can't see as important for
Multi-Arch: same packages, the list of remaining conflicts are bugs and
the gzip bug doesn't matter anymore.

-- 


Neil Williams
=
http://www.linux.codehelp.co.uk/



pgpJi9fyRhNvc.pgp
Description: PGP signature


Re: Doesn't contain source for waf binary code

2012-02-08 Thread Alexander Reichle-Schmehl
Hi!

Am 08.02.2012 09:02, schrieb Jon Dowland:
> Do we have any idea how many packages in Debian currently use waf?

Well, we opened about 55 bugs see
http://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=waf-unpack;users=ftpmas...@debian.org

(The list was created by searching for "waf" files in all source packages.)

However, in some package it just seems to have been leftover, and
upstream already changed to an other build system.

> Is waf growing in popularity?

I have no idea, but I'm not really sure if it's a good idea to remove
samba either...


Best regards,
  Alexander


-- 
To UNSUBSCRIBE, email to debian-devel-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/4f3244a1.6030...@schmehl.info



Re: Please test gzip -9n - related to dpkg with multiarch support

2012-02-08 Thread Neil Williams
On Wed, 8 Feb 2012 12:05:44 +1100
Russell Coker  wrote:

> On Wed, 8 Feb 2012, Riku Voipio  wrote:
> > If it turns out not reasonable to expect the compression results to be
> > identical
> 
> It was reported that sometimes the size differs. Surely if nothing else 
> having gzip sometimes produce an unnecessarily large file is a bug!
> 
> Expecting that the compression gives the smallest file every time is 
> reasonable.

By a single byte - I've not seen file size changes beyond that range.

-- 


Neil Williams
=
http://www.linux.codehelp.co.uk/



pgp5AJFMdTw76.pgp
Description: PGP signature


Re: MATE Desktop Environment in Debian

2012-02-08 Thread Josselin Mouette
Le mercredi 08 février 2012 à 00:53 +0100, Stefano Karapetsas a écrit : 
> Many users are using it well. Now that this is enough stable, I begun 
> the process for ask the inclusion in Debian.
> The first package is mate-common.
> http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=658783 (ITP)
> http://lists.debian.org/debian-mentors/2012/02/msg00115.html (RFS)
> With this mail I wish to have opinions and suggestions about our work 
> from Debian Developers.

MATE introduces a lot of code duplication, which is considered bad in
Debian, and is based on obsolete technologies - not just GTK2, which
will of course remain for a long time, but also things like Bonobo which
very few people really understand, and which are the cause of a lot of
not-well-understood bugs.

For these reasons I object to having MATE in Debian. OTOH I invite you
to contribute to GNOME 3 packaging to make it look great and fix
remaining regressions.
I am of course not the one to decide whether your packages can be
accepted; the FTP masters will.

Cheers,
-- 
 .''`.  Josselin Mouette
: :' :
`. `'
  `-


--
To UNSUBSCRIBE, email to debian-devel-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/1328691338.3202.364.camel@pi0307572



Re: Doesn't contain source for waf binary code

2012-02-08 Thread Jon Dowland
Do we have any idea how many packages in Debian currently use waf?

Is waf growing in popularity?

After reading [1] I get the impression it should die and we should
try to hasten that outcome.


[1] http://lists.debian.org/debian-devel/2010/02/msg00714.html

-- 
Jon Dowland


-- 
To UNSUBSCRIBE, email to debian-devel-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20120208080237.GD29150@debian