[debhelper-devel] [debhelper] 08/11: Deprecate dh_eosapp

Niels Thykier nthykier at moszumanska.debian.org
Sun Jan 7 21:38:03 UTC 2018


This is an automated email from the git hooks/post-receive script.

nthykier pushed a commit to annotated tag Release_2.6.0
in repository debhelper.

commit 95d336c1be0a644f2eb1409c399ab9964016d48b
Author: Dan Nicholson <nicholson at endlessm.com>
Date:   Wed Jan 27 16:40:48 2016 -0800

    Deprecate dh_eosapp
    
    Requiring an extra debhelper command for eos-app was always problematic
    since some packages don't use the dh builtin sequence. The functionality
    for migrating the files has been moved to dh_installdeb, which is always
    needed, so dh_eosapp can be stubbed out and deprecated. It has also been
    removed from the default dh sequence.
---
 dh        |  1 -
 dh_eosapp | 35 +++++------------------------------
 2 files changed, 5 insertions(+), 31 deletions(-)

diff --git a/dh b/dh
index d2aff65..d04ebeb 100755
--- a/dh
+++ b/dh
@@ -394,7 +394,6 @@ my @i = qw{
 	dh_installxfonts
 	dh_compress
 	dh_fixperms
-	dh_eosapp
 };
 my @ba=qw{
 	dh_strip
diff --git a/dh_eosapp b/dh_eosapp
index f7ac736..6d49696 100755
--- a/dh_eosapp
+++ b/dh_eosapp
@@ -2,12 +2,11 @@
 
 =head1 NAME
 
-dh_eosapp - move installed files to application prefix
+dh_eosapp - deprecated helper
 
 =cut
 
 use strict;
-use Debian::Debhelper::Dh_Lib;
 
 =head1 SYNOPSIS
 
@@ -15,37 +14,13 @@ B<dh_eosapp> [S<I<debhelper options>>]
 
 =head1 DESCRIPTION
 
-B<dh_eosapp> is a debhelper program that moves installed files from the
-typical /usr prefix to the application specific /endless/app prefix.
-
-It only operates when DEB_BUILD_PROFILES includes "eos-app".
+B<dh_eosapp> was a debhelper program that moved installed files from the
+typical /usr prefix to the application specific /endless/app prefix. The
+functionality has been moved into B<dh_installdeb>.
 
 =cut
 
-init();
-
-if (! get_buildprofile("eos-app")) {
-	exit;
-}
-
-foreach my $package (@{$dh{DOPACKAGES}}) {
-	my $tmp=tmpdir($package);
-	my $app_id=package_eos_app_id($package);
-	my $cmd;
-
-	# Skip if there is no usr directory
-	if (! -d "${tmp}/usr") {
-		next;
-	}
-
-	# Create the endless prefix if necessary
-	doit("mkdir -p ${tmp}/endless/${app_id}");
-
-	# Move files from /usr to /endless/app and delete /usr
-	$cmd="tar -C ${tmp}/usr -cf- . | tar -C ${tmp}/endless/${app_id} -xpf-";
-	complex_doit($cmd);
-	doit("rm -rf ${tmp}/usr");
-}
+1;
 
 =head1 SEE ALSO
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debhelper/debhelper.git




More information about the debhelper-devel mailing list