From c028014f96911930bf3b7dce08c0fe997cedfc69 Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Sun, 27 Jan 2008 21:06:28 -0600 Subject: makepkg: ensure binaries in /opt/* are stripped The path selection for stripping binaries was slightly off, so any binaries in subdirectories of opt/ were missed. Fixes FS#9342. Signed-off-by: Dan McGee --- scripts/makepkg.sh.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/makepkg.sh.in b/scripts/makepkg.sh.in index f5d5e052..0997386e 100644 --- a/scripts/makepkg.sh.in +++ b/scripts/makepkg.sh.in @@ -754,7 +754,7 @@ tidy_install() { if [ "$(check_option strip)" = "y" ]; then msg2 "$(gettext "Stripping debugging symbols from binaries and libraries...")" - for file in $(find {,usr/{,local/},opt/}{bin,lib,sbin} -type f 2>/dev/null || true); do + for file in $(find {,usr/{,local/},opt/*/}{bin,lib,sbin} -type f 2>/dev/null || true); do case "$(file -biz "$file")" in *application/x-sharedlib*) # Libraries /usr/bin/strip --strip-debug "$file";; -- cgit v1.2.3-70-g09d2 From b1103a3eaf0c6bb2982ac90000628baa2d5c2079 Mon Sep 17 00:00:00 2001 From: Alex Merry Date: Sat, 2 Feb 2008 10:09:06 -0600 Subject: updatesync: incorrect package deletion logic Fixes FS#9279. Signed-off-by: Dan McGee --- scripts/updatesync.sh.in | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/scripts/updatesync.sh.in b/scripts/updatesync.sh.in index 900f11f3..c777d1f1 100644 --- a/scripts/updatesync.sh.in +++ b/scripts/updatesync.sh.in @@ -116,11 +116,11 @@ if [ "$4" != "" ]; then fi opt_force="" -if [ ! -f "$option" ]; then - die "$(gettext "%s not found")" $option -fi - if [ "$action" = "upd" ]; then # INSERT / UPDATE + if [ ! -f "$option" ]; then + die "$(gettext "%s not found")" $option + fi + unset pkgname pkgver pkgrel options source $option || die "$(gettext "failed to parse %s")" $option @@ -141,10 +141,14 @@ if [ "$action" = "upd" ]; then # INSERT / UPDATE else # DELETE fname="$(basename $option)" if [ "$fname" = "PKGBUILD" ]; then + if [ ! -f "$option" ]; then + die "$(gettext "%s not found")" $option + fi + unset pkgname pkgver pkgrel options source $option else - pkgname=$1 + pkgname=$option fi repo-remove "$pkgdb" "$pkgname" -- cgit v1.2.3-70-g09d2 From 7cfb343b0fed556e82b6fbc81047c5461effab84 Mon Sep 17 00:00:00 2001 From: Roman Kyrylych Date: Wed, 30 Jan 2008 14:15:17 +0200 Subject: Remove /bin/true from install.proto Signed-off-by: Roman Kyrylych [Dan: update indentation inside functions] Signed-off-by: Dan McGee --- proto.install | 57 +++++++++++++++++++++++++++++---------------------------- 1 file changed, 29 insertions(+), 28 deletions(-) diff --git a/proto.install b/proto.install index 074840e4..2a8993d1 100644 --- a/proto.install +++ b/proto.install @@ -1,36 +1,37 @@ -# This is a default template for a post-install scriptlet. You can -# remove any functions you don't need (and this header). +# This is a default template for a post-install scriptlet. +# Uncomment only required functions and remove any functions +# you don't need (and this header). -# arg 1: the new package version -pre_install() { - /bin/true -} +## arg 1: the new package version +#pre_install() { + # do something here +#} -# arg 1: the new package version -post_install() { - /bin/true -} +## arg 1: the new package version +#post_install() { + # do something here +#} -# arg 1: the new package version -# arg 2: the old package version -pre_upgrade() { - /bin/true -} +## arg 1: the new package version +## arg 2: the old package version +#pre_upgrade() { + # do something here +#} -# arg 1: the new package version -# arg 2: the old package version -post_upgrade() { - /bin/true -} +## arg 1: the new package version +## arg 2: the old package version +#post_upgrade() { + # do something here +#} -# arg 1: the old package version -pre_remove() { - /bin/true -} +## arg 1: the old package version +#pre_remove() { + # do something here +#} -# arg 1: the old package version -post_remove() { - /bin/true -} +## arg 1: the old package version +#post_remove() { + # do something here +#} # vim:set ts=2 sw=2 et: -- cgit v1.2.3-70-g09d2