uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
|
|
@ -0,0 +1,13 @@
|
|||
|
||||
|
||||
catch_conflicts.py
|
||||
==================
|
||||
|
||||
The file catch_conflicts.py is in a subdirectory because, if it isn't, the
|
||||
/nix/store/ directory is added to sys.path causing a delay when building.
|
||||
|
||||
Pointers:
|
||||
|
||||
- https://docs.python.org/3/library/sys.html#sys.path
|
||||
|
||||
- https://github.com/NixOS/nixpkgs/pull/23600
|
||||
|
|
@ -0,0 +1,30 @@
|
|||
import pkg_resources
|
||||
import collections
|
||||
import sys
|
||||
|
||||
do_abort = False
|
||||
packages = collections.defaultdict(list)
|
||||
|
||||
for f in sys.path:
|
||||
for req in pkg_resources.find_distributions(f):
|
||||
if req not in packages[req.project_name]:
|
||||
# some exceptions inside buildPythonPackage
|
||||
if req.project_name in ['setuptools', 'pip', 'wheel']:
|
||||
continue
|
||||
packages[req.project_name].append(req)
|
||||
|
||||
|
||||
for name, duplicates in packages.items():
|
||||
if len(duplicates) > 1:
|
||||
do_abort = True
|
||||
print("Found duplicated packages in closure for dependency '{}': ".format(name))
|
||||
for dup in duplicates:
|
||||
print(" " + repr(dup))
|
||||
|
||||
if do_abort:
|
||||
print("")
|
||||
print(
|
||||
'Package duplicates found in closure, see above. Usually this '
|
||||
'happens if two packages depend on different version '
|
||||
'of the same dependency.')
|
||||
sys.exit(1)
|
||||
Loading…
Add table
Add a link
Reference in a new issue