Changeset 2084 in ProjectBuilder
- Timestamp:
- Apr 29, 2016, 2:47:49 PM (9 years ago)
- Location:
- devel
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
devel/pb-doc/NOTES
r981 r2084 19 19 expect eof 20 20 21 echo "xxxxxxxx" | setsid rpm --addsign /users/bruno/mondo/svn/ build/RPMS/x86_64/mindi-1.2.5-1.mdv2007.1.x86_64.rpm21 echo "xxxxxxxx" | setsid rpm --addsign /users/bruno/mondo/svn/pbbuild/RPMS/x86_64/mindi-1.2.5-1.mdv2007.1.x86_64.rpm -
devel/pb-doc/README
r267 r2084 16 16 $ 17 17 18 We indicate here that we use pb to build pb (heh !) and that our Subversion local instance is under $HOME/pb/svn. This is also where pb will put its temporary directory (such as build and delivery) and the important files pbrc*.18 We indicate here that we use pb to build pb (heh !) and that our Subversion local instance is under $HOME/pb/svn. This is also where pb will put its temporary directory (such as build and pbdelivery) and the important files pbrc*. 19 19 20 20 When using SVN, please use version >= 1.2.1 as 1.1.4 for example doesn't know how to export files which is used by pb. -
devel/pb-doc/pb-demo
r2079 r2084 19 19 20 20 # Show the upstream part 21 ls -altg /home/bruno/svn-git/pb/ delivery/22 tar tvfz /home/bruno/svn-git/pb/ delivery/project-builder-develXXX.tar.gz21 ls -altg /home/bruno/svn-git/pb/pbdelivery/ 22 tar tvfz /home/bruno/svn-git/pb/pbdelivery/project-builder-develXXX.tar.gz 23 23 24 24 # Show the pb specific part 25 tar tvfz /home/bruno/svn-git/pb/ delivery/project-builder-develXXX.pbconf.tar.gz25 tar tvfz /home/bruno/svn-git/pb/pbdelivery/project-builder-develXXX.pbconf.tar.gz 26 26 27 27 # Now make the packages … … 29 29 30 30 # Look at the latest pckges created 31 ls -altrg /home/bruno/svn-git/pb/ build/RPMS/noarch31 ls -altrg /home/bruno/svn-git/pb/pbbuild/RPMS/noarch 32 32 33 33 # Install the generated packages 34 sudo urpmi /home/bruno/svn-git/pb/ build/RPMS/noarch/*.rpm34 sudo urpmi /home/bruno/svn-git/pb/pbbuild/RPMS/noarch/*.rpm 35 35 36 36 # Check that it's the right one -
devel/pb-doc/qemu.txt
r748 r2084 55 55 rpm -ivh afio-2.4.7-1.src.rpm buffer-1.19-1.src.rpm 56 56 mkdir -p build/BUILD build/RPMS/i386 build/SRPMS 57 rpmbuild --define "_topdir $HOME/ build" -ba build/SPECS/afio.spec58 rpmbuild --define "_topdir $HOME/ build" -ba build/SPECS/buffer.spec57 rpmbuild --define "_topdir $HOME/pbbuild" -ba build/SPECS/afio.spec 58 rpmbuild --define "_topdir $HOME/pbbuild" -ba build/SPECS/buffer.spec 59 59 chmod 644 build/RPMS/i386/* 60 60 scp -p build/RPMS/i?86/afio-[0-9]* build/RPMS/i?86/buffer-[0-9]* www.mondorescue.org:/mondo/ftp/rhel/3/ 61 61 62 62 root: 63 rpm -ivh ~bruno/ build/RPMS/i?86/afio-[0-9]* ~bruno/build/RPMS/i?86/buffer-[0-9]*63 rpm -ivh ~bruno/pbbuild/RPMS/i?86/afio-[0-9]* ~bruno/pbbuild/RPMS/i?86/buffer-[0-9]* 64 64 65 65 # For RHAS 2.1 add grep-2.5.1 -
devel/pb-modules/lib/ProjectBuilder/Env.pm
r2032 r2084 202 202 --------------------------------------------- ---------- 203 203 * * * | | | * * 204 tag dev pbconf ... builddelivery PBCONFDIR dev tag204 tag dev pbconf ... bpbuild pbdelivery PBCONFDIR dev tag 205 205 | | | PBDESTDIR | 206 206 --- ------ pbrc PBBUILDDIR ------- … … 263 263 # Set delivery directory 264 264 # 265 $ENV{'PBDESTDIR'}="$ENV{'PBDEFDIR'}/$ENV{'PBPROJ'}/ delivery";265 $ENV{'PBDESTDIR'}="$ENV{'PBDEFDIR'}/$ENV{'PBPROJ'}/pbdelivery"; 266 266 267 267 pb_log(2,"PBDESTDIR: $ENV{'PBDESTDIR'}\n"); … … 289 289 # Set build directory 290 290 # 291 $ENV{'PBBUILDDIR'}="$ENV{'PBDEFDIR'}/$ENV{'PBPROJ'}/ build";291 $ENV{'PBBUILDDIR'}="$ENV{'PBDEFDIR'}/$ENV{'PBPROJ'}/pbbuild"; 292 292 if (! -d "$ENV{'PBBUILDDIR'}") { 293 293 pb_mkdir_p($ENV{'PBBUILDDIR'}); -
devel/pb/bin/pb
r2053 r2084 567 567 % pb -p $project -r $version cms2build 568 568 569 To create the $pbdefdir/$project/ delivery/$project-$version.{,pbconf}.tar.gz files, the $version-$projtag.pb and pbrc files in the same directory.569 To create the $pbdefdir/$project/pbdelivery/$project-$version.{,pbconf}.tar.gz files, the $version-$projtag.pb and pbrc files in the same directory. 570 570 571 571 =back … … 587 587 % pb -p $project -r $version build2pkg 588 588 589 To create the files in $project/ build that comprise your binary package(s).589 To create the files in $project/pbbuild that comprise your binary package(s). 590 590 591 591 =back … … 618 618 =item Run the cms2build command 619 619 620 If you have deleted your $package/ delivery directory, re-run the cms2build command as in the earlier step. This step is necessary to generate the I<package>/delivery/pbrc file.620 If you have deleted your $package/pbdelivery directory, re-run the cms2build command as in the earlier step. This step is necessary to generate the I<package>/pbdelivery/pbrc file. 621 621 622 622 =item Create the new virtual environment … … 1828 1828 # Will host resulting packages 1829 1829 pb_mkdir_p("$pbos->{'type'}"); 1830 pb_mkdir_p("$pkgdestdir/ delivery");1830 pb_mkdir_p("$pkgdestdir/pbdelivery"); 1831 1831 pb_system("tar xfz $src","Extracting sources under $ENV{'PBBUILDDIR'}"); 1832 1832 pb_system("tar xfz $src2","Extracting pbconf under $ENV{'PBBUILDDIR'}"); … … 1843 1843 die "Unable to find pkginfo file in pbconf/$pbos->{'name'}-$pbos->{'version'}-$pbos->{'arch'}" if (! -f "pbconf/$pbos->{'name'}-$pbos->{'version'}-$pbos->{'arch'}/pkginfo"); 1844 1844 # Build 1845 pb_system("pbconf/$pbos->{'name'}-$pbos->{'version'}-$pbos->{'arch'}/pbbuild $pkgdestdir/ delivery","Building software and installing under $pkgdestdir/delivery");1845 pb_system("pbconf/$pbos->{'name'}-$pbos->{'version'}-$pbos->{'arch'}/pbbuild $pkgdestdir/pbdelivery","Building software and installing under $pkgdestdir/pbdelivery"); 1846 1846 # Copy complementary files 1847 1847 if (-f "pbconf/$pbos->{'name'}-$pbos->{'version'}-$pbos->{'arch'}/prototype") { … … 1852 1852 print PROTO "i pkginfo\n"; 1853 1853 print PROTO "i depend\n" if (-f "pbconf/$pbos->{'name'}-$pbos->{'version'}-$pbos->{'arch'}/depend"); 1854 $ENV{'PBSOLDESTDIR'} = "$pkgdestdir/ delivery";1855 find(\&create_solaris_prototype, "$pkgdestdir/ delivery");1854 $ENV{'PBSOLDESTDIR'} = "$pkgdestdir/pbdelivery"; 1855 find(\&create_solaris_prototype, "$pkgdestdir/pbdelivery"); 1856 1856 } 1857 1857 copy("pbconf/$pbos->{'name'}-$pbos->{'version'}-$pbos->{'arch'}/depend", $pkgdestdir) if (-f "pbconf/$pbos->{'name'}-$pbos->{'version'}-$pbos->{'arch'}/depend"); 1858 1858 copy("pbconf/$pbos->{'name'}-$pbos->{'version'}-$pbos->{'arch'}/pkginfo", $pkgdestdir); 1859 pb_system("cd $pkgdestdir/ delivery ; pkgmk -o -f ../prototype -r $pkgdestdir/delivery -d $ENV{'PBBUILDDIR'}/$pbos->{'type'}","Packaging $pbpkg","verbose");1859 pb_system("cd $pkgdestdir/pbdelivery ; pkgmk -o -f ../prototype -r $pkgdestdir/pbdelivery -d $ENV{'PBBUILDDIR'}/$pbos->{'type'}","Packaging $pbpkg","verbose"); 1860 1860 pb_system("cd $ENV{'PBBUILDDIR'}/$pbos->{'type'} ; echo \"\" | pkgtrans -o -n -s $ENV{'PBBUILDDIR'}/$pbos->{'type'} $ENV{'PBBUILDDIR'}/$pbpkg-$pbver-$pbtag.pkg all","Transforming $pbpkg","verbose"); 1861 1861 pb_system("cd $ENV{'PBBUILDDIR'} ; gzip -9f $pbpkg-$pbver-$pbtag.pkg","Compressing $pbpkg-$pbver-$pbtag.pkg","verbose"); … … 2161 2161 $tdir = "$remdir"; 2162 2162 } elsif ($cmt =~ /(V[EM]|RM)(build|test|prep)/) { 2163 $tdir = $remdir."/$ENV{'PBPROJ'}/ delivery";2164 $bdir = $remdir."/$ENV{'PBPROJ'}/ build";2163 $tdir = $remdir."/$ENV{'PBPROJ'}/pbdelivery"; 2164 $bdir = $remdir."/$ENV{'PBPROJ'}/pbbuild"; 2165 2165 # Remove a potential $ENV{'HOME'} as bdir should be relative to pb's home 2166 2166 $bdir =~ s|\$ENV.+\}/||; … … 3222 3222 print SCRIPT "echo ... Execution needed\n"; 3223 3223 print SCRIPT "echo ==== Start of script for $vtype $v =====\n"; 3224 print SCRIPT "# This is in directory delivery\n";3224 print SCRIPT "# This is in directory pbdelivery\n"; 3225 3225 print SCRIPT "# Setup the variables required for building\n"; 3226 3226 print SCRIPT "export PBPROJ=$ENV{'PBPROJ'}\n"; -
devel/pb/bin/pbg
r1951 r2084 1 1 #!/bin/bash 2 2 export LANGUAGE=C 3 egrep -r $* . | egrep -v '\.svn|~:|Binary[ \t]|/CVS/| /tags$|No such'3 egrep -r $* . | egrep -v '\.svn|~:|Binary[ \t]|/CVS/|[.]/tags$|No such|/pbbuild/|/pbdelivery/' -
devel/pb/bin/pbvi
r1951 r2084 1 1 #!/bin/bash 2 2 export LANGUAGE=C 3 gvim `egrep -r $* . | egrep -v '\.svn|~:|^Binary[\t ]|/CVS/| /tags$|No such' | cut -d: -f1 | sort -u`3 gvim `egrep -r $* . | egrep -v '\.svn|~:|^Binary[\t ]|/CVS/|[.]/tags$|No such|/pbbuild/|/pbdelivery/' | cut -d: -f1 | sort -u` -
devel/pbtest/bin/pbtest
r2032 r2084 277 277 278 278 sudopbtest "pb sbx2pkg" 279 rpm -qilvp $PBTEST/pb/afio/ build/RPMS/x86_64/afio-2.5*279 rpm -qilvp $PBTEST/pb/afio/pbbuild/RPMS/x86_64/afio-2.5* 280 280 281 281 cat > /tmp/pbtestcmd << EOF
Note:
See TracChangeset
for help on using the changeset viewer.