Changeset 2360 in ProjectBuilder
- Timestamp:
- Feb 25, 2019, 12:20:25 PM (6 years ago)
- Location:
- devel
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
devel/pb-modules/etc/pb.yml
r2352 r2360 114 114 lsb: /etc/lsb-release 115 115 116 # LSB117 #os-release: /etc/os-release118 119 116 # 120 117 # Here is the association between the key and all the OS using the same file … … 127 124 redhat: redhat,rhel,centos,mandrake,mandriva,vmware,oel,scilinux,cloudlinux 128 125 lsb: ubuntu,lsb 129 #os-release: opensuse,fedora130 126 131 127 # … … 160 156 asianux: Asianux (?:Server|release) ([0-9]).* \( 161 157 lsb: .*\nDISTRIB_ID=[\"]*LSB.*\nDISTRIB_RELEASE=[\"]*([^\"]+)[\"]* 162 #os-release: .*\nID=[\"\']*([0-9a-z\._-]+)[\"\']*\nVERSION_ID=[\"\']*([0-9a-z\._-]+)[\"\']*\n163 158 ubuntu: .*Ubuntu.*\nDISTRIB_RELEASE=(.+) 164 159 debian: (\d+)\.\d+ … … 643 638 suse: Module-Build,Date-Manip,File-MimeInfo,File-BaseDir,YAML 644 639 # New OpenSuSE - Module-Build first for processing as needed by others 645 opensuse: Module-Build,File-MimeInfo,File-BaseDir 640 # As of 15.x all modules are available as packages 641 #opensuse: Module-Build,File-MimeInfo,File-BaseDir 642 # 646 643 mandrake-10.1: Date-Manip,YAML 647 644 md: … … 685 682 redhat: 686 683 suse: wget,make,ntp,patch,diffutils 687 opensuse: openSUSE-release,wget,make,ntp,patch,perl-Date-Manip,perl-File-HomeDir,diffutils,rpm-build,perl-YAML 684 opensuse: openSUSE-release,wget,make,ntp,patch,perl-Date-Manip,perl-File-HomeDir,diffutils,rpm-build,perl-YAML,perl-Module-Build,perl-File-MimeInfo,perl-File-BaseDir 688 685 opensuse-11.0: wget,make,ntp,patch,perl-DateManip,perl-File-HomeDir,diffutils,perl-YAML 689 686 opensuse-10.2: wget,make,ntp,patch,perl-File-HomeDir,diffutils,perl-YAML -
devel/pb-modules/lib/ProjectBuilder/Distribution.pm
r2350 r2360 257 257 # Found one possibility. 258 258 # Get all distros concerned by that file 259 my $tmp =pb_get_content("$r");259 my $tmp = pb_get_content("$r"); 260 260 my $ptr = $distro_similar->{$d}; 261 261 pb_log(2,"amb: ".Dumper($ptr)."\n"); … … 277 277 } 278 278 } 279 # 280 # Now look at the os-release file to see if we have a std distribution description 281 # 282 $r = "/usr/lib/os-release"; 283 if (-r $r) { 284 my $tmp = pb_get_content("$r"); 285 ($release) = $tmp =~ m/.*\nVERSION_ID=[\"\']*([0-9a-z\._-]+)[\"\']*\n/m; 286 ($distro) = $tmp =~ m/.*\nID=[\"\']*([0-9A-z\._-]+)[\"\']*\n/m; 287 # Remove the leap suffix if present (OpenSUSE) 288 $distro =~ s/-leap//; 289 $found = 1 if ((defined $release) && (defined $distro)); 290 } 279 291 if ($found == 0) { 280 292 print STDERR "Unable to find a version in ".join(' ',keys %$ambiguous_rel_files)." (ambiguous)\n"; 281 293 print STDERR "Please report to the maintainer bruno_at_project-builder.org\n"; 282 return("unknown","unknown");294 confess "Please report to the maintainer bruno_at_project-builder.org\n"; 283 295 } else { 284 296 return($distro,$release); -
devel/rpmbootstrap/etc/.pbrc.yml
r2355 r2360 55 55 #velist default = centos-4-i386,centos-5-i386,centos-4-x86_64,centos-5-x86_64 56 56 velist: 57 default: centos-6-x86_64,centos-7-x86_64,debian-7-i386,debian-7-x86_64,debian-8-x86_64,debian-9-x86_64,redhat-6.2-i386,ubuntu-14.04-x86_64,ubuntu-14.10-x86_64,ubuntu-15.04-x86_64,ubuntu-15.10-x86_64,ubuntu-16.04-x86_64,ubuntu-16.10-x86_64,ubuntu-17.04-x86_64,ubuntu-17.10-x86_64,ubuntu-18.04-x86_64,ubuntu-18.10-x86_64,mageia-3-x86_64,mageia-4-x86_64,mageia-5-x86_64,mageia-6-x86_64,fedora-22-x86_64,fedora-23-x86_64,fedora-24-x86_64,fedora-25-x86_64,fedora-26-x86_64,fedora-27-x86_64,fedora-28-x86_64,fedora-29-x86_64,opensuse-42.1-x86_64,opensuse-42.2-x86_64,opensuse-42.3-x86_64,opensuse-13.2-x86_64,opensuse-15.0-x86_64, gentoo-nover-x86_64,alpine-nover-x86_6457 default: centos-6-x86_64,centos-7-x86_64,debian-7-i386,debian-7-x86_64,debian-8-x86_64,debian-9-x86_64,redhat-6.2-i386,ubuntu-14.04-x86_64,ubuntu-14.10-x86_64,ubuntu-15.04-x86_64,ubuntu-15.10-x86_64,ubuntu-16.04-x86_64,ubuntu-16.10-x86_64,ubuntu-17.04-x86_64,ubuntu-17.10-x86_64,ubuntu-18.04-x86_64,ubuntu-18.10-x86_64,mageia-3-x86_64,mageia-4-x86_64,mageia-5-x86_64,mageia-6-x86_64,fedora-22-x86_64,fedora-23-x86_64,fedora-24-x86_64,fedora-25-x86_64,fedora-26-x86_64,fedora-27-x86_64,fedora-28-x86_64,fedora-29-x86_64,opensuse-42.1-x86_64,opensuse-42.2-x86_64,opensuse-42.3-x86_64,opensuse-13.2-x86_64,opensuse-15.0-x86_64,opensuse-15.1-x86_64,gentoo-nover-x86_64,alpine-nover-x86_64
Note:
See TracChangeset
for help on using the changeset viewer.