Changeset 2012 in ProjectBuilder
- Timestamp:
- Oct 12, 2015, 12:17:48 PM (10 years ago)
- Location:
- devel
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
devel/pb-doc/SECURITY
r1564 r2012 10 10 11 11 In the default pb.conf main configuration files, parameters for osupd and osins for the various distributions call sudo to make the installation of missing packages. These calls are done as 'pb' user by default (or the account configured as rmlogin in the configuration file). In case this is used, and sudo isn't configured accordingly, then the additional required packages will NOT be added and the build will probably fail. 12 For RM, we may consider that all required packages for the build are already installed on the system, or give rpm/yum/ apt/urpmi/zypper... sudo rights to the build account manually.12 For RM, we may consider that all required packages for the build are already installed on the system, or give rpm/yum/dnf/apt/urpmi/zypper... sudo rights to the build account manually. 13 13 Recommended for a manual setup (not using rmsetup): Add manually to your system sudo access for the pb account to the local package install and update command such as /bin/rpm e.g: 14 14 cat >> /etc/sudoers << EOF -
devel/pb-modules/etc/pb.conf
r1984 r2012 229 229 osupd gen = sudo /usr/bin/emerge --update --deep world; sudo /usr/bin/revdep-rebuild 230 230 osupd rpm = sudo /usr/bin/yum clean all; sudo /usr/bin/yum -y update 231 osupd fedora-22 = sudo /usr/bin/dnf clean all; sudo /usr/bin/dnf -y upgrade ; sudo /usr/bin/dnf -y update 231 232 osupd md = sudo /usr/sbin/urpmi.update -a ; sudo /usr/sbin/urpmi --auto --auto-select --no-suggests 232 233 osupd opensuse-10.2 = sudo /usr/bin/yast2 -i … … 247 248 osins gen = sudo /usr/bin/emerge 248 249 osins rpm = sudo /usr/bin/yum clean all; sudo /usr/bin/yum -y update ; sudo /usr/bin/yum -y install 250 osins fedora-22 = sudo /usr/bin/dnf clean all; sudo /usr/bin/dnf -y upgrade ; sudo /usr/bin/dnf -y install 249 251 osins rhel-2 = sudo /usr/sbin/up2date -y 250 252 osins rhel-3 = sudo /usr/sbin/up2date -y … … 348 350 # 349 351 rbsmindep fedora-20 = ConsoleKit-libs,audit-libs,basesystem,bash,bzip2-libs,ca-certificates,c-ares,chkconfig,coreutils,cpio,cracklib,cracklib-dicts,crontabs,cyrus-sasl-lib,dbus,dbus-libs,device-mapper,device-mapper-libs,dhclient,e2fsprogs,e2fsprogs-libs,elfutils-libelf,expat,fedora-release,fedora-release-notes,file,file-libs,filesystem,findutils,gamin,gawk,gdbm,glib2,glibc,glibc-common,gnupg2,gpgme,grep,info,initscripts,iproute,iputils,keyutils-libs,krb5-libs,libacl,libattr,libcap,libcom_err,libcurl,libdb,libffi,libgcc,libgcrypt,libgpg-error,libidn,libselinux,libsepol,libssh2,libstdc++,libusb,libxml2,linux-atm-libs,logrotate,lua,mingetty,ncurses,ncurses-base,ncurses-libs,net-tools,nspr,nss,nss-softokn,nss-softokn-freebl,nss-util,openldap,openssl,openssl-libs,pam,passwd,pcre,perl,perl-Data-Dumper,pinentry,popt,psmisc,pth,pygpgme,python,python-iniparse,python-libs,python-pycurl,python-urlgrabber,readline,rpm,rpm-libs,rpm-python,rsyslog,sed,setup,shadow-utils,sqlite,systemd,tzdata,vim-minimal,xz-libs,yum,yum-metadata-parser,zlib 352 # 353 rbsmindep fedora-21 = ConsoleKit-libs,audit-libs,basesystem,bash,bzip2-libs,ca-certificates,c-ares,chkconfig,coreutils,cpio,cracklib,cracklib-dicts,crontabs,cyrus-sasl-lib,dbus,dbus-libs,device-mapper,device-mapper-libs,dhclient,e2fsprogs,e2fsprogs-libs,elfutils-libelf,expat,fedora-release,fedora-release-notes,file,file-libs,filesystem,findutils,gamin,gawk,gdbm,glib2,glibc,glibc-common,gnupg2,gpgme,grep,info,initscripts,iproute,iputils,keyutils-libs,krb5-libs,libacl,libattr,libcap,libcom_err,libcurl,libdb,libffi,libgcc,libgcrypt,libgpg-error,libidn,libselinux,libsepol,libssh2,libstdc++,libusb,libxml2,linux-atm-libs,logrotate,lua,mingetty,ncurses,ncurses-base,ncurses-libs,net-tools,nspr,nss,nss-softokn,nss-softokn-freebl,nss-util,openldap,openssl,openssl-libs,pam,passwd,pcre,perl,perl-Data-Dumper,pinentry,popt,psmisc,pth,pygpgme,python,python-iniparse,python-libs,python-pycurl,python-urlgrabber,readline,rpm,rpm-libs,rpm-python,rsyslog,sed,setup,shadow-utils,sqlite,systemd,tzdata,vim-minimal,xz-libs,yum,yum-metadata-parser,zlib 354 # 355 rbsmindep fedora-22 = ConsoleKit-libs,audit-libs,basesystem,bash,bzip2-libs,ca-certificates,c-ares,chkconfig,coreutils,cpio,cracklib,cracklib-dicts,crontabs,cyrus-sasl-lib,dbus,dbus-libs,device-mapper,device-mapper-libs,e2fsprogs,e2fsprogs-libs,elfutils-libelf,expat,fedora-release,fedora-release-notes,file,file-libs,filesystem,findutils,gamin,gawk,gdbm,glib2,glibc,glibc-common,gnupg2,gpgme,grep,info,initscripts,iproute,iputils,keyutils-libs,krb5-libs,libacl,libattr,libcap,libcom_err,libcurl,libdb,libffi,libgcc,libgcrypt,libgpg-error,libidn,libselinux,libsepol,libssh2,libusb,libxml2,linux-atm-libs,logrotate,lua,mingetty,ncurses,ncurses-base,ncurses-libs,net-tools,nspr,nss,nss-softokn,nss-softokn-freebl,nss-util,openldap,openssl,openssl-libs,pam,passwd,pcre,perl,perl-Data-Dumper,pinentry,popt,psmisc,pth,pygpgme,python,python-iniparse,python-libs,python-pycurl,python-urlgrabber,readline,rpm,rpm-libs,rpm-python,rsyslog,sed,setup,shadow-utils,sqlite,systemd,tzdata,vim-minimal,xz-libs,dnf,yum-metadata-parser,zlib 350 356 # 351 357 rbsmindep centos-4 = MAKEDEV,SysVinit,audit-libs,basesystem,bash,beecrypt,bzip2-libs,centos-release,coreutils,cracklib,cracklib-dicts,db4,device-mapper,e2fsprogs,elfutils-libelf,ethtool,expat,filesystem,findutils,gawk,gdbm,glib2,glibc,glibc-common,grep,info,initscripts,iproute,iputils,krb5-libs,libacl,libattr,libcap,libgcc,libidn,libselinux,libsepol,libstdc++,libtermcap,libxml2,libxml2-python,mingetty,mktemp,module-init-tools,ncurses,neon,net-tools,openssl,pam,pcre,popt,procps,psmisc,python,python-elementtree,python-sqlite,python-urlgrabber,readline,rpm,rpm-libs,rpm-python,sed,setup,shadow-utils,sqlite,sysklogd,termcap,tzdata,udev,util-linux,yum,yum-metadata-parser,zlib … … 657 663 # Commands needed on the underlying system 658 664 oscmd pb = tar,chmod,ls 659 oscmdopt pb = rpmbuild,dpkg-buildpackage,rpm,dpkg,wget,sudo,apt-get,mv,gzip,ebuild,makepkg,pkgmk,pkgtrans,rm,rpmlint,lintian,chroot,schroot,cp,chown,debsign,qemu-img,qemu,kvm,rpmbootstrap,rinse,mock,debootstrap,mkdir,cat,ssh,scp,yum, bash,make,vi,ssh-keygen,svn,hg,cvs,git,svk,svn2cl,cvs2cl,urpmi665 oscmdopt pb = rpmbuild,dpkg-buildpackage,rpm,dpkg,wget,sudo,apt-get,mv,gzip,ebuild,makepkg,pkgmk,pkgtrans,rm,rpmlint,lintian,chroot,schroot,cp,chown,debsign,qemu-img,qemu,kvm,rpmbootstrap,rinse,mock,debootstrap,mkdir,cat,ssh,scp,yum,dnf,bash,make,vi,ssh-keygen,svn,hg,cvs,git,svk,svn2cl,cvs2cl,urpmi 660 666 oscmd rpmbootstrap = rpm,rpm2cpio,wget 661 667 #oscmdopt rpmbootstrap = -
devel/pb-modules/lib/ProjectBuilder/Distribution.pm
r1972 r2012 589 589 if ($pbos->{install} =~ /\byum\b/) { 590 590 $reponame="yum"; 591 $dirdest = "/etc/yum.repos.d"; 592 } elsif ($pbos->{install} =~ /\bdnf\b/) { 593 $reponame="dnf"; 591 594 $dirdest = "/etc/yum.repos.d"; 592 595 } elsif ($pbos->{install} =~ /\bzypper\b/) { -
devel/pb/bin/pb
r2005 r2012 2199 2199 # By default force GPG check in repo even if we support signature of packages to fail. This is a best practice 2200 2200 $pbgpgcheck = 1 if (not defined $pbgpgcheck); 2201 # Also make a pbscript to generate yum/urpmi bases2201 # Also make a pbscript to generate dnf/yum/urpmi bases 2202 2202 print PBS << "EOF"; 2203 2203 #!/bin/bash 2204 # Prepare a script to ease yum setup2204 # Prepare a script to ease dnf/yum setup 2205 2205 EOF 2206 2206 print PBS "set -x\n" if ($pbdebug gt 1); … … 3797 3797 3798 3798 # First install all required packages 3799 pb_system("yum clean all","Cleaning yum env","mayfail") if (($pbos->{'name'} eq "fedora") || ($pbos->{'name'} eq "asianux") || ($pbos->{'name'} eq "rhel")); 3799 pb_system("dnf clean all","Cleaning dnf env","mayfail") if (($pbos->{'name'} eq "fedora") && ($pbos->{'version'} >= 22)); 3800 pb_system("yum clean all","Cleaning yum env","mayfail") if ((($pbos->{'name'} eq "fedora") && ($pbos->{'version'} < 22)) || ($pbos->{'name'} eq "asianux") || ($pbos->{'name'} eq "rhel")); 3800 3801 my ($ospkgdep) = pb_conf_get_if("ospkgdep"); 3801 3802 -
devel/rpmbootstrap/bin/rpmbootstrap
r1982 r2012 354 354 if (($pbos->{'name'} eq "fedora") && ($pbos->{'version'} > 8)) { 355 355 $oscachedir = "$vepath/var/cache/yum/$pbos->{'arch'}/$pbos->{'version'}/fedora/packages"; 356 $osupdcachedir = "$vepath/var/cache/yum/$pbos->{'arch'}/$pbos->{'version'}/updates/packages";356 #$osupdcachedir = "$vepath/var/cache/yum/$pbos->{'arch'}/$pbos->{'version'}/updates/packages"; 357 357 $osupdcachedir = "$vepath/var/cache/yum/updates-released/packages/"; 358 358 } 359 } elsif ($pbos->{'install'} =~ /dnf/) { 360 $osupdname = "DNF"; 361 $oscachedir = "$vepath/var/cache/dnf/$pbos->{'arch'}/$pbos->{'version'}/fedora/packages"; 362 $osupdcachedir = "$vepath/var/cache/dnf/updates-released/packages/"; 359 363 } elsif ($pbos->{'install'} =~ /zypper/) { 360 364 $oscachedir = "$vepath/var/cache/zypp/packages/opensuse/suse/$pbos->{'arch'}"; … … 442 446 443 447 # yum needs that distro-release package be installed, so force it 444 if ( $pbos->{'install'} =~ /yum/) {448 if (($pbos->{'install'} =~ /yum/) || ($pbos->{'install'} =~ /dnf/)) { 445 449 my $ddir = $pbos->{'name'}; 446 450 foreach my $p1 (<$cachedir/($ddir|redhat)-release-*.rpm>) { … … 504 508 505 509 pb_log(1,"Adapting $osupdname repository entries\n"); 506 if ( $pbos->{'install'} =~ /yum/) {510 if (($pbos->{'install'} =~ /yum/) || ($pbos->{'install'} =~ /dnf/)) { 507 511 # 508 # Force the architecture for yum 512 # Force the architecture for yum/dnf 509 513 # The goal is to allow i386 chroot on x86_64 510 514 # 511 # FIX: Not sufficient to have yum working515 # FIX: Not sufficient to have yum/dnf working 512 516 # mirrorlist is not usable 513 517 # $releasever also needs to be filtered 514 518 # yum.conf as well 515 foreach my $i (<$vepath/etc/yum.repos.d/*.repo>,"$vepath/etc/yum.conf" ) {519 foreach my $i (<$vepath/etc/yum.repos.d/*.repo>,"$vepath/etc/yum.conf","$vepath/etc/dnf/dnf.conf") { 516 520 pb_system("sed -i -e 's/\$basearch/$pbos->{'arch'}/g' $i","","quiet"); 517 521 pb_system("sed -i -e 's/\$releasever/$pbos->{'version'}/g' $i","","quiet"); … … 521 525 pb_system("sed -i -e 's|^#baseurl.*\$|baseurl=$repo|' $i","","quiet"); 522 526 } 523 $minipkglist = "ldconfig yum passwd vim-minimal dhclient authconfig"; 527 my $pkgmgr = ""; 528 if ($pbos->{'install'} =~ /yum/) { 529 $pkgmgr = "yum"; 530 } 531 if ($pbos->{'install'} =~ /dnf/) { 532 $pkgmgr = "dnf"; 533 } 534 $minipkglist = "ldconfig $pkgmgr passwd vim-minimal dhclient authconfig"; 524 535 } elsif ($pbos->{'install'} =~ /zypper/) { 525 536 pb_mkdir_p("$vepath/etc/zypp/repos.d"); … … 626 637 pb_system("chroot $vepath /usr/bin/yum clean all","Cleaning yum"); 627 638 } 639 if ($pbos->{'install'} =~ /dnf/) { 640 pb_system("chroot $vepath /usr/bin/dnf clean all","Cleaning dnf"); 641 } 628 642 pb_system("umount $vepath/proc","Unmounting /proc"); 629 643 find(\&unlink_old_conf, $vepath); … … 704 718 my $repo = $mirror; 705 719 my $found = 0; 706 if ( $pbos->{'install'} =~ /yum/) {720 if (($pbos->{'install'} =~ /yum/) || ($pbos->{'install'} =~ /dnf/)) { 707 721 my $response1; 708 722 while ($found == 0) { -
devel/website/about.shtml
r1315 r2012 39 39 <li>Multiple systems (RPM Linux - Red Hat, SuSE, Mandriva, ..., deb Linux - Debian, Ubuntu, ..., ebuild - Gentoo, pkg Solaris/OpenSolaris, ...)</li> 40 40 <li>Multiple build environments (local, VM - QEMU, KVM, ..., VE - rpmbootstrap, mock, rinse, debootstrap, RM - ssh...)</li> 41 <li>Multiple repository manager (yum, urpmi, apt, ...)</li>41 <li>Multiple repository manager (yum, dnf, urpmi, apt, ...)</li> 42 42 </ul> 43 43 and this, at various phases (development, test, integration, delivery). -
devel/website/downloads.shtml
r1958 r2012 64 64 <p> 65 65 <p>For Fedora distributions, after downloading the <a href="ftp://ftp.project-builder.org/fedora/">repo file</a> pb.repo and adding it to the /etc/yum.repos.d directory, just use the magic:<br> 66 <tt>yum install project-builder</tt></p>66 <tt>yum|dnf install project-builder</tt></p> 67 67 <p> 68 68 For Debian/Ubuntu, just use the magic: <br>
Note:
See TracChangeset
for help on using the changeset viewer.