Skip to content

Commit

Permalink
Merge pull request #4435 from mwichmann/maint/httprefs
Browse files Browse the repository at this point in the history
Elminate http: references
  • Loading branch information
bdbaddog authored Oct 17, 2023
2 parents 807cac7 + e5086e3 commit 2bfab82
Show file tree
Hide file tree
Showing 31 changed files with 126 additions and 110 deletions.
2 changes: 2 additions & 0 deletions CHANGES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,8 @@ RELEASE VERSION/DATE TO BE FILLED IN LATER
if `kpsewhich glossaries.sty` fails.
- Added a .note.GNU-stack section to the test assembler files to
avoid the GNU linker issuing warnings for its absence.
- Eliminate more http: references (mostly in comments/docstrings where
they really weren't harmful). A few links labeled dead with no alt.


From Jonathon Reinhart:
Expand Down
5 changes: 2 additions & 3 deletions SCons/Platform/win32.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,8 @@ def win_api_copyfile(src,dst) -> None:
# This locked version of spawnve works around a Windows
# MSVCRT bug, because its spawnve is not thread-safe.
# Without this, python can randomly crash while using -jN.
# See the python bug at http://bugs.python.org/issue6476
# and SCons issue at
# https://github.com/SCons/scons/issues/2449
# See the python bug at https://github.com/python/cpython/issues/50725
# and SCons issue at https://github.com/SCons/scons/issues/2449
def spawnve(mode, file, args, env):
spawn_lock.acquire()
try:
Expand Down
2 changes: 1 addition & 1 deletion SCons/Script/Interactive.py
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ def do_shell(self, argv) -> None:
argv = os.environ[self.shell_variable]
try:
# Per "[Python-Dev] subprocess insufficiently platform-independent?"
# http://mail.python.org/pipermail/python-dev/2008-August/081979.html "+
# https://mail.python.org/pipermail/python-dev/2008-August/081979.html "+
# Doing the right thing with an argument list currently
# requires different shell= values on Windows and Linux.
p = subprocess.Popen(argv, shell=(sys.platform=='win32'))
Expand Down
5 changes: 2 additions & 3 deletions SCons/Tool/MSCommon/sdk.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,9 @@
# seem to be any sane registry key, so the precise location is hardcoded.
#
# For versions below 2003R1, it seems the PSDK is included with Visual Studio?
#
# Also, per the following:
# http://benjamin.smedbergs.us/blog/tag/atl/
# VC++ Professional comes with the SDK, VC++ Express does not.
#
# Of course, all this changed again after Express was phased out (2005).

# Location of the SDK (checked for 6.1 only)
_CURINSTALLED_SDK_HKEY_ROOT = \
Expand Down
23 changes: 13 additions & 10 deletions SCons/Tool/compilation_db.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,5 @@
"""
Implements the ability for SCons to emit a compilation database for the MongoDB project. See
http://clang.llvm.org/docs/JSONCompilationDatabase.html for details on what a compilation
database is, and why you might want one. The only user visible entry point here is
'env.CompilationDatabase'. This method takes an optional 'target' to name the file that
should hold the compilation database, otherwise, the file defaults to compile_commands.json,
which is the name that most clang tools search for by default.
"""

# MIT License
#
# Copyright 2020 MongoDB Inc.
#
# Permission is hereby granted, free of charge, to any person obtaining
Expand All @@ -27,7 +20,17 @@
# LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#

"""Compilation Database
Implements the ability for SCons to emit a compilation database for a
project. See https://clang.llvm.org/docs/JSONCompilationDatabase.html
for details on what a compilation database is, and why you might want one.
The only user visible entry point here is ``env.CompilationDatabase``.
This method takes an optional *target* to name the file that should hold
the compilation database, otherwise, the file defaults to
``compile_commands.json``, the name that most clang tools search for by default.
"""

import json
import itertools
Expand Down
25 changes: 24 additions & 1 deletion SCons/Tool/cyglink.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,29 @@
# MIT License
#
# Copyright The SCons Foundation
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, modify, merge, publish,
# distribute, sublicense, and/or sell copies of the Software, and to
# permit persons to whom the Software is furnished to do so, subject to
# the following conditions:
#
# The above copyright notice and this permission notice shall be included
# in all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY
# KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
# WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
# LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

"""SCons.Tool.cyglink
Customization of gnulink for Cygwin (http://www.cygwin.com/)
Customization of gnulink for Cygwin (https://www.cygwin.com/)
There normally shouldn't be any need to import this module directly.
It will usually be imported through the generic SCons.Tool.Tool()
Expand Down
2 changes: 1 addition & 1 deletion SCons/Tool/dmd.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"""SCons.Tool.dmd
Tool-specific initialization for the Digital Mars D compiler.
(http://digitalmars.com/d)
(https://digitalmars.com/d)
Originally coded by Andy Friesen ([email protected])
15 November 2003
Expand Down
4 changes: 2 additions & 2 deletions SCons/Tool/docbook/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,8 +155,8 @@ def __create_output_dir(base_dir) -> None:
xsltproc_com_priority = ['xsltproc', 'saxon', 'saxon-xslt', 'xalan']

# TODO: Set minimum version of saxon-xslt to be 8.x (lower than this only supports xslt 1.0.
# see: http://saxon.sourceforge.net/saxon6.5.5/
# see: http://saxon.sourceforge.net/
# see: https://saxon.sourceforge.net/saxon6.5.5/
# see: https://saxon.sourceforge.net/
xsltproc_com = {'xsltproc' : '$DOCBOOK_XSLTPROC $DOCBOOK_XSLTPROCFLAGS -o $TARGET $DOCBOOK_XSL $SOURCE',
'saxon' : '$DOCBOOK_XSLTPROC $DOCBOOK_XSLTPROCFLAGS -o $TARGET $DOCBOOK_XSL $SOURCE $DOCBOOK_XSLTPROCPARAMS',
# Note if saxon-xslt is version 5.5 the proper arguments are: (swap order of docbook_xsl and source)
Expand Down
2 changes: 1 addition & 1 deletion SCons/Tool/mingw.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

"""SCons.Tool.gcc
Tool-specific initialization for MinGW (http://www.mingw.org/)
Tool-specific initialization for MinGW (https://www.mingw.org/)
There normally shouldn't be any need to import this module directly.
It will usually be imported through the generic SCons.Tool.Tool()
Expand Down
11 changes: 6 additions & 5 deletions SCons/cpp.py
Original file line number Diff line number Diff line change
Expand Up @@ -561,19 +561,20 @@ def do_include(self, t) -> None:
[('scons_current_file', self.current_file)]
self.tuples[:] = new_tuples + self.tuples

# Date: Tue, 22 Nov 2005 20:26:09 -0500
# From: Stefan Seefeld <[email protected]>
# From: Stefan Seefeld <[email protected]> (22 Nov 2005)
#
# By the way, #include_next is not the same as #include. The difference
# being that #include_next starts its search in the path following the
# path that let to the including file. In other words, if your system
# include paths are ['/foo', '/bar'], and you are looking at a header
# '/foo/baz.h', it might issue an '#include_next <baz.h>' which would
# correctly resolve to '/bar/baz.h' (if that exists), but *not* see
# '/foo/baz.h' again. See http://www.delorie.com/gnu/docs/gcc/cpp_11.html
# for more reasoning.
# '/foo/baz.h' again. See
# https://gcc.gnu.org/onlinedocs/cpp/Wrapper-Headers.html for more notes.
#
# I have no idea in what context 'import' might be used.
# I have no idea in what context #import might be used.
# Update: possibly these notes?
# https://github.com/MicrosoftDocs/cpp-docs/blob/main/docs/preprocessor/hash-import-directive-cpp.md

# XXX is #include_next really the same as #include ?
do_include_next = do_include
Expand Down
6 changes: 3 additions & 3 deletions test/Docbook/basic/man/image/refdb.xml
Original file line number Diff line number Diff line change
Expand Up @@ -65,13 +65,13 @@
<title>See also</title>
<para><emphasis remap="B">RefDB</emphasis> (7),
<emphasis remap="B"><link linkend="refentry-refdbd">refdbd</link></emphasis> (1)
<emphasis remap="B"><link linkend="refentry-refdbctl">refdbctl</link></emphasis> (1).</para>
<emphasis remap="B"><link linkend="refentry-refdbctl">refdbctl</link></emphasis> (1).</para>

<para><emphasis remap="I">RefDB manual (local copy) </emphasis> &lt;prefix&gt;/share/doc/refdb-&lt;version&gt;/refdb-manual/index.html</para>

<para><emphasis remap="I">RefDB manual (web) </emphasis> &lt;<ulink url="http://refdb.sourceforge.net/manual/index.html">http://refdb.sourceforge.net/manual/index.html</ulink>&gt;</para>
<para><emphasis remap="I">RefDB manual (web) </emphasis> &lt;<ulink url="https://refdb.sourceforge.net/manual/index.html">https://refdb.sourceforge.net/manual/index.html</ulink>&gt;</para>

<para><emphasis remap="I">RefDB on the web </emphasis> &lt;<ulink url="http://refdb.sourceforge.net/">http://refdb.sourceforge.net/</ulink>&gt;</para>
<para><emphasis remap="I">RefDB on the web </emphasis> &lt;<ulink url="https://refdb.sourceforge.net/">https://refdb.sourceforge.net/</ulink>&gt;</para>
</refsect1>

<refsect1 id="refdb-author">
Expand Down
10 changes: 5 additions & 5 deletions test/LINK/VersionedLib-j2.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#!/usr/bin/env python
#
# __COPYRIGHT__
# MIT License
#
# Copyright The SCons Foundation
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
Expand All @@ -20,14 +22,12 @@
# LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#

__revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"

"""
Ensure that SharedLibrary builder works with SHLIBVERSION and -j2.
This is regression test for:
http://article.gmane.org/gmane.comp.programming.tools.scons.user/27049
https://article.gmane.org/gmane.comp.programming.tools.scons.user/27049
(historical - dead link)
"""

import TestSCons
Expand Down
12 changes: 6 additions & 6 deletions test/LINK/VersionedLib-subdir.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#!/usr/bin/env python
#
# __COPYRIGHT__
# MIT License
#
# Copyright The SCons Foundation
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
Expand All @@ -20,16 +22,14 @@
# LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#

__revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"

"""
Ensure that SharedLibrary builder with SHLIBVERSION='0.1.2' can build its target
in a subdirectory containing .so.0.1.2 in name.
in a subdirectory containing .so.0.1.2 in name.
This is regression test for issue mentioned in:
http://thread.gmane.org/gmane.comp.programming.tools.scons.user/27081
https://thread.gmane.org/gmane.comp.programming.tools.scons.user/27081
(historical - dead link)
"""

import TestSCons
Expand Down
2 changes: 1 addition & 1 deletion test/MSVC/PCH-source.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
Test use of pre-compiled headers when the source .cpp file shows
up in both the env.PCH() and the env.Program() source list.
Issue 2505: http://github.com/SCons/scons/issues/2505
Issue 2505: https://github.com/SCons/scons/issues/2505
"""

import TestSCons
Expand Down
9 changes: 4 additions & 5 deletions test/SWIG/SWIG.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#!/usr/bin/env python
#
# __COPYRIGHT__
# MIT License
#
# Copyright The SCons Foundation
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
Expand All @@ -20,9 +22,6 @@
# LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#

__revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"

"""
Verify that the swig tool generates file names that we expect.
Expand Down Expand Up @@ -55,7 +54,7 @@
print("")
print("Configured options: +pcre")
print("")
print("Please see http://www.swig.org for reporting bugs "
print("Please see https://www.swig.org for reporting bugs "
"and further information")
sys.exit(0)
Expand Down
11 changes: 5 additions & 6 deletions test/TEX/generated_files.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#!/usr/bin/env python
#
# __COPYRIGHT__
# MIT License
#
# Copyright The SCons Foundation
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
Expand All @@ -20,9 +22,6 @@
# LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#

__revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"

r"""
Test creation of a Tex document with generated tex files
Expand Down Expand Up @@ -87,7 +86,7 @@
month = {March},
publisher = {Morgan Kaufmann},
title = {The Art of Multiprocessor Programming},
url = {http://www.worldcat.org/isbn/0123705916},
url = {https://www.worldcat.org/isbn/0123705916},
year = {2008}
}
Expand All @@ -106,7 +105,7 @@
keywords = {books, model\_checking},
publisher = {The MIT Press},
title = {Principles of Model Checking},
url = {http://www.worldcat.org/isbn/026202649X},
url = {https://www.worldcat.org/isbn/026202649X},
year = {2008}
}
Expand Down
2 changes: 1 addition & 1 deletion test/TEX/variant_dir.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@

test.write(['docs', 'test.bib'], """\
%% This BibTeX bibliography file was created using BibDesk.
%% http://bibdesk.sourceforge.net/
%% https://bibdesk.sourceforge.net/
%% Created for Rob Managan at 2006-11-15 12:53:16 -0800
Expand Down
9 changes: 4 additions & 5 deletions test/TEX/variant_dir_bibunit.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#!/usr/bin/env python
#
# __COPYRIGHT__
# MIT License
#
# Copyright The SCons Foundation
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
Expand All @@ -20,9 +22,6 @@
# LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#

__revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"

r"""
Test creation of a fully-featured TeX document (with bibunit
Expand Down Expand Up @@ -151,7 +150,7 @@

test.write(['src', 'units.bib'], """\
%% This BibTeX bibliography file was created using BibDesk.
%% http://bibdesk.sourceforge.net/
%% https://bibdesk.sourceforge.net/
@techreport{gnu:1998,
Author = {A. N. Author},
Expand Down
9 changes: 4 additions & 5 deletions test/TEX/variant_dir_dup0.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#!/usr/bin/env python
#
# __COPYRIGHT__
# MIT License
#
# Copyright The SCons Foundation
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
Expand All @@ -20,9 +22,6 @@
# LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#

__revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"

r"""
Test creation of a fully-featured TeX document (with bibliography
Expand Down Expand Up @@ -160,7 +159,7 @@

test.write(['docs', 'test.bib'], """\
%% This BibTeX bibliography file was created using BibDesk.
%% http://bibdesk.sourceforge.net/
%% https://bibdesk.sourceforge.net/
%% Saved with string encoding Western (ASCII)
Expand Down
Loading

0 comments on commit 2bfab82

Please sign in to comment.