1 # Copyright © 2016 Guillem Jover <guillem@debian.org>
3 # This program is free software; you can redistribute it and/or modify
4 # it under the terms of the GNU General Public License as published by
5 # the Free Software Foundation; either version 2 of the License, or
6 # (at your option) any later version.
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 # GNU General Public License for more details.
13 # You should have received a copy of the GNU General Public License
14 # along with this program. If not, see <https://www.gnu.org/licenses/>.
16 package Dpkg::Build::Info;
21 our $VERSION = '1.00';
23 get_build_env_whitelist
26 use Exporter qw(import);
32 Dpkg::Build::Info - handle build information
36 The Dpkg::Build::Info module provides functions to handle the build
43 =item @envvars = get_build_env_whitelist()
45 Get an array with the whitelist of environment variables that can affect
46 the build, but are still not privacy revealing.
52 qw(CC CPP CXX OBJC OBJCXX PC FC M2C AS LD AR RANLIB MAKE AWK LEX YACC),
54 qw(CFLAGS CPPFLAGS CXXFLAGS OBJCFLAGS OBJCXXFLAGS GCJFLAGS FFLAGS
55 LDFLAGS ARFLAGS MAKEFLAGS),
56 # Dynamic linker, see ld(1).
58 # Locale, see locale(1).
59 qw(LANG LC_ALL LC_CTYPE LC_NUMERIC LC_TIME LC_COLLATE LC_MONETARY
60 LC_MESSAGES LC_PAPER LC_NAME LC_ADDRESS LC_TELEPHONE LC_MEASUREMENT
62 # Build flags, see dpkg-buildpackage(1).
63 qw(DEB_BUILD_OPTIONS DEB_BUILD_PROFILES),
64 # DEB_flag_{SET,STRIP,APPEND,PREPEND} will be recorded after being merged
65 # with system config and user config.
69 qw(DPKG_ROOT DPKG_ADMINDIR),
70 # See dpkg-architecture(1).
72 # See Dpkg::Vendor(3).
74 # See dpkg-gensymbols(1).
75 qw(DPKG_GENSYMBOLS_CHECK_LEVEL),
76 # See <https://reproducible-builds.org/specs/source-date-epoch>.
77 qw(SOURCE_DATE_EPOCH),
80 sub get_build_env_whitelist {
81 return @env_whitelist;
88 =head2 Version 1.00 (dpkg 1.18.14)
90 Mark the module as public.