Re: man-pages-4.05-1.noarch conflicts with lirc-0.9.3a-1.x86_64
On May 10, 2016, at 6:30 AM, Elan Ruusamäe wrote: > On 10.05.2016 09:12, Jeffrey Johnson wrote: >>> Fixed in lirc-0.9.3a-2 / man-pages-4.05-2. >>> > >> Is file conflict detection an RPM misfeature? > no. it's packaging mistake (two packages installing same file path) > Of course it is a packaging mistake: I have fixed dozens of file conflcts from duplicate man pages The question was about detecting and failing an rpm upgrade when there is duplicate content. EVen when content is identical, there is a timestamp in some compression formats (yes there is an option to remove the timestamp), and/or the buildtime on the file can/will differ. There are alternative automated resolutions other than human intervention to rebuild the package that might be attempted. >> It would not be impossibly hard to resolve a file conflict automatically, >> perhaps with an alternatives-like symlink farm analogue mechanism >> to permit multiple copies to coexist. > there's no alternatives, two packages should not provide same file. > Alternatives (fundamentally) is just a symlink to a unique file path. RPM could easily install the file on a unique path and install a symlink, and even add the configuration so that alternatives(8) (literally) could be used to resolve the file conflict on the machine being installed. All of the above has to do with automating (at least temporarily) the install instead of just failing. > lirc one was the outdated one, according to commits made. > There are other relatively simple automations: 1) FIFO - first version is installed, all other file versions are skipped. 2) LIFO - last version clobbers all other file versions. 3) largest - the bigger file is installed 4) newest - the newest modify time is installed 5) masked - a file conflict automated resolution is read from configuration. The majority of manual file conflict resolutions are one of the above. There's also a means to detect file conflicts at buildtime and fail the build, not the install later, if rpmbuild attempts to maintain a collection of all current headers in a database, and checks for file conflicts at the end of successful builds. 73 de Jeff > -- > glen > > ___ > pld-devel-en mailing list > pld-devel-en@lists.pld-linux.org > http://lists.pld-linux.org/mailman/listinfo/pld-devel-en ___ pld-devel-en mailing list pld-devel-en@lists.pld-linux.org http://lists.pld-linux.org/mailman/listinfo/pld-devel-en
Re: man-pages-4.05-1.noarch conflicts with lirc-0.9.3a-1.x86_64
On 10.05.2016 09:12, Jeffrey Johnson wrote: Fixed in lirc-0.9.3a-2 / man-pages-4.05-2. > Is file conflict detection an RPM misfeature? no. it's packaging mistake (two packages installing same file path) It would not be impossibly hard to resolve a file conflict automatically, perhaps with an alternatives-like symlink farm analogue mechanism to permit multiple copies to coexist. there's no alternatives, two packages should not provide same file. lirc one was the outdated one, according to commits made. -- glen ___ pld-devel-en mailing list pld-devel-en@lists.pld-linux.org http://lists.pld-linux.org/mailman/listinfo/pld-devel-en
Re: man-pages-4.05-1.noarch conflicts with lirc-0.9.3a-1.x86_64
> On May 10, 2016, at 12:25 AM, Jakub Boguszwrote: > > Fixed in lirc-0.9.3a-2 / man-pages-4.05-2. > Is file conflict detection an RPM misfeature? It would not be impossibly hard to resolve a file conflict automatically, perhaps with an alternatives-like symlink farm analogue mechanism to permit multiple copies to coexist. 73 de Jeff ___ pld-devel-en mailing list pld-devel-en@lists.pld-linux.org http://lists.pld-linux.org/mailman/listinfo/pld-devel-en
Re: man-pages-4.05-1.noarch conflicts with lirc-0.9.3a-1.x86_64
On Sat, May 07, 2016 at 11:16:33AM +0200, Bartek Szady wrote: > Processing dependencies... > man-pages-4.02-1.noarch obsoleted by man-pages-4.05-1.noarch > man-pages-posix-4.02-1.noarch obsoleted by man-pages-posix-4.05-1.noarch > There are 2 packages to install, 2 to remove: > I man-pages-4.05-1.noarch man-pages-posix-4.05-1.noarch > R man-pages-4.02-1.noarch man-pages-posix-4.02-1.noarch > This operation will use 57.5KB of disk space. > Need to get 11.0MB of archives. > Executing pm-command.sh --upgrade -vh --root / --define > _check_dirname_deps 1... > Preparing... ### [100%] > error: Install/Erase problems: > file /usr/share/man/man4/lirc.4.gz from install of > man-pages-4.05-1.noarch conflicts with file from package > lirc-0.9.3a-1.x86_64 > There were errors Fixed in lirc-0.9.3a-2 / man-pages-4.05-2. -- Jakub Boguszhttp://qboosh.pl/ ___ pld-devel-en mailing list pld-devel-en@lists.pld-linux.org http://lists.pld-linux.org/mailman/listinfo/pld-devel-en
man-pages-4.05-1.noarch conflicts with lirc-0.9.3a-1.x86_64
Processing dependencies... man-pages-4.02-1.noarch obsoleted by man-pages-4.05-1.noarch man-pages-posix-4.02-1.noarch obsoleted by man-pages-posix-4.05-1.noarch There are 2 packages to install, 2 to remove: I man-pages-4.05-1.noarch man-pages-posix-4.05-1.noarch R man-pages-4.02-1.noarch man-pages-posix-4.02-1.noarch This operation will use 57.5KB of disk space. Need to get 11.0MB of archives. Executing pm-command.sh --upgrade -vh --root / --define _check_dirname_deps 1... Preparing... ### [100%] error: Install/Erase problems: file /usr/share/man/man4/lirc.4.gz from install of man-pages-4.05-1.noarch conflicts with file from package lirc-0.9.3a-1.x86_64 There were errors ___ pld-devel-en mailing list pld-devel-en@lists.pld-linux.org http://lists.pld-linux.org/mailman/listinfo/pld-devel-en