hns - 日記自動生成システム - Version 2.19.9

先月 2021年01月 来月
1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
31
Namazu for hns による簡易全文検索
詳しくは 詳細指定/ヘルプを参照して下さい
検索式:

2021年01月31日() 旧暦 [n年日記] [更新:"2021/01/31 11:00:00"]

#1 [pkgsrc] w3m-0.5.3-git20210102

Some style handling is different by w3m and by firefox.

The example lines often appear at attached in mail:


#2 minimum test case:

<head>
<style><!--
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0mm;
	text-align:justify;
	text-justify:inter-ideograph;
	{margin-bottom:0mm;}
--></style>
</head>
<body>

<p class="MsoNormal">line 1</p>
<p class="MsoNormal">line 2</p>
<p class="MsoNormal">line 3</p>
</body>
</html>
With firefox:
line 1
line 2
line 3
With w3m:
line 1

line 2

line 3
You may check it with your browser: If I remove the line:
margin:0mm;
Both shows the same output with one extra blank line. So, w3m won't handle this line.

I'm happy with following change::

--- /tmp/www/w3m/work/w3m-0.5.3-git20210102/file.c	2021-01-02 09:03:25.000000000 +0900
+++ /home/makoto/prep/file.c	2021-01-31 19:54:50.497197755 +0900
@@ -4564,9 +4564,9 @@
     case HTML_N_P:
 	CLOSE_A;
 	if (!(obuf->flag & RB_IGNORE_P)) {
-	    flushline(h_env, obuf, envs[h_env->envc].indent, 1, h_env->limit);
-	    do_blankline(h_env, obuf, envs[h_env->envc].indent, 0,
-			 h_env->limit);
+	    //	    flushline(h_env, obuf, envs[h_env->envc].indent, 1, h_env->limit);
+	    //	    do_blankline(h_env, obuf, envs[h_env->envc].indent, 0,
+	    //		h_env->limit);
 	}
 	obuf->flag |= RB_IGNORE_P;
 	if (cmd == HTML_P) {



2021年01月30日() 旧暦 [n年日記] [更新:"2021/01/30 23:52:55"]

#1 [pkgsrc] w3m-0.5.3-git20210102

The problem is: normal http:// processing is file, but file:///tmp/1.html gives extra blank line

#2 file.c

these look related, but real empty line is generated at other places
  6216          if (!internal)
  6217              {
  6218                  fprintf(stderr, "\n%s: %s:%04d: %d\n",__func__, __FILE__,__LINE__, nlines);
  6219                  addnewline(buf, outc, outp, NULL, pos, -1, nlines); // this line is important
  6220              }
  6221          if (internal == HTML_N_INTERNAL)
  6222              internal = 0;
  6223          if (str != endp) {
  6224              line = Strsubstr(line, str - line->ptr, endp - str);
  6225              goto proc_again;
  6226          }
__func__ is displayed as:
HTMLlineproc2body The problematic origninal source has following style:
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0mm;
	text-align:justify;
	text-justify:inter-ideograph;
	font-size:10.5pt;
	font-family:"游ゴシック",sans-serif;}
and it is enclosed <p> </p>
<p class="MsoNormal">the line </p>


2021年01月09日() 旧暦 [n年日記] [更新:"2021/01/09 00:11:03"]

#1 [pkgsrc]

NetBSD-9.0/20210105.0408/py36-colorama-0.4.4/build.log
Traceback (most recent call last):
  File "setup.py", line 36, in <module>
    long_description=read_file('README.rst'),
  File "setup.py", line 19, in read_file
    return fp.read()
  File "/usr/pkg/lib/python3.6/encodings/ascii.py", line 26, in decode
    return codecs.ascii_decode(input, self.errors)[0]
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc2 in position 852: ordinal not in range(128)
*** Error code 1

Stop.
make[1]: stopped in /amd/pkgsrc/CHROOT/P/pkgsrc/comms/py-colorama
*** Error code 1
backup-u@makoto 08:38:14/210109(..current/NetBSD-9.0)% grep -lr  "UnicodeDecodeError: " .
./20200219.2303/py36-ephem-3.7.7.0/build.log
./20200219.2303/py36-test-testmon-0.9.19/build.log
./20200219.2303/py36-xmlschema-1.1.0/build.log
./20200219.2303/py36-z3-4.8.3/configure.log
CF-SX3@makoto 08:40:26/210109(..textproc/py-xmlschema)% cat patches/patch-setup.py
$NetBSD: patch-setup.py,v 1.1 2020/05/31 20:49:34 joerg Exp $

--- setup.py.orig       2020-05-31 18:07:15.361949598 +0000
+++ setup.py
@@ -8,12 +8,13 @@
 #
 # @author Davide Brunato <brunato@sissa.it>
 #
+import sys
 import importlib
 from setuptools import setup
 from setuptools.command.develop import develop
 from setuptools.command.install import install
 
-with open("README.rst") as readme:
+with open("README.rst", **({'encoding': 'UTF-8'} if sys.version_info.major>=3 else {})) as readme:
     long_description = readme.read()
./20200223.1203/py36-xmlschema-1.1.1/build.log
Traceback (most recent call last):
  File "setup.py", line 17, in <module>
    long_description = readme.read()
  File "/usr/pkg/lib/python3.6/encodings/ascii.py", line 26, in decode
    return codecs.ascii_decode(input, self.errors)[0]
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 4839: ordinal not in range(128)


2021年01月02日() 旧暦 [n年日記] [更新:"2004/08/09 23:43:33"]

#1 [pkgssrc] ImportError: cannot import name 'DistutilsSetupError'

=> Bootstrap dependency digest>=20010302: found digest-20190127
===> Skipping vulnerability checks.
WARNING: No /usr/pkg/pkgdb/pkg-vulnerabilities file found.
WARNING: To fix run: `/usr/sbin/pkg_admin -K /usr/pkg/pkgdb fetch-pkg-vulnerabilities'.
===> Building for py36-obspy-1.1.1nb2

(cd /tmp/geography/py-obspy/work/obspy-1.1.1/ && /usr/bin/env
USETOOLS=no PTHREAD_CFLAGS=\ -pthread\ PTHREAD_LDFLAGS=\ -pthread
PTHREAD_LIBS= PTHREADBASE=/usr DL_CFLAGS=\ -pthread\ DL_LDFLAGS=\
-pthread DL_LIBS= PYTHON=/usr/pkg/bin/python3.6 CC=gcc CFLAGS=-O2\
-D_FORTIFY_SOURCE=2\ -I/usr/include\ -I/usr/pkg/include/python3.6\
-I/usr/pkg/include CPPFLAGS=-I/usr/include\
-I/usr/pkg/include/python3.6\ -I/usr/pkg/include CXX=c++ CXXFLAGS=-O2\
-D_FORTIFY_SOURCE=2\ -I/usr/include\ -I/usr/pkg/include/python3.6\
-I/usr/pkg/include COMPILER_RPATH_FLAG=-Wl,-R F77=gfortran FC=gfortran
FFLAGS=-O LANG=C LC_ALL=C LC_COLLATE=C LC_CTYPE=C LC_MESSAGES=C
LC_MONETARY=C LC_NUMERIC=C LC_TIME=C LDFLAGS=-L/usr/lib\
-Wl,-R/usr/lib\ -L/usr/pkg/lib\ -Wl,-R/usr/pkg/lib
LINKER_RPATH_FLAG=-R
PATH=/tmp/geography/py-obspy/work/.cwrapper/bin:/tmp/geography/py-obspy/work/.buildlink/bin:/tmp/geography/py-obspy/work/.gfortran/bin:/tmp/geography/py-obspy/work/.gcc/bin:/tmp/geography/py-obspy/work/.tools/bin:/usr/pkg/bin:/usr/bin:/bin:/usr/pkg/bin:/usr/local/bin:/usr/pkg/bin:/usr/X11R7/bin
PREFIX=/usr/pkg MAKELEVEL=0 CONFIG_SITE= PKG_SYSCONFDIR=/usr/pkg/etc
CXXCPP=cpp HOME=/tmp/geography/py-obspy/work/.home
CWRAPPERS_CONFIG_DIR=/tmp/geography/py-obspy/work/.cwrapper/config
CPP=cpp LOCALBASE=/usr/pkg X11BASE=/usr/X11R7 PKGMANDIR=man
PKGINFODIR=info PKGGNUDIR=gnu/ MAKECONF=/dev/null OBJECT_FMT=ELF
USETOOLS=no BSD_INSTALL_PROGRAM=/usr/bin/install\ -c\ -s\ -o\ pbulk\
-g\ wheel\ -m\ 755 BSD_INSTALL_SCRIPT=/usr/bin/install\ -c\ -o\ pbulk\
-g\ wheel\ -m\ 755 BSD_INSTALL_LIB=/usr/bin/install\ -c\ -o\ pbulk\
-g\ wheel\ -m\ 755 BSD_INSTALL_DATA=/usr/bin/install\ -c\ -o\ pbulk\
-g\ wheel\ -m\ 644 BSD_INSTALL_MAN=/usr/bin/install\ -c\ -o\ pbulk\
-g\ wheel\ -m\ 644 BSD_INSTALL=/usr/bin/install
BSD_INSTALL_PROGRAM_DIR=/usr/bin/install\ -d\ -o\ pbulk\ -g\ wheel\
-m\ 755 BSD_INSTALL_SCRIPT_DIR=/usr/bin/install\ -d\ -o\ pbulk\ -g\
wheel\ -m\ 755 BSD_INSTALL_LIB_DIR=/usr/bin/install\ -d\ -o\ pbulk\
-g\ wheel\ -m\ 755 BSD_INSTALL_DATA_DIR=/usr/bin/install\ -d\ -o\
pbulk\ -g\ wheel\ -m\ 755 BSD_INSTALL_MAN_DIR=/usr/bin/install\ -d\
-o\ pbulk\ -g\ wheel\ -m\ 755 BSD_INSTALL_GAME=/usr/bin/install\ -c\
-s\ -o\ pbulk\ -g\ wheel\ -m\ 2555
BSD_INSTALL_GAME_DATA=/usr/bin/install\ -c\ -o\ pbulk\ -g\ wheel\ -m\
664 BSD_INSTALL_GAME_DIR=/usr/bin/install\ -d\ -o\ pbulk\ -g\ wheel\
-m\ 775 INSTALL_INFO=
MAKEINFO=/tmp/geography/py-obspy/work/.tools/bin/makeinfo FLEX= BISON=
PKG_CONFIG=
PKG_CONFIG_LIBDIR=/tmp/geography/py-obspy/work/.buildlink/lib/pkgconfig:/tmp/geography/py-obspy/work/.buildlink/share/pkgconfig
PKG_CONFIG_LOG=/tmp/geography/py-obspy/work/.pkg-config.log
PKG_CONFIG_PATH=
CWRAPPERS_CONFIG_DIR=/tmp/geography/py-obspy/work/.cwrapper/config
/usr/pkg/bin/python3.6 setup.py build -j4)


Traceback (most recent call last):
  File "setup.py", line 47, in <module>
    from numpy.distutils.core import DistutilsSetupError, setup
ImportError: cannot import name 'DistutilsSetupError'
*** Error code 1
Numpy released new version, 1.19, which broke the setup. The problem is that we are importing DistutilsSetupError through numpy and it just stopped working. It was working only due to the fact that <1.19 in numpy.core they were doing from distutils.core import *. In 1.19 they changed it to from distutils.core import Distribution in numpy/numpy#15465 So instead of going around, I just import DistutilsSetupError directly from distutils. Fixes #2640


2021年01月01日(金) 旧暦 [n年日記] [更新:"2004/08/09 23:43:33"]

#1 [pkgsrc][check-update] deve/R-roxygen2-7.1.1

check- update が deve/R-roxygen2-7.1.1 でうまく動いていない。 R special の debug flag は Q なので、 ONLY_ONCE という変数があるが、これは R_special 専用(らしい) 次のような表示があるが、 GetDistBase が 2 を取ってしまうらしい
1940 <main::GetDistBaseNoHyphen> distbase: roxygen2_7.1.1
2316 <main::GetDistBase> return(roxygen_7.1.1)
4816 <> back from GetDistBase (DISTBASE) roxygen_7.1.1
fc -fild -200
   10  2021-01-01 09:21  cd /export/git-work/check-update
   11  2021-01-01 09:21  git g -- .
   12  2021-01-01 09:21  git diff -- .
   13  2021-01-01 09:21  git branch
   14  2021-01-01 09:21  git diff
   15  2021-01-01 09:21  git pull
   16  2021-01-01 09:22  pushd /export/CHROOT/usr/pkgsrc/devel/R-roxygen2/
   17  2021-01-01 09:22  /export/git-work/check-update/check-update
   20  2021-01-01 09:23  pkgin search  p5-Net-DNS
   21  2021-01-01 09:23  sudo pkgin install p5-Net-DNS
   22  2021-01-01 09:33  /export/git-work/check-update/check-update
   23  2021-01-01 09:34  cvs update -dPA .
   24  2021-01-01 09:34  /export/git-work/check-update/check-update
   25  2021-01-01 09:54  /export/git-work/check-update/check-update -h
   26  2021-01-01 09:54  /export/git-work/check-update/check-update -H
   28  2021-01-01 09:55  /export/git-work/check-update/check-update -xQ
   29  2021-01-01 09:55  /export/git-work/check-update/check-update -xQl

   34  2021-01-01 09:59  grep -i special /export/git-work/check-update/check-update
   36  2021-01-01 09:59  grep -i special /export/git-work/check-update/check-update|grep R

   38  2021-01-01 10:00  grep DEBUG_R_PACKAGE /export/git-work/check-update/check-update
   39  2021-01-01 10:01  emacs  /export/git-work/check-update/check-update 

   41  2021-01-01 10:02  /export/git-work/check-update/check-update -xQl |grpe 7.1.1
   42  2021-01-01 10:02  /export/git-work/check-update/check-update 
   43  2021-01-01 10:05  (cd /export/git-work/check-update/; git diff -- check-update )
   44  2021-01-01 10:05  grep ONLY_ONCE /export/git-work/check-update/check-update

   47  2021-01-01 10:06  (cd /export/git-work/check-update/; git blame -- check-update) |less

   51  2021-01-01 10:08  (cd /export/git-work/check-update/; git show d3924505)
   52  2021-01-01 10:09  vi /export/git-work/check-update/check-update
   53  2021-01-01 10:10  /export/git-work/check-update/check-update 
   54  2021-01-01 10:24  /export/git-work/check-update/check-update  -xQ
   56  2021-01-01 10:30  cat Makefile

   58  2021-01-01 10:33  /export/git-work/check-update/check-update  -H
   59  2021-01-01 10:33  /export/git-work/check-update/check-update  -xd
   60  2021-01-01 10:34  /export/git-work/check-update/check-update  -xdQ
次の部分が問題だと判明
  1930  sub GetDistBaseNoHyphen($$$$){
  1931      my ($pkgbase)       = shift;        #
  1932      my ($pkgname)       = shift;        #
  1933      my ($pkgversion)    = shift;        #
  1934      my ($distname)      = shift;        #
  1935      
  1936      my ($value)         = $distname;    # delegate9.9.1
  1937      $value =~ s|\+|\.|;
  1938  
  1939      if ( ! ($value =~ /-/) ) {
  1940          print STDERR sprintf("%4d <", __LINE__ ), (caller 0)[3], '> distbase: ', $value, "\n" if $DEBUG_DISTBASE;
  1941          $value =~ s/[0-9.]+//;
  1942          print STDERR sprintf("%4d <", __LINE__ ), (caller 0)[3], '> distbase: ', $value, "\n" if $DEBUG_DISTBASE;
  1943      }  else { $value = '';}
  1944      return $value;
  1945  }



最近の日記
2024年03月10日
停電 (瞬電)
2024年03月03日
the second try on bare-metal
useradd
2024年02月29日
opendkim and senmail
2024年01月24日
chat/iam 0.0.8
2024年01月21日
uselocale vs setlocale (textproc/R-readxl)
以上、5 日分です。
タイトル一覧
カテゴリ分類
Powered by hns-2.19.9, HyperNikkiSystem Project

Count.cgi (since 2000/02/05)