rust: link to libressl
This commit is contained in:
		
							parent
							
								
									74589f40a4
								
							
						
					
					
						commit
						df548c4eca
					
				
					 2 changed files with 39 additions and 5 deletions
				
			
		|  | @ -24,9 +24,11 @@ _clear_vendor_checksums() { | |||
| 
 | ||||
| fetch() { | ||||
| 	curl "https://static.rust-lang.org/dist/rustc-$pkgver-src.tar.gz" -o $pkgname-$pkgver.tar.xz | ||||
| 	curl -L "https://github.com/sfackler/rust-openssl/archive/refs/tags/openssl-v0.10.34.tar.gz" -o rust-openssl.tar.gz | ||||
| #	curl -L "https://github.com/sfackler/rust-openssl/archive/master.tar.gz" -o rust-openssl.tar.gz | ||||
| #	curl "https://static.rust-lang.org/dist/rustc-nightly-src.tar.gz" -o $pkgname- | ||||
| 	tar -xf $pkgname-$pkgver.tar.xz | ||||
| 	tar -xf rust-openssl.tar.gz | ||||
| 
 | ||||
| 	mv rustc-$pkgver-src $pkgname-$pkgver | ||||
| 
 | ||||
|  | @ -46,17 +48,25 @@ fetch() { | |||
| 	patch -p1 < ../abyss-install-template-shebang.patch | ||||
| 	patch -p1 < ../abyss-libunwind.patch | ||||
| 	patch -p1 < ../abyss-libz.patch | ||||
| 	patch -p1 < ../vendored-ssl.patch | ||||
| #	patch -p1 < ../vendored-ssl.patch | ||||
| #	patch -p1 < ../openbsd-libressl.patch | ||||
| 	patch -p1 < ../alpine-crt.patch | ||||
| 	patch -p1 < ../libexec.patch | ||||
| 	patch -p1 < ../llvm_crt.patch | ||||
| 	patch -p1 < ../unfreeze.patch | ||||
| 
 | ||||
| 	sed -i /LD_LIBRARY_PATH/d src/bootstrap/bootstrap.py | ||||
| 	_clear_vendor_checksums libc | ||||
| 	_clear_vendor_checksums openssl-sys | ||||
| 	_clear_vendor_checksums openssl-src | ||||
| 	_clear_vendor_checksums openssl | ||||
| 
 | ||||
| 	cp -r ../rust-openssl-openssl-v0.10.34/openssl/ vendor/ | ||||
| 	cp -r ../rust-openssl-openssl-v0.10.34/openssl-sys/ vendor/ | ||||
| 	sed vendor/openssl/Cargo.toml -i -e 's/0.10.34/0.10.30/g' | ||||
| 	sed vendor/openssl/Cargo.toml -i -e 's/0.9.62/0.9.58/g' | ||||
| 	sed vendor/openssl-sys/Cargo.toml -i -e 's/0.9.62/0.9.58/g' | ||||
| 	 | ||||
| 	rm -rf src/llvm-project/ | ||||
| 
 | ||||
| 	cd .. | ||||
|  | @ -65,8 +75,7 @@ fetch() { | |||
| 
 | ||||
| build() { | ||||
| 	cd $pkgname-$pkgver | ||||
| #		--llvm-root="/usr" \ | ||||
| #		--enable-llvm-link-shared \ | ||||
| 
 | ||||
| 	OPENSSL_LIB_DIR=/usr/lib/ ./configure \ | ||||
| 		--build="x86_64-unknown-linux-musl" \ | ||||
| 		--host="x86_64-unknown-linux-musl" \ | ||||
|  | @ -79,11 +88,13 @@ build() { | |||
| 		--enable-extended \ | ||||
| 		--tools="cargo,rls,rustfmt,src" \ | ||||
| 		--enable-vendor \ | ||||
| 		--enable-locked-deps \ | ||||
| 		--disable-locked-deps \ | ||||
| 		--enable-option-checking \ | ||||
| 		--python="python" \ | ||||
| 		--set="rust.musl-root=/usr" \ | ||||
| 		--llvm-root="/usr" \ | ||||
| 		--enable-llvm-link-shared \ | ||||
| 		--set="target.x86_64-unknown-linux-musl.llvm-config=/usr/bin/llvm-config" \ | ||||
| 		--set="rust.musl-root=/usr" \ | ||||
| 		--set="target.x86_64-unknown-linux-musl.musl-root=/usr" \ | ||||
| 		--set="target.x86_64-unknown-linux-musl.crt-static=false" \ | ||||
| 		--set="target.x86_64-unknown-linux-musl.cc=cc" \ | ||||
|  |  | |||
							
								
								
									
										23
									
								
								pkgs/rust/unfreeze.patch
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										23
									
								
								pkgs/rust/unfreeze.patch
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,23 @@ | |||
| --- a/src/bootstrap/bootstrap.py
 | ||||
| +++ b/src/bootstrap/bootstrap.py
 | ||||
| @@ -889,8 +889,6 @@
 | ||||
|              args.append("--verbose") | ||||
|          if self.use_locked_deps: | ||||
|              args.append("--locked") | ||||
| -        if self.use_vendored_sources:
 | ||||
| -            args.append("--frozen")
 | ||||
|          run(args, env=env, verbose=self.verbose) | ||||
|   | ||||
|      def build_triple(self): | ||||
| --- a/src/bootstrap/builder.rs
 | ||||
| +++ b/src/bootstrap/builder.rs
 | ||||
| @@ -1459,9 +1459,6 @@
 | ||||
|          if self.config.locked_deps { | ||||
|              cargo.arg("--locked"); | ||||
|          } | ||||
| -        if self.config.vendor || self.is_sudo {
 | ||||
| -            cargo.arg("--frozen");
 | ||||
| -        }
 | ||||
|   | ||||
|          // Try to use a sysroot-relative bindir, in case it was configured absolutely. | ||||
|          cargo.env("RUSTC_INSTALL_BINDIR", self.config.bindir_relative()); | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue