.
D 2000-10-26T01:09:41
J assignee nobody
J cmimetype text/plain
J comment OriginalBugID:\s4055\sBug\nVersion:\s8.3b2\nSubmitDate:\s'2000-01-21'\nLastModified:\s'2000-02-02'\nSeverity:\sMED\nStatus:\sReleased\nSubmitter:\stechsupp\nChangedBy:\swart\nOS:\sLinux-SuSE\nFixedDate:\s'2000-02-02'\nClosedDate:\s'2000-10-25'\n\n\nName:\nAndreas\sKupries\n\nReproducibleScript:\nThis\sis\sactually\sa\sreport\sabout\sthe\sSampleExtension,\sbut\sthere\swas\sno\sentry\sin\sthe\sselection\slist\sfor\sthat.\sHence\sreported\sunder\sTcl,\sgeneric.\n\nTake\sthe\ssample\sextension,\scompile\sit\swith\s--disable-shared\sand\sthen\stry\sto\sinstall.\n\nObservedBehavior:\nThe\s'install-lib-binaries'\starget\sof\sthe\sMakefile\sfor\sthe\nsample-extension\sand\severy\sextension\susing\sthat\sMakefile\sas\ntemplate\sseems\sto\shave\sa\sbug.\sIt\sshows\sup\sonly\swhen\susing\n\n--disable-shared\n\nThe\scode\sfor\sthe\starget\sfollows\sbelow,\swith\sthe\serroneous\smarked\svia\n|.\sThe\sproblem\sis\sthe\suse\sof\s$(bindir).\sIt\sshould\sbe\s$(libdir)\ninstead.\n\n@list='$(lib_BINARIES)';\sfor\sp\sin\s$$list;\sdo\s\sif\stest\s-f\s$$p;\sthen\s\sext=`echo\s$$p|sed\s-e\s"s/.*\\.//"`;\s\sif\stest\s"x$$ext"\s=\s"xdll";\sthen\s\secho\s"\s$(INSTALL_DATA)\s$$p\s$(DESTDIR)$(bindir)/$$p";\s\s$(INSTALL_DATA)\s$$p\s$(DESTDIR)$(bindir)/$$p;\s\slib=`basename\s$$p|sed\s-e\s's/.[^.]*$$//'`.lib;\s\sif\stest\s-f\s$$lib;\sthen\s\secho\s"\s$(INSTALL_DATA)\s$$lib\s$(DESTDIR)$(libdir)/$$lib";\s\s$(INSTALL_DATA)\s$$lib\s$(DESTDIR)$(libdir)/$$lib;\s\sfi;\s\selse\s\secho\s"\s$(INSTALL_DATA)\s$$p\s$(DESTDIR)$(libdir)/$$p";\s\s$(INSTALL_DATA)\s$$p\s$(DESTDIR)$(libdir)/$$p;\s\sfi;\s\selse\s:;\sfi;\s\sdone\n@list='$(lib_BINARIES)';\sfor\sp\sin\s$$list;\sdo\s\sif\stest\s-f\s$$p;\sthen\s\s|\s\s\s\secho\s"\s$(RANLIB)\s$(DESTDIR)$(bindir)/$$p";\s\s|\s\s\s\s$(RANLIB)\s$(DESTDIR)$(bindir)/$$p;\s\selse\s:;\sfi;\s\sdone\n\nIf\scompiled\swith\s--enable-shared\s$(RANLIB)\sevaluates\sto\s':',\swhich\ndoes\snothing\swith\sits\sarguments.\sFor\s--disable-shared\swe\shave\n$(RANLIB)\s=\sranlib\sand\sthen\sget\serrors\slike\s'no\ssuch\sfile\sor\ndirectory'.\n\nI\smade\sanother\schange\sto\sthe\scode\sfor\sthis\starget\sand\sreplaced\n\n$(TCLSH_PROG)\smkIndex.tcl;\n\nwith\nif\stest\s"x$(MAKE_LIB)"\s=\s"x$(MAKE_SHARED_LIB)";\sthen\s\s$(TCLSH_PROG)\smkIndex.tcl;\s\sfi\n\nto\savoid\serrors\sduring\sinstallation\safter\sa\scompilation\swith\n--disable-shared.\sWithout\sdoing\sthis\sthe\scode\stries\sto\sgenerate\sa\npackage\sindex\sfor\sthe\snot-existing\sshared\slibraries.\n\nI\sconsider\sthe\scomparison\sas\sa\shack,\sbut\sfound\sno\sofficial\sway\sto\ndetermine\sfrom\swithin\sa\smakefile\swether\s--disable-shared\sis\sactive\sor\nnot.\n\n-----------\nHere\san\sexample\sof\sthe\serror\smessages,\sproduced\susing\sthe\sTEA\smakefile\sfrom\sMemchan:\n\ncd\smemchan2.1/tea\s;\smake\sCFLAGS=-g\sinstall\n\nmake[2]:\sEntering\sdirectory\s`/home/blob/tcl.src/lab8.3/memchan2.1/tea'\n/bin/sh\s./mkinstalldirs\s\s/home/aku/lab8.3/lib\n/bin/sh\s./mkinstalldirs\s\s/home/aku/lab8.3/bin\n/bin/sh\s./mkinstalldirs\s\s/home/aku/lab8.3/lib/Memchan\n/usr/bin/install\s-c\s-m\s644\slibMemchan2.1.a\s/home/aku/lab8.3/lib/libMemchan2.1.a\nranlib\s/home/aku/lab8.3/bin/libMemchan2.1.a\n\nranlib:\s/home/aku/lab8.3/bin/libMemchan2.1.a:\sNo\ssuch\sfile\sor\sdirectory\n\nDesiredBehavior:\nWell,\sno\serrors\sduring\sinstallation\n\nPatch:\nSee\sdescription.\n\nPatchFiles:\nMakefile.in\n\n\n\nI\sapplied\sthe\sfirst\schange\sthat\sAndreas\sdescribes\sabove\s(change\sbindir\s->\slibdir).\n\nThe\sfix\sfor\sthe\ssecond\sproblem\swas\smade\sby\spassing\sthe\svalue\sof\sSHARED_BUILD\sfrom\sthe\sconfigure\sscript\sto\sthe\sMakefile.\s\sI\salso\sadded\sthe\stest\sfor\sthe\svalue\sof\sSHARED_BUILD\sto\sdetermine\sif\sthe\spkgIndex\sfile\sshould\sbe\smade\sor\snot:\n\nif\stest\s"x$(SHARED_BUILD)"\s=\s"x1";\sthen\s\s$(TCLSH_PROG)\smkIndex.tcl;\s\sfi\n\nThe\schanges\shave\sonly\sbeen\smade\sin\sthe\sCVS\srepository,\sbut\snot\syet\sin\sany\sofficial\sTEA\srelease.\s\n--\s02/02/2000\swart\n\n
J foundin obsolete:\s8.3b2
J priority 5\sMedium
J resolution None
J status Open
J submitter nobody
J subsystem 69.\sOther
J title Sample\sExtension\sTEA\sMakefile\sbugs
J type Bug
K 219034ffffffffffffffffffffffffffffffffff
U nobody
Z 446a1048a91fa408e13044cd4c623f1f