From lordmorgul at gmail.com Sat Mar 1 00:47:41 2008 From: lordmorgul at gmail.com (Andrew Farris) Date: Fri, 29 Feb 2008 16:47:41 -0800 Subject: file dependencies and packages and [blocker] bugs In-Reply-To: <47C881D4.6000806@hhs.nl> References: <1204308356.8099.80.camel@cutter> <47C8570C.2000003@hhs.nl> <1204319939.8099.98.camel@cutter> <47C881D4.6000806@hhs.nl> Message-ID: <47C8A7AD.7080205@gmail.com> Hans de Goede wrote: > seth vidal wrote: >> Don't you think we should be able to do something to make this situation >> better or even rarer? >> > > Erm, no not really, these apps need a certain file to be in a certain > place, isn't that what filedeps are for? Don't you think instead the application should be fixed to stop doing something so archaic as directly accessing font filenames where they are expected to be? > I really believe all these packages should be fixed to stop shipping a > private copy of these fonts. The way todo this is to symlink to the > installed official versions, as the packages will actually look for for > example > /usr/share/blobAndConquer/data/fonts/vera.ttf and then do their own > rendering (as overlay to a rendered game scene). I just don't see why you would 'fix' the problem of shipping extra fonts by rigging them up with fake font files and filedeps (isn't this exactly what symlinking effectively is?). As long as the apps are really requiring the fonts by a specific filename they should ship the file, or stop loading them that way. There certainly must be a better approach. Even if the packages that need extra fonts go ahead and ship them... then the majority of users who aren't installing or updating these games do not have to deal with this. The bandwidth usage caused by downloading large filelists certainly must be higher than just shipping some extra fonts in those game packages. -- Andrew Farris www.lordmorgul.net gpg 0xC99B1DF3 fingerprint CDEC 6FAD BA27 40DF 707E A2E0 F0F6 E622 C99B 1DF3 No one now has, and no one will ever again get, the big picture. - Daniel Geer ---- ---- From alexl at users.sourceforge.net Sat Mar 1 00:48:16 2008 From: alexl at users.sourceforge.net (Alex Lancaster) Date: Fri, 29 Feb 2008 17:48:16 -0700 Subject: Final Warning: Orphanarium to be Nuked In-Reply-To: <47C7083A.5030307@gmail.com> (Toshio Kuratomi's message of "Thu\, 28 Feb 2008 11\:15\:06 -0800") References: <47C7041E.50102@redhat.com> <47C7083A.5030307@gmail.com> Message-ID: >>>>> "TK" == Toshio Kuratomi writes: TK> Warren Togami wrote: >> devel orphaned but still in rawhide >> =================================== TK> [snip list] >> These packages will be removed from rawhide tomorrow 5PM UTC-5 if >> they are not adopted. >> Has Co-Owners but no primary owner >> ================================== >> blam >> debootstrap >> tanukiwrapper TK> I just noticed that blam has someone watching its commits and bugs TK> but no actual co-owner. The blam package will be moved into the TK> first category and scheduled for removal from rawhide tomorrow TK> unless someone wants to step up and adopt it. I just took ownership of blam. Alex From kevin.kofler at chello.at Sat Mar 1 00:52:05 2008 From: kevin.kofler at chello.at (Kevin Kofler) Date: Sat, 1 Mar 2008 00:52:05 +0000 (UTC) Subject: file dependencies and packages and [blocker] bugs References: <1204308356.8099.80.camel@cutter> <47C8570C.2000003@hhs.nl> <1204319939.8099.98.camel@cutter> <47C881D4.6000806@hhs.nl> Message-ID: Hans de Goede hhs.nl> writes: > Maybe some more backgroundinfo on these apps: > 1) They originally both ship with copies of Arial (!= free) in there tarbals, > which get installed into the apps own data dir under /usr/share/app. > 2) I've ripped these out of the src-tarbal (and the resulting package) and > replaced them with symlinks to the same style fonts from vera / dejavu. If those were originally using Arial, wouldn't Liberation Sans be a better replacement now that it's available? (Rationale: It has compatible metrics.) Kevin Kofler From notting at redhat.com Sat Mar 1 01:39:06 2008 From: notting at redhat.com (Bill Nottingham) Date: Fri, 29 Feb 2008 20:39:06 -0500 Subject: file dependencies and packages and [blocker] bugs In-Reply-To: References: <1204308356.8099.80.camel@cutter> <47C8570C.2000003@hhs.nl> <1204319939.8099.98.camel@cutter> <47C881D4.6000806@hhs.nl> Message-ID: <20080301013906.GC18154@nostromo.devel.redhat.com> Kevin Kofler (kevin.kofler at chello.at) said: > Hans de Goede hhs.nl> writes: > > Maybe some more backgroundinfo on these apps: > > 1) They originally both ship with copies of Arial (!= free) in there tarbals, > > which get installed into the apps own data dir under /usr/share/app. > > 2) I've ripped these out of the src-tarbal (and the resulting package) and > > replaced them with symlinks to the same style fonts from vera / dejavu. > > If those were originally using Arial, wouldn't Liberation Sans be a better > replacement now that it's available? (Rationale: It has compatible metrics.) So, maybe I'm insane, but if all you want is a sans bold, etc. font - that can't be more than about 20 lines of fontconfig code to look for a match for the 'sans' pattern and get a filename. That way: - you don't have to hardcode any files - you don't have to hardcode any requirements Bill From notting at redhat.com Sat Mar 1 01:55:23 2008 From: notting at redhat.com (Bill Nottingham) Date: Fri, 29 Feb 2008 20:55:23 -0500 Subject: file dependencies and packages and [blocker] bugs In-Reply-To: <20080301013906.GC18154@nostromo.devel.redhat.com> References: <1204308356.8099.80.camel@cutter> <47C8570C.2000003@hhs.nl> <1204319939.8099.98.camel@cutter> <47C881D4.6000806@hhs.nl> <20080301013906.GC18154@nostromo.devel.redhat.com> Message-ID: <20080301015522.GD18154@nostromo.devel.redhat.com> Bill Nottingham (notting at redhat.com) said: > So, maybe I'm insane, but if all you want is a sans bold, etc. font - that > can't be more than about 20 lines of fontconfig code to look for a match > for the 'sans' pattern and get a filename. That way: > > - you don't have to hardcode any files > - you don't have to hardcode any requirements OK, *somewhat* more than 20 lines. But still... [notting at nostromo: ~]$ ./font-fu arial:style=bold Found /usr/share/fonts/liberation/LiberationSans-Bold.ttf for arial:style=bold [notting at nostromo: ~]$ ./font-fu serif Found /usr/share/fonts/dejavu/DejaVuSerif.ttf for serif Bill -------------- next part -------------- #include #include #include #include char *find_me_a_font(char *style) { FcPattern *pat, *match; FcResult result; FcChar8 *file; if (!FcInit()) return NULL; pat = FcNameParse((FcChar8 *)style); if (!pat) return NULL; FcConfigSubstitute(0, pat, FcMatchPattern); FcDefaultSubstitute(pat); match = FcFontMatch(0, pat, &result); if (match) if (FcPatternGetString(match, FC_FILE, 0, &file) == FcResultMatch) return (char *)file; return NULL; } int main(int argc, char **argv) { char *fontname; if (argc < 2) { printf("usage: font-fu