-
-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
16 changed files
with
148 additions
and
125 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
package=native_cctools | ||
$(package)_version=04663295d0425abfac90a42440a7ec02d7155fea | ||
$(package)_download_path=https://github.com/tpoechtrager/cctools-port/archive | ||
$(package)_download_file=$($(package)_version).tar.gz | ||
$(package)_file_name=$(package)-$($(package)_version).tar.gz | ||
$(package)_sha256_hash=70a7189418c2086d20c299c5d59250cf5940782c778892ccc899c66516ed240e | ||
$(package)_build_subdir=cctools | ||
$(package)_patches=no-build-date.patch | ||
$(package)_dependencies=native_libtapi | ||
|
||
define $(package)_set_vars | ||
$(package)_config_opts=--target=$(host) --disable-lto-support --with-libtapi=$(host_prefix) | ||
$(package)_ldflags+=-Wl,-rpath=\\$$$$$$$$\$$$$$$$$ORIGIN/../lib | ||
$(package)_cc=$(clang_prog) | ||
$(package)_cxx=$(clangxx_prog) | ||
endef | ||
|
||
define $(package)_preprocess_cmds | ||
cp -f $(BASEDIR)/config.guess $(BASEDIR)/config.sub cctools | ||
endef | ||
|
||
define $(package)_preprocess_cmds | ||
patch -p1 < $($(package)_patch_dir)/no-build-date.patch | ||
endef | ||
|
||
define $(package)_config_cmds | ||
$($(package)_autoconf) | ||
endef | ||
|
||
define $(package)_build_cmds | ||
$(MAKE) | ||
endef | ||
|
||
define $(package)_stage_cmds | ||
$(MAKE) DESTDIR=$($(package)_staging_dir) install && \ | ||
cp $($(package)_extract_dir)/cctools/misc/install_name_tool $($(package)_staging_prefix_dir)/bin/ | ||
endef |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package=native_libtapi | ||
$(package)_version=664b8414f89612f2dfd35a9b679c345aa5389026 | ||
$(package)_download_path=https://github.com/tpoechtrager/apple-libtapi/archive | ||
$(package)_download_file=$($(package)_version).tar.gz | ||
$(package)_file_name=$(package)-$($(package)_version).tar.gz | ||
$(package)_sha256_hash=62e419c12d1c9fad67cc1cd523132bc00db050998337c734c15bc8d73cc02b61 | ||
$(package)_patches=no_embed_git_rev.patch | ||
|
||
define $(package)_preprocess_cmds | ||
patch -p1 -i $($(package)_patch_dir)/no_embed_git_rev.patch | ||
endef | ||
|
||
define $(package)_build_cmds | ||
CC=$(clang_prog) CXX=$(clangxx_prog) INSTALLPREFIX=$($(package)_staging_prefix_dir) ./build.sh | ||
endef | ||
|
||
define $(package)_stage_cmds | ||
./install.sh | ||
endef |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
12 changes: 12 additions & 0 deletions
12
contrib/depends/patches/native_cctools/no-build-date.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
diff --git a/cctools/ld64/src/ld/Options.cpp b/cctools/ld64/src/ld/Options.cpp | ||
index 3bb8324..033760d 100644 | ||
--- a/cctools/ld64/src/ld/Options.cpp | ||
+++ b/cctools/ld64/src/ld/Options.cpp | ||
@@ -4279,7 +4279,6 @@ void Options::buildSearchPaths(int argc, const char* argv[]) | ||
fVerbose = true; | ||
extern const char ldVersionString[]; | ||
fprintf(stderr, "%s", ldVersionString); | ||
- fprintf(stderr, "BUILD " __TIME__ " " __DATE__"\n"); | ||
fprintf(stderr, "configured to support archs: %s\n", ALL_SUPPORTED_ARCHS); | ||
// if only -v specified, exit cleanly | ||
if ( argc == 2 ) { |
31 changes: 31 additions & 0 deletions
31
contrib/depends/patches/native_libtapi/no_embed_git_rev.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
diff --git a/src/llvm/CMakeLists.txt b/src/llvm/CMakeLists.txt | ||
index ab92717c8..4ad621ea3 100644 | ||
--- a/src/llvm/CMakeLists.txt | ||
+++ b/src/llvm/CMakeLists.txt | ||
@@ -752,9 +752,10 @@ set(LLVM_SRPM_USER_BINARY_SPECFILE ${CMAKE_CURRENT_SOURCE_DIR}/llvm.spec.in | ||
set(LLVM_SRPM_BINARY_SPECFILE ${CMAKE_CURRENT_BINARY_DIR}/llvm.spec) | ||
set(LLVM_SRPM_DIR "${CMAKE_CURRENT_BINARY_DIR}/srpm") | ||
|
||
-# SVN_REVISION and GIT_COMMIT get set by the call to add_version_info_from_vcs. | ||
-# DUMMY_VAR contains a version string which we don't care about. | ||
-add_version_info_from_vcs(DUMMY_VAR) | ||
+# A call to add_version_info_from_vcs() was removed, leaving SVN_REVISION | ||
+# and GIT_COMMIT unset. Accordingly, LLVM_RPM_SPEC_REVISION is left empty. | ||
+# This variable appears to be unused. Since it may be used in a future | ||
+# update of native_libtapi this change serves as a precautionairy measure. | ||
if ( SVN_REVISION ) | ||
set(LLVM_RPM_SPEC_REVISION "r${SVN_REVISION}") | ||
elseif ( GIT_COMMIT ) | ||
diff --git a/src/llvm/cmake/modules/GenerateVersionFromCVS.cmake b/src/llvm/cmake/modules/GenerateVersionFromCVS.cmake | ||
index 6b1c71983..e16326ed6 100644 | ||
--- a/src/llvm/cmake/modules/GenerateVersionFromCVS.cmake | ||
+++ b/src/llvm/cmake/modules/GenerateVersionFromCVS.cmake | ||
@@ -24,7 +24,7 @@ include(VersionFromVCS) | ||
set(ENV{TERM} "dumb") | ||
|
||
function(append_info name path) | ||
- add_version_info_from_vcs(REVISION ${path}) | ||
+ set(REVISION "git-0000000") | ||
string(STRIP "${REVISION}" REVISION) | ||
file(APPEND "${HEADER_FILE}.txt" | ||
"#define ${name} \"${REVISION}\"\n") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters