1
0
mirror of git://projects.qi-hardware.com/eda-tools.git synced 2024-11-23 05:05:20 +02:00
eda-tools/kicad-patches
Werner Almesberger 5083973b9a kicad-patches/README: bump KiCad version to bzr 3494
In 3493, linking pcbnew fails with

CMakeFiles/pcbnew.dir/files.cpp.o: In function `PCB_EDIT_FRAME::SavePcbFile(wxString const&, bool)':
files.cpp:(.text+0x1ebd): undefined reference to `IO_MGR::GetFileExtension(IO_MGR::PCB_FILE_T)'

This appears to be fixed in 3494.
2012-04-11 17:31:00 -03:00
..
cmdline-common.patch upleveled cmdline patches to kicad bzr 3493 2012-04-08 08:37:48 +02:00
cmdline-eeschema.patch upleveled cmdline patches to kicad bzr 3493 2012-04-08 08:37:48 +02:00
cmdline-new.patch upleveled cmdline patches to kicad bzr 3493 2012-04-08 08:37:48 +02:00
cmdline-pcbnew.patch upleveled cmdline patches to kicad bzr 3493 2012-04-08 08:37:48 +02:00
fix-pinedit-collision.patch Patches to enhance KiCad, mainly for non-interactive use 2010-12-27 22:59:52 -03:00
kicad_diff.sh upleveled cmdline patches to kicad bzr 3493 2012-04-08 08:37:48 +02:00
README kicad-patches/README: bump KiCad version to bzr 3494 2012-04-11 17:31:00 -03:00
series upleveled cmdline patches to kicad bzr 3493 2012-04-08 08:37:48 +02:00
TODO uplevel cmdline patches (entire set won't build right now) 2012-01-11 00:28:19 +01:00

First build
-----------

bzr checkout -r 3494 lp:kicad kicad.bzr
cd kicad.bzr
ln -s wherever/eda-tools/kicad-patches patches
quilt push -a
cmake -DKICAD_TESTING_VERSION=ON .
make -j 5
make install


Rebuild with new/changed patches
--------------------------------

# update the patches
git pull

# rebuild KiCad
cd wherever/kicad.bzr
quilt pop -af
quilt push -a
cmake -DKICAD_TESTING_VERSION=ON .
make -j 5
make install


Rebuild with a new version of KiCad
-----------------------------------

cd wherever/kicad.bzr
quilt pop -a
bzr update
bzr update -r 3494	# if different from latest
quilt push -a
cmake -DKICAD_TESTING_VERSION=ON .
make -j 5
make install


Alternative process to uplevel patches to latest KiCad
------------------------------------------------------

git clone git@projects.qi-hardware.com:eda-tools.git

bzr branch lp:kicad
cp -a kicad kicad.<latest_kicad_rev>
cd kicad

# apply patches manually
patch --dry-run -p1 < ../eda-tools/kicad-patches/cmdline_{new,common,eeschema,pcbnew}.patch
# check with --dry-run, apply carefully, go through .rej files
# delete all .rej and .orig files

# build latest KiCad with upleveled patches
cmake -DKICAD_TESTING_VERSION=ON .
make -j 5

# test cmdline functionality
cd ../eda-tools/kicad-cmdline-testing
./kicmd_test clean
./kicmd_test test
# check that the output files look right, no crashes, no dialogs and
# that a subsequent ./kicmd_test clean will find and delete all
# expected files

./eda-tools/kicad-patches/kicad_diff.sh <latest_kicad_rev>
# check patches, move to eda-tools/kicad-patches, update doc, check
# that it applies clean, commit