FreeBSD Bugzilla – Attachment 201107 Details for
Bug 234687
graphics/opensubdiv : fails to package with DEFAULT_VERSIONS=python=3.x
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
maintainer update graphics/opensubdiv
opensubdiv.patch (text/plain), 4.29 KB, created by
Shane
on 2019-01-13 23:50:43 UTC
(
hide
)
Description:
maintainer update graphics/opensubdiv
Filename:
MIME Type:
Creator:
Shane
Created:
2019-01-13 23:50:43 UTC
Size:
4.29 KB
patch
obsolete
>diff -Nru graphics/opensubdiv.orig/files/patch-documentation_processHtml.py graphics/opensubdiv/files/patch-documentation_processHtml.py >--- graphics/opensubdiv.orig/files/patch-documentation_processHtml.py 1970-01-01 09:30:00.000000000 +0930 >+++ graphics/opensubdiv/files/patch-documentation_processHtml.py 2019-01-14 09:04:20.784961000 +1030 >@@ -0,0 +1,83 @@ >+--- documentation/processHtml.py.orig 2018-07-18 02:17:49 UTC >++++ documentation/processHtml.py >+@@ -25,9 +25,11 @@ >+ >+ import os >+ import sys >+-import string >+ import re >+-import HTMLParser >++try: >++ import HTMLParser >++except: >++ import html.parser as HTMLParser >+ >+ class HtmlToTextParser(HTMLParser.HTMLParser): >+ def __init__(self): >+@@ -89,10 +91,10 @@ def ReadNavigationTemplate( filePath ): >+ try: >+ navFile = open( filePath, "r") >+ except IOError: >+- print "Could not open file \'"+filePath+"\'" >++ print("Could not open file \'"+filePath+"\'") >+ >+ with navFile: >+- print "Navigation template: \'"+filePath+"\'" >++ print("Navigation template: \'"+filePath+"\'") >+ navHtml = navFile.read() >+ navHtml = StripHTMLComments(navHtml) >+ navFile.close() >+@@ -109,7 +111,7 @@ def WriteIndexFile( outputFile, content ): >+ except: >+ pass >+ >+- print "Creating Search-Index File : \""+outputFile+"\"" >++ print("Creating Search-Index File : \""+outputFile+"\"") >+ >+ f = open(outputFile, "w") >+ f.write(content) >+@@ -117,7 +119,7 @@ def WriteIndexFile( outputFile, content ): >+ >+ #------------------------------------------------------------------------------- >+ def Usage(): >+- print str(sys.argv[0])+" <input directory> <output directory> <html template>" >++ print(str(sys.argv[0])+" <input directory> <output directory> <html template>") >+ exit(1); >+ >+ >+@@ -132,7 +134,7 @@ navTemplate = str(sys.argv[2]) >+ >+ navHtml = ReadNavigationTemplate( navTemplate ) >+ >+-print "Scanning : \'"+rootDir+"\'" >++print("Scanning : \'"+rootDir+"\'") >+ >+ searchIndex = 'var tipuesearch = { "pages": [ ' >+ >+@@ -172,22 +174,22 @@ for root, dirs, files in os.walk(rootDir): >+ >+ # if necessary, insert navigation html >+ if (not parser.HasNavigationSection()): >+- loc = string.find(html,"<body>") >++ loc = html.find("<body>") >+ html = html[:loc+6] + navHtml + html[loc+6:] >+ >+ msg += "added navigation" >+ >+ # replace the article title placeholder with the real title >+ if title: >+- html = string.replace(html,"OSD_ARTICLE_TITLE", title) >++ html = html.replace("OSD_ARTICLE_TITLE", title) >+ else: >+- html = string.replace(html,"OSD_ARTICLE_TITLE", "") >++ html = html.replace("OSD_ARTICLE_TITLE", "") >+ >+ f.seek(0) >+ f.write(html) >+ f.close() >+ >+- print msg >++ print(msg) >+ >+ searchIndex = searchIndex + "]};" >+ >diff -Nru graphics/opensubdiv.orig/files/patch-documentation_processTutorials.py graphics/opensubdiv/files/patch-documentation_processTutorials.py >--- graphics/opensubdiv.orig/files/patch-documentation_processTutorials.py 1970-01-01 09:30:00.000000000 +0930 >+++ graphics/opensubdiv/files/patch-documentation_processTutorials.py 2019-01-14 08:08:49.255923000 +1030 >@@ -0,0 +1,29 @@ >+--- documentation/processTutorials.py.orig 2019-01-13 21:35:49 UTC >++++ documentation/processTutorials.py >+@@ -33,7 +33,7 @@ def ReadFile(inputfile): >+ try: >+ f = open( inputfile, "r") >+ except IOError: >+- print "Could not read file \'"+inputfile+"\'" >++ print("Could not read file \'"+inputfile+"\'") >+ content = f.read() >+ f.close() >+ return content >+@@ -48,7 +48,7 @@ def WriteToFile(outputfile, content): >+ try: >+ f = open(outputfile, "w") >+ except IOError: >+- print "Could not write file \'"+outputfile+"\'" >++ print("Could not write file \'"+outputfile+"\'") >+ f.write(content) >+ f.close() >+ >+@@ -85,7 +85,7 @@ def Process(srcfile, title): >+ >+ #------------------------------------------------------------------------------- >+ def Usage(): >+- print str(sys.argv[0])+" <input file> <output file> <title>" >++ print(str(sys.argv[0])+" <input file> <output file> <title>") >+ exit(1); >+ >+
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Flags:
FreeBSD
:
maintainer-approval+
Actions:
View
|
Diff
Attachments on
bug 234687
:
201107
|
202281