Thread: RE: [Plib-devel] Patches for FreeBSD
Brought to you by:
sjbaker
From: Fay J. F C. AAC/W. <joh...@eg...> - 2004-12-30 22:29:56
|
If you're going to do it before the end of January you will probably need to proceed without me. John F. Fay joh...@eg... 850-729-6330 -----Original Message----- From: pli...@li... [mailto:pli...@li...] On Behalf Of Steve Baker Sent: Thursday, December 30, 2004 3:07 PM To: pli...@li... Subject: Re: [Plib-devel] Patches for FreeBSD After these patches are in and tested, we should probably think about doing another PLIB release. |
From: Fay J. F C. AAC/W. <joh...@eg...> - 2004-12-30 22:35:23
|
Should we take the deprecated widgets out of PUI? They are in puAux now. John F. Fay joh...@eg... 850-729-6330 -----Original Message----- From: pli...@li... [mailto:pli...@li...] On Behalf Of Norman Vine Sent: Saturday, December 04, 2004 3:40 PM To: pli...@li... Subject: RE: [Plib-devel] Patches for FreeBSD Steve Baker writes: > > After these patches are in and tested, we should probably think about doing > another PLIB release. Good idea ! Anything else need looking into ? I have updated the 'current.tgz' to reflect your recent patches I have to remeber do this manually as SourceForge still isn't allowing cron jobs from user shell accounts. I could place my python script that does this in our projects directory so that others could run it after commiting changes if this would be helpful Norman ------------------------------------------------------- The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt _______________________________________________ plib-devel mailing list pli...@li... https://lists.sourceforge.net/lists/listinfo/plib-devel |
From: Martin S. <Mar...@un...> - 2004-12-30 23:47:10
|
> Anything else need looking into ? The FreeBSD port maintainer recently suggested the attached patch in order to create shared libraries by default - although I don't know if this meets the intentions of the PLIB developers. Honestly I _never_ create shared PLIB libraries ;-) --- autogen.sh.orig Sun Dec 12 15:40:53 2004 +++ autogen.sh Sun Dec 12 15:41:30 2004 @@ -2,11 +2,15 @@ OSTYPE=`uname -s` +LTFLAGS="--copy --force" + AMFLAGS="--add-missing" if test "$OSTYPE" = "IRIX" -o "$OSTYPE" = "IRIX64"; then AMFLAGS=$AMFLAGS" --include-deps"; fi +echo "Running libtoolize" +libtoolize $LTFLAGS echo "Running aclocal" aclocal echo "Running automake" --- configure.in.orig Sat Dec 11 20:47:13 2004 +++ configure.in Sat Dec 11 20:48:09 2004 @@ -36,7 +36,7 @@ AC_PROG_CXX AC_PROG_CXXCPP AC_PROG_INSTALL -AC_PROG_RANLIB +AC_PROG_LIBTOOL dnl Command line arguments @@ -242,8 +242,6 @@ dnl Checks for library functions. dnl check for OpenGL related libraries - -AC_CANONICAL_HOST case "${host}" in *-*-cygwin* | *-*-mingw32*) --- src/js/Makefile.am.orig Sat Jan 4 03:28:23 2003 +++ src/js/Makefile.am Sat Dec 11 20:46:48 2004 @@ -1,10 +1,10 @@ if BUILD_JS -lib_LIBRARIES = libplibjs.a +lib_LTLIBRARIES = libplibjs.la include_HEADERS = js.h -libplibjs_a_SOURCES = js.cxx jsLinux.cxx jsLinuxOld.cxx jsMacOS.cxx \ +libplibjs_la_SOURCES = js.cxx jsLinux.cxx jsLinuxOld.cxx jsMacOS.cxx \ jsMacOSX.cxx jsWindows.cxx jsBSD.cxx \ jsNone.cxx --- src/pw/Makefile.am.orig Sun Feb 15 21:29:34 2004 +++ src/pw/Makefile.am Sat Dec 11 20:46:48 2004 @@ -1,10 +1,10 @@ if BUILD_PW -lib_LIBRARIES = libplibpw.a +lib_LTLIBRARIES = libplibpw.la include_HEADERS = pw.h -libplibpw_a_SOURCES = pw.cxx pwX11.cxx pwWindows.cxx pwMacOSX.cxx +libplibpw_la_SOURCES = pw.cxx pwX11.cxx pwWindows.cxx pwMacOSX.cxx INCLUDES = -I$(top_srcdir)/src/util --- src/sg/Makefile.am.orig Sun Sep 1 00:21:21 2002 +++ src/sg/Makefile.am Sat Dec 11 20:46:48 2004 @@ -1,10 +1,10 @@ if BUILD_SG -lib_LIBRARIES = libplibsg.a +lib_LTLIBRARIES = libplibsg.la include_HEADERS = sg.h -libplibsg_a_SOURCES = sg.cxx sgd.cxx \ +libplibsg_la_SOURCES = sg.cxx sgd.cxx \ sgIsect.cxx sgdIsect.cxx \ sgPerlinNoise.cxx --- src/sl/Makefile.am.orig Sun Sep 1 00:34:05 2002 +++ src/sl/Makefile.am Sat Dec 11 20:46:48 2004 @@ -1,16 +1,16 @@ if BUILD_SL -lib_LIBRARIES = libplibsl.a libplibsm.a +lib_LTLIBRARIES = libplibsl.la libplibsm.la include_HEADERS = sl.h slPortability.h sm.h -libplibsl_a_SOURCES = \ +libplibsl_la_SOURCES = \ slDSP.cxx slSample.cxx slEnvelope.cxx \ slPlayer.cxx slMODPlayer.cxx slSamplePlayer.cxx \ slScheduler.cxx slMODdacio.cxx slMODfile.cxx \ slMODinst.cxx slMODnote.cxx slMODPrivate.h slMODfile.h -libplibsm_a_SOURCES = slPortability.h smMixer.cxx +libplibsm_la_SOURCES = slPortability.h smMixer.cxx INCLUDES = -I$(top_srcdir)/src/util --- src/fnt/Makefile.am.orig Mon Feb 16 04:13:22 2004 +++ src/fnt/Makefile.am Sat Dec 11 20:46:48 2004 @@ -1,10 +1,10 @@ if BUILD_FNT -lib_LIBRARIES = libplibfnt.a +lib_LTLIBRARIES = libplibfnt.la include_HEADERS = fnt.h -libplibfnt_a_SOURCES = fnt.cxx fntTXF.cxx fntLocal.h fntBitmap.cxx +libplibfnt_la_SOURCES = fnt.cxx fntTXF.cxx fntLocal.h fntBitmap.cxx INCLUDES = -I$(top_srcdir)/src/sg -I$(top_srcdir)/src/util --- src/net/Makefile.am.orig Sun Mar 21 17:37:41 2004 +++ src/net/Makefile.am Sat Dec 11 20:46:48 2004 @@ -1,11 +1,11 @@ if BUILD_NET -lib_LIBRARIES = libplibnet.a +lib_LTLIBRARIES = libplibnet.la include_HEADERS = netBuffer.h netChannel.h netChat.h netMessage.h \ netMonitor.h netSocket.h net.h -libplibnet_a_SOURCES = netBuffer.cxx netChannel.cxx netChat.cxx \ +libplibnet_la_SOURCES = netBuffer.cxx netChannel.cxx netChat.cxx \ netMessage.cxx netMonitor.cxx netSocket.cxx INCLUDES = -I$(top_srcdir)/src/util --- src/psl/Makefile.am.orig Wed Sep 11 00:22:37 2002 +++ src/psl/Makefile.am Sat Dec 11 20:46:48 2004 @@ -1,11 +1,11 @@ if BUILD_PSL -lib_LIBRARIES = libplibpsl.a +lib_LTLIBRARIES = libplibpsl.la include_HEADERS = psl.h -libplibpsl_a_SOURCES = psl.cxx pslCodeGen.cxx pslContext.cxx \ +libplibpsl_la_SOURCES = psl.cxx pslCodeGen.cxx pslContext.cxx \ pslCompiler.cxx pslSymbols.cxx pslToken.cxx \ pslExpression.cxx pslProgram.cxx pslDump.cxx \ pslError.cxx pslFileIO.cxx pslCompiler.h \ --- src/pui/Makefile.am.orig Sun Mar 21 19:56:55 2004 +++ src/pui/Makefile.am Sat Dec 11 20:46:48 2004 @@ -1,10 +1,10 @@ if BUILD_PUI -lib_LIBRARIES = libplibpu.a +lib_LTLIBRARIES = libplibpu.la include_HEADERS = pu.h puGLUT.h puFLTK.h puSDL.h puNative.h puPW.h -libplibpu_a_SOURCES = \ +libplibpu_la_SOURCES = \ pu.cxx puBox.cxx puButton.cxx puButtonBox.cxx \ puArrowButton.cxx puDialogBox.cxx puFrame.cxx puGroup.cxx \ puInput.cxx puInterface.cxx puLocal.h puMenuBar.cxx \ --- src/ssg/Makefile.am.orig Thu Jan 22 00:54:27 2004 +++ src/ssg/Makefile.am Sat Dec 11 20:46:48 2004 @@ -1,10 +1,10 @@ if BUILD_SSG -lib_LIBRARIES = libplibssg.a +lib_LTLIBRARIES = libplibssg.la include_HEADERS = ssg.h ssgconf.h ssgMSFSPalette.h ssgKeyFlier.h pcx.h -libplibssg_a_SOURCES = ssg.cxx ssgAnimation.cxx ssgBase.cxx \ +libplibssg_la_SOURCES = ssg.cxx ssgAnimation.cxx ssgBase.cxx \ ssgBaseTransform.cxx ssgBranch.cxx ssgContext.cxx ssgCutout.cxx \ ssgDList.cxx ssgEntity.cxx ssgIsect.cxx ssgLeaf.cxx ssgList.cxx \ ssgLoadDOF.cxx ssgLoadAC.cxx \ --- src/util/Makefile.am.orig Sun Sep 1 10:57:34 2002 +++ src/util/Makefile.am Sat Dec 11 20:46:48 2004 @@ -1,10 +1,10 @@ if BUILD_UL -lib_LIBRARIES = libplibul.a +lib_LTLIBRARIES = libplibul.la include_HEADERS = ul.h ulRTTI.h -libplibul_a_SOURCES = ul.cxx ulClock.cxx ulError.cxx ulLinkedList.cxx \ +libplibul_la_SOURCES = ul.cxx ulClock.cxx ulError.cxx ulLinkedList.cxx \ ulList.cxx ulLocal.h ulRTTI.cxx endif --- src/puAux/Makefile.am.orig Sun Mar 21 20:42:25 2004 +++ src/puAux/Makefile.am Sat Dec 11 20:46:48 2004 @@ -1,10 +1,10 @@ if BUILD_PUAUX -lib_LIBRARIES = libplibpuaux.a +lib_LTLIBRARIES = libplibpuaux.la include_HEADERS = puAux.h puAuxLocal.h -libplibpuaux_a_SOURCES = puAux.cxx \ +libplibpuaux_la_SOURCES = puAux.cxx \ puAuxBiSlider.cxx \ puAuxBiSliderWithEnds.cxx \ puAuxComboBox.cxx \ --- src/ssgAux/Makefile.am.orig Thu Jan 22 00:42:01 2004 +++ src/ssgAux/Makefile.am Sat Dec 11 20:46:48 2004 @@ -1,6 +1,6 @@ if BUILD_SSGAUX -lib_LIBRARIES = libplibssgaux.a +lib_LTLIBRARIES = libplibssgaux.la include_HEADERS = ssgAux.h \ ssgaShapes.h \ @@ -13,7 +13,7 @@ ssgaFire.h \ ssgaBillboards.h -libplibssgaux_a_SOURCES = ssgAux.cxx \ +libplibssgaux_la_SOURCES = ssgAux.cxx \ ssgaShapes.cxx \ ssgaPatch.cxx \ ssgaParticleSystem.cxx \ Martin. -- Unix _IS_ user friendly - it's just selective about who its friends are ! -------------------------------------------------------------------------- |
From: Steve B. <sjb...@ai...> - 2004-12-31 14:47:00
|
Martin Spott wrote: >>Anything else need looking into ? > > The FreeBSD port maintainer recently suggested the attached patch in > order to create shared libraries by default - although I don't know if > this meets the intentions of the PLIB developers. No - it doesn't. > Honestly I _never_ create shared PLIB libraries ;-) No - me either. The problem is that it's too easy to swap out the library without recompiling the application. This causes really subtle and hard to diagnose problems with end-users because PLIB is such a heavily C++ class-based application with lots of inline functions. The benefits with shared libraries are not typically very useful to the kinds of application people use PLIB for. So, I would strongly advise against this change for FreeBSD and I certainly won't accept anything of the sort for Windows or Linux. The reasoning behind this is as follows: Right now, an end user can upgrade his copy of PLIB very easily without preventing ANY of his existing binaries from working - even if the changes we made were not reverse compatible, etc, etc. If he uses binary distributions of games, then they won't be dependent on PLIB itself (which is a HUGE benefit for game writers) - if he builds his programs from source then there still isn't a problem because the header files and libraries always match. Shared libraries are good for two things: 1) Saving disk space by making binary files smaller. 2) Saving RAM by having multiple applications share the same library binary image (I'm not even sure this works). These days, in the era of $1 per Gigabyte hard drives, the cost of having non-shared libraries is something of the order of one tenth of a cent per application. Since there are probably only a few dozens of PLIB applications on most people's hard drives, the cost of non-shared libraries on disk space is a few cents. Saving RAM (even if it works in practice) is unlikely to be very necessary for the kinds of applications PLIB is used for because they are highly interactive - and typically consume a very large fraction of CPU and graphics bandwidth - so the end user is most unlikely to be running more than one or two of them at any given time. So PLIB gains ZERO benefit from being a set of shared libraries - but incurrs all of the problems in the worst possible ways. Just say "NO" to shared libraries for PLIB! ---------------------------- Steve Baker ------------------------- HomeEmail: <sjb...@ai...> WorkEmail: <sj...@li...> HomePage : http://www.sjbaker.org Projects : http://plib.sf.net http://tuxaqfh.sf.net http://tuxkart.sf.net http://prettypoly.sf.net -----BEGIN GEEK CODE BLOCK----- GCS d-- s:+ a+ C++++$ UL+++$ P--- L++++$ E--- W+++ N o+ K? w--- !O M- V-- PS++ PE- Y-- PGP-- t+ 5 X R+++ tv b++ DI++ D G+ e++ h--(-) r+++ y++++ -----END GEEK CODE BLOCK----- |
From: Martin S. <Mar...@un...> - 2004-12-31 16:23:05
|
Steve Baker wrote: > Right now, an end user can upgrade his copy of PLIB very easily > without preventing ANY of his existing binaries from working - even > if the changes we made were not reverse compatible, etc, etc. Yes, this is the most significant message in your explanation, Martin. -- Unix _IS_ user friendly - it's just selective about who its friends are ! -------------------------------------------------------------------------- |
From: Steve B. <sjb...@ai...> - 2004-12-31 14:16:44
|
Fay John F Contr AAC/WMG wrote: > Should we take the deprecated widgets out of PUI? They are in puAux now. I don't think we need to do that for a simple maintenance release. It's not like there is huge amounts of new functionality going in this time around. ---------------------------- Steve Baker ------------------------- HomeEmail: <sjb...@ai...> WorkEmail: <sj...@li...> HomePage : http://www.sjbaker.org Projects : http://plib.sf.net http://tuxaqfh.sf.net http://tuxkart.sf.net http://prettypoly.sf.net -----BEGIN GEEK CODE BLOCK----- GCS d-- s:+ a+ C++++$ UL+++$ P--- L++++$ E--- W+++ N o+ K? w--- !O M- V-- PS++ PE- Y-- PGP-- t+ 5 X R+++ tv b++ DI++ D G+ e++ h--(-) r+++ y++++ -----END GEEK CODE BLOCK----- |
From: Steve B. <sjb...@ai...> - 2004-12-31 14:15:53
|
Fay John F Contr AAC/WMG wrote: > If you're going to do it before the end of January you will probably > need to proceed without me. PUI seems to be working pretty well right now - but is there anything you know needs to be done that's not already in CVS? ---------------------------- Steve Baker ------------------------- HomeEmail: <sjb...@ai...> WorkEmail: <sj...@li...> HomePage : http://www.sjbaker.org Projects : http://plib.sf.net http://tuxaqfh.sf.net http://tuxkart.sf.net http://prettypoly.sf.net -----BEGIN GEEK CODE BLOCK----- GCS d-- s:+ a+ C++++$ UL+++$ P--- L++++$ E--- W+++ N o+ K? w--- !O M- V-- PS++ PE- Y-- PGP-- t+ 5 X R+++ tv b++ DI++ D G+ e++ h--(-) r+++ y++++ -----END GEEK CODE BLOCK----- |