mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 15:42:44 +00:00 
			
		
		
		
	Ports: Remove Python printf fraction length patch
This functionality was implemented in f0fe449, making the patch unnecessary.
This commit is contained in:
		
							parent
							
								
									ba6c9423b8
								
							
						
					
					
						commit
						8cfbeb78ff
					
				
					 2 changed files with 0 additions and 43 deletions
				
			
		|  | @ -20,10 +20,6 @@ As usual, make the `configure` script recognize Serenity. | |||
| 
 | ||||
| Our stub implementation of `setlocale()` always returns `nullptr`, which the interpreter considers critical enough to exit right away. | ||||
| 
 | ||||
| ## `tweak-unsupported-printf-format-specifiers.patch` | ||||
| 
 | ||||
| Replace uses of `%.Ns` with `%s` as the former is not supported by our `printf` implementation yet and would result in empty strings. It uses `snprintf` already, so this is safe. | ||||
| 
 | ||||
| ## `webbrowser.patch` | ||||
| 
 | ||||
| Register the SerenityOS Browser in the [`webbrowser`](https://docs.python.org/3/library/webbrowser.html) module. | ||||
|  |  | |||
|  | @ -1,39 +0,0 @@ | |||
| --- Python-3.9.5/Python/getversion.c	2021-02-21 20:22:44.092438528 +0100
 | ||||
| +++ Python-3.9.5/Python/getversion.c	2021-02-21 20:36:51.249477963 +0100
 | ||||
| @@ -9,7 +9,7 @@
 | ||||
|  Py_GetVersion(void) | ||||
|  { | ||||
|      static char version[250]; | ||||
| -    PyOS_snprintf(version, sizeof(version), "%.80s (%.80s) %.80s",
 | ||||
| +    PyOS_snprintf(version, sizeof(version), "%s (%s) %s",
 | ||||
|                    PY_VERSION, Py_GetBuildInfo(), Py_GetCompiler()); | ||||
|      return version; | ||||
|  } | ||||
| --- Python-3.9.5/Modules/getbuildinfo.c	2021-02-21 20:22:43.945286288 +0100
 | ||||
| +++ Python-3.9.5/Modules/getbuildinfo.c	2021-02-21 20:38:09.187987432 +0100
 | ||||
| @@ -43,7 +43,7 @@
 | ||||
|      if (!(*gitid)) | ||||
|          gitid = "default"; | ||||
|      PyOS_snprintf(buildinfo, sizeof(buildinfo), | ||||
| -                  "%s%s%s, %.20s, %.9s", gitid, sep, revision,
 | ||||
| +                  "%s%s%s, %s, %s", gitid, sep, revision,
 | ||||
|                    DATE, TIME); | ||||
|      return buildinfo; | ||||
|  } | ||||
| --- Python-3.9.5/Python/dynload_shlib.c	2021-04-04 14:56:53.000000000 +0200
 | ||||
| +++ Python-3.9.5/Python/dynload_shlib.c	2021-04-24 15:57:27.419824682 +0200
 | ||||
| @@ -69,12 +69,12 @@
 | ||||
|   | ||||
|      if (strchr(pathname, '/') == NULL) { | ||||
|          /* Prefix bare filename with "./" */ | ||||
| -        PyOS_snprintf(pathbuf, sizeof(pathbuf), "./%-.255s", pathname);
 | ||||
| +        PyOS_snprintf(pathbuf, sizeof(pathbuf), "./%s", pathname);
 | ||||
|          pathname = pathbuf; | ||||
|      } | ||||
|   | ||||
|      PyOS_snprintf(funcname, sizeof(funcname), | ||||
| -                  LEAD_UNDERSCORE "%.20s_%.200s", prefix, shortname);
 | ||||
| +                  LEAD_UNDERSCORE "%s_%s", prefix, shortname);
 | ||||
|   | ||||
|      if (fp != NULL) { | ||||
|          int i; | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Linus Groh
						Linus Groh