summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2017-01-22Force dch bad version if neededcollaboraSjoerd Simons1-1/+1
Signed-off-by: Sjoerd Simons <sjoerd.simons@collabora.co.uk>
2017-01-22Implement simple device creation in debootstrap scriptSjoerd Simons1-1/+22
stretch debootstrap get a bit confused by obs already having setup dev/pts and dev/shm. Move the device creation bits into the debootstap scripts for compabitiblity with old and new debootstrap Signed-off-by: Sjoerd Simons <sjoerd.simons@collabora.co.uk>
2016-03-14Build: Add support for :native arch specifiers and build profilesBob Ham1-5/+22
Support Build-Depends such as the following: g++-multilib [amd64 armel armhf i386 kfreebsd-amd64 mips mips64 mips64el mipsel mipsn32 mipsn32el powerpc ppc64 s390 s390x sparc sparc64 x32] <!cross> g++-5-x86-64-linux-gnu [amd64] <cross> binutils:native (>= 2.25.90) | binutils-multiarch:native (>= 2.25.90) We just ignore :native, as with :any, but pay attention to the build profile formulae. We simply use an empty build profile set for now, which works appropriately with <cross>, <!cross>, <stage1>, <!stage1>, etc. Signed-off-by: Bob Ham <bob.ham@collabora.com>
2014-09-03Install a policy-rc.d fileSjoerd Simons1-0/+15
Installa policy-rc.d file similar to the one used by pbuilder to deny start of daemons on package installation.
2014-09-03Revert "Ensure extra user-configured env variables are available in the ↵Sjoerd Simons1-28/+2
build chroot" Revert as it breaks parallel environment passing This reverts commit 919e189046f670a66473e31c0a6d1bcc5da6bbb7.
2014-09-03Revert "If the build directory prefix has been overridden by user config, ↵Sjoerd Simons1-17/+7
honour it" This reverts commit c8e1a349f4970060d5f173b62ec3c3b5727fcb21.
2014-05-16If the build directory prefix has been overridden by user config, honour itVivek Dasmohapatra1-7/+17
2014-05-16Ensure extra user-configured env variables are available in the build chrootVivek Dasmohapatra1-2/+28
2014-02-20Alter /CurrentlyBuilding to tell Ubuntu's pkg-create-dbgsym that we know ↵Simon McVittie1-0/+4
about ddebs This means we can use an unpatched version of p-c-d. Reviewed-by: Héctor Orón Martínez
2014-02-17build: also ship ddebs (Ubuntu-style detached debug symbols)Simon McVittie1-1/+1
Bug: Collabora#397 Reviewed-by: Sjoerd Simons <sjoerd.simons@collabora.co.uk> Signed-off-by: Héctor Orón Martínez <hector.oron@collabora.co.uk>
2014-02-17Revert adding binary-only=yes, our rebuilds are full source (thus include ↵Sjoerd Simons1-2/+1
architecture all packages). Which doesn't work correctly as a packages depend on the $(source:Version), which differs from the rebuild version when using binary-only=yes Signed-off-by: Héctor Orón Martínez <hector.oron@collabora.co.uk>
2014-02-17build: support parallel build jobsSjoerd Simons1-5/+5
Add support for parallel build jobs. Do this by setting parallel=X in DEB_BUILD_OPTIONS instead of passing -j to dpkg-buildpackage as the latter also updates MAKEFLAGS by itself which some package might not be too happy with Signed-off-by: Héctor Orón Martínez <hector.oron@collabora.co.uk>
2014-02-17build: Set binary-only=yes build tagSjoerd Simons1-1/+4
Set the binary-only=yes buildtag in changelogs, this will cause dpkg-buildpackage to make a per-architecture debian changelog for the last entry while keeping the other entries in the normal changelog.Debian.gz. Which solves the multiarch issue. Also enforce the maintainer email to set to @buildd instead of the previous maintainer entry Signed-off-by: Héctor Orón Martínez <hector.oron@collabora.co.uk>
2014-02-17Add attributes to ignore exporting the debian dirSjoerd Simons1-0/+1
Signed-off-by: Héctor Orón Martínez <hector.oron@collabora.co.uk>
2014-02-17build: Also ship udeb filesSjoerd Simons1-1/+1
Signed-off-by: Héctor Orón Martínez <hector.oron@collabora.co.uk>
2014-02-17Fix typo in Build/Deb.pmJeremy Whiting1-2/+2
Signed-off-by: Héctor Orón Martínez <hector.oron@collabora.co.uk>
2014-02-17Add support for armv6hl architectureHéctor Orón Martínez4-4/+5
Signed-off-by: Héctor Orón Martínez <hector.oron@collabora.co.uk>
2014-02-17Reorder pre-install packages for rpm, based on upstreams directionSjoerd Simons1-0/+1
Signed-off-by: Héctor Orón Martínez <hector.oron@collabora.co.uk>
2014-02-17- follow symlinks on extracting rpms during preinstall. chroot is protecting ↵Adrian Schröter1-2/+2
us. (required for broken Fedora 17 packages) Signed-off-by: Héctor Orón Martínez <hector.oron@collabora.co.uk>
2014-02-17setupccache: remove obsolete rm commandFrank Lichtenheld1-1/+0
$builduserhome is undefined, so that really deletes /bin/gcc etc. Which is a problem on Fedora 17 where /bin is a symlink to /usr/bin. Signed-off-by: Héctor Orón Martínez <hector.oron@collabora.co.uk>
2014-02-17Remove stale dch backup filesSjoerd Simons1-1/+1
x11proto-xcomposite was found to contain a changelog.dch back file, causing our dch call to be ignored. Remove such left-over files before running dch to solve this issue. Signed-off-by: Héctor Orón Martínez <hector.oron@collabora.co.uk>
2014-02-17Don't export build/source packagesSjoerd Simons1-1/+1
Signed-off-by: Héctor Orón Martínez <hector.oron@collabora.co.uk>
2014-02-17Add ~0 to use the current version in the changelog as wellTrever Fischer1-1/+1
Signed-off-by: Héctor Orón Martínez <hector.oron@collabora.co.uk>
2014-02-17Include changelog from previous versionsTrever Fischer1-1/+1
Signed-off-by: Héctor Orón Martínez <hector.oron@collabora.co.uk>
2014-02-17Add file so linux kernel package autodetects buildd environment V2Hector Oron1-2/+5
Signed-off-by: Hector Oron <hector.oron@collabora.co.uk> Signed-off-by: Héctor Orón Martínez <hector.oron@collabora.co.uk>
2014-02-17Add file so linux kernel package autodetects buildd environmentHector Oron1-0/+2
Signed-off-by: Hector Oron <hector.oron@collabora.co.uk> Signed-off-by: Héctor Orón Martínez <hector.oron@collabora.co.uk>
2014-02-17Upload .changes files as wellTrever Fischer1-1/+1
Signed-off-by: Héctor Orón Martínez <hector.oron@collabora.co.uk>
2014-02-17Don't hardcode + and preserve the build dirSjoerd Simons1-1/+1
OBS does get confused when dch changes the source dir when a Debian native package updates its version. So lets not do that. Also don't hardcode + as it's not treated specially by dpkg (and sorts above digits) so it doesn't really work well for our purposes Signed-off-by: Héctor Orón Martínez <hector.oron@collabora.co.uk>
2014-02-17Parse version from the dsc file directly to handle epochsSjoerd Simons1-1/+1
Signed-off-by: Héctor Orón Martínez <hector.oron@collabora.co.uk>
2014-02-17Add the build release version to the binary packagesSjoerd Simons1-0/+4
Signed-off-by: Héctor Orón Martínez <hector.oron@collabora.co.uk>
2014-02-17Fix umount /dev/shm and /run/shm leakHector Oron1-0/+2
Signed-off-by: Hector Oron <hector.oron@gmail.com> Signed-off-by: Héctor Orón Martínez <hector.oron@collabora.co.uk>
2014-02-17Make sure /run/shm is umountedHector Oron2-0/+4
Due to tmpfs directories being transitioned to /run, sysvinit scripts attempt to migrate /dev/shm to /run/shm, which after one package has setup its build chroot makes to fail next build that attempts to install sysvinit scripts (initscripts). Signed-off-by: Hector Oron <hector.oron@collabora.co.uk> Signed-off-by: Héctor Orón Martínez <hector.oron@collabora.co.uk>
2014-02-17Use our internal script instead of assuming it's installed on the workerSjoerd Simons1-1/+1
Signed-off-by: Héctor Orón Martínez <hector.oron@collabora.co.uk>
2014-02-17Make the /etc/hosts file badgering more saneSjoerd Simons1-4/+2
Signed-off-by: Héctor Orón Martínez <hector.oron@collabora.co.uk>
2014-02-17Fix the build dir regexp to work with packages containing a - in the nameSjoerd Simons1-1/+1
Signed-off-by: Héctor Orón Martínez <hector.oron@collabora.co.uk>
2014-02-17Ensure the symlink is resolved in the chrootSjoerd Simons1-1/+1
Signed-off-by: Héctor Orón Martínez <hector.oron@collabora.co.uk>
2014-02-17If UTC is a symlink resolve it when setting localtimeSjoerd Simons1-1/+1
Signed-off-by: Héctor Orón Martínez <hector.oron@collabora.co.uk>
2014-02-17Generate APT cache before buildHector Oron1-0/+3
Signed-off-by: Hector Oron <hector.oron@gmail.com> Signed-off-by: Héctor Orón Martínez <hector.oron@collabora.co.uk>
2014-02-17Update apt caches with the local repositorySjoerd Simons1-0/+3
Signed-off-by: Héctor Orón Martínez <hector.oron@collabora.co.uk>
2014-02-17Recognize any-<arch> in the Architecture fieldSjoerd Simons1-1/+1
Signed-off-by: Héctor Orón Martínez <hector.oron@collabora.co.uk>
2014-02-17Parse the architecture field in the dscSjoerd Simons1-6/+38
Signed-off-by: Héctor Orón Martínez <hector.oron@collabora.co.uk>
2014-02-17usage fakeroot instead of fakeroot-tcpSjoerd Simons1-2/+2
Some errors were observed when building ubuntu-docs with fakeroot-tcp. Both the Debian and Ubuntu build machines use fakeroot instead of fakeroot-tcp, so follow them and use plain fakeroot instead of fakeroot-tcp. Signed-off-by: Héctor Orón Martínez <hector.oron@collabora.co.uk>
2014-02-17Unpack debian packages in their proper base directorySjoerd Simons1-3/+5
Debian packages expect to build with a top directory of <source>-<version>, dpkg-buildpackage warns if this doesn't happen and more importantly some packages may fail (specifically the time package in debian does) Signed-off-by: Héctor Orón Martínez <hector.oron@collabora.co.uk>
2014-02-17Keep the debootstrapdir around so we can examine the log if things go wrongSjoerd Simons1-1/+1
Signed-off-by: Héctor Orón Martínez <hector.oron@collabora.co.uk>
2014-02-17handle any-<architecture> type-handling specifiersSjoerd Simons1-2/+2
Signed-off-by: Héctor Orón Martínez <hector.oron@collabora.co.uk>
2014-02-17Correctly remove the :any multiarch tagSjoerd Simons1-2/+2
The depends aren't just the package name, but also version annotation.. So the previous solution was just wrong.. Signed-off-by: Héctor Orón Martínez <hector.oron@collabora.co.uk>
2014-02-17Strip of the multi-arch :any specifier in dependenciesSjoerd Simons1-0/+2
Signed-off-by: Héctor Orón Martínez <hector.oron@collabora.co.uk>
2014-02-17Split base-passwd and base-files installationHector Oron1-1/+3
Trying to install base-{files,passwd} at once seems to fail when fetching packages from local mirror. Signed-off-by: Hector Oron <hector.oron@collabora.co.uk> Signed-off-by: Héctor Orón Martínez <hector.oron@collabora.co.uk>
2014-02-17Don't compress Packages filesSjoerd Simons1-3/+3
Switch from gzip compression to no compression for the Packages files as this just wastes cpu cycles when apt-ftparchive gzips and slightly later it will be unzipped by debootstrap again. Signed-off-by: Héctor Orón Martínez <hector.oron@collabora.co.uk>
2014-02-17- wrong init_buildsystem if statementHelio Chissini de Castro1-2/+2
Signed-off-by: Héctor Orón Martínez <hector.oron@collabora.co.uk>