Commits (2)
  • Niko Tyni's avatar
    Remove LC_* from sbuild environment · d7bf57cc
    Niko Tyni authored
    When running debomatic manually (not from systemd), it will pass
    through environment variables from the user shell session. LC_*
    can cause build failures in chroots without locales installed
    (at least postgresql-10).
  • Niko Tyni's avatar
    Pull perl packages from experimental to the local reprepro repository · ef930d70
    Niko Tyni authored
    This hopefully fixes issues with the debomatic default build-dep resolver
    (aspcud) so we don't have to patch it to use another one.
    This also needs an active cronjob to run 'reprepro update' periodically.
    I have no idea why experimental is currently only signed with wheezy
    and jessie archive keys.
    Bug: debomatic#4
......@@ -63,3 +63,4 @@
when: admin_users is defined
- template: src=etc/exim4/update-exim4.conf.conf.j2 dest=/etc/exim4/update-exim4.conf.conf
- template: src=home/debomatic/cronjobs/gen-indexes.sh.j2 dest=/home/debomatic/cronjobs/gen-indexes.sh mode=0755
- template: src=home/debomatic/sbuild.conf.j2 dest=/home/debomatic/.sbuild.conf mode=0644
......@@ -14,6 +14,16 @@
register: debomatic_pubkey
changed_when: False
check_mode: no
- shell: "gpg --homedir /srv/reprepro-gpg/ --import /etc/apt/trusted.gpg.d/debian-archive-jessie-automatic.gpg 2>&1"
become_user: debomatic
register: cmd_result
changed_when: "'unchanged' not in cmd_result.stdout"
check_mode: no
- shell: "gpg --homedir /srv/reprepro-gpg/ --list-keys 'Debian Archive Automatic Signing Key' --with-colons|head -1| cut -f5 -d:"
become_user: debomatic
register: debian_experimental_pubkey
changed_when: False
check_mode: no
- template: src=srv/reprepro/conf/distributions.j2 dest=/srv/reprepro/conf/distributions
- template: src=srv/reprepro/conf/options.j2 dest=/srv/reprepro/conf/options
- command: reprepro -b /srv/reprepro export creates=/srv/reprepro/pool
......@@ -22,8 +32,6 @@
with_items: "{{ debomatic_archs }}"
- template: src=srv/chroots/perl-generic/etc/apt/sources.list.d/local.list.j2 dest=/srv/chroots/perl-{{ perl_test_version }}-{{ item }}/etc/apt/sources.list.d/local.list
with_items: "{{ debomatic_archs }}"
- template: src=srv/chroots/perl-generic/etc/apt/preferences.d/perl.pref.j2 dest=/srv/chroots/perl-{{ perl_test_version }}-{{ item }}/etc/apt/preferences.d/perl{{ perl_test_version|regex_replace('\.', '')}}.pref
with_items: "{{ debomatic_archs }}"
# XXX do this by hand
#- command: schroot -c source:perl-{{ perl_test_version }}-amd64-debomatic "apt-get -y install perl/experimental" chdir=/
- command: gpg --homedir /srv/reprepro-gpg/ --export -a
# remove LC_* from the environment as perl sbuild.conf(1)
use Dpkg::Build::Info;
$environment_filter = [map /^LC_/ ? () : $_, Dpkg::Build::Info::get_build_env_whitelist()];
Package: perl perl-base perl-modules-{{ perl_test_version }} libperl{{ perl_test_version}} libperl-dev perl-doc perl-debug
Pin: release a=experimental
Pin-Priority: 500
deb file:///srv/reprepro perl-{{ perl_test_version }} main
deb http://localhost:3142/debian/ experimental main
......@@ -6,6 +6,7 @@ Components: main
Description: Test repository of packages rebuilt for Perl {{ perl_test_version }}
SignWith: 0x{{ debomatic_keyid.stdout }}
AlsoAcceptFor: experimental UNRELEASED unstable sid
Update: perl-exp
# NotAutomatic: yes
Origin: perl@packages.debian.org
Name: perl-exp
Method: http://localhost:3142/debian
Suite: experimental
FilterFormula: source (== perl)
VerifyRelease: 0x{{ debian_experimental_pubkey }}