01 June 2017

vim-notebook

System: Microsoft Windows 10 Home Edition
CPUs: Intel(R) Celeron(R) CPU N3060 @1.60GHz
64-bit Operating System, x64-based processor
Deps: vs_community__1560150700.1495339730.exe,
Setup-Subversion-1.8.17.msi, Python-3.6.1.tar.xz,
vim-master.zip, vim-notebook-master.zip

T. Baruchel's vim-notebook currently only supports Unix-like OSes.

Since version 1.2.0 the plugin is compatible with T. Pope's vim-markdown.

My interest in this is in the pædagogical setting, as a interface to rc, and the functional programming language shells, es and/or xs, markdown doesn't really interest me. A PE64 interface to ELF64, that is, Win64 to WSL installed programs and/or compiled code, is also a possibility, where certain users might want to use markdown, i.e., .md files, for documentation.

There is no mkfifo on MS with the exception of the Interix subsystem, which was
deprecated circa Windows 8.0, so using a scripting language, or compiling server
and clients for Windows named pipes, would need to be pursued.

Currently this post only provides instructions for a compiling vim80 and Python-3.6.1.

https://www.visualstudio.com/downloads/
vs_community__1560150700.1495339730.exe

See the 9pvfs post for the Visual Studio setup.

https://sourceforge.net/projects/win32svn/
Setup-Subversion-1.8.17.msi

Run the above installer as an administrator.

https://www.python.org/downloads/release/python-361/
Python-3.6.1.tar.xz

Try Igor Pavlov's 7-Zip (64-bit x64) for extraction.

https://github.com/nurmi-labs/Python-3.6.1
Python-3.6.1-master.zip

From the extracted Python-3.6.1.tar.xz file remove the PC\bdist_wininst and PCbuild
directories, and replace them with those from the unpacked Python-3.6.1-master.zip
file. Then open a Windows Command Prompt as an administrator, CD to PCbuild
and run the get_externals.bat file. It appears that the tcl-core-8.6.6.0 and tk-8.6.6.0
rules.vc files haven't been upgraded since VS2013, so it's premature to add code
(for v141) into tcl.vcxproj, tcltk.props, tix.vcxproj, and tk.vcxproj.

Microsoft Windows [Version 10.0.14393]
(c) 2016 Microsoft Corporation. All rights reserved.

C:\WINDOWS\system32>CD \Python-3.6.1\PCbuild

C:\Python-3.6.1\PCbuild>get_externals.bat

...

C:\Python-3.6.1\PCbuild>EXIT

Open in VS the Project/Solution.. file pcbuild.sln, and when the project has been initialized,
change the menu's list boxes settings from Debug to Release and from Win32 to x64, then
Build the Solution.

Open in VS the Project/Solution.. file pcbuild.sln. When the offer to upgrade tcl, tix and tk,
appears just close that window, these files will register in the Solution Explorer as (Visual
Studio 2015) files, but absent having the Windows SDK 8.1 and the Platform toolset v140,
will compile with the current VS2017 Windows SDK 10.0.15063.0 and Platform toolset v141.

The tcl and tk rules.vc files don't allocate for the _MSC_VER macro's minor version number,
so for example, VS2013 should build those externals in Release_AMD64_VC12 rather than
in Release_AMD64_VC12.0. I think the latter would be a preferable approach to be pursued
regarding an eventual tcl and tk rules.vc file upgrade.

MSVC++ 14.0 _MSC_VER == 1900 (Visual Studio 2015)
MSVC++ 14.1 _MSC_VER == 1910 (Visual Studio 2017)

When the project has been initialized, change the menu's list boxes settings from Debug to
Release and from Win32 to x64, then Build the Solution.

Close the IDE and open a Windows Command Prompt as an administrator.

Microsoft Windows [Version 10.0.14393]
(c) 2016 Microsoft Corporation. All rights reserved.

C:\WINDOWS\system32>CD \

C:\>TYPE move.bat
@ECHO OFF

CD \Python-3.6.1
MKDIR C:\python
PUSHD C:\python
MKDIR DLLs Doc libs Scripts Tools
POPD
PUSHD PCbuild\amd64
MOVE python.exe C:\python
MOVE python3.dll C:\python
MOVE python36.dll C:\python
MOVE pythonw.exe C:\python
MOVE *.pyd C:\python\DLLs
MOVE sqlite3.dll C:\python\DLLs
MOVE tcl86t.dll C:\python\DLLs
MOVE tk86t.dll C:\python\DLLs
MOVE python3.lib C:\python\libs
MOVE python36.lib C:\python\libs
MOVE _tkinter.lib C:\python\libs
MOVE py.exe %windir%
MOVE pyshellext.dll %windir%\pyshellext.amd64.dll
MOVE pyw.exe %windir%
POPD
DEL Lib\distutils\command\*.pdb
MOVE Lib C:\python
MOVE Include C:\python\include
PUSHD Tools
MOVE demo C:\python\Tools
MOVE i18n C:\python\Tools
MOVE parser C:\python\Tools
MOVE pynche C:\python\Tools
MOVE scripts C:\python\Tools
POPD
MOVE LICENSE C:\python
MOVE externals\tcltk64\lib C:\python\tcl
CD PC
MOVE pyconfig.h C:\python\include
CD icons
MOVE py.ico C:\python\DLLs
MOVE pyc.ico C:\python\DLLs
MOVE pyd.ico C:\python\DLLs
CD \
C:\>move.bat

...

C:\>CD \Windows

C:\Windows>%systemroot%\System32\regsvr32.exe pyshellext.amd64.dll

C:\Windows>


C:\Windows>reg.exe query HKEY_CLASSES_ROOT\CLSID\{BEA218D2-6950-497B-9434-61683EC065FE}\InProcServer32

HKEY_CLASSES_ROOT\CLSID\{BEA218D2-6950-497B-9434-61683EC065FE}\InProcServer32
    (Default)    REG_SZ    C:\WINDOWS\pyshellext.amd64.dll
    ThreadingModel    REG_SZ    Apartment


C:\Windows>reg.exe query HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{BEA218D2-6950-497B-9434-61683EC065FE}\InProcServer32

HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{BEA218D2-6950-497B-9434-61683EC065FE}\InProcServer32
    (Default)    REG_SZ    C:\WINDOWS\pyshellext.amd64.dll
    ThreadingModel    REG_SZ    Apartment


C:\Windows>EXIT

NB: As the executables were compiled on a machine where vcruntime140.dll was
available, one doesn't need to locate another copy of that file in C:\python.

Add "C:\python\" and "C:\python\Scripts\" to your System Environment Variable PATH.

https://bootstrap.pypa.io/
get-pip.py

Download a copy of the above script and open a Windows Command Prompt as an administrator,

Microsoft Windows [Version 10.0.14393]
(c) 2016 Microsoft Corporation. All rights reserved.

C:\WINDOWS\system32>CD %HOMEPATH%\Downloads

C:\Users\Eric\Downloads>python.exe get-pip.py
Collecting pip
  Downloading pip-9.0.1-py2.py3-none-any.whl (1.3MB)
    100% |████████████████████████████████| 1.3MB 409kB/s
Collecting setuptools
  Downloading setuptools-36.0.1-py2.py3-none-any.whl (476kB)
    100% |████████████████████████████████| 481kB 819kB/s
Collecting wheel
  Downloading wheel-0.29.0-py2.py3-none-any.whl (66kB)
    100% |████████████████████████████████| 71kB 1.5MB/s
Installing collected packages: pip, setuptools, wheel
Successfully installed pip-9.0.1 setuptools-36.0.1 wheel-0.29.0

C:\Users\Eric\Downloads>DIR \python\Scripts
 Volume in drive C is Windows
 Volume Serial Number is F6FE-4B0A

 Directory of C:\python\Scripts

07/05/2017  02:20 AM    <DIR>          .
07/05/2017  02:20 AM    <DIR>          ..
07/05/2017  02:20 AM            98,151 easy_install-3.6.exe
07/05/2017  02:20 AM            98,151 easy_install.exe
07/05/2017  02:20 AM            98,123 pip.exe
07/05/2017  02:20 AM            98,123 pip3.6.exe
07/05/2017  02:20 AM            98,123 pip3.exe
07/05/2017  02:20 AM            98,130 wheel.exe
               6 File(s)        588,801 bytes
               2 Dir(s)   2,910,883,840 bytes free

C:\Users\Eric\Downloads>

NB: The file wheel.exe is not installed via running python-3.6.1-amd64.exe.

https://www.python.org/downloads/release/python-361/
python361.chm

Download the above "Windows help file", right click on the .chm file, and from the appearing
context menu click "Properties", then enter a mark ☑ in the box next to the word Unblock
and click the "Apply" button, close the "python361 Properties" window, and relocate the file.

C:\Users\Eric\Downloads>MOVE python361.chm \python\Doc
        1 file(s) moved.

C:\Users\Eric\Downloads>EXIT

There are two batch scripts located in the sidebar to add Registry keys,
if you don't want to install the .chm file then don't run help.bat.

NB: The pre-compiled download of python-3.6.1 contains tcl86tg.lib and
tk86tg.lib, that is, static debug libraries, this post omits their compilation.

To start IDLE from the Windows console (or Shortcut's Target) here's the command.

C:\python\pythonw.exe "C:\python\Lib\idlelib\idle.pyw"

Running 'rt.bat -x64' resulted in the following 3 failed tests.

test_distutils test_re test_subprocess

An Email has been sent 04-07-17 to report@bugs.python.org with the test suite output attached.

https://github.com/vim/vim
vim-master.zip

https://github.com/nurmi-labs/ms-sdk
Win32.mak

To compile the PE32+ gvim/vim you'll need a copy of Win32.Mak.

Place this along a parallel directory tree to that of %WindowsSdkDir%.

Open an x64 Native Tools Command Prompt as an administrator.

**********************************************************************
** Visual Studio 2017 Developer Command Prompt v15.0.26430.15
** Copyright (c) 2017 Microsoft Corporation
**********************************************************************
[vcvarsall.bat] Environment initialized for: 'x64'

C:\Windows\System32>CD \

C:\>TYPE vim.bat
@ECHO OFF
CD vim-master\src

SET SDK_INCLUDE_DIR=C:\Program Files (x86)\Windows Kits\6.1\Include

nmake.exe -f Make_mvc.mak APPVER=6.0 CPU=AMD64 CSCOPE=no GUI=yes^
MBYTE=yes NETBEANS=no PYTHON3=C:\python DYNAMIC_PYTHON3=yes^
PYTHON3_VER=36 WINVER=0x0600 SUBSYSTEM_VER=6.00

SET VIM=%HOMEDRIVE%\vim

MKDIR %VIM%\vimfiles
DEL ..\runtime\*.cdr
DEL ..\runtime\*.desktop
DEL ..\runtime\*.eps
DEL ..\runtime\*.gif
DEL ..\runtime\*.info
DEL ..\runtime\*.pdf
DEL ..\runtime\*.png
DEL ..\runtime\*.xpm
DEL ..\runtime\termcap
DEL ..\runtime\icons\*.info
DEL ..\runtime\icons\README.txt
RMDIR ..\runtime\icons
MOVE ..\runtime %VIM%\vim80
MOVE *.exe %VIM%\vim80
MOVE GvimExt\*.dll %VIM%\vim80
MOVE tee\*.exe %VIM%\vim80
MOVE xxd\*.exe %VIM%\vim80
CD %VIM%\vimfiles
MKDIR colors compiler doc ftdetect ftplugin indent keymap plugin syntax
C:\>vim.bat

...

C:\vim-master\src>

Add "C:\vim\vim80" to your System Environment Variable PATH.

If you want a console vim.exe start with a freshly extracted vim-master.zip and use
the same command line arguments for the compile as above omitting GUI=yes and
the carets (^), which are for line continuation in batch (.bat) files.

NB: One can't run an 'nmake.exe clean' due to a missing auto\config.h file.

https://sourceforge.net/projects/ctags/files/ctags/5.8/
ctags-5.8.tar.gz

Open an x64_x86 Cross Tools Command Prompt as an administrator.

**********************************************************************
** Visual Studio 2017 Developer Command Prompt v15.0.26430.15
** Copyright (c) 2017 Microsoft Corporation
**********************************************************************
[vcvarsall.bat] Environment initialized for: 'x64_x86'

C:\Windows\System32>CD \ctags-5.8

C:\ctags-5.8>nmake.exe -f mk_mvc.mak

...

C:\ctags-5.8>MOVE ctags.exe %HOMEDRIVE%\vim\vim80
        1 file(s) moved.

C:\ctags-5.8>EXIT

Some warnings output by the vim compile, for dynamic python3.

if_python3.c
if_python3.c(179): warning C4005: 'PySlice_GetIndicesEx': macro redefinition
c:\python\include\sliceobject.h(52): note: see previous definition of 'PySlice_GetIndicesEx'

https://github.com/baruchel/vim-notebook
vim-notebook-master.zip

25 May 2017

9pc

System: Microsoft Windows 10 Home Edition
CPUs: Intel(R) Celeron(R) CPU N3060 @1.60GHz
64-bit Operating System, x64-based processor
Deps: vs_community__1560150700.1495339730.exe,
9pc.tar.gz

Installation of C. Lohmann's proof‐of‐concept 9pc.

https://www.visualstudio.com/downloads/
vs_community__1560150700.1495339730.exe

See the previous post for the Visual Studio setup.

http://plan9.bell-labs.com/sources/contrib/zwansch/
9pc.tar.gz

Try Igor Pavlov's 7-Zip (64-bit x64) for extraction.

Create a new Project directory named 9pc with the 2 .cs files.

Open VS and create a new C# project from the code.

Running code analysis on the solution resulted in the following output.

CA2237: Microsoft.Usage : Add [Serializable] to 'ninepexception' as this type implements ISerializable.

CA1001: Microsoft.Design : Implement IDisposable on 'ninep' because it creates members of the following IDisposable types: 'Socket'.

CS0618: 'Dns.Resolve(string)' is obsolete: 'Resolve is obsoleted for this type, please use GetHostEntry instead. http://go.microsoft.com/fwlink/?linkid=14202'

There were also 41 naming rule violations pertaining to words which must begin with upper case characters.

A partial update to the code (which I haven't applied or tested).

main.cs

+   [Serializable]
     class ninepexception : Exception
     {
         public ninepexception(string str)
         {
             Console.WriteLine("9P error: {0}", str);
         }
     }

-            iphost = Dns.Resolve(host);
+           iphost = Dns.GetHostEntry(host);
addr = iphost.AddressList;
ep = new IPEndPoint(addr[0], port);

Renaming the 32-bit executable and running it.

C:\Users\Eric\9pc.exe
Connected
sources.cs.bell-labs.com% ls
drwxrwxr-x 9grid 9grid 0 9grid
-rw-rw-r-- bootes sys 0 _sources
drwxrwxr-x adm sys 0 adm
drwxrwxr-x sys sys 0 contrib
drwxrwxr-x bootes sys 0 dist
-rw-rw---- geoff sys 396576 du
drwxrwxr-x sys sys 0 extra
drwxrwx--- fastos fastos 0 fastos
-rw-rw-r-- sys sys 9142602 lsr
drwxrwxr-x geoff nix 0 nix
drwxrwxrwx glenda sys 0 patch
drwxrwxr-x sys sys 0 plan9
drwxrwxr-x sys sys 0 wiki
drwxrwxr-x xen xen 0 xen
sources.cs.bell-labs.com% q
Disconnected

C:\Users\Eric\>EXIT

Copes of 9pc's AssemblyInfo.cs and a partially updated Main.cs are in the sidebar.

18 May 2017

9pvfs

System: Microsoft Windows 10 Home Edition
CPUs: Intel(R) Celeron(R) CPU N3060 @1.60GHz
64-bit Operating System, x64-based processor
Deps: vs_community__1560150700.1495339730.exe,
tcl866-src.zip, tcllib-1.18.zip, tk866-src.zip, tclvfs.tar.gz

Installation of A. Belinfante's 9P2000 implementation.

http://plan9.bell-labs.com/sources/contrib/axel/tcl/9pvfs/
9pvfs.tcl
main-auth.tcl
main-no-auth.tcl
p9sk1.tcl

Possibly this could provide a Windows-native access to the Kirara
indexing software installed on Plan 9.

https://www.visualstudio.com/downloads/
vs_community__1560150700.1495339730.exe

Run the installer selecting the following individual components.

☑ Static analysis tools
☑ Text template Transformation
☑ C# and Visual Basic Roslyn compilers
☑ MSBuild
☑ VC++ 2017 v141 toolset (x86,x64)
☑ Just-in-Time debugger
☑ Visual Studio C++ core features
☑ Windows 10 SDK (10.015063.0) for Desktop C++ x86 and x64

https://sourceforge.net/projects/tcl/files/Tcl/8.6.6/
tcl866-src.zip

Open an x64_x86 Cross Tools Command Prompt as an administrator.

**********************************************************************
** Visual Studio 2017 Developer Command Prompt v15.0.26430.14
** Copyright (c) 2017 Microsoft Corporation
**********************************************************************
[vcvarsall.bat] Environment initialized for: 'x64_x86'

C:\Windows\System32>CD \tcl866-src\tcl8.6.6\win

C:\tcl866-src\tcl8.6.6\win>nmake.exe -f makefile.vc MACHINE=IX86

...

C:\tcl866-src\tcl8.6.6\win>nmake.exe -f makefile.vc install INSTALLDIR=c:\progra~2\tcl

...

C:\tcl866-src\tcl8.6.6\win>EXIT

Add "C:\Program Files (x86)\tcl\bin" to your System Environment Variable PATH.

NB: Setting the macro CFG_ENCODING to, e.g., 850, resulted in the failure
of tclsh86t.exe to install; the default is cp1252. I presume this is a bug and not
limited to cp850.

https://sourceforge.net/projects/tcllib/files/tcllib/1.18/
tcllib-1.18.zip

Open an x64_x86 Cross Tools Command Prompt as an administrator.

**********************************************************************
** Visual Studio 2017 Developer Command Prompt v15.0.26430.14
** Copyright (c) 2017 Microsoft Corporation
**********************************************************************
[vcvarsall.bat] Environment initialized for: 'x64_x86'

C:\Windows\System32>CD \tcllib-1.18

C:\tcllib-1.18>tclsh86t.exe installer.tcl
Installing Tcllib 1.18
You have chosen the following configuration ...

Packages:      C:/Program Files (x86)/tcl/lib/tcllib1.18
Applications:  C:/Program Files (x86)/tcl/bin
Examples:      C:/Program Files (x86)/tcl/bin/tcllib_examples1.18
Documentation:

        NROFF:  Not installed.
        HTML:   C:/Program Files (x86)/tcl/tcllib_doc

Is the chosen configuration ok ? y/N: y
.........................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
Generating C:/Program Files (x86)/tcl/lib/tcllib1.18/pkgIndex.tcl
.................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
Generating C:/Program Files (x86)/tcl/bin/dtplite.tcl

Generating C:/Program Files (x86)/tcl/bin/nns.tcl

Generating C:/Program Files (x86)/tcl/bin/nnsd.tcl

Generating C:/Program Files (x86)/tcl/bin/nnslog.tcl

Generating C:/Program Files (x86)/tcl/bin/page.tcl

Generating C:/Program Files (x86)/tcl/bin/pt.tcl

Generating C:/Program Files (x86)/tcl/bin/tcldocstrip.tcl


C:\tcllib-1.18>EXIT

https://sourceforge.net/projects/tcl/files/Tcl/8.6.6/
tk866-src.zip

Open an x64_x86 Cross Tools Command Prompt as an administrator.

**********************************************************************
** Visual Studio 2017 Developer Command Prompt v15.0.26430.14
** Copyright (c) 2017 Microsoft Corporation
**********************************************************************
[vcvarsall.bat] Environment initialized for: 'x64_x86'

C:\Windows\System32>SET TCLDIR=c:\tcl866-src\tcl8.6.6

C:\Windows\System32>CD \tk866-src\tk8.6.6\win

C:\tk866-src\tk8.6.6\win>nmake.exe -f makefile.vc MACHINE=IX86

...

C:\tk866-src\tk8.6.6\win>nmake.exe -f makefile.vc install INSTALLDIR=c:\progra~2\tcl

...

C:\tk866-src\tk8.6.6\win>EXIT

tclvfs.tar.gz

Try Igor Pavlov's 7-Zip (64-bit x64) for extraction.

Allocation for private headers, a patch (Japanese webpage)
for \tclvfs\generic\vfs.c,

  #endif
+ #include <tclPort.h>  /* moved in front of tcl.h */
  #include <tcl.h>
  /* Required to access the 'stat' structure fields, and TclInExit() */
  #include "tclInt.h"
- #include "tclPort.h"

  /*

and a patch for \tclvfs\win\rules.vc, were needed
in order to get tclvfs-1.4.2 to compile.

+ _HASH=^#
 _VC_MANIFEST_EMBED_EXE=
 _VC_MANIFEST_EMBED_DLL=
 VCVER=0
 !if ![echo VCVERSION=_MSC_VER > vercl.x] \
+     && ![echo $(_HASH)if defined(_M_IX86) >> vercl.x] \
+     && ![echo ARCH=IX86 >> vercl.x] \
+     && ![echo $(_HASH)elif defined(_M_AMD64) >> vercl.x] \
+     && ![echo ARCH=AMD64 >> vercl.x] \
+     && ![echo $(_HASH)endif >> vercl.x] \
     && ![cl -nologo -TC -P vercl.x $(ERRNULL)]
 !include vercl.i
- !if ![del /q vercl.x vercl.i $(ERRNULL)]
+ !if ![echo VCVER= ^\> vercl.vc] \
+     && ![set /a $(VCVERSION) / 100 - 6 >> vercl.vc]
+ !include vercl.vc
 !endif
- !if $(VCVERSION) >= 1500
- VCVER=9
- !elseif $(VCVERSION) >= 1400
- VCVER=8
- !elseif $(VCVERSION) >= 1300
- VCVER=7
- !elseif $(VCVERSION) >= 1200
- VCVER=6
 !endif
+ !if ![del $(ERRNUL) /q/f vercl.x vercl.i vercl.vc]
 !endif

  !if $(TCLINSTALL)
- _TCLBINDIR      = "$(_TCLDIR)\bin"
- TCLSH  = "$(_TCLBINDIR)\tclsh$(TCL_VERSION)$(SUFX).exe"
+ TCLSH  = "$(_TCLDIR)\tclsh$(TCL_VERSION)$(SUFX).exe"
  !if !exist($(TCLSH)) && $(TCL_THREADS)
- TCLSH           = "$(_TCLBINDIR)\tclsh$(TCL_VERSION)t$(SUFX).exe"
+ TCLSH           = "$(_TCLDIR)\bin\tclsh$(TCL_VERSION)t$(SUFX).exe"
  !endif

Open an x64_x86 Cross Tools Command Prompt as an administrator.

**********************************************************************
** Visual Studio 2017 Developer Command Prompt v15.0.26430.14
** Copyright (c) 2017 Microsoft Corporation
**********************************************************************
[vcvarsall.bat] Environment initialized for: 'x64_x86'

C:\Windows\System32>SET TCLDIR=c:\tcl866-src\tcl8.6.6

C:\Windows\System32>CD \tclvfs\win

C:\tclvfs\win>nmake.exe -f makefile.vc MACHINE=IX86

Microsoft (R) Program Maintenance Utility Version 14.10.25019.0
Copyright (C) Microsoft Corporation.  All rights reserved.

====================================================================
*** Compiler has 'Optimizations'
*** Compiler does not have 'Pentium 0x0f fix'
*** Linker does not have 'Win98 alignment problem'
*** Intermediate directory will be '.\Release_VC13\vfs_ThreadedDynamic'
*** Output directory will be '.\Release_VC13'
*** Suffix for binaries will be ''
*** Optional defines are '-DTCL_CFGVAL_ENCODING=\"cp1252\" -DSTDC_HEADERS -DTCL_THREADS=1 -DUSE_THREAD_ALLOC=1 -DUSE_THREAD_STORAGE=1 -DTCL_CFG_OPTIMIZED'
*** Compiler version 13. Target machine is IX86
*** Compiler options '-W3  -Ot -Oi -fp:strict -Gs -GS -GL  -RTC1 -W3'
*** Link options '-ltcg'
        rc -fo .\Release_VC13\vfs_ThreadedDynamic\tclvfs.res -r -i "..\generic" -D__WIN32__  -DCOMMAVERSION=1,4,0,0  -DDOTVERSION=\"1.4\"  -DVERSION=\"14\"  -d TCL_THREADS  ..\win\tclvfs.rc
Microsoft (R) Windows (R) Resource Compiler Version 10.0.10011.16384
Copyright (C) Microsoft Corporation.  All rights reserved.

        cl -DPACKAGE_NAME="\"vfs\""  -DPACKAGE_VERSION="\"1.4\""  -DBUILD_vfs -nologo -c -W3 -W3 -D _CRT_SECURE_NO_DEPRECATE -D _CRT_NONSTDC_NO_DEPRECATE -Fp.\Release_VC13\vfs_ThreadedDynamic\ -DUSE_TCL_STUBS  -Ot -Oi -fp:strict -Gs -GS -GL -MD -I"c:\tcl866-src\tcl8.6.6\generic" -I"c:\tcl866-src\tcl8.6.6\win" -I"..\win" -I"..\generic" -DTCL_CFGVAL_ENCODING=\"cp1252\" -DSTDC_HEADERS -DTCL_THREADS=1 -DUSE_THREAD_ALLOC=1 -DUSE_THREAD_STORAGE=1 -DTCL_CFG_OPTIMIZED -DBUILD_vfs -Fo.\Release_VC13\vfs_ThreadedDynamic\ @C:\Users\vortex\AppData\Local\Temp\nm193B.tmp
vfs.c
        link -nologo -machine:IX86 -ltcg -release -opt:ref -opt:icf,3 -dll -base:0x10A70000 -out:.\Release_VC13\vfs14.dll "c:\tcl866-src\tcl8.6.6\win\Release_VC13\tclstub86.lib" @C:\Users\vortex\AppData\Local\Temp\nm1C49.tmp
   Creating library .\Release_VC13\vfs14.lib and object .\Release_VC13\vfs14.exp
Generating code
Finished generating code
        if exist .\Release_VC13\vfs14.dll.manifest mt -nologo -manifest .\Release_VC13\vfs14.dll.manifest -outputresource:.\Release_VC13\vfs14.dll;2
        nmakehlp -s C:\Users\vortex\AppData\Local\Temp\nm1DD1.tmp ..\pkgIndex.tcl.in > .\Release_VC13\pkgIndex.tcl
        nmakehlp -s C:\Users\vortex\AppData\Local\Temp\nm1E20.tmp ..\library\vfs.tcl.in > .\Release_VC13\vfs.tcl

C:\tclvfs\win>MKDIR c:\progra~2\tcl\lib\vfs1.4

C:\tclvfs\win>MOVE ..\library\template c:\progra~2\tcl\lib\vfs1.4
        1 dir(s) moved.

C:\tclvfs\win>MOVE ..\library\*.tcl c:\progra~2\tcl\lib\vfs1.4
C:\tclvfs\library\ftpvfs.tcl
C:\tclvfs\library\httpvfs.tcl
C:\tclvfs\library\mk4vfs.tcl
C:\tclvfs\library\starkit.tcl
C:\tclvfs\library\tarvfs.tcl
C:\tclvfs\library\tclprocvfs.tcl
C:\tclvfs\library\testvfs.tcl
C:\tclvfs\library\tkvfs.tcl
C:\tclvfs\library\vfslib.tcl
C:\tclvfs\library\vfsUrl.tcl
C:\tclvfs\library\vfsUtils.tcl
C:\tclvfs\library\webdavvfs.tcl
C:\tclvfs\library\zipvfs.tcl
       13 file(s) moved.

C:\tclvfs\win>MOVE Release_VC13\*.dll c:\progra~2\tcl\lib\vfs1.4
C:\tclvfs\win\Release_VC13\vfs14.dll
        1 file(s) moved.

C:\tclvfs\win>MOVE Release_VC13\*.lib c:\progra~2\tcl\lib\vfs1.4
C:\tclvfs\win\Release_VC13\vfs14.lib
        1 file(s) moved.

C:\tclvfs\win>MOVE Release_VC13\*.tcl c:\progra~2\tcl\lib\vfs1.4
C:\tclvfs\win\Release_VC13\pkgIndex.tcl
C:\tclvfs\win\Release_VC13\vfs.tcl
        2 file(s) moved.

C:\tclvfs\win>

The first ftp address in examples\simpleExamples.tcl is no longer maintained,
you can try substituting 'ftp://ftp.belnet.be'. The file 'vfsTest.tcl' doesn't appear
to work and in the following it has been replaced by 'vfsTktest.tcl'.

The modified copy appears in the sidebar.

C:\tclvfs\win>CD %HOMEPATH%

C:\Users\Eric>tclsh86t.exe simpleExamples.tcl
(pwd is 'C:/Users/Eric', file volumes is 'C:/')
Adding ftp:// volume...
ftp.belnet.be listing
ftp://ftp.belnet.be/debian ftp://ftp.belnet.be/debian-cd ftp://ftp.belnet.be/mirror ftp://ftp.belnet.be/mirrors ftp://ftp.belnet.be/pub
----
(file volumes is 'ftp:// C:/')
Adding http:// volume...
Contents of <http://sourceforge.net/projects/tcl> web page
<html>
<head><title>301 Moved Permanently</title></head>
<body bgcolor="white">
<center><h1>301 Moved
(first 100 out of 171 characters)
----
(file volumes is 'ftp:// http:// C:/')
Mounting ftp://ftp.ucsd.edu/pub/alpha/ ...
(pwd is now 'C:/Users/Eric/localmount/tcl' which is effectively a transparent link to a remote ftp site)
Contents of remote directory is:
        Alphabugtest.sit
        MacOSprojects.tar.gz
        alphatk
        chanExec.patch
        defineclassbug.zip
        extensions
        iwidgets.diff.gz
        tclobjvfs.diff
        tclobjvfs.diff.gz
        tclvfs.diff
        test.txt
        tests.zip
        tip113.diff
        trace.diff.gz
        tracecmdexec.diff.gz
        tracecommand.patch.gz
        vfs.zip
        vfsTest.tcl
        vfsTktest.tcl
sourcing remote file 'vfsTktest.tcl', using 'source vfsTktest.tcl'
The vfs test file is being sourced
Done

C:\Users\Eric>EXIT


NB: Either closing the wish86t.exe window, or entering in the console Ctrl+C
returns you the the prompt; some developers copy wish86t.exe to wish.exe
and/or to wish86.exe.

This section (on trf) is not finished.

Here is the unmodified makefile fror trf2.1.4.

NB: On 64 bit for OpenSSL one doesn't need to install NASM and the commands run would be:

C:\openssl-1.0.2l>perl.exe Configure VC-WIN64A --prefix=c:\progra~2\openssl
C:\openssl-1.0.2l>ms\do_win64a.bat
C:\openssl-1.0.2l>nmake.exe -f ms\ntdll.mak
C:\openssl-1.0.2l>nmake.exe -f ms\ntdll.mak install

https://github.com/Perl/perl5
perl5-blead.zip [patched 16-06-17 for VS 2017]

Or as applied to the current perl stable release, perl-5.26.0, a patched makefile.

Obviously, if you want to use that patched makefile, save it with UNIX line endings.

I don't know if tabs might be an issue, this Internet log (blog) doesn't allocate for tabs.

NB: I think it wasn't documented why perl-blead needed to distinguish between
x86 and x64 library directories, whereas perl stable did not, what chnaged in the
perl code that required that.

Open an x64 Native Tools Command Prompt as an administrator.

**********************************************************************
** Visual Studio 2017 Developer Command Prompt v15.0.26430.12
** Copyright (c) 2017 Microsoft Corporation
**********************************************************************
[vcvarsall.bat] Environment initialized for: 'x64'

C:\Windows\System32>CD \perl5-blead\win32

C:\perl5-blead\win32>nmake.exe -f Makefile

...

C:\perl5-blead\win32>nmake.exe test

All tests successful.

Test Summary Report
-------------------
../ext/IPC-Open3/t/IPC-Open3.t                                   (Wstat: 0 Tests: 45 Failed: 0)
  TODO passed:   25
Files=2584, Tests=1155327, 3845 wallclock secs (252.78 usr + 17.80 sys = 270.58 CPU)
Result: PASS
        cd ..\win32

C:\perl5-blead\win32>nmake.exe -f Makefile install

...

C:\perl5-blead\win32>EXIT

Add "C:\perl\bin" to your System Environment Variable PATH.

http://www.nasm.us/pub/nasm/releasebuilds/2.13.01/win64/
nasm-2.13.01-installer-x64.exe

Run the above installer as an administrator.

Add "C:\Program Files\NASM" to your System Environment Variable PATH.

https://www.openssl.org/source/
openssl-1.0.2l.tar.gz

Try Igor Pavlov's 7-Zip (64-bit x64) for extraction.

Open an x64_x86 Cross Tools Command Prompt as an administrator.

**********************************************************************
** Visual Studio 2017 Developer Command Prompt v15.0.26430.14
** Copyright (c) 2017 Microsoft Corporation
**********************************************************************
[vcvarsall.bat] Environment initialized for: 'x64_x86'

C:\Windows\System32>CD \openssl-1.0.2l

C:\openssl-1.0.2l>perl.exe Configure VC-WIN32 --prefix=c:\progra~2\openssl

...

C:\openssl-1.0.2l>ms\do_ms.bat

...

C:\openssl-1.0.2l>ms\do_nasm.bat

...

C:\openssl-1.0.2l>nmake.exe -f ms\ntdll.mak

...

C:\openssl-1.0.2l>CD out32dll

C:\openssl-1.0.2l\out32dll>..\ms\test.bat

...
passed all tests

C:\openssl-1.0.2l\out32dll>CD ..

C:\openssl-1.0.2l>nmake.exe -f ms\ntdll.mak install

...

C:\openssl-1.0.2l>EXIT

Add "C:\Program Files (x86)\openssl\bin" to your System Environment Variable PATH.
bzip2-1.0.6.tar.gz

Try Igor Pavlov's 7-Zip (64-bit x64) for extraction.

https://github.com/nurmi-labs/bzip2-1.0.6
bzip2-1.0.6-master.zip

Add the git (Clone or download) .sln and .vcxproj files to the bzip2-1.0.6 directory.

Start the VS IDE and open the Project/Solution... file libbz2.sln, then from the IDE
menu's list box change from Debug to Release, and Build the Solution.

Close the IDE and open a Windows Command Prompt as an administrator.

Microsoft Windows [Version 10.0.14393]
(c) 2016 Microsoft Corporation. All rights reserved.

C:\WINDOWS\system32>CD \bzip2-1.0.6

C:\bzip2-1.0.6>MKDIR c:\progra~2\bzip2\bin

C:\bzip2-1.0.6>MOVE libbz2.dll c:\progra~2\bzip2\bin
        1 file(s) moved.

C:\bzip2-1.0.6>MKDIR c:\progra~2\bzip2\include

C:\bzip2-1.0.6>MOVE bzlib.h c:\progra~2\bzip2\include
        1 file(s) moved.

C:\bzip2-1.0.6>EXIT

 Add "C:\Program Files (x86)\bzip2\bin" to your System Environment Variable PATH.

http://zlib.net/
zlib1211.zip

https://github.com/nurmi-labs/zlib-1.2.11
zlilb-1.2.11-master.zip

Add the git (Clone or download) vc15 subdirectory to zlib-1.2.11/contrib/vstudio.

Start the VS IDE and open the Project/Solution... file vc15/zlibvc.sln, then from the IDE
menu's list box change from Debug to Release, and Build the Solution.

Close the IDE and open a Windows Command Prompt as an administrator.

Microsoft Windows [Version 10.0.14393]
(c) 2016 Microsoft Corporation. All rights reserved.

C:\WINDOWS\system32>CD \zlib1211\zlib-1.2.11

C:\zlib1211\zlib-1.2.11>SET ZLIBDIR=c:\progra~2\zlib

C:\zlib1211\zlib-1.2.11>MKDIR %ZLIBDIR%\bin

C:\zlib1211\zlib-1.2.11>MOVE contrib\vstudio\vc15\x86\ZlibDllRelease\zlibwapi.dll %ZLIBDIR%\bin
        1 file(s) moved.

C:\zlib1211\zlib-1.2.11>MKDIR %ZLIBDIR%\include

C:\zlib1211\zlib-1.2.11>MOVE zconf.h %ZLIBDIR%\include
        1 file(s) moved.

C:\zlib1211\zlib-1.2.11>MOVE zlib.h %ZLIBDIR%\include
        1 file(s) moved.

C:\zlib1211\zlib-1.2.11>EXIT

Add "C:\Program Files (x86)\zlib\bin" to your System Environment Variable PATH.

https://sourceforge.net/projects/tcltrf/
trf2.1.4.zip

http://wiki.tcl.tk/15632 [9P (Plan 9 Filesystem Protocol) VFS]
http://wiki.tcl.tk/2701 [Tcl IO Drivers]
http://wiki.tcl.tk/2466 [tclvfs]
http://wiki.tcl.tk/479 [trf]

Additional Trf functionality: tls1.6.7-src.tar.gz, trfcrypt2.0p3.zip

https://core.tcl.tk/tcltls/wiki/Download
tcltls-1.7.12.tar.gz [SSL encryption]

https://core.tcl.tk/tcltls/uvlist?byage=1
older version .zip files are here

http://www.oche.de/~akupries/soft/trfcrypt/index.html
trfcrypt2.0p3.zip [crypto-algorithms]

A Slackware-14.2 (32-bit) install of trf2.1.4.tar.gz, where I manually entered
the path to the OpenSSL headers in the Makefile (after running the configure
script) and modified tests/defs as follows passed all in tests/*.test files except
base64.test, common.all.test, and transform.test, outputting 'invalid command
name "memchan"', and skipping binio.test, as the command was not compiled
into the package.

-    package require Memchan
+    package require tcl::chan::memchan

The Msys2 project has a cvs package.

https://sourceforge.net/projects/msys2/files/REPOS/MSYS2/x86_64/
cvs-1.11.23-2-x86_64.pkg.tar.xz

And, likewise a tclvfs-cvs package, where the tclvfs module was checked
out from the CVS server, but configured without threads enabled.

https://sourceforge.net/projects/msys2/files/REPOS/MINGW/x86_64/
mingw-w64-x86_64-tclvfs-cvs-20130425-3.src.tar.gz

27 April 2017

cvmfs

This post will be about the CernVM-FS.

http://cernvm.cern.ch/portal/filesystem

Proposed distro specific code changes to the GitHub repository.

https://github.com/cvmfs/cvmfs/tree/devel/cvmfs
cvmfs_config

sys_arch=$(uname)

case $sys_arch in
  Linux )
    if [ -x /sbin/service ]; then
      service="/sbin/service"
    elif [ -x /usr/sbin/service ]; then
      # Ubuntu
      service="/usr/sbin/service"
    elif [ -x /sbin/rc-service ] ; then
      # OpenRC
      service="/sbin/rc-service"
    elif [ -x /usr/bin/systemctl ] ; then
      # archlinux
      service="/usr/bin/systemctl"
    fi
    if [ -x /sbin/pidof ]; then
      pidof="/sbin/pidof"
    else
      # Ubuntu
      pidof="/bin/pidof"
    fi
-    if [ -x /sbin/fuser ]; then
+    if [ -x /bin/fuser ]; then
+      fuser="/bin/fuser"  # SuSE, Ubuntu
+    elif [ -x /sbin/fuser ]; then
      fuser="/sbin/fuser"  # RHEL
-    else
-      fuser="/bin/fuser"  # Ubuntu, SuSE
+    elif [ -x /usr/bin/fuser ]; then
+      fuser="/usr/bin/fuser"  # Slackware
    fi
    if [ -x /usr/bin/fusermount ]; then
      fusermount="/usr/bin/fusermount"  # RHEL, SuSE
    else
-      fusermount="/bin/fusermount"  # Ubuntu
+      fusermount="/bin/fusermount"  # Slackware, Ubuntu
    fi
    if [ ! -x /usr/bin/attr ]; then
      # Fedora
      if [ ! -x /bin/attr ]; then
        echo "attr utility required"
        exit 1
      fi
    fi
    fuse_fs_type="fuse"
    ;;

  Darwin )
    fuser="/usr/bin/fuser"
    fuse_fs_type="osxfusefs"
    ;;

  * )
    echo "Architecture $sys_arch is not supported"
    exit 1 ;;
esac

http://cvmfs.readthedocs.io/en/stable/cpt-squid.html

https://slackbuilds.org/repository/14.2/network/
squid-3.5.20.tar.xz
squid.tar.gz

eric6

System: Slackware Linux (version 14.2)
CPU: Intel(R) Core(TM) Duo CPU T2500 @2.00GHz
Deps: eric6-17.04.1.tar.gz
eric6-i18n-en-17.04.1.tar.gz

Installation of eric6-17.04.1.

https://sourceforge.net/projects/eric-ide/files/eric6/stable/17.04.1/

eric6-17.04.1.tar.gz
eric6-i18n-en-17.04.1.tar.gz

https://slackbuilds.org/repository/14.2/development/

https://slackbuilds.org/repository/14.2/libraries/
https://slackbuilds.org/repository/14.2/python/

bash-4.3# installpkg MarkupSafe-0.23-i486-1_SBo.tgz \
> PyStemmer-1.3.0-i586-1_SBo.tgz Pygments-2.1.3-i586-1_SBo.tgz \
> alabaster-0.7.9-i586-1_SBo.tgz cx_Freeze-4.2.3-i486-1_SBo.tgz \
> docutils-0.12-i486-1_SBo.tgz imagesize-0.7.1-i586-1_SBo.tgz \
> pyenchant-1.6.8-i586-1_SBo.tgz python-lazy-object-proxy-1.2.2-i586-1_SBo.tgz \
> python-requests-2.13.0-i586-1_SBo.tgz python-wrapt-1.10.8-i586-1_SBo.tgz \
> pytz-2016.10-i586-1_SBo.tgz six-1.10.0-i586-1_SBo.tgz


...

bash-4.3# installpkg Jinja2-2.7.3-i486-1_SBo.tgz \
> astroid-1.5.2-i586-1_SBo.tgz babel-2.3.4-i586-1_SBo.tgz \
> logilab-common-0.63.2-i486-1_SBo.tgz snowballstemmer-1.2.1-i586-1_SBo.tgz


...

bash-4.3# installpkg Sphinx-1.5.5-i586-1_SBo.tgz \
> pylint-1.5.2-i486-1_SBo.tgz


...

bash-4.3#

A SlackBuild for eric6 is located in the sidebar.

bash-4.3# installpkg eric6-17.04.1-i586-1_SBo.tgz

...

bash-4.3# exit

NB: You need at least Qt version 5.6.0 to execute the eric6 (QtWebEngine) web browser,
which is not supplied with this version of Slackware Linux; while the eric6 (QtWebKit) web
browser works fine.

22 April 2017

hubfs

http://9p.io/wiki/plan9/expanding_your_grid/index.html

http://9p.io/wiki/plan9/Configuring_a_Standalone_CPU_Server/index.html
http://9p.io/wiki/plan9/adding_a_new_user/index.html
http://9p.io/wiki/plan9/Network_configuration/index.html

http://9p.io/wiki/plan9/Installing_a_Plan_9_file_server/index.html
http://9p.io/wiki/plan9/setting_up_fossil/index.html
http://9p.io/wiki/plan9/setting_up_Venti/index.html

http://9p.io/wiki/plan9/connecting_to_other_OSes/index.html
http://9p.io/wiki/plan9/connecting_from_other_OSes/index.html

http://9p.io/wiki/plan9/hubfs/index.html
http://plan9.bell-labs.com/magic/man2html/4/consolefs

http://plan9.bell-labs.com/sources/contrib/mycroftiv/hubfs1.1/

NB: For Windows 10 (CU) 64-bit WSL probably one would want from a plan9port install
to connect to a GNU/Linux 64-bit machine on a LAN, and then use p9p's 9pfuse on the
latter for p9p/unix; the README file has a couple of scripts. On MacOS X you probably
need from Terminal to switch from bash to rc before starting acme.

The hubfs(1) and io(1) man pages are in the sidebar.

19 April 2017

p9p

System: Slackware Linux (version 14.2)
CPU: Intel(R) Core(TM) Duo CPU T2500 @2.00GHz
Deps: plan9port-20140306.tgz

https://code.google.com/archive/p/plan9port/downloads
plan9port-20140306.tgz

I recently compiled plan9port-20140306.tgz with Slackware-14.2's glibc-2.23.

The plan9port files' compilation produced terminal output as follows:

9c  sam.c
/usr/include/features.h:148:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
# warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"

The suggestion has been forwarded to avoid the deprecated function usleep() in favour of nanosleep(), the change of the feature test macro (FTM) appears to have occurred in glibc subsequent to Slackware-14.1's glibc-2.17, so the warnings likely do not occur with those releases.