Bug#412102: package only includes a Makefile
# 64 Bit machines must use a different parser code. # In the OBJECTS section, replace parser2.o with parserslow2.o # it is not really that much slower so don't have a cow # I modified the Makefile in the source package and the error has gone away. Sorry I don't know patch syntax to give a patch, but the change is easy. The change would be easy if packages for each architecture were built by hand but Debian uses automated buildd's that rely on the package configuring itself to handle the architecture. xppaut doesn't include the ./configure script that would normally take care of this which makes a normal patch difficult. I'm experimenting with making a copy of 'Makefile' as 'Makefile.64' and using a patch to debian/rules to use that Makefile when a 64bit arch is detected. My problem is that I now need some code to test so that I can determine whether the fix creates a usable binary on amd64. Added to debian/rules:12 DEB_BUILD_GNU_CPU ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_CPU) # method copied from db4.2 USE_64PARSER_CPUS = zx86_64z ifeq (,$(findstring z$(DEB_BUILD_GNU_CPU)z,$(USE_64PARSER_CPUS))) ${CP} Makefile.64 Makefile endif (Only testing with amd64 so far). Can you provide some examples of how to test the package for the bug you found? -- Neil Williams = http://www.data-freedom.org/ http://www.nosoftwarepatents.com/ http://www.linux.codehelp.co.uk/ pgpfofis8K8Kb.pgp Description: PGP signature
Bug#412102: package only includes a Makefile
Hi, On Wed, Feb 28, 2007 at 09:33:09AM +, Neil Williams wrote: Can you provide some examples of how to test the package for the bug you found? Among the sources there is a directory called ode. This contains numerous sample differential equation files in the xppaut syntax, (for example wave.ode ) You can run any of these files (for example wave.ode) as follows xppaut wave.ode Xppaut should start and show its X based gui interface. Typing i followed by g should cause it to integrate the ODE (wave) and it graphic output should be displayed. To fit the whole graphic in the window type w followed by f. Expect to see a wave in this case. I would believe if xppaut does not segfault and you do see a wave things are ok. To check if the actual numerical results are ok would take more work. You will need to click on Data and save the data. Then compare it with a run of the same ode on a 32 bit architecture. Alternatively or in addition you may want to send a copy of your fix to Prof. Bard Ermentrout [EMAIL PROTECTED] ( whose home page for xppaut is at http://www.math.pitt.edu/~bard/xpp/xpp.html ). I am not sure how well this would work but if one provides two makefiles (for 32 and 64 bit) or uses ifdef clauses in a single makefile this may help. Unfortunately I do not have access to 64 bit architechtures. Thank you for your help. regards b thomas -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Bug#412102: package only includes a Makefile
On Wed, 28 Feb 2007 06:40:51 -0500 B Thomas [EMAIL PROTECTED] wrote: Among the sources there is a directory called ode. This contains numerous sample differential equation files in the xppaut syntax, (for example wave.ode ) You can run any of these files (for example wave.ode) as follows xppaut wave.ode Xppaut should start and show its X based gui interface. Typing i followed by g should cause it to integrate the ODE (wave) and it graphic output should be displayed. To fit the whole graphic in the window type w followed by f. Expect to see a wave in this case. I would believe if xppaut does not segfault and you do see a wave things are ok. OK, I get the GUI display on amd64 and I get a graph but I wouldn't call it a wave, at least not a sine wave or anything I'd expect to see created by a fluid. It looks a bit like the (v.small) beak of a bird - a smooth arc, a sharp almost straight line down crossing the X axis, a sharp change of direction back up towards the X axis then another smooth arc. See http://www.linux.codehelp.co.uk/412102.png Unfortunately I do not have access to 64 bit architechtures. Then how did this bug arise? If you could confirm that the screenshot is a suitable representation of what './xppaut ode/wave.ode' should display, I just need to expand the patch to cope with other 64bit architectures and then we'd have an upload that could close this bug. Do you want to upload the changes or would you prefer an NMU? -- Neil Williams = http://www.data-freedom.org/ http://www.nosoftwarepatents.com/ http://www.linux.codehelp.co.uk/ pgplbPBRdS06L.pgp Description: PGP signature
Bug#412102: package only includes a Makefile
This one time, at band camp, Neil Williams said: DEB_BUILD_GNU_CPU ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_CPU) # method copied from db4.2 USE_64PARSER_CPUS = zx86_64z ifeq (,$(findstring z$(DEB_BUILD_GNU_CPU)z,$(USE_64PARSER_CPUS))) ${CP} Makefile.64 Makefile endif I don't know the package at all, so excuse me if I leap to conclusions. The thing I see there that bugs me is that at the end of a build/clean run, the source tree will be different, as you've lost the Makefile for 32bit systems. I would suggest something like: MAKEFILE = Makefile DEB_BUILD_GNU_CPU ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_CPU) USE_64PARSER_CPUS = zx86_64z ifeq (,$(findstring z$(DEB_BUILD_GNU_CPU)z,$(USE_64PARSER_CPUS))) MAKEFILE = Makefile.64 endif ... ${MAKE} -f ${MAKEFILE} Take care, -- - | ,''`.Stephen Gran | | : :' :[EMAIL PROTECTED] | | `. `'Debian user, admin, and developer | |`- http://www.debian.org | - signature.asc Description: Digital signature
Bug#412102: package only includes a Makefile
On Wed, 28 Feb 2007 12:23:00 + Stephen Gran [EMAIL PROTECTED] wrote: I don't know the package at all, so excuse me if I leap to conclusions. The thing I see there that bugs me is that at the end of a build/clean run, the source tree will be different, as you've lost the Makefile for 32bit systems. I would suggest something like: MAKEFILE = Makefile DEB_BUILD_GNU_CPU ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_CPU) USE_64PARSER_CPUS = zx86_64z ifeq (,$(findstring z$(DEB_BUILD_GNU_CPU)z,$(USE_64PARSER_CPUS))) MAKEFILE = Makefile.64 endif ... ${MAKE} -f ${MAKEFILE} Thanks for the tip! -- Neil Williams = http://www.data-freedom.org/ http://www.nosoftwarepatents.com/ http://www.linux.codehelp.co.uk/ pgptzBThJ20y9.pgp Description: PGP signature