cpt

[ARCHIVED] Carbs Packaging Tools
git clone git://git.ckyln.com/~cem/cpt.git
Log | Files | Refs | README | LICENSE

commit 261be3a7e9c0eb79bb1a6236ac2284a0cbdb4370
parent 07bd67baa9ab35fcf5d0b82838d5fdd9370ff37f
Author: Cem Keylan <cem@ckyln.com>
Date:   Mon,  3 Aug 2020 19:01:47 +0300

pkg_build(): remove libtool '*.la' files

Diffstat:
Msrc/cpt-lib | 9+++++++--
1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/src/cpt-lib b/src/cpt-lib @@ -730,10 +730,15 @@ pkg_build() { cp -LRf "$repo_dir" "$pkg_dir/$pkg/$pkg_db/" # We never ever want this. Let's end the endless conflicts - # and remove it. This will be the only exception for a - # specific removal of this kind. + # and remove it. find "$pkg_dir/$pkg" -name charset.alias -exec rm -f {} + + # Remove libtool's '*.la' library files. This removes cross-build + # system conflicts that may arise. Build-systems change, libtool + # is getting deprecated, we don't want a package that depends on + # some package's '.la' files. + find "$pkg_dir/$pkg" -name '*.la' -exec rm -f {} + + log "$pkg" "Successfully built package" run_hook post-build "$pkg" "$pkg_dir/$pkg"