HEX
Server: LiteSpeed
System: Linux php-prod-3.spaceapp.ru 5.15.0-151-generic #161-Ubuntu SMP Tue Jul 22 14:25:40 UTC 2025 x86_64
User: sarli3128 (1010)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: //usr/share/perl5/Debian/Debhelper/Sequence/single_binary.pm
use strict;
use warnings;

use Debian::Debhelper::Dh_Lib qw(getpackages error warning tmpdir);
use Debian::Debhelper::SequencerUtil;

my @packages = getpackages();
my $pkg = $packages[0];
my $tmp = tmpdir($pkg);
if (@packages != 1) {
    warning('Detected multiple binary packages (Package paragraphs) in debian/control, which is incompatible');
    warning('with the single-binary dh add-on.');
    warning();
    warning('Please:');
    warning(' 1) Remove the single-binary add-on ("dh-sequence-single-binary" in Build-Depends)');
    warning(' 2) Update the packaging to cope with dh_auto_install using \"debian/tmp\" as default dest dir');
    warning("    (Previously, it would probably have used \"${tmp}\")");
    warning(' 3) Add Breaks/Replaces if you are moving existing files into a new package.');
    warning(' 4) Double check that the resulting binaries have content.');
    warning();
    warning("IF YOU ARE ADDING A TRANSITIONAL PACKAGE: Then you probably want to pass --destdir=${tmp} to");
    warning('  dh_auto_install.  Most likely you will need Breaks + Replaces as renaming a package counts as');
    warning('  moving files between two packages.');
    warning();
    warning('IF YOU ARE "SPLITTING" THE CONTENT INTO MULTIPLE PACKAGES: Then remember to install the content');
    warning("  into them (by creating debian/${pkg}.install, etc.).  Also remember to add Breaks + Replaces if");
    warning('  you are moving files from one package into another.');
    warning();
    error("The single-binary add-on cannot be used for source packages that build multiple binary packages.");
}

add_command_options('dh_auto_install', "--destdir=${tmp}/");

1;