diff --git a/astronaut/astronautpkg b/astronaut/astronautpkg index f51ac23..acc10da 100755 --- a/astronaut/astronautpkg +++ b/astronaut/astronautpkg @@ -26,6 +26,9 @@ dir_wrapper_pkgtools="$PWD" # Where the packages should be stored _astronaut_wrapper_pre() { # Make sure to remove the contents of the install directory before building _astronaut_nuke_install=true + + # Define an option to strip the package + define_option 'strip: Strip the resulting binaries' } _astronaut_wrapper_post() { @@ -40,7 +43,9 @@ _astronaut_wrapper_post() { fi # Strip binaries - find "$dir_install" | xargs file | grep -e "executable" -e "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true + if option strip; then + find "$dir_install" | xargs file | grep -e "executable" -e "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true + fi # Generate slack-desc for proper compliance, even if it's completely redundant #mkdir -p "$dir_install/install" diff --git a/satellites/docker.sat b/satellites/docker.sat index eb28893..9c40193 100644 --- a/satellites/docker.sat +++ b/satellites/docker.sat @@ -16,6 +16,9 @@ version_libnetwork=7b2b1feb1de4817d522cc372af149ff48d25028e update_url="https://github.com/$name/$name-ce/releases" update_names="/archive/v$version.tar.gz" +# Go doesn't like being stripped +options="!strip,$options" + dlextract "https://github.com/$name/$name-ce/archive/v$version/$name-$version.tar.gz" \ 'e0df90392b2daa545562342dabf181cf' dlextract "https://github.com/opencontainers/runc/archive/$version_runc/runc-$version_runc.tar.gz" \ diff --git a/satellites/go-md2man.sat b/satellites/go-md2man.sat index 2443c13..fe5377a 100644 --- a/satellites/go-md2man.sat +++ b/satellites/go-md2man.sat @@ -3,6 +3,9 @@ version=1.0.7 update_url="https://github.com/cpuguy83/$name/releases" update_names="/archive/v$version.tar.gz" +# Go doesn't like being stripped +options="!strip,$options" + dlextract "https://github.com/cpuguy83/$name/archive/v$version/$name-$version.tar.gz" \ '2282a7a24635c63ca7bb08b5e07282fc' _ diff --git a/satellites/go.sat b/satellites/go.sat index aec7a58..158f7aa 100644 --- a/satellites/go.sat +++ b/satellites/go.sat @@ -4,6 +4,9 @@ version=$majver.3 bootstrap_version=1.4.3 update_url='https://golang.org/dl/' +# Go doesn't like being stripped +options="!strip,$options" + define_option '!bootstrap: Bootstrap this program' dlextract "https://storage.googleapis.com/golang/$name$version.src.tar.gz" \ diff --git a/satellites/syncthing.sat b/satellites/syncthing.sat index 9dbbc04..a27a207 100644 --- a/satellites/syncthing.sat +++ b/satellites/syncthing.sat @@ -2,6 +2,9 @@ name=syncthing version=0.14.37 update_url="https://github.com/$name/$name/releases" +# Go doesn't like being stripped +options="!strip,$options" + dlextract "https://github.com/$name/$name/releases/download/v$version/$name-source-v$version.tar.gz" \ '7c73632aa1d9c5a1c1824ace7516be86' extrafile 'syncthing-browser.desktop'