build fixes
This commit is contained in:
		
							parent
							
								
									d04948255c
								
							
						
					
					
						commit
						1d86ce0d55
					
				
							
								
								
									
										57
									
								
								D162136.diff
									
									
									
									
									
								
							
							
						
						
									
										57
									
								
								D162136.diff
									
									
									
									
									
								
							| @ -1,57 +0,0 @@ | |||||||
| diff --git a/python/mach/mach/site.py b/python/mach/mach/site.py
 |  | ||||||
| --- a/python/mach/mach/site.py
 |  | ||||||
| +++ b/python/mach/mach/site.py
 |  | ||||||
| @@ -16,14 +16,14 @@
 |  | ||||||
|  import shutil |  | ||||||
|  import site |  | ||||||
|  import subprocess |  | ||||||
|  import sys |  | ||||||
|  import sysconfig |  | ||||||
| -from pathlib import Path
 |  | ||||||
|  import tempfile |  | ||||||
|  from contextlib import contextmanager |  | ||||||
| -from typing import Optional, Callable
 |  | ||||||
| +from pathlib import Path
 |  | ||||||
| +from typing import Callable, Optional
 |  | ||||||
|   |  | ||||||
|  from mach.requirements import ( |  | ||||||
|      MachEnvRequirements, |  | ||||||
|      UnexpectedFlexibleRequirementException, |  | ||||||
|  ) |  | ||||||
| @@ -761,11 +761,11 @@
 |  | ||||||
|              self.bin_path = os.path.join(prefix, "Scripts") |  | ||||||
|              self.python_path = os.path.join(self.bin_path, "python.exe") |  | ||||||
|          else: |  | ||||||
|              self.bin_path = os.path.join(prefix, "bin") |  | ||||||
|              self.python_path = os.path.join(self.bin_path, "python") |  | ||||||
| -        self.prefix = prefix
 |  | ||||||
| +        self.prefix = os.path.realpath(prefix)
 |  | ||||||
|   |  | ||||||
|      @functools.lru_cache(maxsize=None) |  | ||||||
|      def resolve_sysconfig_packages_path(self, sysconfig_path): |  | ||||||
|          # macOS uses a different default sysconfig scheme based on whether it's using the |  | ||||||
|          # system Python or running in a virtualenv. |  | ||||||
| @@ -781,20 +781,16 @@
 |  | ||||||
|          data_path = Path(sysconfig_paths["data"]) |  | ||||||
|          path = Path(sysconfig_paths[sysconfig_path]) |  | ||||||
|          relative_path = path.relative_to(data_path) |  | ||||||
|   |  | ||||||
|          # Path to virtualenv's "site-packages" directory for provided sysconfig path |  | ||||||
| -        return os.path.normpath(
 |  | ||||||
| -            os.path.normcase(os.path.realpath(Path(self.prefix) / relative_path))
 |  | ||||||
| -        )
 |  | ||||||
| +        return os.path.normpath(os.path.normcase(Path(self.prefix) / relative_path))
 |  | ||||||
|   |  | ||||||
|      def site_packages_dirs(self): |  | ||||||
|          dirs = [] |  | ||||||
|          if sys.platform.startswith("win"): |  | ||||||
| -            dirs.append(
 |  | ||||||
| -                os.path.normpath(os.path.normcase(os.path.realpath(self.prefix)))
 |  | ||||||
| -            )
 |  | ||||||
| +            dirs.append(os.path.normpath(os.path.normcase(self.prefix)))
 |  | ||||||
|          purelib = self.resolve_sysconfig_packages_path("purelib") |  | ||||||
|          platlib = self.resolve_sysconfig_packages_path("platlib") |  | ||||||
|   |  | ||||||
|          dirs.append(purelib) |  | ||||||
|          if platlib != purelib: |  | ||||||
| 
 |  | ||||||
| @ -230,7 +230,6 @@ Patch55:        firefox-testing.patch | |||||||
| Patch61:        firefox-glibc-dynstack.patch | Patch61:        firefox-glibc-dynstack.patch | ||||||
| Patch71:        0001-GLIBCXX-fix-for-GCC-12.patch | Patch71:        0001-GLIBCXX-fix-for-GCC-12.patch | ||||||
| Patch78:        firefox-i686-build.patch | Patch78:        firefox-i686-build.patch | ||||||
| Patch80:        D162136.diff |  | ||||||
| 
 | 
 | ||||||
| # Test patches | # Test patches | ||||||
| # Generate without context by | # Generate without context by | ||||||
| @ -507,7 +506,6 @@ This package contains results of tests executed during build. | |||||||
| %patch54 -p1 -b .1669639 | %patch54 -p1 -b .1669639 | ||||||
| %patch71 -p1 -b .0001-GLIBCXX-fix-for-GCC-12 | %patch71 -p1 -b .0001-GLIBCXX-fix-for-GCC-12 | ||||||
| %patch78 -p1 -b .firefox-i686 | %patch78 -p1 -b .firefox-i686 | ||||||
| %patch80 -p1 -b .D162136 |  | ||||||
| 
 | 
 | ||||||
| # Test patches | # Test patches | ||||||
| #%patch100 -p1 -b .firefox-tests-xpcshell | #%patch100 -p1 -b .firefox-tests-xpcshell | ||||||
| @ -1132,7 +1130,7 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : | |||||||
| #--------------------------------------------------------------------- | #--------------------------------------------------------------------- | ||||||
| 
 | 
 | ||||||
| %changelog | %changelog | ||||||
| * Tue Dec 14 2022 Martin Stransky <stransky@redhat.com>- 108.0-2 | * Wed Dec 14 2022 Martin Stransky <stransky@redhat.com>- 108.0-2 | ||||||
| - Update to 108.0 Build 2 | - Update to 108.0 Build 2 | ||||||
| 
 | 
 | ||||||
| * Tue Dec 6 2022 Martin Stransky <stransky@redhat.com>- 108.0-1 | * Tue Dec 6 2022 Martin Stransky <stransky@redhat.com>- 108.0-1 | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user