Skip to content

Commit

Permalink
tools/mklibs: update to 0.1.45
Browse files Browse the repository at this point in the history
Refresh 2to3 patch. Upstream partially did this against some older
python version. This is still needed.

Refreshed other patches to be python3 safe.

Remove uClibc patches as only musl is present now.

Refresh others.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
  • Loading branch information
neheb authored and hauke committed Feb 28, 2022
1 parent 038d5bd commit c8b7065
Show file tree
Hide file tree
Showing 10 changed files with 37 additions and 287 deletions.
4 changes: 2 additions & 2 deletions tools/mklibs/Makefile
Expand Up @@ -7,11 +7,11 @@
include $(TOPDIR)/rules.mk

PKG_NAME:=mklibs
PKG_VERSION:=0.1.44
PKG_VERSION:=0.1.45

PKG_SOURCE:=$(PKG_NAME)_$(PKG_VERSION).tar.xz
PKG_SOURCE_URL:=@DEBIAN/pool/main/m/mklibs/
PKG_HASH:=3af0b6bd35e5b6fc58d8b68827fbae2ff6b7e20dd2b238ccb9b49d84722066c2
PKG_HASH:=dd92a904b3942566f713fe536cd77dd1a5cfc62243c0e0bc6bb5d866e37422f3

HOST_FIXUP:=autoreconf

Expand Down
4 changes: 2 additions & 2 deletions tools/mklibs/patches/002-disable_symbol_checks.patch
Expand Up @@ -5,7 +5,7 @@
for name in unresolved:
if not needed_symbols[name].weak:
- raise Exception("Unresolvable symbol %s" % name)
+ print "WARNING: Unresolvable symbol %s" % name
+ print("WARNING: Unresolvable symbol %s" % name)
break

previous_pass_unresolved = unresolved
Expand All @@ -14,7 +14,7 @@
if not name in symbol_provider:
if not needed_symbols[name].weak:
- raise Exception("No library provides non-weak %s" % name)
+ print "WARNING: Unresolvable symbol %s" % name
+ print("WARNING: Unresolvable symbol %s" % name)
else:
lib = symbol_provider[name]
library_symbols_used[lib].add(library_symbols[lib][name])
6 changes: 3 additions & 3 deletions tools/mklibs/patches/003-no_copy.patch
Expand Up @@ -32,11 +32,11 @@
- dest_path + "/" + so_file_name + "-so",
- dest_path + "/" + so_file_name + "-so-stripped")
## DEBUG
debug(DEBUG_VERBOSE, so_file, "\t", `os.stat(so_file)[ST_SIZE]`)
debug(DEBUG_VERBOSE, so_file, "\t", str(os.stat(so_file)[ST_SIZE]))
debug(DEBUG_VERBOSE, dest_path + "/" + so_file_name + "-so", "\t",
`os.stat(dest_path + "/" + so_file_name + "-so")[ST_SIZE]`)
str(os.stat(dest_path + "/" + so_file_name + "-so")[ST_SIZE]))
- debug(DEBUG_VERBOSE, dest_path + "/" + so_file_name + "-so-stripped",
- "\t", `os.stat(dest_path + "/" + so_file_name + "-so-stripped")[ST_SIZE]`)
- "\t", str(os.stat(dest_path + "/" + so_file_name + "-so-stripped")[ST_SIZE]))

# Finalising libs and cleaning up
-for lib in regexpfilter(os.listdir(dest_path), "(.*)-so-stripped$"):
Expand Down
2 changes: 1 addition & 1 deletion tools/mklibs/patches/005-duplicate_syms.patch
Expand Up @@ -23,7 +23,7 @@
for name in needed_symbols:
- if not name in symbol_provider:
- if not needed_symbols[name].weak:
- print "WARNING: Unresolvable symbol %s" % name
- print("WARNING: Unresolvable symbol %s" % name)
- else:
- lib = symbol_provider[name]
- library_symbols_used[lib].add(library_symbols[lib][name])
Expand Down
14 changes: 0 additions & 14 deletions tools/mklibs/patches/006-uclibc_init.patch

This file was deleted.

2 changes: 1 addition & 1 deletion tools/mklibs/patches/007-gc_sections.patch
@@ -1,6 +1,6 @@
--- a/src/mklibs
+++ b/src/mklibs
@@ -616,7 +616,7 @@ while 1:
@@ -611,7 +611,7 @@ while 1:
# compile in only used symbols
cmd = []
cmd.extend(gcc_options)
Expand Down
2 changes: 1 addition & 1 deletion tools/mklibs/patches/008-uclibc_libgcc_link.patch
Expand Up @@ -22,7 +22,7 @@

symbols.update(library_symbols_used[library])

@@ -623,9 +621,10 @@ while 1:
@@ -618,9 +616,10 @@ while 1:
cmd.append(pic_file)
cmd.extend(extra_post_obj)
cmd.extend(extra_flags)
Expand Down
63 changes: 0 additions & 63 deletions tools/mklibs/patches/009-uclibc_libpthread_symbols.patch

This file was deleted.

2 changes: 1 addition & 1 deletion tools/mklibs/patches/011-remove_multiarch.patch
@@ -1,6 +1,6 @@
--- a/src/mklibs
+++ b/src/mklibs
@@ -274,6 +274,7 @@ def extract_soname(so_file):
@@ -269,6 +269,7 @@ def extract_soname(so_file):
return ""

def multiarch(paths):
Expand Down

0 comments on commit c8b7065

Please sign in to comment.