perl-DBD-MySQL-2.9007-1.src.rpm rebuild

Gavin Henry ghenry at suretecsystems.com
Tue Jun 14 08:06:20 UTC 2005


<quote who="dries">
> Quoting Gavin Henry <ghenry at suretecsystems.com>:
>
>> Dear guys,
>>
>> I know I should be doing this, but I am rebuilding
>> perl-DBD-MySQL-2.9007-1.src.rpm on RHEL3, and I get a failure:
>>
>> RPM build errors:
>>     File must begin with "/": %{perl_vendorarch}/Bundle/
>>     File must begin with "/": %{perl_vendorarch}/DBD/
>>     File must begin with "/": %{perl_vendorarch}/Mysql*
>>     File must begin with "/": %{perl_vendorarch}/auto/DBD
>
> You need to add something like the following at the top of your spec file:
> %define perl_vendorlib %(eval "`perl -V:installvendorlib`"; echo
> $installvendorlib)
> %define perl_vendorarch %(eval "`perl -V:installvendorarch`"; echo
> $installvendorarch)
>
> (it should be 2 lines, not 4)
>
> An example in another spec file:
> http://dries.ulyssis.org/rpm/packages/perl-DBD-CSV/perl-DBD-CSV-spec.html
> http://dries.ulyssis.org/rpm/packages/perl-DBD-CSV/info.html
>
> Then you can compile it also on rhel3 normally.

Excellent! Worked a treat.

Should I file a bug, or is this RHEL3 specific?

Thanks.

>
> kind regards,
> Dries Verachtert
>
>




More information about the fedora-devel-list mailing list