summaryrefslogtreecommitdiff
path: root/debian/rules
Commit message (Collapse)AuthorAgeFilesLines
* debian/rules: Do not use dh_install --list-missing (dh 12 porting)Julian Andres Klode2019-02-071-4/+1
| | | | | This was removed in dh 12, and dh_missing is run by default which detects missing files.
* Build with cmake+ninja instead of cmake+makeJulian Andres Klode2018-04-171-3/+1
|
* Switch to 'http' as the default https methodJulian Andres Klode2017-06-301-1/+1
| | | | | The old curl based method is still available as 'curl', 'curl+http', and 'curl+https'.
* Do not try to (re)start timers outside 'apt' packageJulian Andres Klode2017-05-071-1/+2
| | | | | | | | | | dh_systemd_start inserted postinst commands in all packages, rather than just the package containing the timers. This also gets rid of postinst scripts for all other packages, yay. Closes: #862001
* Split apt-daily timer into twoJulian Andres Klode2017-05-041-1/+1
| | | | | | | | | | | The timer doing downloading runs throughout the day, whereas automatic upgrade and clean actions only happen in the morning. The upgrade service and timer have After= ordering requirements on their non-upgrade counterparts to ensure that upgrading at boot takes place after downloading. LP: #1686470
* debian/rules: Actually invoke dh_clean in override_dh_cleanJulian Andres Klode2017-04-241-0/+1
| | | | Regression from commit f5e9be1da89725f9bf1915bdf86fdc4a77edf917
* debian: Generate debian/copyright during cleanJulian Andres Klode2017-02-121-0/+3
| | | | | | | | | Ubuntu servers / Launchpad rejects uploads where debian/copyright is a symbolic link, and lintian warns about them. I think that's crazy, but I'm tired of having to work around this in SRUs, so let's just solve it by copying the file during clean: This way, it won't be in git, but it will be generated during the export by git-buildpackage.
* Do not (re)start "apt-daily.system"Michael Vogt2016-11-091-0/+5
| | | | | | | | | This unit runs unattended-upgrades. If apt itself is part of the upgrade a restart of the unit will kill unattended-upgrades. This will lead to an inconsistent dpkg status. Closes: #841763 Thanks: Alexandre Detiste
* debian: Pass -O to make to get readable build logsJulian Andres Klode2016-09-021-0/+3
| | | | | Normally make just lets every job write its output directly, making the log fairly hard to read with high concurrency.
* debian: Get rid of dh_movefiles againJulian Andres Klode2016-08-201-3/+3
| | | | | | | This workaround is a bit more ugly, but does not use a (somewhat) deprecated debhelper command. Gbp-Dch: ignore
* debian: Switch to debhelper 10Julian Andres Klode2016-08-191-1/+1
| | | | | | | | | | | debhelper 10 is much nicer with the installation part from a dirty tree, so you can just fix some stuff breaking the install step and then continue building with debuild -b -nc until you have fixed all your stuff. It also has some other advantages, of course, like some bug fixes in shell escaping for maintscript, or systemd helper changes.
* debian: Make better use of the tree installed by CMakeJulian Andres Klode2016-08-191-1/+0
| | | | | | | This gets rid of the special casing of etc/apt, various example file installations handled by the upstream build system, and of course the directory creation for all dirs created by the upstream build system.
* debian: Install etc/apt if present (e.g., on Ubuntu)Julian Andres Klode2016-08-181-1/+2
| | | | | On Ubuntu, cmake installs are vendor-specific apt.conf.d snippet, causing the build to fail.
* ctest: show test output in case of failuresDavid Kalnischkies2016-08-121-0/+2
| | | | | | | | | | ctest as run by cmake by default does not show the output of the tests even if the tests failed. In terms of our tests it could be handy to set it always, but unfortunately it seems like cmake doesn't allow it if the internet is to be believed, so lets enable it at least while building packages and on travis. Gbp-Dch: Ignore
* CMake: Exclude .md5 and .map doxygen files from installJulian Andres Klode2016-08-111-2/+0
| | | | | | This is much better than removing them in debian/rules. Gbp-Dch: ignore
* CMake: Rewrite existing Documentation support and add doxygenJulian Andres Klode2016-08-101-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | This can now build all documentation. It should also be fairly reusable for other projects, as long as they follow the same naming scheme for the po4a output files and set the PACKAGE_* variables used here. We could have done all translations in a single call to po4a like the makefile based buildsystem does. While that would have made the output slightly nicer, this solution offers a huge performance gain because it can translate the documents in parallel, which also means that the xsltproc stage does not have to wait for all translations to be done first. You might think that the add_custom_command() should list the actual output files as BYPRODUCTS. This is not true however: Because the files are not always generated, Ninja will think missing byproducts mean that the target is out of date - which is not what we want. Finally, also add the missing doxygen support. Note that the packaging script cleans up some md5 and map files created by doxygen, otherwise it is fairly boring.
* CMake: debian: Switch packaging over to CMake and dh 9Julian Andres Klode2016-08-061-341/+23
| | | | | | | | | | | This new packaging is much easier to read, although the duplication in the install files is a bit annoying. We should probably also get rid of the movefiles for solvers, planners, and https method; but then we have to keep track of which methods exist in the apt package. Another disadvantage is that building only the documentation packages also requires building the code, as there's no way to turn off code building in the project.
* eipp: let apt make a plan, not make stuff planeDavid Kalnischkies2016-06-291-3/+3
| | | | | | | | | | | | | | Julian noticed on IRC that I fall victim to a lovely false friend by calling referring to a 'planer' all the time even through these are machines to e.g. remove splinters from woodwork ("make stuff plane"). The term I meant is written in german in this way (= with a single n) but in english there are two, aka: 'planner'. As that is unreleased code switching all instances without any transitional provisions. Also the reason why its skipped in changelog. Thanks: Julian Andres Klode Gbp-Dch: Ignore
* eipp: provide the internal planer as an external oneDavid Kalnischkies2016-06-271-1/+3
| | | | | | Testing the current implementation can benefit from being able to be feed an EIPP request and produce a fully compliant response. It is also a great test for EIPP in general.
* move 'dump' solver from apt-utils to apt packageDavid Kalnischkies2016-06-081-1/+1
|
* use *.docs files instead of hardcoding in debian/rulesDavid Kalnischkies2016-05-251-15/+6
| | | | Git-Dch: Ignore
* remove semi-support for different build-dirsDavid Kalnischkies2016-05-251-16/+2
| | | | | | | | | | | The debian/rules file tries to guess in which directory it is supposed to be building, but that guess is always ./build – if it wasn't it would fail later as not all rules take alternatives into acount. So, as this is clearly not used lets remove this complexity instead of fixing it up. Git-Dch: Ignore
* override lintian on doxygens embedded-javascript-libraryDavid Kalnischkies2016-05-241-1/+1
| | | | | | | The embedding is done completely automatic by doxygen and documented to be that way for reasons: /usr/share/doc/doxygen/README.jquery As we can't do anything about it, it is pointless to keep the warning.
* Use systemd.timer instead of a cron jobMichael Vogt2016-04-011-2/+6
| | | | | | | | | | | | | | | | | | | | | | The rational is that we need to spread the load on the mirrors that apt update and unattended-upgrades cause. To do so, we leverage the RandomizeDelay feature of systemd. The other advantage is that the timer is not run at a fixed daily.daily time but instead every 24h. This also fixes the problem that the randomized deplay in the current apt.cron.daily causes other cron jobs to be deplayed. A compatibility cron job is also provided for systems that do not use systemd. Note that the time is fired two times a day, but the logic inside of apt.systemd.daily will ensure (via stamp files) that the servers are hit at most every 24h. Firing two times a day helps with the worst case update time and it also helps with systems that are not always on. LP: #246381, #727685 Closes: #600262, #709675, #663290
* Allow building without libgtest-dev under <nocheck> build profileHelmut Grohne2016-01-031-0/+5
| | | | | | | | | | | | | | I'd like to avoid pulling libgtest-dev into the bootstrap set. Fortunately, libgtest-dev is only used for testing apt and apt correctly implements DEB_BUILD_OPTIONS=nocheck now. So this bug is about getting rid of the Build-Depends. Simply removing it (by adding a build profile) is not sufficient however as configure fails hard, so an additional bit is necessary to cover for that. Closes: #809726
* part revert, part redo 'which' replacementDavid Kalnischkies2015-12-071-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | In e75e5879 'replace "which" with "command -v" for portability' I missed that command -v isn't actually required to be available in debian, so for the 5 files we are using it: Two (abicheck/run_abi_test & test/integration/framework) are called in environments were I believe sh is at least dash or 'better' as the first one is "interactive" for apt developers and the later is sourced by ~200 tests in the same directory run by hand and ci-services – for the later we have pulled some uglier hacks for worser things already, so if there should actually end up needing something more compatible we will notice eventually (and the later actually had a command -v call for some time already and nobody came running). debian/rules and debian/apt.cron.daily I switched back to which as that is more or less debian-specific or at least highly non-critical. That leaves cmdline/apt-key.in with a bunch of calls where I will implement that functionality in shell as this is relatively short-lived as it is used to detect wget (for net-update, which Michael wants to revive and in that process will properly use apt-helper instead of wget) and to detect gpg vs. gpg2 systems, where the earlier is supposed to go away in the longrun (or the later, but by replacing the earlier…). [and this gpg/gpg2 detection is new in sid, so I have some sympathy for that being a problem now.] Thanks: Jakub Wilk for pointing out #747320
* replace "which" with "command -v" for portabilityDavid Kalnischkies2015-12-061-1/+1
| | | | | | | | which is a debian specific tool packaged in debianutils (essential) while command is a shell builtin defined by POSIX. Closes: 807144 Thanks: Mingye Wang for the suggestion.
* use function pointers instead of weak symbols for cmdline parsingDavid Kalnischkies2015-11-291-4/+1
| | | | | | | | Passing function pointers around while working on this was very icky, but if weak symbols are too much to ask for… Reverts "do not use "-Wl,-Bsymbolic-functions" during the build to avoid breakage" aka a5fc9be36211a290a7abc3ca2a8bf98943bc1f57.
* do not use "-Wl,-Bsymbolic-functions" during the build to avoid breakageMichael Vogt2015-11-281-1/+4
|
* do not rerun ./configure causing FTCBFS with newer autotools-devDavid Kalnischkies2015-11-191-1/+1
| | | | | | | | | | | | | | | | | | If the config.{sub,guess} files we linked in were newer than our configure script we ended up recreating configure and then rerun it without all the configuration options which were (potentially) present for a previous run. We avoid this by changing to the same ruleset as in the debian/rules file which compares the config.* files against a stamp file rather than the configure script itself as its the configuration itself which depends on all scripts, not configure on the config scripts. While at it, we also drop the 'make -s dirs' call as we don't need to do it explicitly here as proper dependencies will take care of it. Thanks: Helmut Grohne for the detailed bugreport. Closes: 804923
* debian/rules: Only do parallel build if specified in DEB_BUILD_OPTIONSJulian Andres Klode2015-08-271-0/+4
| | | | | | It was not nice to use 2 * number of cores in all cases. Thanks: Jakub Wilk for the suggestion
* debian/rules: add hardening=+allMichael Vogt2014-10-011-3/+6
| | | | | | | Because of dpkg-buildflags we already get most of the hardening features, +all adds -fPIE and ld -z now Thanks: Simon Ruderich, Markus Waldeck
* build: Convert from DebianDoc SGML to DocBook XMLGuillem Jover2014-07-081-6/+6
|
* Revert "add bash completion for the "apt" command"Michael Vogt2014-05-051-2/+0
| | | | | | | This reverts commit 697c9314c8ba24f3e393b5de11a3fad7adae4bfc. Conflicts: debian/rules
* allow vendors to install configuration filesDavid Kalnischkies2014-04-261-7/+2
| | | | | Vendors like ubuntu need to change some options, so giving them a way to do this less painfully avoids reducing differences.
* provide support for debian/apt.conf.$(lsb_release -i -s) vendor specific ↵Michael Vogt2014-04-251-0/+7
| | | | config files
* add bash completion for the "apt" commandMichael Vogt2014-04-251-0/+2
|
* initial version of apt-helperMichael Vogt2014-02-271-0/+3
|
* do not compress .xhtml files and remove junk filesDavid Kalnischkies2014-02-141-1/+2
| | | | | | | | | dh_compress compresses .xhtml files by default, which breaks our doxygen documentation. doxygen has also a bunch of temporary files it creates which stay in the build directory and so we remove them before installing them as documentation. Closes: 738933
* debian/rules: Call dh_makeshlibs for 'apt'Julian Andres Klode2014-01-051-0/+1
| | | | | | | | The package ships libapt-private now, so we need an ldconfig call in postinst. dh_makeshlibs creates one for us. Reported-by: lintian
* use a substvar to set the archive-keyring in debian/controlDavid Kalnischkies2013-11-301-1/+1
| | | | | | Adds a small helper to extract the small information bits we store in apt-vendor.ent and uses it in debian/rules to set apt:keyring as a substvar for debian/control populated with the &keyring-package; info
* enable NOISE for build logs to enable analyseDavid Kalnischkies2013-11-301-0/+3
| | | | | | It was enabled for a (long) while in Ubuntu, but it shouldn't hurt to enable it in Debian as well – especially now that Debian has automatic analyses of the buildlogs which don't work that well without the 'noise'
* really build apt.installMichael Vogt2013-08-121-2/+2
|
* exclude config.{sub,guess} from source packageDavid Kalnischkies2013-07-261-1/+6
| | | | | | | Lintian complains about these links in the source package as they leave the source directory and as they are autogenerated there isn't that much sense in shipping them, we can just recreate them before calling configure.
* implement debian/rules build-{arch,indep} as required by policy 3.9.4David Kalnischkies2013-07-261-15/+15
|
* make autoconf happy by "mv configure.{in,ac}"David Kalnischkies2013-07-261-1/+1
| | | | Git-Dch: Ignore
* cherry pick 39a07ec8f2c612a5af234c7713571362f7ca90b4Steve Langasek2013-07-111-0/+2
|
* debian/rules:Michael Vogt2013-07-051-0/+1
| | | | | * debian/rules: - call dh_clean in clean (closes: #714980)
* build the en manpages in subdirectory doc/enDavid Kalnischkies2013-06-091-2/+2
| | | | | Building manpages becames more consistent this way and it is simpler to ignore build artefacts, too.
* add missing translated apt.8 manpages, thanks to Helge Kreutzmann.Michael Vogt2013-01-081-1/+1
| | | Closes: #696923