[Nix-dev] Re: nix-env doesn't realize there is a Wine update

Peter Simons simons at cryp.to
Thu Aug 5 12:12:04 CEST 2010


Hi Eelco,

 >> Wine was recently updated from version 1.2-rc1 to 1.2-rc7. On 32-bit
 >> Linux, running
 >>
 >>   nix-env -u \*
 >>
 >> notices that and performs the update. On 64-bit Linux, however, it
 >> doesn't. No update is performed.
 >>
 >> Is that behavior intentional?
 >
 > Sort of. Wine is built for i686-linux, so it's ignored by default on
 > x86_64-linux (e.g. it doesn't show up when you do "nix-env -qa wine"
 > either). You can override this by using the option "--system-filter
 > '*'".

I can't say that I'm a big fan of that --system-filter mechanism. The
behavior with regard to WINE is really counter-intuitive.


 > I have an uncommitted patch that makes this the default:
 >
 > Index: src/nix-env/nix-env.cc
 > ===================================================================
 > --- src/nix-env/nix-env.cc      (revision 22376)
 > +++ src/nix-env/nix-env.cc      (working copy)
 > @@ -1230,7 +1230,7 @@
 >
 >      globals.instSource.type = srcUnknown;
 >      globals.instSource.nixExprPath = getDefNixExprPath();
 > -    globals.instSource.systemFilter = thisSystem;
 > +    globals.instSource.systemFilter = "*";
 >
 >      globals.dryRun = false;
 >      globals.preserveInstalled = false;

Do you plan to commit that patch to nix-env.cc?

Take care,
Peter




More information about the nix-dev mailing list