summaryrefslogtreecommitdiff
path: root/debian/rules
Commit message (Collapse)AuthorAgeFilesLines
* 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
* * debian/control:David Kalnischkies2012-06-291-5/+5
| | | | | | - demote debiandoc-sgml to Build-Depends-Indep * doc/makefile: - separate translation building of debiandoc from manpages so that we don't need to build debiandoc for binary packages
* * debian/rules:David Kalnischkies2012-05-211-2/+3
| | | | - move internal-solver as 'apt' to his friend dump-solver in /usr/lib/apt/solvers to avoid writing a manpage for it
* - separate manpages from the rest of the doc buildingDavid Kalnischkies2012-05-141-4/+10
| | | - make apt and apt-utils packages depend on manpages instead of full doc
* * debian/rules:David Kalnischkies2012-05-121-1/+1
| | | - apt-utils packages manpages, so it should depend on build-doc
* * debian/rules:David Kalnischkies2012-03-221-14/+0
| | | | | - do not sed in configure.in to set the version-number * prepare-release: - add as a small script to lazy check and prepare releases
* use the correct line to get the currently configure.in versionDavid Kalnischkies2012-03-221-1/+1
|
* the previously used VERSION didn't work everywhere so we are switchingDavid Kalnischkies2012-03-221-1/+1
| | | | to the more standard PACKAGE_VERSION and make it work in every file
* * debian/rules:David Kalnischkies2012-01-191-1/+3
| | | | - apply patch to enable usage of hardning CPPFLAGS and LDFLAGS by Moritz Muehlenhoff, thanks! (Closes: #653504)
* revert libapt-common addition because of ↵Michael Vogt2011-11-281-18/+1
| | | | http://lists.debian.org/debian-devel/2011/11/msg00742.html
* merged libapt multiarch enable patch from Colin Watson, many thanks!Michael Vogt2011-11-221-4/+27
|
* merge with debian/sidDavid Kalnischkies2011-09-131-1/+6
|\
| * understand DEB_BUILD_OPTIONS nocheck to disable the testexecutionDavid Kalnischkies2011-08-171-0/+4
| |
| * * test/*David Kalnischkies2011-08-171-0/+1
| | | | | | | | | | - reorganize the various testcases and helper we have and integrate them better into the buildsystem - run the test/libapt testcases at package build-time
* | merged from http://bzr.debian.org/bzr/apt/apt/debian-sidMichael Vogt2011-07-151-3/+0
|\|
| * revert 2114.1.12 as doxygen does this for use nowDavid Kalnischkies2011-06-061-3/+0
| |
* | merge lp:~mvo/apt/abi-breakMichael Vogt2011-06-291-2/+4
|\ \
| * \ * Implement EDSP in libapt-pkg so that all front-ends whichDavid Kalnischkies2011-05-171-2/+4
| |\ \ | | |/ | |/| | | | | | | | | | | | | use the internal resolver can now be used also with external ones as the usage is hidden in between the old API * provide two edsp solvers in apt-utils: - 'dump' to quickly output a complete scenario and - 'apt' to use the internal as an external resolver
| | * fix package building so 'dump' is a binary not a directoryDavid Kalnischkies2011-05-091-0/+2
| | |
| | * add a tiny dump solver to quickly output a scenarioDavid Kalnischkies2011-05-031-1/+1
| | |
| | * ship the apt-internal-solver in apt-utils package and link it toDavid Kalnischkies2011-05-031-1/+1
| | | | | | | | | | | | /usr/lib/apt/solvers so we have it available for playing as 'apt'
* | | debian/rules: use substvars properlyMichael Vogt2011-06-101-1/+1
| | |
* | | generate debiandencies for libapt-pkg-dev automatically via deb-substvarsMichael Vogt2011-06-101-1/+1
| | |
* | | include mo files in the right packagesMichael Vogt2011-06-101-0/+4
| | |