[med-svn] [Debian Wiki] Update of "DebianMed" by CharlesPlessy
Debian Wiki
debian-www at lists.debian.org
Mon Mar 21 10:20:29 UTC 2011
Dear Wiki user,
You have subscribed to a wiki page or wiki category on "Debian Wiki" for change notification.
The "DebianMed" page has been changed by CharlesPlessy:
http://wiki.debian.org/DebianMed?action=diff&rev1=86&rev2=87
a. a. Check out the source from svn. Change directory to the folder containing the debian'' directory and the '''merge''' mode of subversion. From the man page: "With this method, only the debian directory (and maybe some other modified files) are stored in the repository. At build time, the contents of the svn trunk are copied to the extracted tarball contents (and can overwrite parts of it). To choose this working model, set the svn property mergeWithUpstream on the Debian directory: {{{svn propset mergeWithUpstream 1 debian}}}" ''
a. If svn-b'' (see above aliases) does not find the orig.tar.gz, then help with with setting the origDir. For best compatibility with the [[uscan]] auto-downloader from the [[devscripts]] package, it is suggested to specify the folder to folders above your package's debian folder. From within the trunk folder execute: {{{echo "origDir=.." >> .svn/deb-layout}}}. To retrieve the latest version of the package, if the debian/watch file is correctly set, then execute "uscan" as usual. ''
-
- === Preparing new packages manually ===
-
- a. Check out debian-med/trunk, cd to debian-med/trunk/packages
- a. Create new project folder with {{{
- svn mkdir projectname
- svn mkdir projectname/trunk
- }}}
- a. Put orig.tar.gz in place {{{
- mv some_version.orig.tar.gz projectname
- }}}
- a. Inform svn-buildpackage about the location of the orig.tar.gz {{{
- echo "origDir=.." > projectname/trunk/.svn/deb-layout
- }}}
- a. Untar source tree for development {{{
- cd projectname
- tar xzvf some_version.orig.tar.gz
- cd some-version # entering the unpackaged source tree
- if [ ! -d debian ]; then dh_make ; fi
- mv debian ../trunk
- ln -s ../trunk/debian .
- # continue development
- fakeroot ./debian/rules binary
- # until it works, finally
- cd ..
- }}}
- a. debian directory is the only thing that is stored in svn, to be merged with upstream {{{
- svn propset mergeWithUpstream 1 trunk/debian
- }}}
- a. see if things can be compiled via svn-buildpackage {{{
- cd trunk
- svn-buildpackage -rfakeroot -uc -us
- }}}
- a. check build {{{
- lintian ../build-area/*changes
- }}}
-
-
-
== References ==
When using Debian or Ubuntu for your work, you may find it appropriate to cite any of the following publications:
More information about the debian-med-commit
mailing list