summaryrefslogtreecommitdiff
path: root/lang/gcc/files/UPDATE.txt
blob: 8b1e9ba93004d987566f1f42c30748694674f0ad (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# $NetBSD: UPDATE.txt,v 1.3 2002/10/05 20:42:37 dmcmahill Exp $

This file documents the steps taken to update this package.

=)  Extract sources

  make clean && make extract

=)  Copy to .orig directory excluding CVS directories

  mkdir -p /some/tmp/dir/gcc-2.95.3.orig
  cd work/gcc-2.95.3
  tar --exclude CVS -cvf - gcc include lib{f2c,iberty,io,stdc++} texinfo | ( cd /some/tmp/dir/gcc-2.95.3.orig ; tar -xf - )

=)  Update in-tree gcc sources

  cd /usr/src/gnu/dist/toolchain && cvs update

=)  Copy over the new sources excluding CVS directories

  mkdir /some/tmp/dir/gcc-2.95.3
  cd /usr/src/gnu/dist/toolchain
  tar --exclude CVS -cvf - gcc include lib{f2c,iberty,io,stdc++} texinfo | ( cd /some/tmp/dir/gcc-2.95.3 ; tar -xf - )

=)  Create patch file

  mkdir /some/tmp/dir/foo
  cd /some/tmp/dir/foo && diff -u2 -r -N ../gcc-2.95.3.orig ../gcc-2.95.3  > gcc-2.95.3-diff-`date '+%Y-%m-%d'`
  gzip gcc-2.95.3-diff-`date '+%Y-%m-%d'`

=) copy the patch file to your distfiles directory, and 'make makesum'.  Now proceed with
   creating any pkgsrc specific patches for gcc, placing them in patches/ as usual.

=) when its all tested and working, upload the patchfile
   to ftp.netbsd.org:/pub/NetBSD/packages/distfiles/LOCAL_PORTS/

=) go to pkgsrc/lang/gcc-ssp and do a 'make mps'.  Verify that you have not broken that pkg.

Hopefully this procedure will make maintaining this package a little easier.