summaryrefslogtreecommitdiff
path: root/debian/rules
AgeCommit message (Collapse)Author
2016-08-18Do not force -O2, should be fixed in ~rc2Julian Andres Klode
2016-08-18Merge tag '1.3_rc2' into ubuntuJulian Andres Klode
apt Debian release 1.3~rc2
2016-08-15Imported Debian version 1.3~rc1ubuntu21.3_rc1ubuntu2Matthias Klose
2016-08-12ctest: show test output in case of failuresDavid Kalnischkies
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
2016-08-12debian: Install etc/apt if present (e.g., on Ubuntu)Julian Andres Klode
On Ubuntu, cmake installs are vendor-specific apt.conf.d snippet, causing the build to fail.
2016-08-11CMake: Exclude .md5 and .map doxygen files from installJulian Andres Klode
This is much better than removing them in debian/rules. Gbp-Dch: ignore
2016-08-10CMake: Rewrite existing Documentation support and add doxygenJulian Andres Klode
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.
2016-08-06CMake: debian: Switch packaging over to CMake and dh 9Julian Andres Klode
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.
2016-06-29eipp: let apt make a plan, not make stuff planeDavid Kalnischkies
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
2016-06-27eipp: provide the internal planer as an external oneDavid Kalnischkies
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.
2016-06-08move 'dump' solver from apt-utils to apt packageDavid Kalnischkies
2016-05-25use *.docs files instead of hardcoding in debian/rulesDavid Kalnischkies
Git-Dch: Ignore
2016-05-25remove semi-support for different build-dirsDavid Kalnischkies
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
2016-05-24override lintian on doxygens embedded-javascript-libraryDavid Kalnischkies
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.
2016-04-01Use systemd.timer instead of a cron jobMichael Vogt
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
2016-01-03Allow building without libgtest-dev under <nocheck> build profileHelmut Grohne
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
2015-12-07part revert, part redo 'which' replacementDavid Kalnischkies
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
2015-12-06replace "which" with "command -v" for portabilityDavid Kalnischkies
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.
2015-11-29use function pointers instead of weak symbols for cmdline parsingDavid Kalnischkies
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.
2015-11-28do not use "-Wl,-Bsymbolic-functions" during the build to avoid breakageMichael Vogt
2015-11-19do not rerun ./configure causing FTCBFS with newer autotools-devDavid Kalnischkies
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
2015-08-27debian/rules: Only do parallel build if specified in DEB_BUILD_OPTIONSJulian Andres Klode
It was not nice to use 2 * number of cores in all cases. Thanks: Jakub Wilk for the suggestion
2014-10-01debian/rules: add hardening=+allMichael Vogt
Because of dpkg-buildflags we already get most of the hardening features, +all adds -fPIE and ld -z now Thanks: Simon Ruderich, Markus Waldeck
2014-07-08build: Convert from DebianDoc SGML to DocBook XMLGuillem Jover
2014-05-05Revert "add bash completion for the "apt" command"Michael Vogt
This reverts commit 697c9314c8ba24f3e393b5de11a3fad7adae4bfc. Conflicts: debian/rules
2014-04-26allow vendors to install configuration filesDavid Kalnischkies
Vendors like ubuntu need to change some options, so giving them a way to do this less painfully avoids reducing differences.
2014-04-25provide support for debian/apt.conf.$(lsb_release -i -s) vendor specific ↵Michael Vogt
config files
2014-04-25add bash completion for the "apt" commandMichael Vogt
2014-02-27initial version of apt-helperMichael Vogt
2014-02-14do not compress .xhtml files and remove junk filesDavid Kalnischkies
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
2014-01-05debian/rules: Call dh_makeshlibs for 'apt'Julian Andres Klode
The package ships libapt-private now, so we need an ldconfig call in postinst. dh_makeshlibs creates one for us. Reported-by: lintian
2013-11-30use a substvar to set the archive-keyring in debian/controlDavid Kalnischkies
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
2013-11-30enable NOISE for build logs to enable analyseDavid Kalnischkies
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'
2013-08-12really build apt.installMichael Vogt
2013-07-26exclude config.{sub,guess} from source packageDavid Kalnischkies
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.
2013-07-26implement debian/rules build-{arch,indep} as required by policy 3.9.4David Kalnischkies
2013-07-26make autoconf happy by "mv configure.{in,ac}"David Kalnischkies
Git-Dch: Ignore
2013-07-11cherry pick 39a07ec8f2c612a5af234c7713571362f7ca90b4Steve Langasek
2013-07-05debian/rules:Michael Vogt
* debian/rules: - call dh_clean in clean (closes: #714980)
2013-06-09build the en manpages in subdirectory doc/enDavid Kalnischkies
Building manpages becames more consistent this way and it is simpler to ignore build artefacts, too.
2013-01-08add missing translated apt.8 manpages, thanks to Helge Kreutzmann.Michael Vogt
Closes: #696923
2012-06-29* debian/control:David Kalnischkies
- 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
2012-05-21* debian/rules:David Kalnischkies
- move internal-solver as 'apt' to his friend dump-solver in /usr/lib/apt/solvers to avoid writing a manpage for it
2012-05-14 - separate manpages from the rest of the doc buildingDavid Kalnischkies
- make apt and apt-utils packages depend on manpages instead of full doc
2012-05-12* debian/rules:David Kalnischkies
- apt-utils packages manpages, so it should depend on build-doc
2012-03-22* debian/rules:David Kalnischkies
- do not sed in configure.in to set the version-number * prepare-release: - add as a small script to lazy check and prepare releases
2012-03-22use the correct line to get the currently configure.in versionDavid Kalnischkies
2012-03-22the previously used VERSION didn't work everywhere so we are switchingDavid Kalnischkies
to the more standard PACKAGE_VERSION and make it work in every file
2012-01-19* debian/rules:David Kalnischkies
- apply patch to enable usage of hardning CPPFLAGS and LDFLAGS by Moritz Muehlenhoff, thanks! (Closes: #653504)
2011-11-28revert libapt-common addition because of ↵Michael Vogt
http://lists.debian.org/debian-devel/2011/11/msg00742.html