Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

dpkg::buildflags(3) [linux man page]

Dpkg::BuildFlags(3)						   libdpkg-perl 					       Dpkg::BuildFlags(3)

NAME
Dpkg::BuildFlags - query build flags DESCRIPTION
The Dpkg::BuildFlags object is used by dpkg-buildflags and can be used to query the same information. FUNCTIONS
my $bf = Dpkg::BuildFlags->new() Create a new Dpkg::BuildFlags object. It will be initialized based on the value of several configuration files and environment variables. $bf->load_vendor_defaults() Reset the flags stored to the default set provided by the vendor. $bf->load_system_config() Update flags from the system configuration. $bf->load_user_config() Update flags from the user configuration. $bf->load_environment_config() Update flags based on directives stored in the environment. See dpkg-buildflags(1) for details. $bf->load_config() Call successively load_system_config(), load_user_config() and load_environment_config() to update the default build flags defined by the vendor. $bf->set($flag, $value, $source) Update the build flag $flag with value $value and record its origin as $source. $bf->append($flag, $value, $source) Append the options listed in $value to the current value of the flag $flag. Record its origin as $source. $bf->update_from_conffile($file, $source) Update the current build flags based on the configuration directives contained in $file. See dpkg-buildflags(1) for the format of the directives. $source is the origin recorded for any build flag set or modified. $bf->get($flag) Return the value associated to the flag. It might be undef if the flag doesn't exist. $bf->get_origin($flag) Return the origin associated to the flag. It might be undef if the flag doesn't exist. $bf->has($option) Returns a boolean indicating whether the flags exists in the object. my @flags = $bf->list() Returns the list of flags stored in the object. AUTHOR
Raphael Hertzog <hertzog@debian.org> 1.16.0.3 2012-04-17 Dpkg::BuildFlags(3)

Check Out this Related Man Page

Dpkg::Vendor(3) 						   libdpkg-perl 						   Dpkg::Vendor(3)

NAME
Dpkg::Vendor - get access to some vendor specific information DESCRIPTION
The files in /etc/dpkg/origins/ can provide information about various vendors who are providing Debian packages. Currently those files look like this: Vendor: Debian Vendor-URL: http://www.debian.org/ Bugs: debbugs://bugs.debian.org If the vendor derives from another vendor, the file should document the relationship by listing the base distribution in the Parent field: Parent: Debian The file should be named according to the vendor name. FUNCTIONS
$fields = Dpkg::Vendor::get_vendor_info($name) Returns a Dpkg::Control object with the information parsed from the corresponding vendor file in /etc/dpkg/origins/. If $name is omitted, it will use /etc/dpkg/origins/default which is supposed to be a symlink to the vendor of the currently installed operating system. Returns undef if there's no file for the given vendor. $name = Dpkg::Vendor::get_vendor_file($name) Check if there's a file for the given vendor and returns its name. $name = Dpkg::Vendor::get_current_vendor() Returns the name of the current vendor. If DEB_VENDOR is set, it uses that first, otherwise it falls back to parsing /etc/dpkg/origins/default. If that file doesn't exist, it returns undef. $object = Dpkg::Vendor::get_vendor_object($name) Return the Dpkg::Vendor::* object of the corresponding vendor. If $name is omitted, return the object of the current vendor. If no vendor can be identified, then return the Dpkg::Vendor::Default object. Dpkg::Vendor::run_vendor_hook($hookid, @params) Run a hook implemented by the current vendor object. 1.16.15 2014-06-05 Dpkg::Vendor(3)
Man Page