From: Jon Trulson Date: Tue, 3 Apr 2018 18:55:23 +0000 (-0600) Subject: fontaliases: use copy rather than symlink since bdftopcf can't handle those X-Git-Tag: 2.2.4a~132^2~1 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=8f7c874ba0773dca850d1a278c5f001558769c3b;p=oweals%2Fcde.git fontaliases: use copy rather than symlink since bdftopcf can't handle those bdftopcf specifically will not read symbolic links. This causes it to fail when creating the programs/fontaliases/*/C/dtinfo.pcf.Z file and subsequently, the fonts.dir file. So, we add a new Imake macro: CopySourceFile(), to copy rather than symlink the dtinfo.bdf file so these operations can complete successfully. The dtinfo.bdf file is only 5KB, so there's very little impact having an extra copy created during a build. --- diff --git a/cde/config/cf/Imake.rules b/cde/config/cf/Imake.rules index 78e18343..42323f74 100644 --- a/cde/config/cf/Imake.rules +++ b/cde/config/cf/Imake.rules @@ -134,6 +134,7 @@ XCOMM rules: $TOG: Imake.rules /main/227 1998/02/02 12:07:57 kaleb $ * NormalLintTarget (srclist) * LintTarget () * LinkSourceFile (src,dir) + * CopySourceFile (src,dir) * LinkFile (tofile,fromfile) * MakeSubincludesForBuild (step,dir,srclist) * LangNamedTargetSubdirs (lang,name,dirs,verb,flags,subname) @@ -2075,6 +2076,26 @@ clean:: @@\ #endif +/* + * CopySourceFile - snag source file from some other directory + */ +#ifndef CopySourceFile +#define CopySourceFile(src,dir) @@\ +src: dir/src @@\ + RemoveFile($@) @@\ + $(CP) $? $@ @@\ + @@\ +NoConfigRec(src) @@\ + @@\ +includes:: src @@\ + @@\ +depend:: src @@\ + @@\ +clean:: @@\ + RemoveFile(src) +#endif + + /* * LinkFile - link a file */ diff --git a/cde/programs/dtinfo/dtinfo/install/lib/fonts/Imakefile b/cde/programs/dtinfo/dtinfo/install/lib/fonts/Imakefile index af671a97..ba9c97f1 100644 --- a/cde/programs/dtinfo/dtinfo/install/lib/fonts/Imakefile +++ b/cde/programs/dtinfo/dtinfo/install/lib/fonts/Imakefile @@ -7,7 +7,7 @@ MKFONTDIR = $(XPROJECTROOT)/bin/mkfontdir OBJS = FontObj(dtinfo) -LinkSourceFile(dtinfo.bdf,$(CDESRC)/fontaliases/bdf) +CopySourceFile(dtinfo.bdf,$(CDESRC)/fontaliases/bdf) MakeFonts() diff --git a/cde/programs/fontaliases/bdf/fonts.tmpl b/cde/programs/fontaliases/bdf/fonts.tmpl index 2369453d..537c7844 100644 --- a/cde/programs/fontaliases/bdf/fonts.tmpl +++ b/cde/programs/fontaliases/bdf/fonts.tmpl @@ -6,7 +6,7 @@ XCOMM $XConsortium: fonts.tmpl /main/2 1996/09/13 17:55:52 drk $ OBJS = FontObj(dtinfo) $(LOCAL_OBJS) -LinkSourceFile(dtinfo.bdf,$(CDESRC)/fontaliases/bdf) +CopySourceFile(dtinfo.bdf,$(CDESRC)/fontaliases/bdf) MakeFonts()