Re: Migrating sub-package to a different package: How to resolve file conflicts

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Rex Dieter wrote:

> Tom Stellard wrote:
> 
>> I'm working on moving the llvm-devel sub-package from the llvm package to
>> a new llvm4.0 package, however, when I upgrade from the llvm sub-package
>> to the llvm4.0 sub-package, I am getting file conflicts.
> ...
>> Error: Transaction check error:
>>   file /usr/include/llvm from install of llvm-devel-4.0.0-13.fc27.x86_64
>>   conflicts with file from package llvm-devel-4.0.0-4.fc27.x86_64 file
>>   /usr/include/llvm-c from install of llvm-devel-4.0.0-13.fc27.x86_64
>>   conflicts with file from package llvm-devel-4.0.0-4.fc27.x86_64
> 
>> Is this a bug in dnf/rpm or am I doing something wrong with the spec
>> files?
> 
> IMO, you're doing nothing wrong, it's a dnf/rpm bug.  dnf is supposed to
> implicitly Obsoletes/replace older packages of the same name (in general,
> though there are exceptions like "kernel")

Occurs to me you could avoid/skip relying on the implicit replacement, and 
make it *explicit*, but adding
Obsoletes: llvm-devel < 4.0.0-13
to the new llvm-devel subpkg

-- Rex
_______________________________________________
devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux