Changeset 541 in ProjectBuilder


Ignore:
Timestamp:
Sep 15, 2008, 1:39:21 PM (16 years ago)
Author:
Bruno Cornec
Message:

Working on the correct .deb generation for virtual/real packages

Files:
6 edited

Legend:

Unmodified
Added
Removed
  • devel/pb/bin/pb

    r540 r541  
    563563            my $pbrealpkg = pb_cms_get_real_pkg($pbpkg,$pb{'dtype'});
    564564            $pb{'realpkg'} = $pbrealpkg;
     565            pb_log(1,"Virtual package $pbpkg has a real package name of $pbrealpkg on $ddir-$dver\n") if ($pbrealpkg ne $pbpkg);
    565566
    566567            # Filter build files from the less precise up to the most with overloading
     
    792793                $made="$made $_";
    793794            }
    794 
    795             if (-f "/usr/bin/rpmlint") {
    796                 pb_system("rpmlint $made","Checking validity of rpms with rpmlint","verbose");
    797             }
     795            close(LOG);
     796
    798797        } elsif ($dtype eq "deb") {
    799798            chdir "$ENV{'PBBUILDDIR'}" || die "Unable to chdir to $ENV{'PBBUILDDIR'}";
     
    811810            pb_system("dpkg-buildpackage -us -uc -rfakeroot","Building package","verbose");
    812811            $made="$made $pbpkg"."_*.deb $pbpkg"."_*.dsc $pbpkg"."_*.tar.gz";
    813             if (-f "/usr/bin/lintian") {
    814                 pb_system("lintian $made","Checking validity of debs with lintian","verbose");
    815             }
    816812        } elsif ($dtype eq "ebuild") {
    817813            my @ebuildfile;
     
    881877        }
    882878    }
     879    # Packages check if needed
     880    if ($dtype eq "rpm") {
     881        if (-f "/usr/bin/rpmlint") {
     882            pb_system("rpmlint $made","Checking validity of rpms with rpmlint","verbose");
     883        }
     884    } elsif ($dtype eq "deb") {
     885        if (-f "/usr/bin/lintian") {
     886            pb_system("lintian $made","Checking validity of debs with lintian","verbose");
     887        }
     888    } else {
     889        pb_log(0, "No check done for $dtype yet");
     890    }
     891
    883892    # Keep track of what is generated so that we can get them back from VMs
    884893    open(KEEP,"> $ENV{'PBBUILDDIR'}/pbgen-$ENV{'PBPROJVER'}-$ENV{'PBPROJTAG'}") || die "Unable to create $ENV{'PBBUILDDIR'}/pbgen-$ENV{'PBPROJVER'}-$ENV{'PBPROJTAG'}";
  • pbconf/devel/ProjectBuilder/deb/control

    r418 r541  
    1 Source: PBPKG
     1Source: PBREALPKG
    22Section: PBGRP
    33Priority: optional
     
    66Standards-Version: 3.6.1
    77
    8 Package: PBPKG
     8Package: PBREALPKG
    99Architecture: all
    1010Section: PBGRP
  • pbconf/devel/ProjectBuilder/deb/rules

    r244 r541  
    1111
    1212# Define package name variable for a one-stop change.
    13 PACKAGE_NAME = PBPKG
     13PACKAGE_NAME = PBREALPKG
    1414
    1515# These are used for cross-compiling and for saving the configure script
     
    5555        dh_installdirs
    5656
    57         # Add here commands to install the package into debian/linuxcoe-sd
    58         $(MAKE) install DESTDIR=$(CURDIR)/debian/PBPKG
     57        # Add here commands to install the package into debian/PBREALPKG
     58        $(MAKE) install DESTDIR=$(CURDIR)/debian/PBREALPKG
    5959
    6060# Build architecture-independent files here.
  • pbconf/devel/ProjectBuilder/rpm/perl-ProjectBuilder.spec

    r463 r541  
    33#
    44%define perlvendorlib %(eval "`%{__perl} -V:installvendorlib`"; echo $installvendorlib)
     5%define srcname PBPKG
    56
    67Summary:    Perl module providing support and deal with Linux distributions
    78Summary(fr):    Module Perl fournissant des fonctions de support et aidant à traiter de diverses distributions Linux
    89
    9 Name:       PBPKG
     10Name:       PBREALPKG
    1011Version:    PBVER
    1112Release:    PBTAGPBSUF
     
    1415Url:        http://trac.project-builder.org
    1516Source:     PBREPO/PBSRC
    16 BuildRoot:  %{_tmppath}/%{name}-%{version}-%{release}-root-%(id -u -n)
     17BuildRoot:  %{_tmppath}/%{srcname}-%{version}-%{release}-root-%(id -u -n)
    1718BuildArch:  noarch
    1819Requires:   perl >= 5.8.4, PBDEP
     
    2223
    2324%description -l fr
    24 perl-ProjectBuilder est un ensemble de fonctions pour aider à développer des projets perl et à traiter de diverses distributions Linux.
     25PBREALPKG est un ensemble de fonctions pour aider à développer des projets perl et à traiter de diverses distributions Linux.
    2526
    2627%prep
    27 %setup -q
     28%setup -q -n %{srcname}-%{version}
    2829
    2930%build
  • pbconf/devel/pbfilter/all.pbf

    r501 r541  
    88
    99# PBSRC is replaced by the source package format
    10 filter PBSRC = src/%{name}-%{version}.tar.gz
     10filter PBSRC = src/%{srcname}-%{version}.tar.gz
    1111
    1212# PBVER is replaced by the version ($pb->{'ver'} in code)
     
    2828filter PBPKG = $pb->{'pkg'}
    2929
     30# PBPKG is replaced by the package name ($pb->{'realpkg'} in code)
     31filter PBREALPKG = $pb->{'realpkg'}
     32
    3033# PBPACKAGER is replaced by the packager name ($pb->{'packager'} in code)
    3134filter PBPACKAGER = $pb->{'packager'}
  • pbconf/devel/project-builder/rpm/project-builder.spec

    r461 r541  
    33#
    44%define perlvendorlib %(eval "`%{__perl} -V:installvendorlib`"; echo $installvendorlib)
     5%define srcname   PBPKG
    56
    67Summary:    Project Builder aka pb is a tool to produce packages for multiple distributions
Note: See TracChangeset for help on using the changeset viewer.