xpdf install conflict with poppler du to same filename in both package
Preparing to unpack .../archives/xpdf_4.03-3_arm.deb ...
Unpacking xpdf (4.03-3) ...
dpkg: error processing archive /data/data/com.termux/cache/apt/archives/xpdf_4.03-3_arm.deb (--unpack):
trying to overwrite '/data/data/com.termux/files/usr/bin/pdffonts', which is also in package poppler 21.08.0-5
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Errors were encountered while processing:
/data/data/com.termux/cache/apt/archives/xpdf_4.03-3_arm.deb
E: Sub-process /data/data/com.termux/files/usr/bin/dpkg returned an error code (1)
~ $
What steps will reproduce the bug?
pkg install xpdf
I created my own package database for searching and looking for what can be done by myself:
pkg list-all | awk -F'/' 'FNR>1{print $1}' > packages.lst
rm packages-show.txt
for item in `cat packages.lst` ; do pkg show "$item" >> packages-show.txt ; done
Then I search for dependencies for this class of app:
awk 'BEGIN{ORS=RS="\n\n";FS=OFS="\n"};/pdf|djv/{print}' packages-show.txt >pdf-djv-app-dep.txt
awk 'BEGIN{ORS=RS="\n\n";FS=OFS="\n"};/xpdf/{print}' packages-show.txt >xpdf-app-dep.txt
awk 'BEGIN{ORS=RS="\n\n";FS=OFS="\n"};/poppler/{print}' packages-show.txt >poppler-app-dep.txt
# I do a list of files from downloded packages
dpkg --contents ../../cache/apt/archives/poppler_21.08.0-5_arm.deb |awk '{print $6}'>poppler-files.lst
dpkg --contents ../../cache/apt/archives/xpdf_4.03-3_arm.deb |awk '{print $6}'>xpdf-files.lst
# I compare both list file
awk '{sub(/^[.]/,z); if($0 in a)print}; FNR==NR{a[$0]};' xpdf.lst poppler.lst >xpdf-poppler-inst-conflicts.txt
Thanks for the report. It will suffice to exclude those files from xpdf package (using TERMUX_PKG_RM_AFTER_INSTALL). Fix will be after the repo migration.
Problem description
xpdf install conflict with poppler du to same filename in both package
What steps will reproduce the bug?
I created my own package database for searching and looking for what can be done by myself:
Then I search for dependencies for this class of app:
Here the list of file that are in both pakage:
What is the expected behavior?
I believe that having the same filenames in both package, cause the installation problem.
I dont know how to resolve this by myself.
Both package
poppler
andxpdf
can coexist in a termux install.System information
termux-info: