On 08/12/2018 17:44, Bruce Dubbs via blfs-dev wrote:
> On 12/08/2018 06:33 AM, Thomas Trepl via blfs-dev wrote:
>> Am Samstag, den 08.12.2018, 09:39 +0100 schrieb Pierre Labastie via
>> blfs-dev:
>>> While testing jhalfs dependency algorithm, I discovered a few things about
>>> python modules (there may be others):
>>> - several modules have instructions for both python2 and python3, but 
>>> Python2
>>> is not listed as a dependency (or is only listed as optional). Either 
>>> Python2
>>> should be listed as a (recommended) dependency, or the text should be 
>>> changed
>>> to something like: "if you have installed Python2, run the following
>>> commands..."
>>>
>>> - scour is built only for Python2, but Python2 is not even mentioned as
>>> optional
>>>
>>> - There is still the following sentence at the beginning of the Python 
>>> module
>>> page:
>>> "Installation of the modules shown on this page is meant to follow from top 
>>> to
>>> bottom to handle optional dependencies in each module."
>>> But I think the dependencies have been sorted out, and actually, there are
>>> "out of order" recommended dependencies for some modules (e.g. PyGObjects is
>>> recommended by PyAtSpi2). So this sentence should not be there (and actually
>>> it has no sense as soon as there is an out of order dep).
>>>
>>> What I suggest:
>>> -make all the python2 commands optional, by adding a sentence, adding 
>>> Python2
>>> as optional dep, and role="nodump" to the <userinput> tag, except for 
>>> modules
>>> where only Python2 is used, where I would make Python2 recommended.
>>> -remove the sentence "Installation of the modules..."
>>>
>>> I can do that, but I ask first for opinions
>>
>> I'd suggest to remove python2 everywhere it is possible even it might
>> be possible to 'compile' with python2 (no 'optional Python2 at those
>> packages). P2 should now appear in book only where it is definitely
>> required and yes, there are still a few packages which require P2 to
>> be installed but it seems that they get fewer (scons-3.0.1 is the
>> latest example, it now works fine with P3).
>> While it is not that urgent (EOL of P2 is in 2020), we should no
>> longer put great efforts to support it beyond the packages which
>> requires it.
> 
> I agree with Thomas.  Phasing out python2 would help simplify things a
> little.  Unfortunately I get:
> 
> $ grep -r 'linkend="python2"' *|wc -l
>     107
> 

Excluding the archive and the .svn directories from the search, it goes down
to 70. Still a lot of work though. Do I understand correctly that we could
remove reference to P2, when it is an optional dependency (even if it cannot
be replaced with P3)?

I've made a small xsl stylesheet to extract python2 dependencies. Here is the
list: package plus dependency type. The stylesheet did not do well with python
modules, but I think it is not that important.
----------
Package: CrackLib-2.9.6
  optional
----------------------------
Package: cryptsetup-2.0.4
  optional
----------------------------
Package: GPGME-1.11.1
  optional
----------------------------
Package: MIT Kerberos V5-1.16.1
  optional
----------------------------
Package: volume_key-0.3.11
  required
----------------------------
Package: btrfs-progs-4.17.1
  optional
----------------------------
Package: Vim-8.1
  optional
----------------------------
Package: qemu-3.0.0
  required
----------------------------
Package: Boost-1.68.0
  optional
----------------------------
Package: gobject-introspection-1.58.0
  optional
----------------------------
Package: js52-52.2.1gnome1
  required
----------------------------
Package: js60-60.1.0
  required
----------------------------
Package: libbytesize-1.4
  optional
----------------------------
Package: libxml2-2.9.8
  optional
----------------------------
Package: nodejs-9.11.2
  required
----------------------------
Package: Talloc-2.1.14
  optional
----------------------------
Package: gegl-0.4.8
  optional
----------------------------
Package: Graphite2-1.3.12
  optional
----------------------------
Package: HarfBuzz-1.8.8
  optional
----------------------------
Package: Little CMS-1.19
  optional
----------------------------
Package: newt-0.52.20
  optional
----------------------------
Package: opencv-3.4.3
  optional
----------------------------
Package: Poppler-0.68.0
  recommended
----------------------------
Package: asciidoc-8.6.9
  optional
----------------------------
Package: Graphviz-2.40.1
  optional
----------------------------
Package: GTK-Doc-1.29
  required
----------------------------
Package: usbutils-010
  required
----------------------------
Package: Doxygen-1.8.14
  optional
----------------------------
Package: GDB-8.2
  optional
----------------------------
Package: git-2.18.0
  recommended
----------------------------
Package: LLVM-6.0.1
  required
----------------------------
Package: Mercurial-4.7.1
  required
----------------------------
Package: Python Modules
  optional
----------------------------
Package: Python Modules
  recommended
----------------------------
Package: Python Modules
  optional
----------------------------
Package: Python Modules
  optional
----------------------------
Package: Python Modules
  optional
----------------------------
Package: Python Modules
  required
----------------------------
Package: Python Modules
  optional
----------------------------
Package: rustc-1.25.0
  required
----------------------------
Package: SCons-3.0.0
  required
----------------------------
Package: Subversion-1.10.2
  optional
----------------------------
Package: yasm-1.3.0
  optional
----------------------------
Package: Samba-4.9.1
  required
----------------------------
Package: Wget-1.19.5
  optional
----------------------------
Package: Nmap-7.70
  optional
----------------------------
Package: Wicd-1.7.4
  required
----------------------------
Package: ldns-1.7.0
  optional
----------------------------
Package: libpsl-0.20.2
  required
----------------------------
Package: nghttp2-1.33.0
  optional
----------------------------
Package: fetchmail-6.3.26
  optional
----------------------------
Package: PostgreSQL-10.5
  optional
----------------------------
Package: Unbound-1.7.3
  optional
----------------------------
Package: xcb-proto-1.13
  optional
----------------------------
Package: Mesa-18.2.0
  required
----------------------------
Package: Xorg Drivers
  optional
----------------------------
Package: libglade-2.6.4
  optional
----------------------------
Package: Plasma-5.13.4
  required
----------------------------
Package: Tracker-2.0.4
  required
----------------------------
Package: FontForge-20170731
  optional
----------------------------
Package: alsa-lib-1.1.6
  optional
----------------------------
Package: libmusicbrainz-2.1.5
  optional
----------------------------
Package: Cups-2.2.8
  optional
----------------------------
Package: docbook-xsl-1.79.2
  optional
----------------------------
Package: install-tl-unx
  recommended
----------------------------
Package: texlive-20180414
  recommended
----------------------------

Pierre
-- 
http://lists.linuxfromscratch.org/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to