Changeset 2177 in ProjectBuilder for devel/pb/bin
- Timestamp:
- Feb 15, 2017, 9:25:39 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
devel/pb/bin/pb
r2175 r2177 1669 1669 my $do_install = shift; 1670 1670 1671 # Call build2prep in case we have new deps we want to take in account 1672 # without redoing the prep phase (can be long and that helps debugging 1673 # build dependencies issues 1674 pb_build2prep(); 1671 1675 pb_log(0,"INFO: ------ Starting to build package ------\n"); 1672 1676 # Get the running distro to build on … … 1726 1730 symlink "$src","$ENV{'PBBUILDDIR'}/SOURCES/".basename($src) || die "Unable to symlink $src in $ENV{'PBBUILDDIR'}/SOURCES"; 1727 1731 # We need to first extract the spec file 1728 my @ specfile = pb_extract_build_files($src2,"$pbpkg-$pbver$pbextdir/pbconf/$pbos->{'name'}-$pbos->{'version'}-$pbos->{'arch'}/","$ENV{'PBBUILDDIR'}/SPECS","spec");1732 my @buildfile = pb_extract_build_files($src2,"$pbpkg-$pbver$pbextdir/pbconf/$pbos->{'name'}-$pbos->{'version'}-$pbos->{'arch'}/","$ENV{'PBBUILDDIR'}/SPECS","spec"); 1729 1733 1730 1734 # We need to handle potential patches to upstream sources … … 1734 1738 pb_extract_build_files($src2,"$pbpkg-$pbver$pbextdir/pbconf/$pbos->{'name'}-$pbos->{'version'}-$pbos->{'arch'}/pbsrc/","$ENV{'PBBUILDDIR'}/SOURCES","src"); 1735 1739 1736 pb_log(2," specfile: ".Dumper(\@specfile)."\n");1740 pb_log(2,"buildfile: ".Dumper(\@buildfile)."\n"); 1737 1741 # set LANGUAGE to check for correct log messages 1738 1742 $ENV{'LANGUAGE'}="C"; … … 1747 1751 } 1748 1752 1749 foreach my $f (@ specfile) {1753 foreach my $f (@buildfile) { 1750 1754 if ($f =~ /\.spec$/) { 1751 1755 pb_system("$buildcmd $specialdef --define \"packager $ENV{'PBPACKAGER'}\" --define \"_topdir $ENV{'PBBUILDDIR'}\" -ba $f","Building package with $f under $ENV{'PBBUILDDIR'}","verbose");
Note:
See TracChangeset
for help on using the changeset viewer.