From Code to Community: Sponsoring The Perl and Raku Conference 2025 Learn more

package PBS::Constants ;
use 5.006 ;
use strict ;
use warnings ;
require Exporter ;
use AutoLoader qw(AUTOLOAD) ;
our @ISA = qw(Exporter) ;
our %EXPORT_TAGS = ('all' => [ qw() ]) ;
our @EXPORT_OK = ( @{ $EXPORT_TAGS{'all'} } ) ;
use vars qw($VERSION @ISA @EXPORT) ;
@ISA = qw(Exporter AutoLoader) ;
@EXPORT = qw(
PBSFILE
USER_BUILD_FUNCTION
NEED_REBUILD
DEPENDER
DEPENDER_FILE_NAME
DEPENDER_PACKAGE
DEPEND_ONLY
DEPEND_AND_CHECK
DEPEND_CHECK_AND_BUILD
UNTYPED
VIRTUAL
LOCAL
FORCED
POST_DEPEND
CREATOR
META_RULE
META_SLAVE
IMMEDIATE_BUILD
BUILD_SUCCESS
BUILD_FAILED
GET_DEPENDER_POSITION_INFO
GRAPH_GROUP_NONE
GRAPH_GROUP_PRIMARY
GRAPH_GROUP_SECONDARY
NOT_A_PACKAGE_DEPENDENCY
CONFIG_PRF_SUCCESS
CONFIG_PRF_ERROR
CONFIG_PRF_FLAG_ERROR
CONFIG_ENVIRONEMENT_VARIABLE_FLAG_ERROR
CONFIG_ENVIRONEMENT_VARIABLE_FLAG_SUCCESS
) ;
$VERSION = '0.07' ;
# indexes for data stored in %loaded_packages in PBS.pm
use constant PBSFILE => 0 ;
use constant USER_BUILD_FUNCTION=> 1 ;
#
use constant DEPENDER => 1 ;
use constant DEPENDER_FILE_NAME => 0 ;
use constant DEPENDER_PACKAGE => 1 ;
# creator --------------------------------------------------------
use constant NEED_REBUILD => 1 ;
# rule types --------------------------------------------------------
use constant UNTYPED => '__UNTYPED' ;
use constant VIRTUAL => '__VIRTUAL' ;
use constant LOCAL => '__LOCAL' ;
use constant FORCED => '__FORCED' ;
use constant CREATOR => '__CREATOR' ;
use constant POST_DEPEND => '__POST_DEPEND' ;
use constant META_RULE => '__META_RULE' ;
use constant META_SLAVE => '__META_SLAVE' ;
use constant IMMEDIATE_BUILD => '__IMMEDIATE_BUILD' ;
#builders results ---------------------------------------------------------------------
use constant BUILD_SUCCESS => 1 ;
use constant BUILD_FAILED => 0 ;
# command types for PBS
use constant DEPEND_ONLY => 0 ;
use constant DEPEND_AND_CHECK => 1 ;
use constant DEPEND_CHECK_AND_BUILD => 2 ;
#
use constant GET_DEPENDER_POSITION_INFO => -12345 ;
# graph-------------------------------------------------------------------------------
use constant GRAPH_GROUP_NONE => 0 ;
use constant GRAPH_GROUP_PRIMARY => 1 ;
use constant GRAPH_GROUP_SECONDARY => 2 ;
# PbsUse -------------------------------------------------------------------------------
use constant NOT_A_PACKAGE_DEPENDENCY => 0 ;
#config -------------------------------------------------------------------------------
use constant CONFIG_PRF_SUCCESS => 1 ;
use constant CONFIG_PRF_ERROR => 2 ;
use constant CONFIG_PRF_FLAG_ERROR => 3 ;
use constant CONFIG_ENVIRONEMENT_VARIABLE_FLAG_ERROR => 0 ;
use constant CONFIG_ENVIRONEMENT_VARIABLE_FLAG_SUCCESS => 1 ;
#-------------------------------------------------------------------------------
1 ;
__END__
=head1 NAME
PBS::Constants - definition of constants use within PBS
=head1 SYNOPSIS
use PBS::Constants
...
return(BUILD_OK, 'message) ;
=head1 DESCRIPTION
=head2 EXPORT
None by default.
=head1 AUTHOR
Khemir Nadim ibn Hamouda. nadim@khemir.net
=head1 SEE ALSO
=cut