[pypy-issue] Issue #3125: Logical error in detecting dirent.d_type (pypy/pypy)

2019-12-03 Thread Игорь Пашев
New issue 3125: Logical error in detecting dirent.d_type
https://bitbucket.org/pypy/pypy/issues/3125/logical-error-in-detecting-direntd_type

Игорь Пашев:

Hi guys! I am porting Debian’s package pypy to Dyson which is Debian on illumos 
kernel and, so far, libc. Its dirent structure does not have `d_type` field, 
but for sure has `d_name`. And when I am building pypy I am getting this error:

```
[translation:ERROR] AttributeError:  instance has no 
field 'c_d_name'
 
Processing block:   

 
 block@61[rewind_0...] is a

 
 in (rpython.rlib.rposix:833)_listdir   

 
 containing the following operations:   

 
   v831 = getattr(direntp_0, ('c_d_name'))  

 
   namep_0 = simple_call((function force_cast), (Ptr arrayPtr), v831)   

 
   name_5 = simple_call((function charp2str), namep_0)  

 
   v832 = ne(name_5, ('.')) 

 
   v833 = bool(v832)

 
 --end--
 
```

‌

Looking at this code in rpython/rlib/rposix.py… well after hard time debugging 
:\)… I have found a logical error:

```python
if not _WIN32:
class CConfig:
_compilation_info_ = eci
DIRENT = rffi_platform.Struct('struct dirent',
[('d_name', lltype.FixedSizeArray(rffi.CHAR, 1)),
 ('d_ino', lltype.Signed)]
+ [('d_type', rffi.INT)] if HAVE_D_TYPE else [])
if HAVE_D_TYPE:
DT_UNKNOWN = rffi_platform.ConstantInteger('DT_UNKNOWN')
DT_REG = rffi_platform.ConstantInteger('DT_REG')
DT_DIR = rffi_platform.ConstantInteger('DT_DIR')
DT_LNK = rffi_platform.ConstantInteger('DT_LNK')

DIRP = rffi.COpaquePtr('DIR')
dirent_config = rffi_platform.configure(CConfig)
```

Guess what! :\)

Yes, if `HAVE_D_TYPE` is `False`, we get empty list, without `d_name`, `d_ino`.


___
pypy-issue mailing list
pypy-issue@python.org
https://mail.python.org/mailman/listinfo/pypy-issue


Packaging Sproxy2

2017-09-22 Thread Игорь Пашев
Hi guys, I'm on my way to package https://hackage.haskell.org/package/sproxy2

Actually it's an excuse for learning Debian's Haskell ecosystem :)

So far I have added few dependencies missed in current DHG collection:
you can find them at http://cgit.osdyson.org/pkg-haskell/DHG_packages.git/log/

Would you mind reviewing and eventually pulling those additions?

Please CC me.



Re: When do we update the homepage to a modern design? (was Re: Moving away from (unsupportable) FusionForge on Alioth)

2017-05-16 Thread Игорь Пашев
2017-05-15 13:12 GMT+03:00 lumin :
> Especially look at the homepage of Gentoo


It's ugly, seriously.



Re: [Maria-discuss] Cross compile error

2017-05-16 Thread Игорь Пашев
I found this: https://forum.lede-project.org/t/solved-mariadb-mysql-update/2337

Marked as solved :)

2017-03-25 18:52 GMT+03:00 Lucian Cristian :
> Hi
>
> I'm trying to cross compile (any 10.* versions) using musl and uClibc++ for
> a LEDE/Openwrt system and I have problems with these errors:
>
>
> staging_dir/target-x86_64_musl/usr/include/uClibc++/associative_base:444:8:
> error: 'void std::__base_associative Allocator>::swap(std::__base_associative Allocator>&) [with Key = dict_foreign_t*; ValueType = dict_foreign_t*;
> Compare = dict_foreign_compare; Allocator = ut_allocator]'
> is protected
>void __base_associative Allocator>::swap(__base_associative& m)
> ^
> build_dir/target-x86_64_musl/mariadb-10.2.4/storage/innobase/dict/dict0dict.cc:1996:32:
> error: within this context
>   table->foreign_set.swap(fk_set);
> ^
> storage/innobase/CMakeFiles/innobase.dir/build.make:542: recipe for target
> 'storage/innobase/CMakeFiles/innobase.dir/dict/dict0dict.cc.o' failed
>
>
>
> staging_dir/target-x86_64_musl/usr/include/uClibc++/map: In instantiation of
> 'std::map::reference std::map Allocator>::operator[](const key_type&) [with Key = const char*; T =
> dict_index_t*; Compare = ut_strcmp_functor; Allocator =
> ut_allocator; std::map Compare, Allocator>::reference = std::pair&;
> std::map::key_type = const char*]':
> build_dir/target-x86_64_musl/mariadb-10.2.4/storage/innobase/dict/dict0stats.cc:2518:22:
> required from here
> staging_dir/target-x86_64_musl/usr/include/uClibc++/map:143:13: error:
> invalid initialization of reference of type 'std::map dict_index_t*, ut_strcmp_functor, ut_allocator > >::reference {aka std::pair&}'
> from expression of type 'dict_index_t*'
>return i->second;
>  ^
> storage/innobase/CMakeFiles/innobase.dir/build.make:614: recipe for target
> 'storage/innobase/CMakeFiles/innobase.dir/dict/dict0stats.cc.o' failed
>
>
>
> build_dir/target-x86_64_musl/mariadb-10.2.4/plugin/handler_socket/handlersocket/hstcpsvr.cpp:
> In constructor 'dena::hstcpsvr::hstcpsvr(const dena::config&)':
> build_dir/target-x86_64_musl/mariadb-10.2.4/plugin/handler_socket/handlersocket/hstcpsvr.cpp:92:37:
> error: invalid initialization of non-const reference of type
> 'std::auto_ptr&' from an rvalue of type
> 'dena::database_ptr {aka std::auto_ptr}'
>cshared.dbptr = database_i::create(c);
>  ^
> In file included from
> staging_dir/target-x86_64_musl/usr/include/uClibc++/vector:22:0,
>  from
> build_dir/target-x86_64_musl/mariadb-10.2.4/plugin/handler_socket/handlersocket/hstcpsvr.cpp:12:
> staging_dir/target-x86_64_musl/usr/include/uClibc++/memory:137:12: note:
> initializing argument 1 of 'std::auto_ptr&
> std::auto_ptr::operator=(std::auto_ptr&) [with T = volatile
> dena::database_i]'
>   auto_ptr& operator=(auto_ptr& p) throw(){
> ^
> plugin/handler_socket/CMakeFiles/handlersocket.dir/build.make:134: recipe
> for target
> 'plugin/handler_socket/CMakeFiles/handlersocket.dir/handlersocket/hstcpsvr.cpp.o'
> failed
> make[5]: ***
> [plugin/handler_socket/CMakeFiles/handlersocket.dir/handlersocket/hstcpsvr.cpp.o]
> Error 1
>
>
> this is the command line
>
> (cd /build_dir/target-x86_64_musl/mariadb-10.2.4; CFLAGS="-Os -pipe
> -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable
> -Wno-error=unused-result
> -iremap/build_dir/target-x86_64_musl/mariadb-10.2.4:mariadb-10.2.4 -Wformat
> -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now
> -Wl,-z,relro -fpic " CXXFLAGS="-Os -pipe -fno-caller-saves -fno-plt
> -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result
> -iremap/build_dir/target-x86_64_musl/mariadb-10.2.4:mariadb-10.2.4 -Wformat
> -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now
> -Wl,-z,relro -fpic " LDFLAGS="-L/staging_dir/target-x86_64_musl/usr/lib
> -L/staging_dir/target-x86_64_musl/lib
> -L/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/usr/lib
> -L/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/lib -znow -zrelro " cmake
> -DCMAKE_SYSTEM_NAME=Linux -DCMAKE_SYSTEM_VERSION=1
> -DCMAKE_SYSTEM_PROCESSOR=x86_64 -DCMAKE_BUILD_TYPE=Release
> -DCMAKE_C_FLAGS_RELEASE="-DNDEBUG" -DCMAKE_CXX_FLAGS_RELEASE="-DNDEBUG"
> -DCMAKE_C_COMPILER="/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/bin/x86_64-openwrt-linux-musl-gcc"
> -DCMAKE_C_COMPILER_ARG1=""
> -DCMAKE_CXX_COMPILER="/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/bin/g++-uc"
> -DCMAKE_CXX_COMPILER_ARG1=""
> -DCMAKE_ASM_COMPILER="/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/bin/x86_64-openwrt-linux-musl-gcc"
> -DCMAKE_ASM_COMPILER_ARG1=""
> 

Re: [Maria-discuss] MySQL Workbench Fork?

2017-05-07 Thread Игорь Пашев
2017-05-04 10:04 GMT+03:00 Bruce Carlson :
> In the 21st century

It's all about automation, reproducibility, declarative deployment and
neural networks (of course!) :)

___
Mailing list: https://launchpad.net/~maria-discuss
Post to : maria-discuss@lists.launchpad.net
Unsubscribe : https://launchpad.net/~maria-discuss
More help   : https://help.launchpad.net/ListHelp


Re: [Nix-dev] Typing nix − funding campaign

2017-01-17 Thread Игорь Пашев
2017-01-12 16:51 GMT+03:00 Marc Weber :
> Have you never debugged a "got x but y expected" problem? The typesystem
> is there, its just lazy as nix is - typed on evaluation.


This is nothing. Haskell is typed on evaluation too. Nix is an
interpreter, not a compiler :)
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


[Nix-dev] OpenLDAP config from scratch

2016-12-15 Thread Игорь Пашев
Does somebody run OpenLDAP [1] with config dir (not file)?

I'm wondering about minimal configuration.

[1] 
https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/services/databases/openldap.nix
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] Usability: Nixpkg > NixOS

2016-12-15 Thread Игорь Пашев
2016-12-15 16:03 GMT+03:00 Mark Gardner :
> Starting with nixpkg and then talking about NixOS causes the same problem
> but in reverse. As an example, I came to the Nix community as the result of
> NixOS, not nixpkg. I am not sure I would have been attracted to the
> community if nixpkg was the entry point.



Start from Nix! Nix is all about `derivation` which run a script and
saves its output under /nix/store/x...zz.
It automatically runs other referenced `derivations` and saves them
accordingly. So you can build a file, a directory, a python
environment, or an entire operating system (a directory with root dir,
initrd, linux kernel - all produced by their `derivations`)

:D
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] X11 rtkit.service and failing nixos-rebuild

2016-11-29 Thread Игорь Пашев
Something happens at line 58 of this file, that lacks permissions. E. g.
execute, delete or even read.

29 нояб. 2016 г. 14:23 пользователь "Ruben Astudillo" 
написал:

> Hi all
>
> On nixos-16.09, in two different machines, the nixos-rebuild test
> command fails with the following error
>
> cannot open
> `/nix/store/cjj8nc08bc799w4c6a4lw7r2z25q2jya-xorg-server-1.18.3/share/
> X11/xkb/compiled/systemd-private-0bc0e7c988b74d5ba0c9927a957479
> 99-rtkit-daemon.service-iJMQaO':
> Permission denied at
> /nix/store/9g4wc31j7a2xp22xpgwr0qssfxahxdzl-builder.pl line 58.
>
> checking such file, it doesn't seem different in permissions than the
> rest of them. Anybody with a similar experience on recent builds?
>
> --
> -- Ruben
> ___
> nix-dev mailing list
> nix-dev@lists.science.uu.nl
> http://lists.science.uu.nl/mailman/listinfo/nix-dev
>
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] Make either 'bin' or 'out' the first output.

2016-11-16 Thread Игорь Пашев
Re: 
https://github.com/NixOS/nixpkgs/commit/a17216af4c82dbeb33030355664d96875558f7ac


I'm not sure if this is indented, but with those changes
"mariadb.client == mariadb.client.bin"

And if you need the library you have to write "mariadb.client.out"

And "compat." hack ("mariadb.lib = mariacb.client") does not do anything useful.

Shouldn't the rest of mariadb.client go into mariadb.client.lib?
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Maria-developers] Deleting unused branches on github

2016-11-10 Thread Игорь Пашев
2016-11-07 20:59 GMT+03:00 Vicențiu Ciorbaru :
> I'm wondering if it makes sense to have an automatic cleanup process for
> branches older than X months?


After few months / clock glitch it _could_ drop the entire repo :D

I encourage people to use personal forks. Not merged -> does not exist.

___
Mailing list: https://launchpad.net/~maria-developers
Post to : maria-developers@lists.launchpad.net
Unsubscribe : https://launchpad.net/~maria-developers
More help   : https://help.launchpad.net/ListHelp


Re: [Maria-discuss] on stored procedures

2016-11-08 Thread Игорь Пашев
2016-11-07 18:43 GMT+03:00 Sergei Golubchik :
> Hi, Federico!
>
> On Nov 07, Federico Razzoli wrote:
>> Some good points from Bill Karwin:
>> https://www.quora.com/What-are-the-reasons-not-to-use-or-not-use-stored-procedures/answer/Bill-Karwin
>
> Thanks.
>
> These are valid points, and some of them are related.
> For example, "does not have a rich library of functions or standard
> procedures" that follows from "does not support packages".
> Which might be fixed in https://jira.mariadb.org/browse/MDEV-10591
>
> External languages for stored procedures - that's a very cool feature,
> and patches exist for many years. But, apparently, it's more cool than
> practically useful? There were almost no requests for it, not when I was
> in MySQL, not in MariaDB. And, frankly, I do not know why, this looks
> insanely useful to me.

I value stored procedures only for maintenance tasks and only in the `mysql` DB.
Anything else is PITA :)

___
Mailing list: https://launchpad.net/~maria-discuss
Post to : maria-discuss@lists.launchpad.net
Unsubscribe : https://launchpad.net/~maria-discuss
More help   : https://help.launchpad.net/ListHelp


Re: [Nix-dev] Override php xslSupport config option

2016-11-01 Thread Игорь Пашев
Last time it didn't work for me :)

01 нояб. 2016 г. 22:56 пользователь "4levels" <4lev...@gmail.com> написал:

> Hi all,
>
> seems like
>
> nixpkgs.config.php.xsl = true;
>
> is all I needed to add to my NixOps deploy expression.. great!
> This triggered the download of the php sources (as well as libxslt) and
> PHP is being built with xsl support..
>
> I knew I was overlooking something obvious ;-)
>
> Kind regards,
>
> Erik
>
> On Tue, Nov 1, 2016 at 4:22 PM 4levels <4lev...@gmail.com> wrote:
>
>> Hi all,
>>
>> I tried the other way as mentioned in the Wiki as follows:
>>
>> nixpkgs.config.packageOverrides = pkgs: rec {
>>   php56 = pkgs.stdenv.lib.overrideDerivation pkgs.php56 (oldAttrs: {
>> cfg.xslSupport = true;
>>   });
>> };
>>
>> But this results in *error: cannot coerce a set to a string* in the php
>> default.nix file on line 18, which is the line where the version is
>> specified.  I'm clearly missing something obvious here (again) so still no
>> luck.
>>
>> Thanks for your support!
>>
>> Erik
>>
>> On Tue, Nov 1, 2016 at 2:35 PM 4levels <4lev...@gmail.com> wrote:
>>
>> Hi all,
>>
>> I've managed to at least fix the build errors by adding the following
>> (after reading the Wiki on package overrides here https://nixos.org/wiki/
>> Nix_Modifying_Packages#Overriding_Existing_Packages
>>
>> So the nixops deploy command succeeds, but unfortunately still no xsl
>> support in PHP
>>
>> I currently have the following:
>>
>> nixpkgs.config.packageOverrides = pkgs: rec {
>>   php56 = pkgs.php56.override {
>> config = {
>>   xslSupport = true;
>> };
>>   };
>> };
>>
>>
>>
>> On Tue, Nov 1, 2016 at 2:21 PM 4levels <4lev...@gmail.com> wrote:
>>
>> Hi Devs,
>>
>> thanks for the info!
>> However I'm struggling to get this in my NixOps config, my expression
>> keeps failing as I'm probably doing it all wrong since I have no experience
>> with packageOverrides.
>>
>> Can you provide an example (or link to one) where I can see this
>> mechanism work?
>>
>> This is what I currently have (excerpt):
>>
>> environment.systemPackages = with pkgs; [
>>   wget
>>   unzip
>>   gitMinimal
>>   tmux
>>   mariadb
>>   php56
>>   duplicity
>>   nodejs
>>   redis
>>   php56Packages.apcu
>>   php56Packages.composer
>>   php56Packages.redis
>>   certbot
>>   sysstat
>>   iotop
>> ];
>>
>> nixpkgs.config.packageOverrides = php56:
>>   php56.merge {
>> cfg = {
>>   xslSupport = true;
>> };
>>   };
>> }
>>
>>
>> On Sun, Oct 30, 2016 at 8:06 PM Jookia <166...@gmail.com> wrote:
>>
>> On Sun, Oct 30, 2016 at 09:59:20PM +0300, Игорь Пашев wrote:
>> > Something like this:
>> >
>> > { php70 }: php70.merge {
>> >   cfg = {
>> > apxs2Support = false;
>> > ldapSupport = false;
>> > mssqlSupport = false;
>> > pdo_pgsqlSupport = false;
>> > postgresqlSupport = false;
>> > sqliteSupport = false;
>> > xslSupport = false;
>> >   };
>> > }
>> >
>> > Use this with nixpkgs.config.packageOverrides
>>
>> It's really obscure how to use these old-timey .merge{} operations. Maybe
>> it
>> should be documented somewhere or finally replaced with proper overrides?
>>
>>
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] Override php xslSupport config option

2016-10-30 Thread Игорь Пашев
Something like this:

{ php70 }: php70.merge {
  cfg = {
apxs2Support = false;
ldapSupport = false;
mssqlSupport = false;
pdo_pgsqlSupport = false;
postgresqlSupport = false;
sqliteSupport = false;
xslSupport = false;
  };
}

Use this with nixpkgs.config.packageOverrides

2016-10-30 18:00 GMT+03:00 4levels <4lev...@gmail.com>:
> Hi Nix Devs,
>
> I must be overlooking something obvious here, but I'm failing to enable XSL
> support in PHP.  In this file
> https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/interpreters/php/default.nix
> I see there is a config option cfg.xslSupport which defaults to false.
>
> How can I set this option to true so PHP is built with xsl support?
>
> Kind regards,
>
> Erik
>
> ___
> nix-dev mailing list
> nix-dev@lists.science.uu.nl
> http://lists.science.uu.nl/mailman/listinfo/nix-dev
>
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Maria-discuss] Minor version upgrades across a cluster

2016-10-27 Thread Игорь Пашев
2016-10-26 16:58 GMT+03:00 Craig Bailey :
> We have a three node MariaDB Galera cluster on version 10.1.14 an we would
> like to upgrade to 10.1.18. Our approach to this was to offline a node
> upgrade it and then add it back to the cluster and allow it to do an IST to
> catch up (rinse and repeat for other two nodes).
>
>
>
> However this would mean that we will have a period of time where nodes in
> the cluster will be on different minor versions, is this safe, or will it
> possibly cause some kind of data corruption or crash?


I'd not anticipate any troubles. You can rehearse it. Also reading
change log is worthwhile.

___
Mailing list: https://launchpad.net/~maria-discuss
Post to : maria-discuss@lists.launchpad.net
Unsubscribe : https://launchpad.net/~maria-discuss
More help   : https://help.launchpad.net/ListHelp


Re: [Nix-dev] Convert sha1 from base64 into "normal" string

2016-10-13 Thread Игорь Пашев
2016-10-13 10:21 GMT+03:00 zimbatm :
> My understanding of fetchurl is that the hash can be both in hex and base64
> formats no?


No :-) It probably should be extended to support base64. And/or base64
support should be in the library, or in nix builtins. But at this time
I can't wait.
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] How to make "gcc -static ..." work

2016-10-12 Thread Игорь Пашев
It requires libc.a Maybe you have to add glibc into the environment.
This will work only if glibc is built with static library support, or
you are able to alter it.

2016-10-12 16:24 GMT+03:00 Bjørn Forsman :
> Hi all,
>
> On Ubuntu, I can compile static binaries with "gcc -static foo.c". But on 
> NixOS:
>
> $ nix-shell -p gcc
> $ gcc -static foo.c
> /nix/store/nm9r5lymydnsrlxjn30ym2kix6mbyr19-binutils-2.27/bin/ld:
> cannot find -lc
> collect2: error: ld returned 1 exit status
>
> How to fix it?
>
> Things I tried:
>
> * Googling "nixpkgs static gcc". Found nothing.
>
> * Grepping the nixpkgs tree, hoping to see stdenvStatic or something.
> Found reference to dontDisableStatic for autotools packages. (Do I
> have to rebuild GCC for static linking?)
>
> * Looked in the NixOS and nixpkgs manual. Found references to static
> Haskell binaries, but not for plain old C.
>
> Best regards,
> Bjørn Forsman
> ___
> nix-dev mailing list
> nix-dev@lists.science.uu.nl
> http://lists.science.uu.nl/mailman/listinfo/nix-dev
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


[Nix-dev] PoC: keys in XML files

2016-10-11 Thread Игорь Пашев
Most of Java apps use XML file to store configuration.
The idea is to keep this interface instead of multiple yet
limited number of options, complete set of which you may never know.
Especially with plugins ;-)

So if an app wants XML, it gets it. But since they may include secrets,
we need to deal with that. And the answer is XInclude.

Some apps may support XInclude, others need runtime support (xmllint
--xinclude ...). Anyway, we just write XML files, and extract keys, if
any, at nix evaluation time.

See example for Jenkins:
https://github.com/zalora/nixsap/commit/83e08fdb873016154c2880265b6e08ec653af644
(extracting keys)
https://github.com/zalora/nixsap/commit/1a4d734a4110a05e08b88b539b7ea4939d2d1c36
(Jenkins app)
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] Convert sha1 from base64 into "normal" string

2016-10-11 Thread Игорь Пашев
You must be wondering why :-)

https://github.com/zalora/nixsap/commit/592dee8bef92debede3724bf5ddbf8249c30c488
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] Convert sha1 from base64 into "normal" string

2016-10-11 Thread Игорь Пашев
Updated to fix padding
https://gist.github.com/ip1981/35b660779ad6935338ca5d09bc2f9fca

strBase64:

let

  inherit (builtins)
concatStringsSep genList stringLength substring trace ;

  base64 = {
# n=0; for l in {A..Z} {a..z} {0..9} + /; do printf '"%s" = %2s; '
$l $n; (( n++ )); (( n % 8 )) || echo; done
"A" =  0; "B" =  1; "C" =  2; "D" =  3; "E" =  4; "F" =  5; "G" =
6; "H" =  7;
"I" =  8; "J" =  9; "K" = 10; "L" = 11; "M" = 12; "N" = 13; "O" =
14; "P" = 15;
"Q" = 16; "R" = 17; "S" = 18; "T" = 19; "U" = 20; "V" = 21; "W" =
22; "X" = 23;
"Y" = 24; "Z" = 25; "a" = 26; "b" = 27; "c" = 28; "d" = 29; "e" =
30; "f" = 31;
"g" = 32; "h" = 33; "i" = 34; "j" = 35; "k" = 36; "l" = 37; "m" =
38; "n" = 39;
"o" = 40; "p" = 41; "q" = 42; "r" = 43; "s" = 44; "t" = 45; "u" =
46; "v" = 47;
"w" = 48; "x" = 49; "y" = 50; "z" = 51; "0" = 52; "1" = 53; "2" =
54; "3" = 55;
"4" = 56; "5" = 57; "6" = 58; "7" = 59; "8" = 60; "9" = 61; "+" =
62; "/" = 63;
  };

  quartet_to_int24 = q:
# https://en.wikipedia.org/wiki/Base64
let
  s = n: assert (stringLength q == 4); substring (3 - n) 1 q;
  d = n: base64.${s n};
in if s 0 != "=" then
64 * (64 * (64 * (d 3) + (d 2)) + (d 1)) + (d 0)
  else if s 1 != "=" then
64 * (64 * (64 * (d 3) + (d 2)) + (d 1)) / 256 # right shift by 8 bits
  else
64 * (64 * (64 * (d 3) + (d 2))) / 65536 # right shift by 16 bits
  ;

  int24_to_hex = i: # 16777215 (0xFF, 2^24-1) max
let
  hex = "0123456789abcdef";
  toHex = n:
let
  d = n / 16;
  r = n - 16 * d;
in "${if d != 0 then toHex d else ""}${substring r 1 hex}";
in assert (0 <= i && i <= 16777215); toHex i;

  quartets = s:
let
  l = stringLength s;
  h = substring 0 4 s;
  t = substring 4 (l - 4) s;
in [h] ++ (if t != "" then quartets t else []);


  quartet_to_hex = q: # base64 quartet into hex with padding
let
  i = quartet_to_int24 q;
  h = int24_to_hex i;
  s = if substring 2 1 q == "=" then 1
  else if substring 3 1 q == "=" then 2
  else 3; # number of bytes
  w = s * 2; # number of hexadecimal digits
  filler = concatStringsSep "" (genList (_: "0") (w - stringLength h));
in "${filler}${h}";

/*

  FIXME: usage of library functions like concatMapString
  causes very cryptic errors:

  # nix-instantiate --eval --expr 'import ./fromBase64.nix
"kjOzmCPxyw0bPciMsGSh5q+bT9g="' --show-trace
  error: while evaluating anonymous function at
.../fromBase64.nix:1:1, called from (string):1:18:
  value is a function while a set was expected, at .../fromBase64.nix:3:4

*/

in concatStringsSep "" (map quartet_to_hex (quartets strBase64))


2016-10-11 14:53 GMT+03:00 Игорь Пашев <pashev.i...@gmail.com>:
> Draft:
>
> # nix-instantiate --eval --expr 'import ./fromBase64.nix
> "kjOzmCPxyw0bPciMsGSh5q+bT9g=" ==
> "9233b39823f1cb0d1b3dc88cb064a1e6af9b4fd8"' --show-trace
> true
>
> ./fromBase64.nix:
>
>
> strBase64:
>
> let
>
>   inherit (builtins) concatStringsSep stringLength substring ;
>
>   base64 = {
> # n=0; for l in {A..Z} {a..z} {0..9} + /; do printf '"%s" = %2s; '
> $l $n; (( n++ )); (( n % 8 )) || echo; done
> "A" =  0; "B" =  1; "C" =  2; "D" =  3; "E" =  4; "F" =  5; "G" =
> 6; "H" =  7;
> "I" =  8; "J" =  9; "K" = 10; "L" = 11; "M" = 12; "N" = 13; "O" =
> 14; "P" = 15;
> "Q" = 16; "R" = 17; "S" = 18; "T" = 19; "U" = 20; "V" = 21; "W" =
> 22; "X" = 23;
> "Y" = 24; "Z" = 25; "a" = 26; "b" = 27; "c" = 28; "d" = 29; "e" =
> 30; "f" = 31;
> "g" = 32; "h" = 33; "i" = 34; "j" = 35; "k" = 36; "l" = 37; "m" =
> 38; "n" = 39;
> &

Re: [Nix-dev] recursiveUpdate for lists

2016-10-11 Thread Игорь Пашев
2016-10-11 16:44 GMT+03:00 Tomasz Czyż :
> Basically I created simple wrapper function to create systemd services.
>
> The function produces something like
>
> {
>   my-service={
> requires=["service1.service"];
>   };
> }
>
> I want to customize it after with recursiveUpdate function, I want to merge
> it with
>
> {
>   my-service={
> requires=["some-other.service"]
>   };
> }
>
> I tried to avoid module stuff as in that case if I understand correctly I
> need to prepare my description of systemd service on top of standard nix
> systemd config structures which is probably big waste.
>
> What do you think?


I don't think it's a waste :-)

I'd and I really go with modules, because it's clean:


options = {
 # you options, like attrsOf str
};

config = {
 systemd.services = ... # here you map your options (merged for you
already!) to systemd options.
};

And, apparently, existing modules already do merge for you:
https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/system/boot/systemd-unit-options.nix#L86
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] recursiveUpdate for lists

2016-10-11 Thread Игорь Пашев
Something like https://github.com/NixOS/nixpkgs/blob/master/lib/types.nix#L117 ?

I don't know what you are dealing with, but probably you could
delegate it to modules.

2016-10-11 16:00 GMT+03:00 Tomasz Czyż :
> Hi,
>
> I'm using recursiveUpdate to merge some attribute sets to construct
> configurations.
>
> Does anyone know similar function but which also merges lists?
> recursiveUpdate just overrides list from the lastest attribute instead of
> merging (list it does for attributes).
>
> Tom
>
> ___
> nix-dev mailing list
> nix-dev@lists.science.uu.nl
> http://lists.science.uu.nl/mailman/listinfo/nix-dev
>
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] Convert sha1 from base64 into "normal" string

2016-10-11 Thread Игорь Пашев
Draft:

# nix-instantiate --eval --expr 'import ./fromBase64.nix
"kjOzmCPxyw0bPciMsGSh5q+bT9g=" ==
"9233b39823f1cb0d1b3dc88cb064a1e6af9b4fd8"' --show-trace
true

./fromBase64.nix:


strBase64:

let

  inherit (builtins) concatStringsSep stringLength substring ;

  base64 = {
# n=0; for l in {A..Z} {a..z} {0..9} + /; do printf '"%s" = %2s; '
$l $n; (( n++ )); (( n % 8 )) || echo; done
"A" =  0; "B" =  1; "C" =  2; "D" =  3; "E" =  4; "F" =  5; "G" =
6; "H" =  7;
"I" =  8; "J" =  9; "K" = 10; "L" = 11; "M" = 12; "N" = 13; "O" =
14; "P" = 15;
"Q" = 16; "R" = 17; "S" = 18; "T" = 19; "U" = 20; "V" = 21; "W" =
22; "X" = 23;
"Y" = 24; "Z" = 25; "a" = 26; "b" = 27; "c" = 28; "d" = 29; "e" =
30; "f" = 31;
"g" = 32; "h" = 33; "i" = 34; "j" = 35; "k" = 36; "l" = 37; "m" =
38; "n" = 39;
"o" = 40; "p" = 41; "q" = 42; "r" = 43; "s" = 44; "t" = 45; "u" =
46; "v" = 47;
"w" = 48; "x" = 49; "y" = 50; "z" = 51; "0" = 52; "1" = 53; "2" =
54; "3" = 55;
"4" = 56; "5" = 57; "6" = 58; "7" = 59; "8" = 60; "9" = 61; "+" =
62; "/" = 63;
  };

  quartet_to_int24 = q:
# https://en.wikipedia.org/wiki/Base64
let
  s = n: assert (stringLength q == 4); substring (3 - n) 1 q;
  d = n: base64.${s n};
in if s 0 != "=" then
64 * (64 * (64 * (d 3) + (d 2)) + (d 1)) + (d 0)
  else if s 1 != "=" then
64 * (64 * (64 * (d 3) + (d 2)) + (d 1)) / 256 # right shift by 8 bits
  else
64 * (64 * (64 * (d 3) + (d 2))) / 65536 # right shift by 16 bits
  ;

  int24_to_hex = i: # 16777215 (0xFF, 2^24-1) max
let
  hex = "0123456789abcdef";
  toHex = n:
let
  d = n / 16;
  r = n - 16 * d;
in "${if d != 0 then toHex d else ""}${substring r 1 hex}";
in assert (0 <= i && i <= 16777215); toHex i;

  quartets = s:
let
  l = stringLength s;
  h = substring 0 4 s;
  t = substring 4 (l - 4) s;
in [h] ++ (if t != "" then quartets t else []);

/*

  FIXME: usage of library functions like concatMapString
  causes very cryptic errors:

  # nix-instantiate --eval --expr 'import ./fromBase64.nix
"kjOzmCPxyw0bPciMsGSh5q+bT9g="' --show-trace
  error: while evaluating anonymous function at
.../fromBase64.nix:1:1, called from (string):1:18:
  value is a function while a set was expected, at .../fromBase64.nix:3:4

*/

in concatStringsSep "" (map (x: int24_to_hex (quartet_to_int24 x))
(quartets strBase64))

2016-10-07 16:35 GMT+03:00 Игорь Пашев <pashev.i...@gmail.com>:
> Hi all.
>
> What options are there to convert a base64-encoded raw binary data
> into "normal" hexadecimal string in Nix (during evalutation)?
>
> E. i. "kjOzmCPxyw0bPciMsGSh5q+bT9g=" ->
> "9233b39823f1cb0d1b3dc88cb064a1e6af9b4fd8"
>
> to make it valid input for fetchurl, etc.
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


[Nix-dev] Convert sha1 from base64 into "normal" string

2016-10-07 Thread Игорь Пашев
Hi all.

What options are there to convert a base64-encoded raw binary data
into "normal" hexadecimal string in Nix (during evalutation)?

E. i. "kjOzmCPxyw0bPciMsGSh5q+bT9g=" ->
"9233b39823f1cb0d1b3dc88cb064a1e6af9b4fd8"

to make it valid input for fetchurl, etc.
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] 16.09 beta released

2016-09-24 Thread Игорь Пашев
NixOps 1.4 / Vbox + 16.09:

trace: warning: The option `boot.loader.grub.timeout' defined in
`/nix/store/6wp4v37jg04sh1fd3wbbkmppan5pd1sg-nixops-1.4/share/nix/nixops/virtualbox-image-nixops.nix'
has been renamed to `boot.loader.timeout'.
error: undefined variable ‘device’ at
/nix/store/h630xrpjkz7s9mgxd20hcxz3imqjy1cm-nixos-16.09.tar.gz/nixos/modules/tasks/filesystems.nix:261:27
(use ‘--show-trace’ to show detailed location information)
error: unable to build all machine configurations
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


[Nix-dev] Bootstrap Nix

2016-09-23 Thread Игорь Пашев
Hello guys :-)

How do you bootstrap Nix on an entirely new platform?

http://osdyson.org/news/99
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] Setuid wrapper for bash script

2016-09-14 Thread Игорь Пашев
Universal setuid wrappers:

https://gist.github.com/ip1981/818f1a48f2d205ec7aa4496927339209

Create a wrapper starting as root, dropping privileges asap, executing your
script.
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] NixOps usage survey.

2016-09-07 Thread Игорь Пашев
2016-09-07 13:22 GMT+03:00 4levels <4lev...@gmail.com>:
> We've been pleasantly surprised that every single deploy has given identical
> results on all (currently 12) servers in the various datacenter locations of
> Vultr.


Yeah, develop in VBox, deploy to everywhere. The other day I moved one
of the machines from EC2 to Hetzner... in the blink of an eye :-)
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] NixOps usage survey.

2016-09-06 Thread Игорь Пашев
I'm using NixOps in production, EC2, Hetzner, VBox with no issues.

Of course, commit NixOps state (JSON) in git with git-crypt. And this
wrapper for NixOps:

#!/usr/bin/env bash

set -euo pipefail

NIXPKGS=https://github.com/NixOS/nixpkgs-channels/archive/nixos-15.09.tar.gz
NIXOPS=${NIXOPS:-nixops}
export NIX_PATH=nixpkgs="$NIXPKGS":.

usage () {
cat <  [nixops options]
Examples:
  $0 deploy realms/vbox.nix
  $0 info realms/vbox.nix
  $0 deploy realms/dumpoo.nix --build-only
  $0 destroy realms/cats.nix --include slothcat
USAGE
}

fatal () {
  echo '** ERROR:' "$@" >&2
  usage >&2
  exit 1
}

if [ $# -lt 2 ]; then
  fatal "missing agruments."
fi

CMD="$1"; shift
REALM_NIX="$1"; shift

case "$REALM_NIX" in
  *realms/*.nix) REALM=$(basename "$REALM_NIX" .nix);;
  *) fatal "invalid realm spec: $REALM_NIX";;
esac

cd "$(dirname "$0")"

state="secrets/nixops-${REALM}.json"
db=$(mktemp -u "secrets/tmp.${REALM}.XX.nixops")

trap 'save' EXIT

save() {
  if [ -f "$db" ]; then
"$NIXOPS" export -s "${db}" > "${state}.tmp"
mv "${state}.tmp" "${state}"
rm -f "$db"*
  fi
}

create() {
  "$NIXOPS" create -s "$db" -d "$REALM" ""
}

case "$CMD" in
  create)
[ ! -f "$state" ] || fatal "\`$state' already exists."
create
;;
  *)
[ -f "$state" ] || fatal "\`$state' does not exists."
"$NIXOPS" import -s "${db}" < "$state"
"$NIXOPS" "$CMD" -s "$db" -d "$REALM" "$@"
;;
esac



And makefile for development with vbox;

REALM = cats
override STATE = secrets/nixops-vbox-$(REALM).json

build: $(STATE)
./let deploy realms/vbox-$(REALM).nix --build-only

destroy:
./let $@ realms/vbox-$(REALM).nix --confirm

info deploy check send-keys start stop reboot: $(STATE)
./let $@ realms/vbox-$(REALM).nix

$(STATE):
./let create realms/vbox-$(REALM).nix

2016-09-05 19:01 GMT+03:00 Aloïs Cochard :
> Hi all,
>
> We are experimenting with NixOps and we are having great success. We do plan
> to use it for our development infrastructure, and it seems to be very
> promising.
>
> In the light of applying the same technology on our production stack, I'm
> curious to know how NixOps is used "for real"? Do you use it in production?
>
> Do you have some success story to share?
>
> Would love to know more about how it is used, the size of clusters, ...
>
> Thanks in advance!
>
> --
> Λ\oïs
> http://twitter.com/aloiscochard
> http://github.com/aloiscochard
>
> ___
> nix-dev mailing list
> nix-dev@lists.science.uu.nl
> http://lists.science.uu.nl/mailman/listinfo/nix-dev
>
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Maria-discuss] Don't replicate procedures in the mysql database

2016-08-31 Thread Игорь Пашев
There is no side effects to me :-) I want the mysql database ignored
totally.

Replicating views may be a problem (missing definer), but views are the
problem on its own.

Here is how mysql evaluates different options
http://dev.mysql.com/doc/refman/5.7/en/replication-rules.html

01 сент. 2016 г. 1:27 пользователь "Federico Razzoli" <federico_...@yahoo.it>
написал:

> I never used replicate_ignore_db='mysql'. But I know some people does. Did
> you check if it has side effects?
>
> Federico
>
>
> --------
> Mer 31/8/16, Игорь Пашев <pashev.i...@gmail.com> ha scritto:
>
>  Oggetto: Re: [Maria-discuss] Don't replicate procedures in the mysql
> database
>  A: "MariaDB discuss" <maria-discuss@lists.launchpad.net>
>  Data: Mercoledì 31 agosto 2016, 23:39
>
>  Thanks to everyone
>
>  Here is the solution:
>
>  On the slave:
>
>
>  Replicate_Ignore_DB: mysql
>
> Replicate_Do_Table:
>
> Replicate_Ignore_Table:
>
>Replicate_Wild_Do_Table: foo.%
>
>  Replicate_Wild_Ignore_Table:
>
>
>  On the master:
>
>  USE mysql;
>  CREATE PROCEDURE whatever() BEGIN END;
>
>  ___
>  Mailing list: https://launchpad.net/~maria-discuss
>  Post to : maria-discuss@lists.launchpad.net
>  Unsubscribe : https://launchpad.net/~maria-discuss
>  More help   : https://help.launchpad.net/ListHelp
>
>
___
Mailing list: https://launchpad.net/~maria-discuss
Post to : maria-discuss@lists.launchpad.net
Unsubscribe : https://launchpad.net/~maria-discuss
More help   : https://help.launchpad.net/ListHelp


Re: [Maria-discuss] Don't replicate procedures in the mysql database

2016-08-31 Thread Игорь Пашев
Thanks to everyone

Here is the solution:

On the slave:

  Replicate_Ignore_DB: mysql
   Replicate_Do_Table:
   Replicate_Ignore_Table:
  Replicate_Wild_Do_Table: foo.%
  Replicate_Wild_Ignore_Table:


On the master:

USE mysql;
CREATE PROCEDURE whatever() BEGIN END;

___
Mailing list: https://launchpad.net/~maria-discuss
Post to : maria-discuss@lists.launchpad.net
Unsubscribe : https://launchpad.net/~maria-discuss
More help   : https://help.launchpad.net/ListHelp


[Maria-discuss] Don't replicate procedures in the mysql database

2016-08-28 Thread Игорь Пашев
Hi all,

I'm using multi-source replication with "white list" options only:

foo.replicate_wild_do_table = foo.%
foo.replicate_ignore_table = foo.beep
foo.replicate_ignore_table = foo.tmp

The masters are writing row-based binary logs as is (no filtering at masters).

This works almost as expected: only the `foo` database gets updates,
the mentioned tables are ignored. The `mysql` database does not get
updates, even when I run GRANT / REVOKE on the masters quite often.

But when I create a procedure on the master it get propagated to the slave:

When I execute `CREATE PROCEDURE mysql.bar` on the master, this
procedure appears on the slave.

How could I avoid that? Did I miss some options? Is this a bug?

___
Mailing list: https://launchpad.net/~maria-discuss
Post to : maria-discuss@lists.launchpad.net
Unsubscribe : https://launchpad.net/~maria-discuss
More help   : https://help.launchpad.net/ListHelp


[Maria-discuss] Query the list of dynamic variables

2016-08-18 Thread Игорь Пашев
If there are way to query the list of dynamic variables, e. i.
variables that can be changed globally without restarting the server?

___
Mailing list: https://launchpad.net/~maria-discuss
Post to : maria-discuss@lists.launchpad.net
Unsubscribe : https://launchpad.net/~maria-discuss
More help   : https://help.launchpad.net/ListHelp


Bug#699219: icon: New upstream version, git, 3.0 (quilt) format

2016-08-11 Thread Игорь Пашев
Sure, http://cgit.osdyson.org/icon.git

2016-08-12 1:05 GMT+03:00 Santiago Vila :
> On Tue, 29 Jan 2013, Igor Pashev wrote:
>
>> Source: icon
>> Severity: wishlist
>>
>> Dear Maintainer,
>>
>> I've adopted icon for the 3.0 (quilt) fromat, created git repository, and
>> updated to the lastest upstream version (9.5.0):
>>
>> http://git.osdyson.org/?p=icon.git
>
> URL does not work. Do you still have the git repository somewhere?
>
> Thanks.



Bug#699219: icon: New upstream version, git, 3.0 (quilt) format

2016-08-11 Thread Игорь Пашев
Sure, http://cgit.osdyson.org/icon.git

2016-08-12 1:05 GMT+03:00 Santiago Vila :
> On Tue, 29 Jan 2013, Igor Pashev wrote:
>
>> Source: icon
>> Severity: wishlist
>>
>> Dear Maintainer,
>>
>> I've adopted icon for the 3.0 (quilt) fromat, created git repository, and
>> updated to the lastest upstream version (9.5.0):
>>
>> http://git.osdyson.org/?p=icon.git
>
> URL does not work. Do you still have the git repository somewhere?
>
> Thanks.



Re: [Nix-dev] Umask Setting in NixOS

2016-06-25 Thread Игорь Пашев
I would set in one of the shell initialization scripts, like

  programs.bash.interactiveShellInit = ''
umask ...
  '';

Or, for services, in systemd service options / scripts

2016-06-22 17:21 GMT+03:00 Roger Qiu :
> Hi,
>
> In a new installation of NixOS, the umask command gives me back `022`. I was
> wondering where is this being set? The `/etc/login.defs` say `UMASK 077` but
> that doesn't match what the command is giving.
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] Persistent NixOps keys

2016-06-20 Thread Игорь Пашев
2016-06-20 14:51 GMT+03:00 4levels <4lev...@gmail.com>:
> As I never change these keys (except by a nixops deploy or nixops send-keys
> call), can I assume that the save-keys service doesn't need to run every
> single minute in this scenario?


You can remove /root/keys by accident. In our setups, I used to clean
all user's homes including root's :-)
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] Persistent NixOps keys

2016-06-20 Thread Игорь Пашев
2016-06-19 15:35 GMT+03:00 4levels <4lev...@gmail.com>:
> I was just wondering how this copes with server kills


The "save" service runs every minute to check if any keys are not saved :-)
And it runs on every key addition / removal. So right after a fresh
deploy you are almost safe.
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] Persistent NixOps keys

2016-06-16 Thread Игорь Пашев
2016-06-14 17:17 GMT+03:00 4levels <4lev...@gmail.com>:
> wantedBy = [ "keys.target" ];


Maybe you don't have services depending on keys.target
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] Stackage Support Will Be Discontinued

2016-06-11 Thread Игорь Пашев
2016-06-08 22:58 GMT+03:00 Teo Klestrup Röijezon :
> So there will no longer be a way to pin Haskell dependencies? That's a bit
> annoying. I can understand the desire to keep security-critical packages
> like OpenSSL and user-facing tools like git-annex up to date, but at the
> same time there are many non-critical dependencies that I wouldn't want to
> go back and patch my one-off deployments for updates of.


There is a way. I experimented with a custom derivation which:
1. Has fixed Hackage snapshot metadata (tarball)
2. Initializes cabal from that tarball, instead of downloading the "recent".
3. Builds in normal `cabal install` way

Yes, it rebuilds every dependency every time.
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] Persistent NixOps keys

2016-05-09 Thread Игорь Пашев
2016-05-09 13:49 GMT+03:00 Tomasz Czyż :
> I'm not sure I understand this correctly. Do you want to put keys into the
> initrd?


No, I keep them under /root/keys. The save service polls /run/keys for updates.
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


[Nix-dev] Persistent NixOps keys

2016-05-08 Thread Игорь Пашев
Simple way to keep the keys on reboot.
/run/keys is mounted somewhere in initrd,
thus just a couple of services
(I was thinking about on-disk /run/keys)

{ config, lib, pkgs, ... }:
let

  inherit (builtins) attrNames;
  inherit (lib) mkIf concatMapStringsSep;
  inherit (config.deployment) keys;

  store = "/root/keys";
  runkeys = "/run/keys";

  load = pkgs.writeBashScript "nixops-load-keys" ''
set -euo pipefail
if [ -e '${store}/done' ] && [ ! -e '${runkeys}/done' ]; then
  cd '${store}'
  cp -pf -- ${concatMapStringsSep " " (k: "'${k}'") (attrNames keys)} \
'${runkeys}/' || exit 0
  touch -r '${store}/done' '${runkeys}/done'
fi
  '';

  save = pkgs.writeBashScript "nixops-save-keys" ''
set -euo pipefail
while true; do
  if [ -e '${runkeys}/done' ]; then
if [ ! -e '${store}/done' ] || [ '${runkeys}/done' -nt
'${store}/done' ] ; then
  rm -rf '${store}'
  mkdir -p '${store}'
  chown --reference='${runkeys}' -- '${store}'
  chmod --reference='${runkeys}' -- '${store}'
  cd '${runkeys}'
  cp -pf -- ${concatMapStringsSep " " (k: "'${k}'") (attrNames keys)} \
'${store}/' || continue
  touch -r '${runkeys}/done' '${store}/done'
  touch -r '${runkeys}' '${store}'
fi
  fi
  sleep 1m
done
  '';

in {
  config = mkIf (keys != {}) {
systemd.services.nixops-load-keys = {
  description = "Re-load nixops keys after reboot";
  before = [ "nixops-keys.service" ];
  wantedBy = [ "keys.target" ];
  unitConfig.RequiresMountsFor = [ runkeys store ];
  serviceConfig = {
ExecStart = load;
Type = "oneshot";
RemainAfterExit = false;
  };
};

systemd.services.nixops-save-keys = {
  description = "Save nixops keys to re-load after reboot";
  after = [ "keys.target" ];
  wantedBy = [ "keys.target" ];
  serviceConfig = {
ExecStart = save;
Restart = "always";
  };
};
  };
}


P. S. writeBashScript:
{ bash, writeScript, haskellPackages, runCommand }:

name: text:
let
  f = writeScript name ''
#!${bash}/bin/bash
${text}
  '';
in
runCommand name { } ''
  ${haskellPackages.ShellCheck}/bin/shellcheck ${f}
  cp -a ${f} $out
''
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] Source URL breakage – please can we improve the determinism

2016-05-08 Thread Игорь Пашев
Can't be nix cache used for this? Source tarballs are kind of derivation too.
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


[Nix-dev] Empty string in single quotes

2016-03-08 Thread Игорь Пашев
Hi all.


How can I write an empty string between single quotes
when using two single quotes syntax?

This does the trick:
''
${"''"}
''

Where is the best place to ask or to find answer for such questions?
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] Using Nix as the preferred package manager for a new language

2016-02-11 Thread Игорь Пашев
If you don't want a new package manager, why a new language?
10 февр. 2016 г. 0:40 пользователь  написал:

> Hi! I've tried to start this discussion a couple times on IRC, but it
> hasn't really gotten attention, so:
>
> I'm one of the developers of Monte, a new programming language. We don't
> want to write a package manager, because package managers are hard. (Also
> we've been watching npm happen for the past few years.) So we plan to use
> Nix. However, we've got some requirements for our package layout, and we
> haven't seen anybody else do all of the things we want at once. Here's
> what we're thinking:
>
> * Monte packages shouldn't live in nixpkgs. We use standalone Nix
> expressions to build stuff like our runtime, and it makes development very
> speedy since we do not have to round-trip our Nix changes through nixpkgs.
> We also want to keep Nix expressions for packages close to the packages
> themselves (see next point.) Perhaps when our ecosystem has developed
> more, we can revisit this.
>
> * Monte packages should bundle their own Nix expressions. Our reasoning is:
>
> ** Suppose that we have some "mtpkgs" tree, which is like nixpkgs but only
> contains a Nix expression for building some or all of the Monte runtime
> and packages. However, now we've decoupled the description of the packages
> from the packages themselves, which makes maintaining the package harder,
> since changes to the package require a corresponding change to mtpkgs. We
> didn't gain anything over just using nixpkgs!
>
> ** Okay, so instead we make a JSON (or whatever) description of each
> package, and ship that with the package. Then, we interpret that
> description as a Nix expression, and do Nix things as usual. Except that
> this doesn't work, because now the JSON description is a new package
> manager format! We didn't want that.
>
> ** So it seems like packages should ship with a Nix expression.
>
> * Packages should be easy to cargo-cult. This might sound weird, but my
> experience in other ecosystems (especially Python and Perl) has taught me
> that most package descriptions are cargo-culted from other similar
> packages. We should have a very custom Nix derivation-producing function
> which turns a minimal Nix expression into a full Monte package
> description.
>
> So with that in mind, here's where we currently are. We have a runtime and
> some packages. There's a terrible terrible Nix function that generates
> derivations (
> https://github.com/monte-language/typhon/blob/master/default.nix#L11-L34
> ). An example usage is (
> https://github.com/monte-language/mt-rational/blob/master/default.nix ).
>
> As you can see, our derivations are not especially good. We don't have a
> good way to locate a runtime so that we can call ``montePackage`` easily.
> Once our packages start depending on other Monte packages, the problem
> will only be worse. We also have this indirect dependency on nixpkgs for
> library stuff, which is worse than a direct dependency or no dependency at
> all.
>
> We're seeking any advice on how to make this situation better. As far as
> we can tell, nobody else has tried to make Nix their first-class preferred
> package management solution for their language, so we are blazing trails
> here.
>
> Thanks!
> ~ C.
>
> ___
> nix-dev mailing list
> nix-dev@lists.science.uu.nl
> http://lists.science.uu.nl/mailman/listinfo/nix-dev
>
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] NixOS modules: restrict the values of a `types.listOf x`

2016-01-22 Thread Игорь Пашев
Use enum and pkgs.${foo} ?
22 янв. 2016 г. 7:31 пользователь "Eric Sagnes" 
написал:

> Hi,
>
> I would like to force an option of type `types.listOf packages` to allow
> only a certain list of packages.
> Something like `types.someOf packages [ pkgs.pluginA pkgs.pluginB
> pkgs.pluginC ]`.
>
> So that if a user set `myModule.plugins = [ pkgs.pluginA pkgs.firefox ]`,
> it gives an error like
> "Invalid value `pkgs.firefox` for `myModule.plugins. Values should be some
> of [ pkgs.pluginA pkgs.pluginB pkgs.pluginC ]";
>
> Is there a way to achieve this?
>
> --
> Eric Sagnes
> サニエ エリック
> ___
> nix-dev mailing list
> nix-dev@lists.science.uu.nl
> http://lists.science.uu.nl/mailman/listinfo/nix-dev
>
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] User and group ID ranges

2016-01-15 Thread Игорь Пашев
2016-01-15 11:50 GMT+03:00 Christian Kauhaus :
> It's more a policy question

 base = 10 <= this is the policy :-)
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] User and group ID ranges

2016-01-14 Thread Игорь Пашев
I use this function to get IDs:

 uid = name:
let
  dec = {
"0" =  0; "1" =  1; "2" =  2; "3" =  3;
"4" =  4; "5" =  5; "6" =  6; "7" =  7;
"8" =  8; "9" =  9; "a" = 10; "b" = 11;
"c" = 12; "d" = 13; "e" = 14; "f" = 15;
  };
  base = 10; # 2^31 > base + 16^7, 2^31 for JSON int
  hex = lib.toLower (builtins.substring 0 7 (builtins.hashString
"sha1" name));
  pow = b: n: lib.foldl builtins.mul 1 (builtins.genList (_: b) n);
  digits = lib.imap (i: d: {m = pow 16 (i - 1); d = d;})
(lib.stringToCharacters hex);
  f = a: {m, d}: a + m * dec.${d};

in lib.foldl f base digits;

2016-01-13 16:02 GMT+03:00 Christian Kauhaus :
> Hi,
>
> we are currently in the process of configuring users and groups with fixed
> UID/GID numbers from a central directory on a bunch of NixOS machines.
>
> I'd like to clarify some policy issues to avoid future ID conflicts.
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


[Nix-dev] MariaDB 10.1.10 cycle

2016-01-08 Thread Игорь Пашев
I know MariaDB 10.1.10 is not packaged yet,
but simple version bump does not work:

patching script interpreter paths in
/nix/store/vwdhxnwq8n6kgyis6kf3yllkmlzwz5xi-mariadb-10.1.10-lib
/nix/store/vwdhxnwq8n6kgyis6kf3yllkmlzwz5xi-mariadb-10.1.10-lib/bin/mysql_config:
interpreter directive changed from "/bin/sh" to
"/nix/store/fz5cv1c7jm8wf0hllp51izk0didjyvaq-bash-4.3-p42/b
in/sh  "
cycle detected in the references of
‘/nix/store/sc2cac78vpgm82f42av8yl7f4izbi5f5-mariadb-10.1.10’
cannot build derivation
‘/nix/store/dbamz2hdcymb1ss7gl65amcl6fkpqsm6-system-path.drv’: 1
dependencies couldn't be built
cannot build derivation
‘/nix/store/3cs1f7fbj3nwypb4hbrvqz6fsby5mr6r-unit-mariadb-maintenance.service.drv’:
1 dependencies couldn't be built
cannot build derivation
‘/nix/store/d7zs1c42z8f6b4nvm403vjy6ll6k4mh5-unit-mariadb-slaves.service.drv’:
1 dependencies couldn't be built

I think this is the cause:
# grep -rnH /nix/store/sc2cac78vpgm82f42av8yl7f4izbi5f5-mariadb-10.1.10
/nix/store/vwdhxnwq8n6kgyis6kf3yllkmlzwz5xi-mariadb-10.1.10-lib
/nix/store/vwdhxnwq8n6kgyis6kf3yllkmlzwz5xi-mariadb-10.1.10-lib/include/mysql/my_config.h:631:#define
SHAREDIR 
"/nix/store/sc2cac78vpgm82f42av8yl7f4izbi5f5-mariadb-10.1.10/share/mysql"

How do we fix this?

It looks like we can just remove that macro:
https://github.com/MariaDB/server/search?p=2=SHAREDIR=%E2%9C%93
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] MariaDB 10.1.10 cycle

2016-01-08 Thread Игорь Пашев
https://github.com/MariaDB/server/commit/c597ed01112c2f6549c59e6548d4ff53803487df

2016-01-08 11:50 GMT+03:00 Игорь Пашев <pashev.i...@gmail.com>:
> It looks like we can just remove that macro:
> https://github.com/MariaDB/server/search?p=2=SHAREDIR=%E2%9C%93
We can't.

But here is what happened
https://github.com/MariaDB/server/commit/c597ed01112c2f6549c59e6548d4ff53803487df
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] isFloat

2015-12-29 Thread Игорь Пашев
OMG :-) Thank you. I didn't know about regexes. Now we are saved!
29 дек. 2015 г. 23:38 пользователь "Harald van Dijk" <har...@gigawatt.nl>
написал:

> On 29/12/2015 13:20, Игорь Пашев wrote:
> > Is anybody needs floats in options :-)
> >
> >isFloat = x: isInt x ||
> >( isString x &&
> >  3 > length (splitString "." x) &&
> >  all (s: 2 == length (splitString s " 0123456789. "))
> > (stringToCharacters x)
> >);
>
> Nice. Here are some corner cases to consider though :)
>
>   isFloat (sub 0 1) -> true
> yet
>   isFloat (toString (sub 0 1)) -> false
>
>   isFloat "" -> true
>   isFloat ".." -> true
>   isFloat "1.2." -> true
>   isFloat "1 2" -> true
>
> How about this alternative using a regex?
>
>   isFloat = x: with builtins;
> match "-?([0-9]+(\\.[0-9]*)?|\\.[0-9]+)" (toString x) != null;
>
> This assumes "1" is valid, "1.1" is valid, "1." is valid, ".1" is valid,
> but plain "." is invalid. It allows an optional leading minus sign
> regardless of whether the argument is an integer or a string. It doesn't
> allow any spaces, not even leading or trailing spaces.
>
> If the precise syntax of allowable floating point numbers changes, for
> instance if "." must always be followed by a digit, if a leading "+" is
> also allowed, if exponential notation ("1E10") is supposed to be allowed,
> if some spaces should be allowed, etc., it can be tweaked fairly easily.
>
> Cheers,
> Harald van Dijk
>
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


[Nix-dev] isFloat

2015-12-29 Thread Игорь Пашев
Is anybody needs floats in options :-)

  isFloat = x: isInt x ||
  ( isString x &&
3 > length (splitString "." x) &&
all (s: 2 == length (splitString s " 0123456789. "))
(stringToCharacters x)
  );

  float = mkOptionType {
name = "float";
check = isFloat;
  };
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] Change owner and permissions of a file in nix-store

2015-12-16 Thread Игорь Пашев
I'd suggest to use NixOps keys and these tricks
http://lists.science.uu.nl/pipermail/nix-dev/2015-November/018806.html

2015-12-16 18:07 GMT+03:00 Augustin Borsu :
> I'm using the following snippet to deploy a private key and certificate
> to my server using nixops.
> I was wondering, is it possible to change the owner and permissions of
> files in the nix-store?
> It seems to me this would be more secure if the certificate and key was
> only accessible by the user launching apache and not by everyone else.
>
> Thanks.
>
> services = {
>httpd = {
>  enable = true;
>  sslServerCert = builtins.toFile "ssl.crt" (builtins.readFile
> ./private/local.crt);
>  sslServerKey = builtins.toFile "ssl.key" (builtins.readFile
> ./private/local.key);
>  enableSSL = true;
>};
> };
> ___
> nix-dev mailing list
> nix-dev@lists.science.uu.nl
> http://lists.science.uu.nl/mailman/listinfo/nix-dev
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


[Nix-dev] journald and /var/log on a separate device

2015-12-16 Thread Игорь Пашев
I tried to use /var/log on a separate disk.
After first deployment of VBox (via NixOps)
/var/log is mounted, but empty:

$ ls -lh /var/log/
total 16K
drwx-- 2 root root 16K Dec 17 00:28 lost+found

$ sudo journalctl
No journal files were found.


It seems that this stuff is executed before mount:
https://github.com/NixOS/nixpkgs/commit/538958bf17b7493e38ccc07d3405f979fd40e4b8

Then I deployed again (with out changes actually, just activation),
and /var/log/journal was create, but only readable by root:

$ ls -lh /var/log/journal/ -d
drwx-- 2 root root 4.0K Dec 17 00:34 /var/log/journal

It sounds like activation script is not the best place for making
/var/log/journal
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Maria-discuss] Replication variables in my.cnf seem ignored if master connection does not exist

2015-12-16 Thread Игорь Пашев
Yeah, it seems RESET SLAVE ALL deletes replicate_* options,
so I ended with this:

-- reset slave
CHANGE MASTER 'foo' TO ...;
SET default_master_connection = "foo";
SET GLOBAL replicate_wild_do_table = "foo.%";
SET GLOBAL replicate_ignore_table = "foo.schema_updates";
-- import dump with --master-data=1
-- start slave;

2015-12-14 15:59 GMT+03:00 Игорь Пашев <pashev.i...@gmail.com>:
> MariaDB 10.0.22
>
> I saw weird things a couple of times:
>
> I start clean MariaDB with theses options in the configuration file:
> foo.replicate_wild_do_table = foo_live.%
> foo.replicate_ignore_table = foo_live.schema_updates
>
> Then I execute RESET SLAVE "foo" ALL just to be sure there is no such
> connection.
> Then I import the dump of master, and set master options like host,
> user, password, etc.
> Then I execute START SLAVE "foo"
>
>
> Then SHOW SLAVE "foo" reveals empty 'Replicate_Wild_Do_Table' and
> 'Replicate_Ignore_Table'.
> (And replication shortly breaks, because foo_live.schema_updates
> wasn't imported).

___
Mailing list: https://launchpad.net/~maria-discuss
Post to : maria-discuss@lists.launchpad.net
Unsubscribe : https://launchpad.net/~maria-discuss
More help   : https://help.launchpad.net/ListHelp


[Maria-discuss] Replication variables in my.cnf seem ignored if master connection does not exist

2015-12-14 Thread Игорь Пашев
MariaDB 10.0.22

I saw weird things a couple of times:

I start clean MariaDB with theses options in the configuration file:
foo.replicate_wild_do_table = foo_live.%
foo.replicate_ignore_table = foo_live.schema_updates

Then I execute RESET SLAVE "foo" ALL just to be sure there is no such
connection.
Then I import the dump of master, and set master options like host,
user, password, etc.
Then I execute START SLAVE "foo"


Then SHOW SLAVE "foo" reveals empty 'Replicate_Wild_Do_Table' and
'Replicate_Ignore_Table'.
(And replication shortly breaks, because foo_live.schema_updates
wasn't imported).

I can fix this by restarting MariaDB.

I'd expect the foo.replicate_* options are taking effect anytime.
As a work-around I'd set those options dynamically after dump is imported.


(I will fill MDEV in case it is confirmed as a bug)

___
Mailing list: https://launchpad.net/~maria-discuss
Post to : maria-discuss@lists.launchpad.net
Unsubscribe : https://launchpad.net/~maria-discuss
More help   : https://help.launchpad.net/ListHelp


Re: [Maria-discuss] MariaDB Performance and Diagnostic Tools

2015-12-14 Thread Игорь Пашев
2015-12-14 22:29 GMT+03:00 FERRETTI, ANDY :
> I’m looking for recommendations on MariaDB Performance Analysis tools.

Something like that: Percona Toolkit and Newrelic

___
Mailing list: https://launchpad.net/~maria-discuss
Post to : maria-discuss@lists.launchpad.net
Unsubscribe : https://launchpad.net/~maria-discuss
More help   : https://help.launchpad.net/ListHelp


Re: [Nix-dev] How to write module outside the nixpkgs tree and integrated with nixos-rebuild

2015-12-03 Thread Игорь Пашев
2015-12-04 6:12 GMT+03:00 rohit yadav :
> Hi,
>
> How to write a NixOS module that is outside the nixpkgs tree and integrate
> it with nixos-rebuild. I particularly want to define few services which
> should be run in a particular order. I believe I can define them directly in
> /etc/systemd/system folder (but this defeats the purpose of nix).
>

Use imports = [  ]; in /etc/nixos/configuration.nix

https://nixos.org/wiki/NixOS:extend_NixOS
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] Replace module options

2015-11-29 Thread Игорь Пашев
We used to replace cruсial services like mysql or nginx. E. i. NixOS is a
source of core packages and services. But after all I think a namespace is
the best way.
29 нояб. 2015 г. 19:53 пользователь "Nicolas Pierron" <
nicolas.b.pier...@gmail.com> написал:

> Hi,
>
> Unfortunately, this is one of the current limitation of the module system.
> This is can be implemented quickly, but as of today I did not faced
> enough uses cases to decide what was the proper granularity for it.
>
> So, I would appreciate if you can describe in more details what you
> are trying to achieve, and what module within NixOS is causing you
> some trouble.
>
>
> On Sun, Nov 29, 2015 at 4:12 PM, Игорь Пашев <pashev.i...@gmail.com>
> wrote:
> > Hi all.
> >
> > Is there a way to exclude some NixOS module from evaluation
> > and put my module instead? That is, NixOS defines services.foo
> > and I want to use my own service.foo.
> >
> > I'm not sure it's a good idea, at least I can use a namespace
> (service.my.foo)
> > or give my service a fancy name.
> > ___
> > nix-dev mailing list
> > nix-dev@lists.science.uu.nl
> > http://lists.science.uu.nl/mailman/listinfo/nix-dev
>
>
>
> --
> Nicolas Pierron
> http://www.linkedin.com/in/nicolasbpierron - http://nbp.name/
>
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Bug#806575: sqlite3: Package sqldiff

2015-11-29 Thread Игорь Пашев
Package: sqlite3
Version: 3.9.1-1
Severity: minor

Dear Maintainer,

sqlite3 comes with the sqldiff utility.
Please add it into the package!



Re: [Nix-dev] Replace module options

2015-11-29 Thread Игорь Пашев
2015-11-29 19:26 GMT+03:00 Joel Moberg :
> I think every service have a enable attribute, you should be able to set
> this to false or just override that service with another one (example
> config.systemd.services.alsa-store.enable=false). nix-repl is useful to
> inspect what your config looks like, you can invoke it with nix-repl
> '' and investigate the attribute 'config'.


I tried to override the "enable" option a well. And it said
"The option `services.foo.enable' in  is already declared in
" ¯\_(ツ)_/¯
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] Jenkins declarative jobs?

2015-10-11 Thread Игорь Пашев
Gorgot this
https://github.com/zalora/microgram/blob/master/pkgs/jenkins/default.nix

We also have some nix expressions for xml configs but those are very
specific and do not cover many things.
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: Placing code after #DEBHELPER# autogenerated code?

2015-09-03 Thread Игорь Пашев
2015-09-03 16:53 GMT+03:00 Patrick Schleizer :
> Hi,
>
> are there legitimate cases, where it is okay to place code after the
> #DEBHELPER# token?


exit 0 :-)



Re: [Nix-dev] Can't unsubscribe

2015-08-17 Thread Игорь Пашев
You could unsubscribe with email http://www.list.org/mailman-member/node14.html

2015-08-17 1:00 GMT+03:00 Miroslav Puda paka...@gmail.com:
 Hi, I can't get pasword reminder nor unsubscribe myself on
 http://lists.science.uu.nl/mailman/listinfo/nix-dev

 Can someone fix it or at least unsubscribe my address manually please? I am
 not receiving password reminder nor unsubscribe confirmation mail.

 ___
 nix-dev mailing list
 nix-dev@lists.science.uu.nl
 http://lists.science.uu.nl/mailman/listinfo/nix-dev

___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: Mass bug filing about non free lena image.

2015-08-14 Thread Игорь Пашев
2015-08-12 16:32 GMT+03:00 Andreas Tille andr...@an3as.eu:
 Any productive suggestion?


Take a picture of one of Debian women ? :-)



Re: [Nix-dev] Announcing cabal2nix version 20150807

2015-08-09 Thread Игорь Пашев
I wonder if we could avoid copying package names from {...} to xxxDepends.
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: Facilitating external repositories

2015-07-28 Thread Игорь Пашев
2015-06-05 19:10 GMT+03:00 Josh Triplett j...@joshtriplett.org:
 Given that the packages in question appear to be Free Software (at least
 from a quick check of a couple of them, as well as the repository being
 named main), is there a reason you don't maintain them in Debian
 (including backports or volatile if you need to provide the newest
 packages for older distributions)?


It takes ages to pass mentors.debian.net? :-)


-- 
To UNSUBSCRIBE, email to debian-devel-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
https://lists.debian.org/CALL-Q8zvSaHgMHJUOPr49Ub3aUCQPYUCKUR32=dh1g6bzmn...@mail.gmail.com



Re: Okay to exit after triggers before auto generated #DEBHELPER# code?

2015-07-24 Thread Игорь Пашев
TL;DR: yes

triggers and configure phase are different and independent things.


-- 
To UNSUBSCRIBE, email to debian-mentors-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
https://lists.debian.org/CALL-Q8zkKd99Ypm2EhQYuhsboULr7dF0+1YhL=3Vi=x4ukn...@mail.gmail.com



Bug#792156: RFS: cuba/3.0+20111124-3

2015-07-12 Thread Игорь Пашев
Package: sponsorship-requests
Severity: normal

I am looking for a sponsor for my package cuba

 * Package name: cuba
   Version : 3.0+2024-3
   Upstream Author : Thomas Hahn h...@feynarts.de
 * URL : http://www.feynarts.de/cuba/
 * License : LGPL-3+
   Section : math

  It builds those binary packages:

 cuba-partview - partition viewer for the Cuba library
 libcuba-dev - library for multidimensional numerical integration
 libcuba-doc - library for multidimensional numerical integration: documentation

  To access further information about this package, please visit the
following URL:

  http://mentors.debian.net/package/cuba


  Alternatively, one can download the package with dget using this command:

dget -x 
http://mentors.debian.net/debian/pool/main/c/cuba/cuba_3.0+2024-3.dsc

  More information about hello can be obtained from http://www.example.com.

  Changes since the last upload:

* Updated debian/copyright: GPL - LGPL
* Use dpkg build flags
* Dropped shared library package (Closes: #791516)
* Dropped libcuba3-dbg


-- 
To UNSUBSCRIBE, email to debian-mentors-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
https://lists.debian.org/call-q8xpqjszrcnaeolir6nsbyz+ooh0kevqadsjvtm-ay_...@mail.gmail.com



Bug#792156: RFS: cuba/3.0+20111124-3

2015-07-12 Thread Игорь Пашев
Package: sponsorship-requests
Severity: normal

I am looking for a sponsor for my package cuba

 * Package name: cuba
   Version : 3.0+2024-3
   Upstream Author : Thomas Hahn h...@feynarts.de
 * URL : http://www.feynarts.de/cuba/
 * License : LGPL-3+
   Section : math

  It builds those binary packages:

 cuba-partview - partition viewer for the Cuba library
 libcuba-dev - library for multidimensional numerical integration
 libcuba-doc - library for multidimensional numerical integration: documentation

  To access further information about this package, please visit the
following URL:

  http://mentors.debian.net/package/cuba


  Alternatively, one can download the package with dget using this command:

dget -x 
http://mentors.debian.net/debian/pool/main/c/cuba/cuba_3.0+2024-3.dsc

  More information about hello can be obtained from http://www.example.com.

  Changes since the last upload:

* Updated debian/copyright: GPL - LGPL
* Use dpkg build flags
* Dropped shared library package (Closes: #791516)
* Dropped libcuba3-dbg


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Re: Fwd: Package cuba was rejected

2015-07-08 Thread Игорь Пашев
Thanks to everyone!


I've sorted it :-)


-- 
To UNSUBSCRIBE, email to debian-mentors-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
https://lists.debian.org/call-q8zrxzgcjv9yszb6uiv-sntwor8ne4dctefyrfyv2ax...@mail.gmail.com



Bug#778041: open-axiom: ftbfs with GCC-5

2015-07-08 Thread Игорь Пашев
I'm currently updating OpenAxiom package, and will fix whatever issues.


-- 
To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#778041: open-axiom: ftbfs with GCC-5

2015-07-08 Thread Игорь Пашев
I'm currently updating OpenAxiom package, and will fix whatever issues.


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Fwd: Package cuba was rejected

2015-07-07 Thread Игорь Пашев
How could I fix this?


-- Forwarded message --
From: mentors.debian.net supp...@mentors.debian.net
Date: 2015-07-08 0:27 GMT+03:00
Subject: Package cuba was rejected
To: pashev.i...@gmail.com


Hello,

Unfortunately your package cuba was rejected because of the following
reason:

Your upload does not contain a valid signature. Output was:

gpg: Signature made Di 07 Jul 2015 21:19:42 UTC using RSA key ID 8010171C
gpg: Can't check signature: public key not found


Please try to fix it and re-upload. Thanks,

--
mentors.debian.net


-- 
To UNSUBSCRIBE, email to debian-mentors-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
https://lists.debian.org/CALL-Q8x2=Nq=zzbdaforftf2mgejov3bmffa_kgaw5ydix1...@mail.gmail.com



Re: [Nix-dev] Installing Nix under Debian Jessie (32-bit)

2015-07-02 Thread Игорь Пашев
nix's deb was built against older perl in Debian.

From my point nix's debs and rpm do not make sense,
since right after installing it you will be using nix from nix store.

I usually use install script https://nixos.org/nix/install

2015-07-01 20:30 GMT+03:00 Sean Whitton spwhit...@spwhitton.name:
 Hello,

 I'm trying to install the Nix package manager on Debian Jessie, using
 the .deb file provided on the NixOS website.

 I did this:

 ,
 | $ sudo dpkg -i nix_1.9-1_i386.deb
 | $ sudo apt-get -f install
 `

 and it appears to have been successfully installed (the second command
 is to fix dependencies).

 However, when I run `nix-channel --add` to add the nixpkgs channel, I
 get this error:

 ,
 | $ nix-channel --add https://nixos.org/channels/nixpkgs-unstable
 | Perl API version v5.14.0 of Nix::Store does not match v5.20.0 at 
 /usr/share/perl/5.20/XSLoader.pm line 92.
 | Compilation failed in require at 
 /usr/lib/perl5/site_perl/5.14.2/i486-linux-gnu-thread-multi-64int/Nix/Manifest.pm
  line 13.
 | BEGIN failed--compilation aborted at 
 /usr/lib/perl5/site_perl/5.14.2/i486-linux-gnu-thread-multi-64int/Nix/Manifest.pm
  line 13.
 | Compilation failed in require at /usr/bin/nix-channel line 8.
 | BEGIN failed--compilation aborted at /usr/bin/nix-channel line 8.
 `

 Looks like there is a problem with the .deb's perl scripts?

 Thanks.

 Sean
 ___
 nix-dev mailing list
 nix-dev@lists.science.uu.nl
 http://lists.science.uu.nl/mailman/listinfo/nix-dev
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: how to modify gcc to compile a[b] differently

2015-04-01 Thread Игорь Пашев
2015-04-01 12:19 GMT+03:00 Richard Biener richard.guent...@gmail.com:
 You probably want to do this in the frontends.

And one of them is C++ :-)


Re: Please more fish (was: so long and thanks for all the fish)

2014-11-09 Thread Игорь Пашев
2014-11-10 0:38 GMT+03:00 Simon Richter s...@debian.org:
 automake

With autotools one can always use plain shell code in configure.ac and
plain make in Makefile.am ;-)


-- 
To UNSUBSCRIBE, email to debian-devel-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
https://lists.debian.org/call-q8zejcqrokhyk0gxsczk+p6oz7ft8ro3jlawlkucmle...@mail.gmail.com



Bug#765466:

2014-10-19 Thread Игорь Пашев
https://github.com/rails/rails/commit/1391d74e41b786d2f1a3a4ecf7fad1eda7e49622


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#765466:

2014-10-19 Thread Игорь Пашев
http://www.redmine.org/issues/18132


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#765466:

2014-10-19 Thread Игорь Пашев
This helped me:


I changed

Issue.update_all closed_on = created_on, {:status_id =
closed_status_ids, :closed_on = nil}

to

Issue.where({:status_id = closed_status_ids, :closed_on =
nil}).update_all closed_on = created_on

in

/usr/share/redmine/db/migrate/2013021541_populate_issues_closed_on.rb


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#765466:

2014-10-19 Thread Игорь Пашев
Fixed upstream http://www.redmine.org/issues/18132


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Re: [open-axiom-devel] FTBFS: internal compiler error: in cp_perform_integral_promotions, at cp/typeck.c:2066

2014-10-02 Thread Игорь Пашев
Yeah, it's a GCC regression https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63405

2014-10-02 3:28 GMT+04:00 Gabriel Dos Reis g...@integrable-solutions.net:


 On Mon, Sep 29, 2014 at 12:29 AM, Игорь Пашев pashev.i...@gmail.com wrote:

 Hi all!

 It was found that OA fails to build with GCC 4.9 on amd64 [1]
 I can confirm this with r3094 on bare metal too.

 Quoting [1]:

  g++ -DHAVE_CONFIG_H -I. -I../../../src/syntax -I../../config
  -I../../../src/include -I../../x86_64-pc-linux-gnu/include
  -D_FORTIFY_SOURCE=2 -m64 -D_GNU_SOURCE  -std=c++11 -g -O2
  -fstack-protector-strong -Wformat -Werror=format-security -O2 -Wall -c -o
  libsyntax_a-sexpr.o `test -f 'sexpr.cc' || echo
  '../../../src/syntax/'`sexpr.cc
  In file included from
  ../../x86_64-pc-linux-gnu/include/open-axiom/sexpr:47:0,
   from ../../../src/syntax/sexpr.cc:39:
  ../../x86_64-pc-linux-gnu/include/open-axiom/storage: In instantiation
  of 'T* OpenAxiom::Memory::FactoryT::make(const Args ...) [with Args =
  {std::vectorconst OpenAxiom::Sexpr::Syntax*, std::allocatorconst
  OpenAxiom::Sexpr::Syntax* , bool}; T = OpenAxiom::Sexpr::ListSyntax]':
  ../../../src/syntax/sexpr.cc:341:37:   required from here
  ../../x86_64-pc-linux-gnu/include/open-axiom/storage:275:52: internal
  compiler error: in cp_perform_integral_promotions, at cp/typeck.c:2066
   return new(this-allocate(1)) T{args...};
  ^
  Please submit a full bug report,
  with preprocessed source if appropriate.
  See file:///usr/share/doc/gcc-4.9/README.Bugs for instructions.
  Preprocessed source stored into /tmp/cc6mQYS6.out file, please attach
  this to your bugreport.
  make[3]: *** [libsyntax_a-sexpr.o] Error 1

 [1] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=761549


 Hmm, an internal compiler error is a bug in the compiler (GCC).
 I think this should be reported to the GCC folks.

 (I no longer develop GCC - for at least a year now.)

 -- Gaby


--
Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
http://pubads.g.doubleclick.net/gampad/clk?id=154622311iu=/4140/ostg.clktrk
___
open-axiom-devel mailing list
open-axiom-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/open-axiom-devel


Fwd: open-axiom is marked for autoremoval from testing

2014-09-29 Thread Игорь Пашев
Is it really a good idea to remove packages which FTBFS because of
*internal compiler error*?

Shouldn't GCC be removed instead? :-)


-- Forwarded message --
From: Debian testing autoremoval watch nore...@release.debian.org
Date: 2014-09-29 8:39 GMT+04:00
Subject: open-axiom is marked for autoremoval from testing
To: open-ax...@packages.debian.org


open-axiom 1.5.0~svn3056+ds-1 is marked for autoremoval from testing
on 2014-10-13

It is affected by these RC bugs:
761549: open-axiom: FTBFS: internal compiler error: in
cp_perform_integral_promotions, at cp/typeck.c:2066


-- 
To UNSUBSCRIBE, email to debian-devel-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
https://lists.debian.org/CALL-Q8z9xhoaHfM6T+fgTZmyRLr4vDc+dkVunrX7XrduNxA=j...@mail.gmail.com



GCC 4.9 internal compiler error

2014-09-29 Thread Игорь Пашев
Hi all!

It was found that OA fails to build with GCC 4.9 on amd64 [1]
I can confirm this with r3094 on bare metal too.

# gcc --version
gcc-4.9.real (Debian 4.9.1-14) 4.9.1
Copyright (C) 2014 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

I can imaging that this is a bug in OpenAxiom, but GCC should not crash.

GCC complains on this line
https://sourceforge.net/p/open-axiom/code/HEAD/tree/trunk/src/include/storage.H#l273

Quoting [1]:
 g++ -DHAVE_CONFIG_H -I. -I../../../src/syntax -I../../config  
 -I../../../src/include -I../../x86_64-pc-linux-gnu/include 
 -D_FORTIFY_SOURCE=2 -m64 -D_GNU_SOURCE  -std=c++11 -g -O2 
 -fstack-protector-strong -Wformat -Werror=format-security -O2 -Wall -c -o 
 libsyntax_a-sexpr.o `test -f 'sexpr.cc' || echo 
 '../../../src/syntax/'`sexpr.cc
 In file included from ../../x86_64-pc-linux-gnu/include/open-axiom/sexpr:47:0,
  from ../../../src/syntax/sexpr.cc:39:
 ../../x86_64-pc-linux-gnu/include/open-axiom/storage: In instantiation of 'T* 
 OpenAxiom::Memory::FactoryT::make(const Args ...) [with Args = 
 {std::vectorconst OpenAxiom::Sexpr::Syntax*, std::allocatorconst 
 OpenAxiom::Sexpr::Syntax* , bool}; T = OpenAxiom::Sexpr::ListSyntax]':
 ../../../src/syntax/sexpr.cc:341:37:   required from here
 ../../x86_64-pc-linux-gnu/include/open-axiom/storage:275:52: internal 
 compiler error: in cp_perform_integral_promotions, at cp/typeck.c:2066
  return new(this-allocate(1)) T{args...};
 ^
 Please submit a full bug report,
 with preprocessed source if appropriate.
 See file:///usr/share/doc/gcc-4.9/README.Bugs for instructions.
 Preprocessed source stored into /tmp/cc6mQYS6.out file, please attach this to 
 your bugreport.
 make[3]: *** [libsyntax_a-sexpr.o] Error 1




[1] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=761549


Bug#761549:

2014-09-29 Thread Игорь Пашев
this is a GCC bug https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63405


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



[open-axiom-devel] FTBFS: internal compiler error: in cp_perform_integral_promotions, at cp/typeck.c:2066

2014-09-29 Thread Игорь Пашев
Hi all!

It was found that OA fails to build with GCC 4.9 on amd64 [1]
I can confirm this with r3094 on bare metal too.

Quoting [1]:

 g++ -DHAVE_CONFIG_H -I. -I../../../src/syntax -I../../config  
 -I../../../src/include -I../../x86_64-pc-linux-gnu/include 
 -D_FORTIFY_SOURCE=2 -m64 -D_GNU_SOURCE  -std=c++11 -g -O2 
 -fstack-protector-strong -Wformat -Werror=format-security -O2 -Wall -c -o 
 libsyntax_a-sexpr.o `test -f 'sexpr.cc' || echo 
 '../../../src/syntax/'`sexpr.cc
 In file included from ../../x86_64-pc-linux-gnu/include/open-axiom/sexpr:47:0,
  from ../../../src/syntax/sexpr.cc:39:
 ../../x86_64-pc-linux-gnu/include/open-axiom/storage: In instantiation of 'T* 
 OpenAxiom::Memory::FactoryT::make(const Args ...) [with Args = 
 {std::vectorconst OpenAxiom::Sexpr::Syntax*, std::allocatorconst 
 OpenAxiom::Sexpr::Syntax* , bool}; T = OpenAxiom::Sexpr::ListSyntax]':
 ../../../src/syntax/sexpr.cc:341:37:   required from here
 ../../x86_64-pc-linux-gnu/include/open-axiom/storage:275:52: internal 
 compiler error: in cp_perform_integral_promotions, at cp/typeck.c:2066
  return new(this-allocate(1)) T{args...};
 ^
 Please submit a full bug report,
 with preprocessed source if appropriate.
 See file:///usr/share/doc/gcc-4.9/README.Bugs for instructions.
 Preprocessed source stored into /tmp/cc6mQYS6.out file, please attach this to 
 your bugreport.
 make[3]: *** [libsyntax_a-sexpr.o] Error 1

[1] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=761549

--
Slashdot TV.  Videos for Nerds.  Stuff that Matters.
http://pubads.g.doubleclick.net/gampad/clk?id=160591471iu=/4140/ostg.clktrk
___
open-axiom-devel mailing list
open-axiom-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/open-axiom-devel


Bug#761549:

2014-09-29 Thread Игорь Пашев
this is a GCC bug https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63405


-- 
To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#755459: RFS: lucene/4.9.0-1 [put in ITP, ITA, RC, NMU if applicable]

2014-09-03 Thread Игорь Пашев
You may need to build it with export CLASSPATH=/usr/share/java/ivy.jar
in debian/rules

And I saw ivy tends to fetch some files from the net

2014-07-23 0:51 GMT+04:00 Hilko Bengen ben...@debian.org:
 * Raaj S:

   I am looking for a sponsor for my package lucene

  * Package name: lucene
Version : 4.9.0-1

 lucene4_4.6-1 (one of the many build-dependencies for elasticsearch) has
 been packaged and waiting for ftp-master approval in NEW for about a
 month now.

 Cheers,
 -Hilko


 --
 To UNSUBSCRIBE, email to debian-mentors-requ...@lists.debian.org
 with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
 Archive: https://lists.debian.org/87vbqpf777@msgid.hilluzination.de



-- 
To UNSUBSCRIBE, email to debian-mentors-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
https://lists.debian.org/call-q8xys7x2_m-op2vms4b28xfaxxgykg49uowxzrhhfs5...@mail.gmail.com



Bug#755459: RFS: lucene/4.9.0-1 [put in ITP, ITA, RC, NMU if applicable]

2014-09-03 Thread Игорь Пашев
You may need to build it with export CLASSPATH=/usr/share/java/ivy.jar
in debian/rules

And I saw ivy tends to fetch some files from the net

2014-07-23 0:51 GMT+04:00 Hilko Bengen ben...@debian.org:
 * Raaj S:

   I am looking for a sponsor for my package lucene

  * Package name: lucene
Version : 4.9.0-1

 lucene4_4.6-1 (one of the many build-dependencies for elasticsearch) has
 been packaged and waiting for ftp-master approval in NEW for about a
 month now.

 Cheers,
 -Hilko


 --
 To UNSUBSCRIBE, email to debian-mentors-requ...@lists.debian.org
 with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
 Archive: https://lists.debian.org/87vbqpf777@msgid.hilluzination.de



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#750057: texlive-latex-base: \today command prints wrong month for June in Russian

2014-06-01 Thread Игорь Пашев
Package: texlive-latex-base
Version: 2014.20140528-3
Severity: important

\today command prints wrong month for June in Russian:

it prints iюнь (latin i followed by cyrillic юнь)
while it should print июнь (cyrillic i at the first position)

I'm attaching pdf, fls and log files made by pdflatex


-- Package-specific info:
##
minimal input file

\documentclass[12pt,russian]{article}
\usepackage[T2A]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{babel}
\begin{document}
\today
\end{document}

##
other files

##
 List of ls-R files

-rw--- 1 pashev pashev 9005 Oct 12  2008 /home/pashev/.texmf-var/ls-R
-rw-r--r-- 1 root root 3246 Jun  1 10:33 /var/lib/texmf/ls-R
lrwxrwxrwx 1 root root 29 May 30 13:00 /usr/share/texmf/ls-R -
/var/lib/texmf/ls-R-TEXMFMAIN
lrwxrwxrwx 1 root root 31 May 31 18:45
/usr/share/texlive/texmf-dist/ls-R - /var/lib/texmf/ls-R-TEXLIVEDIST
lrwxrwxrwx 1 root root 31 May 31 18:45
/usr/share/texlive/texmf-dist/ls-R - /var/lib/texmf/ls-R-TEXLIVEDIST
##
 Config files
-rw-r--r-- 1 root root 1101 Jun  1 10:26 /etc/texmf/web2c/texmf.cnf
-rw-r--r-- 1 root root 10389 Jun  1 10:33 /var/lib/texmf/web2c/fmtutil.cnf
lrwxrwxrwx 1 root root 32 May 31 18:45
/usr/share/texmf/web2c/updmap.cfg - /var/lib/texmf/updmap.cfg-DEBIAN
-rw-r--r-- 1 root root 12449 Jun  1 10:33
/var/lib/texmf/tex/generic/config/language.dat
##
 Files in /etc/texmf/web2c/
total 8
-rw-r--r-- 1 root root  283 Jun 15  2013 mktex.cnf
-rw-r--r-- 1 root root 1101 Jun  1 10:26 texmf.cnf
##
 md5sums of texmf.d
ca40c66f144b4bafc3e59a2dd32ecb9c  /etc/texmf/texmf.d/00debian.cnf
055e06548bac99958d8ab2dd1248f2b4  /etc/texmf/texmf.d/80tex4ht.cnf

-- System Information:
Debian Release: jessie/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.12-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=ru_RU.utf8, LC_CTYPE=ru_RU.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages texlive-latex-base depends on:
ii  dpkg  1.17.9
ii  tex-common5.02
ii  texlive-base  2014.20140528-3
ii  texlive-binaries  2014.20140528.34243-2

Versions of packages texlive-latex-base recommends:
ii  texlive-latex-base-doc  2014.20140528-3

texlive-latex-base suggests no packages.

Versions of packages tex-common depends on:
ii  debconf [debconf-2.0]  1.5.53
ii  dpkg   1.17.9
ii  ucf3.0028

Versions of packages tex-common suggests:
ii  debhelper  9.20140228

Versions of packages texlive-latex-base is related to:
ii  tex-common5.02
ii  texlive-binaries  2014.20140528.34243-2

-- debconf information:
  tex-common/check_texmf_missing:
  tex-common/check_texmf_wrong:


russian-june-issue.pdf
Description: Adobe PDF document


russian-june-issue.fls
Description: Binary data
This is pdfTeX, Version 3.14159265-2.6-1.40.15 (TeX Live 2014/Debian) (preloaded format=pdflatex 2014.6.1)  1 JUN 2014 11:25
entering extended mode
 restricted \write18 enabled.
 %-line parsing enabled.
**russian-june-issue.tex
(./russian-june-issue.tex
LaTeX2e 2014/05/01
Babel 3.9k and hyphenation patterns for 78 languages loaded.
(/usr/share/texlive/texmf-dist/tex/latex/base/article.cls
Document Class: article 2007/10/19 v1.4h Standard LaTeX document class
(/usr/share/texlive/texmf-dist/tex/latex/base/size12.clo
File: size12.clo 2007/10/19 v1.4h Standard LaTeX file (size option)
)
\c@part=\count79
\c@section=\count80
\c@subsection=\count81
\c@subsubsection=\count82
\c@paragraph=\count83
\c@subparagraph=\count84
\c@figure=\count85
\c@table=\count86
\abovecaptionskip=\skip41
\belowcaptionskip=\skip42
\bibindent=\dimen102
)
(/usr/share/texlive/texmf-dist/tex/latex/base/fontenc.sty
Package: fontenc 2005/09/27 v1.99g Standard LaTeX package

(/usr/share/texlive/texmf-dist/tex/latex/cyrillic/t2aenc.def
File: t2aenc.def 2005/09/27 v1.0i Cyrillic encoding definition file
)
LaTeX Font Info:Try loading font information for T2A+cmr on input line 100.


(/usr/share/texlive/texmf-dist/tex/latex/cyrillic/t2acmr.fd
File: t2acmr.fd 2001/08/11 v1.0a Computer Modern Cyrillic font definitions
))
(/usr/share/texlive/texmf-dist/tex/latex/base/inputenc.sty
Package: inputenc 2014/04/30 v1.2b Input encoding file
\inpenc@prehook=\toks14
\inpenc@posthook=\toks15

(/usr/share/texlive/texmf-dist/tex/latex/base/utf8.def
File: utf8.def 2008/04/05 v1.1m UTF-8 support for inputenc
Now handling font encoding OML ...
... no UTF-8 mapping file for font encoding OML
Now handling font encoding T1 ...
... processing UTF-8 mapping file for font encoding T1

(/usr/share/texlive/texmf-dist/tex/latex/base/t1enc.dfu
File: t1enc.dfu 2008/04/05 v1.1m UTF-8 support for inputenc
   defining Unicode char U+00A1 (decimal 161)
   defining Unicode char U+00A3 (decimal 

Bug#749848: cln: clean target removes all directories under debian/

2014-06-01 Thread Игорь Пашев
2014-06-01 12:15 GMT+04:00 Richard B. Kreckel krec...@ginac.de:
 Hello Igor,

 Thank you very much for submitting a patch.

 On 05/30/2014 10:16 AM, Игорь Пашев wrote:
 Source: cln
 Severity: important

 Dear Maintainer,

 clean target removes all directories under debian/ including patches and
 source.

 Packages in sid/jessie are invalide, see
 https://packages.debian.org/ru/source/jessie/cln, compare with
 https://packages.debian.org/ru/source/squeeze/cln.

 Can you, please, explain what I am supposed to see there? What exactly
 makes the packages in sid/jessie invalid, as you say?

Well, in sid/jessie there two files, in squeeze - three :-)
Missing debian diff (or debian patch in case of 3.0 (quilt)) in sid.

I found this issue when tried to add a quilt patch: my patch was
removed when I run dpkg-buildpackage!


 I've a fixed fixed, 3.0 (quilt) version:
 http://apt.osdyson.org/pool/main/c/cln/

 I'll consider including your patch as soon as I understand a little
 better. Also, I would like to learn whether I should upload a new Debian
 package.

I did:

1. Fix (I hope) clean target in d/rules. now it is:
clean:
  dh_testdir
  dh_autoreconf_clean
  -rm -f build
  [ ! -f Makefile ] || ${MAKE} distclean
  dh_clean

2. Add d/source/format (3.0 (quilt))
3. Add Dyson specific patch (actually, a brute force fix for perror)


--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#749848: cln: clean target removes all directories under debian/

2014-06-01 Thread Игорь Пашев
2014-06-01 13:50 GMT+04:00 Richard B. Kreckel krec...@ginac.de:
 2. Add d/source/format (3.0 (quilt))

 Why is this file needed?

Hm.. did you know about https://wiki.debian.org/Projects/DebSrc3.0 ? ;-)


 3. Add Dyson specific patch (actually, a brute force fix for perror)

 Again: What problem does this solve? And if it does solve some problem,
 I see no reason why it should be a Debian patch, rather than an upstream
 patch.

It solves FTBFS on Dyson. I need this package on Dyson and can't wait
for a new upstream release then for a new Debian release. Does it make sense?
I didn't investigate what exactly is wrong, I just know that perror is
defined on Dyson.


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#749848: cln: clean target removes all directories under debian/

2014-06-01 Thread Игорь Пашев
2014-06-01 14:10 GMT+04:00 Richard B. Kreckel krec...@ginac.de:

 Sorry for being dumb, but what on Dyson? (My internet search only brings
 up vacuum cleaners and a bunch of persons.)

Sorry :-) It's Debian port to illumos kernel (formerly OpenSolaris)
http://osdyson.org


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#749848: cln: clean target removes all directories under debian/

2014-05-30 Thread Игорь Пашев
Source: cln
Severity: important

Dear Maintainer,

clean target removes all directories under debian/ including patches and
source.

Packages in sid/jessie are invalide, see
https://packages.debian.org/ru/source/jessie/cln, compare with
https://packages.debian.org/ru/source/squeeze/cln.


I've a fixed fixed, 3.0 (quilt) version:
http://apt.osdyson.org/pool/main/c/cln/



-- System Information:
Debian Release: jessie/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.12-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=ru_RU.utf8, LC_CTYPE=ru_RU.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#733033:

2014-05-25 Thread Игорь Пашев
I'd like to propose moving all documentation (including manpages) out
of library package into, say, ocl-icd-docs, and mark it as arch all.


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#733033:

2014-05-25 Thread Игорь Пашев
Please, ignore my previous message :-)

You are right in any case.


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#745480: [python2.7] Add support for lzma compressed tarballs

2014-04-22 Thread Игорь Пашев
Package: python2.7
Severity: wishlist
Tags: patch

Currently Debian patch tracker uses python 2 and fails to open
*.debian.tar.xz, see for example:

http://patch-tracker.debian.org/package/sbcl/2:1.1.15-1

I've made quick and dirty backport of tarfile from python3.
Tested only with patch tracker:
http://patches.osdyson.org/package/sbcl/2:1.1.15-1+dyson1

--- System information. ---
Architecture: amd64
Kernel:   Linux 3.10-2-amd64

Debian Release: jessie/sid
  500 unstablemirror.yandex.ru
  500 testing security.debian.org
  500 testing mirror.yandex.ru
  500 stable  sdkrepo.atlassian.com

--- Package information. ---
Depends   (Version) | Installed
===-+-
python2.7-minimal   (= 2.7.6-5) | 2.7.6-5
libpython2.7-stdlib (= 2.7.6-5) | 2.7.6-5
mime-support| 3.54


Package's Recommends field is empty.

Suggests   (Version) | Installed
-+-===
python2.7-doc|
binutils | 2.24-5
--- /usr/lib/python2.7/tarfile.py.orig  2014-04-22 09:04:41.0 +0100
+++ /usr/lib/python2.7/tarfile.py   2014-04-22 09:10:53.0 +0100
@@ -440,6 +440,19 @@
 else:
 self.cmp = bz2.BZ2Compressor()
 
+if comptype == xz:
+try:
+import lzma
+except ImportError:
+raise CompressionError(lzma module is not available)
+if mode == r:
+self.dbuf = b
+self.cmp = lzma.LZMADecompressor()
+self.exception = lzma.LZMAError
+else:
+self.cmp = lzma.LZMACompressor()
+
+
 def __del__(self):
 if hasattr(self, closed) and not self.closed:
 self.close()
@@ -1759,11 +1772,37 @@
 t._extfileobj = False
 return t
 
+@classmethod
+def xzopen(cls, name, mode=r, fileobj=None, compresslevel=9, **kwargs):
+Open lzma compressed tar archive name for reading or writing.
+   Appending is not allowed.
+
+if mode not in (r, w):
+raise ValueError(mode must be 'r' or 'w')
+
+try:
+import lzma
+except ImportError:
+raise CompressionError(lzma module is not available)
+
+fileobj = lzma.LZMAFile(fileobj or name, mode)
+
+try:
+t = cls.taropen(name, mode, fileobj, **kwargs)
+except (lzma.LZMAError, EOFError):
+fileobj.close()
+raise ReadError(not an lzma file)
+t._extfileobj = False
+return t
+
+
 # All *open() methods are registered here.
 OPEN_METH = {
 tar: taropen,   # uncompressed tar
 gz:  gzopen,# gzip compressed tar
-bz2: bz2open# bzip2 compressed tar
+bz2: bz2open,   # bzip2 compressed tar
+xz:  xzopen # lzma compressed tar
+
 }
 
 #--


Bug#745480: Updated patch

2014-04-22 Thread Игорь Пашев
Updated patch
Previous version breaks openning gzipped files :-) due to uncaught exception
--- /usr/lib/python2.7/tarfile.py.orig  2014-04-22 09:04:41.0 +0100
+++ /usr/lib/python2.7/tarfile.py   2014-04-22 09:55:48.0 +0100
@@ -440,6 +440,18 @@
 else:
 self.cmp = bz2.BZ2Compressor()
 
+if comptype == xz:
+try:
+import lzma
+except ImportError:
+raise CompressionError(lzma module is not available)
+if mode == r:
+self.dbuf = b
+self.cmp = lzma.LZMADecompressor()
+else:
+self.cmp = lzma.LZMACompressor()
+
+
 def __del__(self):
 if hasattr(self, closed) and not self.closed:
 self.close()
@@ -630,6 +642,8 @@
 return gz
 if self.buf[0:3] == BZh and self.buf[4:10] == 1AYSY:
 return bz2
+if self.buf.startswith((b\x5d\x00\x00\x80, b\xfd7zXZ)):
+return xz
 return tar
 
 def close(self):
@@ -1653,6 +1667,7 @@
 if mode in (r, r:*):
 # Find out which *open() is appropriate for opening the file.
 for comptype in cls.OPEN_METH:
+print comptype
 func = getattr(cls, cls.OPEN_METH[comptype])
 if fileobj is not None:
 saved_pos = fileobj.tell()
@@ -1759,11 +1774,37 @@
 t._extfileobj = False
 return t
 
+@classmethod
+def xzopen(cls, name, mode=r, fileobj=None, compresslevel=9, **kwargs):
+Open lzma compressed tar archive name for reading or writing.
+   Appending is not allowed.
+
+if mode not in (r, w):
+raise ValueError(mode must be 'r' or 'w')
+
+try:
+import lzma
+except ImportError:
+raise CompressionError(lzma module is not available)
+
+fileobj = lzma.LZMAFile(fileobj or name, mode)
+
+try:
+t = cls.taropen(name, mode, fileobj, **kwargs)
+except:
+fileobj.close()
+raise ReadError(not an lzma file)
+t._extfileobj = False
+return t
+
+
 # All *open() methods are registered here.
 OPEN_METH = {
 tar: taropen,   # uncompressed tar
 gz:  gzopen,# gzip compressed tar
-bz2: bz2open# bzip2 compressed tar
+bz2: bz2open,   # bzip2 compressed tar
+xz:  xzopen # lzma compressed tar
+
 }
 
 #--


Bug#661739:

2014-04-22 Thread Игорь Пашев
I've created git repository and updated to 1.4:

http://cgit.osdyson.org/gprolog.git/


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



[issue21287] Better support for AF_PACKET on opensolaris (illumos)

2014-04-17 Thread Игорь Пашев

New submission from Игорь Пашев:

SIOCGIFINDEX could be defined in illumos (aka OpenSolaris) if BSD_COMP macro 
defined. This causes known error: no member ifr_ifindex in struct ifreq.

But OpenSolaris provides newer interface with struct lifreq and SIOCGLIFINDEX.

Attached patch tries to use it.

--
components: Library (Lib)
files: dyson-socketmodule-ifindex.patch
keywords: patch
messages: 216727
nosy: Игорь.Пашев
priority: normal
severity: normal
status: open
title: Better support for AF_PACKET on opensolaris (illumos)
type: compile error
versions: Python 3.4
Added file: http://bugs.python.org/file34952/dyson-socketmodule-ifindex.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21287
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



  1   2   3   4   5   >