On Sat, Apr 28, 2018 at 12:39:54PM +0200, Landry Breuil wrote: > Hi, > > saw this during a pkg_add w/ kdelibs4 installed: > > Unknown media type in type 'all/all' > Unknown media type in type 'all/allfiles' > > shared-mime-info is choking on types installed by kdelibs4, which had > been removed in kde5: > https://github.com/KDE/kcoreaddons/commit/36ff1bf60c9b12c28ed4d7566abceac10cab345e > > the internet seems to go crazy about it and kde4 & freedesktop ppl are > throwing the issue at each other on various places / distro bug reports: > > https://bugs.kde.org/show_bug.cgi?id=303627 > https://bugs.launchpad.net/ubuntu/+source/shared-mime-info/+bug/289592 > https://bugs.gentoo.org/261446 > https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=469833 > https://bugs.freedesktop.org/show_bug.cgi?id=16816 > > bastien nocera recently hacked shared-mime-info to not complain about it > anymore, cf > https://cgit.freedesktop.org/xdg/shared-mime-info/commit/?id=fc149b7615deecf3c3af73bcc5ee98a4b716fbac > and > https://cgit.freedesktop.org/xdg/shared-mime-info/commit/?id=553aa73de2c6a5bb221bcd9153c2425cd236c703 > > so my understanding is that an update to this version should silence > those errors. Some ppl are just voting for removing the mimetypes from > the old kde4 file, and some other are saying that it'll break kde4 apps. > > This appeases my OCD, what are other's opinions ? Fix shared-mime-info, > or kdelibs4 ? > > Landry
Why not just merge the 2 upstream commits you mentioned? > Index: Makefile > =================================================================== > RCS file: /cvs/ports/x11/kde4/libs/Makefile,v > retrieving revision 1.83 > diff -u -r1.83 Makefile > --- Makefile 19 Apr 2018 18:21:00 -0000 1.83 > +++ Makefile 28 Apr 2018 10:31:22 -0000 > @@ -12,7 +12,7 @@ > PKG_ARCH-en_US = * > PKG_ARCH-langlist = * > PKGSPEC-main = kdelibs-${MODKDE4_SPEC} > -REVISION-main = 12 > +REVISION-main = 13 > REVISION-en_US = 0 > REVISION-langlist = 0 > > Index: patches/patch-mimetypes_kde_xml > =================================================================== > RCS file: patches/patch-mimetypes_kde_xml > diff -N patches/patch-mimetypes_kde_xml > --- /dev/null 1 Jan 1970 00:00:00 -0000 > +++ patches/patch-mimetypes_kde_xml 28 Apr 2018 10:31:22 -0000 > @@ -0,0 +1,137 @@ > +$OpenBSD$ > + > +https://bugs.kde.org/show_bug.cgi?id=303627 > +https://bugs.launchpad.net/ubuntu/+source/shared-mime-info/+bug/289592 > +https://bugs.gentoo.org/261446 > +https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=469833 > +https://bugs.freedesktop.org/show_bug.cgi?id=16816 > +https://github.com/KDE/kcoreaddons/commit/36ff1bf60c9b12c28ed4d7566abceac10cab345e > + > +Index: mimetypes/kde.xml > +--- mimetypes/kde.xml.orig > ++++ mimetypes/kde.xml > +@@ -1786,124 +1786,6 @@ Notes: > + <glob pattern="*.abc"/> > + </mime-type> > + > +- <!-- all/ fake mime types --> > +- <mime-type type="all/all"> > +- <comment>all files and folders</comment> > +- <comment xml:lang="ar">كل الملفات و المجلدات</comment> > +- <comment xml:lang="ast">tolos ficheros y carpetes</comment> > +- <comment xml:lang="bg">всички файлове и папки</comment> > +- <comment xml:lang="bs">sve datoteke i direktorije</comment> > +- <comment xml:lang="ca">tots els fitxers i carpetes</comment> > +- <comment xml:lang="ca@valencia">tots els fitxers i carpetes</comment> > +- <comment xml:lang="cs">všechny soubory a složky</comment> > +- <comment xml:lang="da">alle filer og mapper</comment> > +- <comment xml:lang="de">Alle Dateien und Ordner</comment> > +- <comment xml:lang="el">Όλα τα αρχεία και οι φάκελοι</comment> > +- <comment xml:lang="en_GB">all files and folders</comment> > +- <comment xml:lang="es">todos los archivos y carpetas</comment> > +- <comment xml:lang="et">kõik failid ja kataloogid</comment> > +- <comment xml:lang="eu">fitxategi eta karpeta denak</comment> > +- <comment xml:lang="fi">kaikki tiedostot ja kansiot</comment> > +- <comment xml:lang="fr">Tous les fichiers et les dossiers</comment> > +- <comment xml:lang="ga">gach comhad agus fillteán</comment> > +- <comment xml:lang="gl">todos os ficheiros e cartafoles</comment> > +- <comment xml:lang="hr">sve datoteke i direktoriji</comment> > +- <comment xml:lang="hu">minden fájl és mappa</comment> > +- <comment xml:lang="ia">omne files e dossieres</comment> > +- <comment xml:lang="is">allar skrár og möppur</comment> > +- <comment xml:lang="it">tutti i file e le cartelle</comment> > +- <comment xml:lang="ja">すべてのファイルとフォルダ</comment> > +- <comment xml:lang="kk">бүкіл файлдар мен қапшықтар</comment> > +- <comment xml:lang="km">ឯកសារ និងថតទាំងអស់</comment> > +- <comment xml:lang="ko">모든 파일과 폴더</comment> > +- <comment xml:lang="lt">visi failai ir aplankai</comment> > +- <comment xml:lang="lv">visi faili un mapes</comment> > +- <comment xml:lang="ml">എല്ലാ ഫയലും ഫോള്ഡറുകളും</comment> > +- <comment xml:lang="mr">सर्व फाईल्स व संचयीका</comment> > +- <comment xml:lang="nb">al.le filer og mapper</comment> > +- <comment xml:lang="nds">All Dateien un Ornern</comment> > +- <comment xml:lang="nl">alle bestanden en mappen</comment> > +- <comment xml:lang="nn">alle filer og mapper</comment> > +- <comment xml:lang="pa">ਸਭ ਫਾਇਲਾਂ ਅਤੇ ਫੋਲਡਰ</comment> > +- <comment xml:lang="pl">wszystkie pliki i katalogi</comment> > +- <comment xml:lang="pt">todos os ficheiros e pastas</comment> > +- <comment xml:lang="pt_BR">todos os arquivos e pastas</comment> > +- <comment xml:lang="ro">toate fișierele și dosarele</comment> > +- <comment xml:lang="ru">все файлы и папки</comment> > +- <comment xml:lang="se">buot fiillat ja máhpat</comment> > +- <comment xml:lang="sk">všetky súbory a priečinky</comment> > +- <comment xml:lang="sl">vse datoteke in mape</comment> > +- <comment xml:lang="sr">сви фајлови и фасцикле</comment> > +- <comment xml:lang="sr@ijekavian">сви фајлови и фасцикле</comment> > +- <comment xml:lang="sr@ijekavianlatin">svi fajlovi i fascikle</comment> > +- <comment xml:lang="sr@latin">svi fajlovi i fascikle</comment> > +- <comment xml:lang="sv">alla filer och kataloger</comment> > +- <comment xml:lang="th">แฟ้มและโฟลเดอร์ทั้งหมด</comment> > +- <comment xml:lang="tr">tüm dosyalar ve dizinler</comment> > +- <comment xml:lang="ug">ھەممە ھۆججەت ۋە قىسقۇچلار</comment> > +- <comment xml:lang="uk">всі файли і теки</comment> > +- <comment xml:lang="zh_CN">全部文件和文件夹</comment> > +- <comment xml:lang="zh_TW">所有檔案與資料夾</comment> > +- </mime-type> > +- <mime-type type="all/allfiles"> > +- <comment>all files</comment> > +- <comment xml:lang="ar">كل الملفات</comment> > +- <comment xml:lang="ast">tolos ficheros</comment> > +- <comment xml:lang="bg">всички файлове</comment> > +- <comment xml:lang="bs">sve datoteke</comment> > +- <comment xml:lang="ca">tots els fitxers</comment> > +- <comment xml:lang="ca@valencia">tots els fitxers</comment> > +- <comment xml:lang="cs">všechny soubory</comment> > +- <comment xml:lang="da">alle filer</comment> > +- <comment xml:lang="de">Alle Dateien</comment> > +- <comment xml:lang="el">Όλα τα αρχεία</comment> > +- <comment xml:lang="en_GB">all files</comment> > +- <comment xml:lang="es">todos los archivos</comment> > +- <comment xml:lang="et">kõik failid</comment> > +- <comment xml:lang="eu">fitxategi denak</comment> > +- <comment xml:lang="fi">kaikki tiedostot</comment> > +- <comment xml:lang="fr">Tous les fichiers</comment> > +- <comment xml:lang="ga">gach comhad</comment> > +- <comment xml:lang="gl">todos os ficheiros</comment> > +- <comment xml:lang="hr">sve datoteke</comment> > +- <comment xml:lang="hu">minden fájl</comment> > +- <comment xml:lang="ia">omne files</comment> > +- <comment xml:lang="is">allar skrár</comment> > +- <comment xml:lang="it">tutti i file</comment> > +- <comment xml:lang="ja">すべてのファイル</comment> > +- <comment xml:lang="kk">бүкіл файлдар</comment> > +- <comment xml:lang="km">ឯកសារទាំងអស់</comment> > +- <comment xml:lang="ko">모든 파일</comment> > +- <comment xml:lang="lt">visi failai</comment> > +- <comment xml:lang="lv">visi faili</comment> > +- <comment xml:lang="ml">എല്ലാ ഫയലും</comment> > +- <comment xml:lang="mr">सर्व फाईल्स</comment> > +- <comment xml:lang="nb">alle filer</comment> > +- <comment xml:lang="nds">All Dateien</comment> > +- <comment xml:lang="nl">alle bestanden</comment> > +- <comment xml:lang="nn">alle filer</comment> > +- <comment xml:lang="pa">ਸਭ ਫਾਇਲਾਂ</comment> > +- <comment xml:lang="pl">wszystkie pliki</comment> > +- <comment xml:lang="pt">todos os ficheiros</comment> > +- <comment xml:lang="pt_BR">todos os arquivos</comment> > +- <comment xml:lang="ro">toate fișierele</comment> > +- <comment xml:lang="ru">все файлы</comment> > +- <comment xml:lang="se">buot fiillat</comment> > +- <comment xml:lang="sk">všetky súbory</comment> > +- <comment xml:lang="sl">vse datoteke</comment> > +- <comment xml:lang="sr">сви фајлови</comment> > +- <comment xml:lang="sr@ijekavian">сви фајлови</comment> > +- <comment xml:lang="sr@ijekavianlatin">svi fajlovi</comment> > +- <comment xml:lang="sr@latin">svi fajlovi</comment> > +- <comment xml:lang="sv">alla filer</comment> > +- <comment xml:lang="th">แฟ้มทั้งหมด</comment> > +- <comment xml:lang="tr">tüm dosyalar</comment> > +- <comment xml:lang="ug">ھەممە ھۆججەتلەر</comment> > +- <comment xml:lang="uk">всі файли</comment> > +- <comment xml:lang="zh_CN">全部文件</comment> > +- <comment xml:lang="zh_TW">所有檔案</comment> > +- </mime-type> > +- > + <mime-type type="application/vnd.kde.fontspackage"> > + <sub-class-of type="application/zip"/> > + <comment>fonts package</comment> -- Antoine