gnulib-tool.py: a new life

2013-04-18 Thread Dmitry Selyutin
tions are appreciated. Testing is appreciated even more, though I've tested only some basic actions with some basic packages like *hello*. Since I'm studying in Italy yet, I won't have so much time until summer. However, I hope that I can help even this time, though I can't promise it w

pygnulib: code separation

2013-05-10 Thread Dmitry Selyutin
. What do you think about it? -- With best regards, Dmitry Selyutin E-mail: ghostma...@gmail.com Phone: +7(985)334-07-70

Re: pygnulib: code separation

2013-05-10 Thread Dmitry Selyutin
n use it, and those of us who have a > whole development structure built up around how gnulib is now can keep > using it as it is? > > Best, > k > -- With best regards, Dmitry Selyutin E-mail: ghostma...@gmail.com Phone: +7(985)334-07-70

symlink.c for Windows

2013-09-08 Thread Dmitry Selyutin
+/* The system does not support symlinks. */ +int +symlink (char const *contents _GL_UNUSED, + char const *name _GL_UNUSED) +{ + errno = ENOSYS; + return -1; +} + +# endif + #endif /* !HAVE_SYMLINK */ -- With best regards, Dmitry Selyutin E-mail: ghostma...@gmail.com Phone: +7(985)334-07-70

Re: symlink.c for Windows

2013-09-09 Thread Dmitry Selyutin
dvice. It's always a great pleasure and honor for me to learn from experienced professionals, and I'm really glad that here in gnulib I sometimes have such an opportunity. Thank you again! If there are some things to be said, I'm always open for discussion! 2013/9/9 Eli Zaretskii &

Re: symlink.c for Windows

2013-09-09 Thread Dmitry Selyutin
mplement these functions. -- With best regards, Dmitry Selyutin

Re: removing permissions for long unused accounts, take 2

2022-07-12 Thread Dmitry Selyutin
Hi Bruno, On Wed, Jul 13, 2022 at 8:18 AM Bruno Haible wrote: > > Dmitry Selyutin > OK to proceed? I'm fine with revoking my write permissions. I still have plans to check on Python gnulib, but, if I will do it, it's simple to restore the permissions. Until then, let's

Re: --create-testdir eats CPU and does nothing

2017-08-05 Thread Dmitry Selyutin
Hi everyone! I'm amazed that someone still remembers this project. Looking at its sources, I see that there is room for improvement, but still the overall project structure may still be integrated into gnulib. I would be glad to continue working on the project in my free time, though my Python ski

Re: [pygnulib] gnulib-python initial merge and some minor bug fixes

2017-08-20 Thread Dmitry Selyutin
Sorry, I've forgotten to provide a link to the original repository. [0] https://github.com/ghostmansd/gnulib-python 2017-08-20 11:08 GMT+03:00 Dmitry Selyutin : > Hello, > > this is the very first patch after five years of silence. > It all boils down to importing gnu

Re: [pygnulib] gnulib-python initial merge and some minor bug fixes

2017-08-20 Thread Dmitry Selyutin
P.S. Please ignore binary .pyc files; they won't be present in the commit, just a leftover from the testing. 2017-08-20 11:10 GMT+03:00 Dmitry Selyutin : > Sorry, I've forgotten to provide a link to the original repository. > > [0] https://github.com/ghostmansd/gnulib-python &

Re: [pygnulib] gnulib-python initial merge and some minor bug fixes

2017-08-21 Thread Dmitry Selyutin
Hi Bruno, what do you think if I'll periodically merge stable versions into the master? For example, I think currently the imported 'as is' version can be merged. I'd like to work on API on a separate branch though, since I roughly dislike the idea of developing on master. For example, see my lat

Re: gnulib-tool.py

2017-09-05 Thread Dmitry Selyutin
-tool.py and > ./bootstrap > > The ./bootstrap script (also from gnulib) uses/loade ./bootstrap.conf. > > Maybe that can help you with debugging (sorry, but I am absolutely not into > python). > > Regards, Tim > > > On Montag, 4. September 2017 23:18:29

Re: gnulib-tool.py

2017-09-07 Thread Dmitry Selyutin
sary, I can try using some kind of tool which formats the code automatically. 6 сент. 2017 г. 7:42 ПП пользователь "Tim Rühsen" написал: > On Dienstag, 5. September 2017 23:35:54 CEST Dmitry Selyutin wrote: > > Hi Tim, > > > > that's exactly what I've done

Re: gnulib-tool.py

2017-09-08 Thread Dmitry Selyutin
> Bruno, Paul, could you help me with merging? > > I might help you better if you show the error message(s) you got - and, > obviously, the command sequence you tried. > > Bruno > > -- With best regards, Dmitry Selyutin

Re: gnulib-tool.py

2017-09-08 Thread Dmitry Selyutin
Yes, whitespaces and EOF's were the real cause. I've run the autopep8 tool and it solved the issue. Tim, I've managed to build wget2 against the latest master (though I had to change $gnulib_tool and checkout master inside submodule). 2017-09-08 17:51 GMT+03:00 Darshit Shah : >

Re: gnulib-tool.py: trivial fixes

2017-09-09 Thread Dmitry Selyutin
Sure, perfectly OK. 2017-09-09 12:40 GMT+03:00 Bruno Haible : > Hi Dmitry, > > Here are some proposed fixes for trivial issues. May I push these? > > Bruno > > -- With best regards, Dmitry Selyutin

Re: gnulib-tool.py: follow gnulib-tool changes

2017-09-09 Thread Dmitry Selyutin
it's very possible that you find mistakes in these patches. > > Bruno > -- With best regards, Dmitry Selyutin

Re: gnulib-tool.py argument parsing

2017-09-09 Thread Dmitry Selyutin
e line > cmdargs = parser.parse_args() > with > cmdargs, nonoption_args = parser.parse_known_args() > > 2) Revisit all uses of nargs='+' and nargs='*'. > > Bruno > > -- With best regards, Dmitry Selyutin

Re: gnulib-tool.py: follow gnulib-tool changes

2017-09-09 Thread Dmitry Selyutin
sh. 2017-09-09 17:52 GMT+03:00 Bruno Haible : > Hi Dmitry, > > Here's the next round of patches, for your review. I'm slowly working > through > the past gnulib-tool changes. > > Bruno > > -- With best regards, Dmitry Selyutin

Re: gnulib-tool.py: follow gnulib-tool changes

2017-09-09 Thread Dmitry Selyutin
s,pos = match.span()` can be a bit better formatted into > > `(startpos, pos) = match.span()`. > > Done. I had verified that both syntaxes work, but did not know which one is > the preferred one. > > Bruno > > -- With best regards, Dmitry Selyutin

Re: [PATCH] gnulib-tool.py: Append, don't replace existing VCS ignore files

2017-09-11 Thread Dmitry Selyutin
ay after looking into the code, but at least it is working somehow and can be a basic for a much better API. Remember that we're staying on giants' shoulders, I've just rewritten what was created before in another language. :-) Anyway, thank you for your kind words! -- With best

Re: gnulib-tool.py

2017-09-11 Thread Dmitry Selyutin
Hi Tim, this is a kind reminder that it is still unstable and buggy, so I hope that you still maintain runners with the original gnilub-tool script. Still this news sounds great! -- With best regards, Dmitry Selyutin signature.asc Description: This is a digitally signed message part.

[pygnulib] simplify cache configure.ac parsing

2017-09-12 Thread Dmitry Selyutin
me doubts. What do you think? BTW, the version from the pygnulib differs a bit already from the gnulib-tool shell script; I've attached the patch. I've also decided to use raw string literals just to make regex less verbose. -- With best regards, Dmitry Selyutin From 71a8d4a82caf173

Re: [PATCH] gnulib-tool.py: Clean the imports

2017-09-24 Thread Dmitry Selyutin
th the patch itself, it's correct and does the right thing, but I really think that it would be a lot better to invest your time into a new implementation. Especially if you want to train your Python skills, because the old code may really teach you some bad developer practices. -- With best regards, Dmitry Selyutin signature.asc Description: This is a digitally signed message part.

Re: pygnulib: Portability fixes

2017-09-25 Thread Dmitry Selyutin
the script for both versions is really huge, I really think that Bruno was right from the very beginning. -- With best regards, Dmitry Selyutin signature.asc Description: This is a digitally signed message part.

Re: new module 'strlcpy'

2017-09-27 Thread Dmitry Selyutin
How about strscpy from the Linux kernel? https://www.kernel.org/doc/htmldocs/kernel-api/API-strscpy.html 28 сент. 2017 г. 4:23 ДП пользователь "Paul Eggert" написал: > On 09/27/2017 05:35 PM, Bruno Haible wrote: > >> strlcpy with __warn_unused_result__ is the best solution for this task. >> > >

Re: alternatives to 'strlcpy'

2017-09-28 Thread Dmitry Selyutin
he Linux kernel); moreover, since some people do not actually know the difference between strcpy and strcat, the situation is even worse. :-) -- With best regards, Dmitry Selyutin signature.asc Description: This is a digitally signed message part.

[pygnulib] gnulib-tool: license transformers

2017-10-02 Thread Dmitry Selyutin
e very grateful if you could also shed some light on lines 4915 and 4929 (related to numeric version parsing). P.S. Could suggest some files to train my regular expressions on? -- With best regards, Dmitry Selyutin signature.asc Description: This is a digitally signed message part.

gnulib-tool.py: --symbolic and --hardlink support

2017-10-18 Thread Dmitry Selyutin
these options do have a large use, I will surely implement them, though I must really think a lot how to integrate them in a better way. I'd be very grateful for your feedback. -- With best regards, Dmitry Selyutin signature.asc Description: This is a digitally signed message part.

Re: gnulib-tool.py: --symbolic and --hardlink support

2017-10-22 Thread Dmitry Selyutin
ing. Thank you! -- With best regards, Dmitry Selyutin signature.asc Description: This is a digitally signed message part.

Re: [PATCH] gnulib-tool.py: Append, don't replace existing VCS ignore files

2017-11-19 Thread Dmitry Selyutin
like it has been merged > yet. > > * Darshit Shah [170913 00:19]: > > * Dmitry Selyutin [170911 21:32]: > > > Hi all, > > > > > > > As explained above, this patch helps converge gnulib-tool.py and > > > > gnulib-tool. There is a behav

Re: [PATCH] gnulib-tool.py: Append, don't replace existing VCS ignore files

2017-11-20 Thread Dmitry Selyutin
Hi Darshit, I've just pushed your patch. I took the liberty to format it as if it was sent via git format-patch. Thank you again! signature.asc Description: This is a digitally signed message part.

pygnulib: progress and some questions (func_emit_autoconf_snippets)

2017-12-27 Thread Dmitry Selyutin
s) contain not strings, but a real module instances. Thank you for your help! -- With best regards, Dmitry Selyutin signature.asc Description: This is a digitally signed message part.

Re: pygnulib: progress and some questions (func_emit_autoconf_snippets)

2017-12-28 Thread Dmitry Selyutin
Hi Bruno, thank you for the detailed answer. I think I still have to do some debugging to understand why the Python version of the algorithm for autoconf snippets generation works incorrectly, but I hope I understood how it should work. 29 дек. 2017 г. 2:32 ДП пользователь "Bruno Haible" написал

Re: gnulib-tool.py does not write the gitignore file correctly

2018-01-27 Thread Dmitry Selyutin
it repository. It turns out that the original gnulib-tool > used to write the .gitignore file with a list of all the files it copied > into m4/. But, gnulib-tool.py does *NOT* write the gitignore file. > > Could this please be fixed? It's not a major issue, just a minor >

gnulib-tool: conditional dependencies calculation

2018-02-10 Thread Dmitry Selyutin
ll modules required by it. No other module seem to require localcharset except of mbrtowc. 1) mbrtowc is the only one module which requires localcharset; 2) mbrtowc requires localcharset conditionally; 3) all the dependencies of localcharset shall be considered conditional. Is the following assumption correct and I've found a bug in gnulib-tool, or am I misunderstanding the whole concept of conditional dependencies? I'd be very grateful if someone could help me with this issue, currently it is the last part of the support for --conditional-dependencies in Python. Thank you! -- With best regards, Dmitry Selyutin signature.asc Description: This is a digitally signed message part.

Re: gnulib-tool: conditional dependencies calculation

2018-02-11 Thread Dmitry Selyutin
;, 'stdio-tests') [None, None, None] ('stdio', 'fdopen', 'fgetc-tests', 'stdio-tests') [None, None, None] ('stdio', 'fdopen', 'fwrite-tests', 'stdio-tests') [None, None, None] unistd [U] ('unistd', &#

Re: Change the python interpretor to use /usr/bin/env python3

2018-04-01 Thread Dmitry Selyutin
Hello, thank you for investigating this. I'm joining to questions asked by Paul; moreover, as far as I know specifying python is usually the most correct way to make python work regardless of version (i.e. it is supposed that one day there will be no distinction between python and python3). FWIW,

Re: gnulib-tool: conditional dependencies calculation

2018-06-27 Thread Dmitry Selyutin
c_transitive_closure and prints ones which are conditional, I see that the following modules are marked as conditional: fd-hook, msvc-inval, msvc- nothrow, sockets, unistd. FWIW, I've used the following code to print the conditional modules: for module in $final_modules; do if func_cond_module_p $module; then echo ">>" "$module" fi done exit 1 What am I missing? It looks like pygnulib and gnulib-tool have different understanding of conditional modules. Thank you for your help! -- With best regards, Dmitry Selyutin

gnulib-tool: .XXXignore files generation

2018-06-27 Thread Dmitry Selyutin
;, 'm4', 'cond.m4') ('A', 'm4', 'cond.m4') ('D', 'prefix/tests', 'zerosize-ptr.h') ('D', 'prefix/tests', 'zerosize-ptr.h') ('D', 'm4', 'ctype.m4') However, the tricky part is what to do with that information. Could you help me on this part, please? Thank you for your help! -- With best regards, Dmitry Selyutin

Re: gnulib-tool: .XXXignore files generation

2018-06-28 Thread Dmitry Selyutin
ly; I tried to keep the logic as similar as it is possible, but of course the implementation differs. Thank you again for your help! -- With best regards, Dmitry Selyutin

Re: gnulib-tool.py: Import mktemp

2018-06-28 Thread Dmitry Selyutin
Hi Tim, thank you for noticing it! Pushed into master. -- With best regards, Dmitry Selyutin signature.asc Description: This is a digitally signed message part.

Re: gnulib-tool: Use the Python implementation by default

2024-04-29 Thread Dmitry Selyutin
Hi folks, sorry for the long silence! I've been tracking your progress for a while, even though sporadically and remaining silent. I'd like to say "thank you" to Bruno and Collin, who made it this far and never surrendered. :-) Truth to be told, the code I implemented leaves much to be desired, an