random thought on quilt
aus9
Status: Assistant
Joined: 21 Sep 2008
Posts: 358
Location: Australia
Reply Quote
mods these are my online notes on quilt. I am "hiding" them here as an online note to myself but others may see what I have done, learnt etc and to assist others if possible
pkg-perl.alioth.debian.org/howto/quilt.html#quilt_for_debian_maintainers

1) I elected to create a home .quiltrc as I have a non FHS backup data partition so
contents are.......QUILT_PATCHES=/a/1/debian/patches

Next because I had trouble with my eyesight using nano in the past fixing some lintian errors because some files need exact spaces etc I chose to default to a gui text editor...for me thats menu/applicationsdebian/apps/sys/Alternative Configurator
--use gui to add leafpad ...another gremlin so try mousepad

2) link wants folder debian/patches and time to read Quilt Tutorial
www.shakthimaan.com/downloads/glv/quilt-tutorial/quilt-doc.pdf

BEST YET for examples of deb packaging
raphaelhertzog.com/2012/08/08/how-to-use-quilt-to-manage-patches-in-debian-packages/

but I start with learning quilt with easier text diff tutorial suse.de/~agruen/quilt.pdf lets try that
copy and paste the first bit of poem into a file at debian/ called Oberon.txt
:: Code ::

quilt new flower.diff
-->Patch flower.diff is now on top
quilt edit Oberon.txt


2 things must happen IMHO
(1) your preferred text editor must open and stay open at the already saved poem
(2) Oberon.txt now appears....as a copy under
debian/.pc/flower.diff

Now in open editor add the other stuff ...you are editting the ORIGINAL file and not the file that now exists in .pc....save the amended file and close editor next
:: Code ::

quilt refresh
Refreshed patch flower.diff
cat patches/flower.diff
Index: debian/Oberon.txt
===================================================================
--- debian.orig/Oberon.txt   2012-09-14 16:50:52.000000000 +0800
+++ debian/Oberon.txt   2012-09-14 16:58:02.000000000 +0800
@@ -2,3 +2,6 @@
 It fell upon a little western flower,
 Before milk-white, now purple with love’s wound,
 And girls call it love-in-idleness.
+The juice of it on sleeping eye-lids laid
+Will make a man or woman madly dote
+Upon the next live creature that it sees.


so in theory I take an old version of a file...add it to quilt with the patch name etc
- replace file contents with entirely new file in the edit mode
then refresh gives me the diff.

:: Code ::

quilt diff
Index: debian/Oberon.txt
===================================================================
--- debian.orig/Oberon.txt      2012-09-14 16:50:52.000000000 +0800
+++ debian/Oberon.txt   2012-09-14 16:58:02.000000000 +0800
@@ -2,3 +2,6 @@
 It fell upon a little western flower,
 Before milk-white, now purple with love<E2><80><99>s wound,
 And girls call it love-in-idleness.
+The juice of it on sleeping eye-lids laid
+Will make a man or woman madly dote
+Upon the next live creature that it sees.


Nope I have a gremlin after love....as one does heh heh
grrr might have to use vim

hmm will edit ....I use roxterm tried diff fonts, mousepad tried diff fonts
now change locale to us from au and see if that makes any diff

I can't diff if I have a gremlin

vi shows
:: Code ::

Yet mark’d I where the bolt of Cupid fell:
It fell upon a little western flower,
Before milk-white, now purple with love’s wound,
And girls call it love-in-idleness.
The juice of it on sleeping eye-lids laid^M
Will make a man or woman madly dote^M
Upon the next live creature that it sees.

EDIT

tried various new locales, terminal fonts, leafpad and mousepad fonts

ahh well I can use normal diff eg..ignoring if I will use this or not
:: Code ::

fldiff 14 15
gordon@sid:/a/tmp$ diff 14 15
4,5c4,5
< ####  version: 1.8.14
< ####  Date: July 30 2012
---
> ####  version: 1.8.15
> ####  Date: September 11 2012
222c222
< B_ALLOW_UPDATE='false'
---
> B_ALLOW_UPDATE='true'
419,420c419,420
< MAN_FILE_DOWNLOAD='http://inxi.googlecode.com/svn/trunk/inxi.8.gz'
< MAN_FILE_LOCATION='/usr/share/man/man8'
---
> MAN_FILE_DOWNLOAD='http://inxi.googlecode.com/svn/trunk/inxi.1.gz'
> MAN_FILE_LOCATION='/usr/share/man/man1'
1262c1262
<    local man_file_path="$MAN_FILE_LOCATION/inxi.8.gz"
---
>    local man_file_path="$MAN_FILE_LOCATION/inxi.1.gz"
1287a1288,1294
>                if [[ -f /usr/share/man/man8/inxi.8.gz ]];then
>                   print_screen_output "Updating man page location to man1."
>                   mv -f /usr/share/man/man8/inxi.8.gz /usr/share/man/man1/inxi.1.gz
>                   if [[ -n $( type -p mandb ) ]];then
>                      exec $( type -p mandb ) -q
>                   fi
>                fi


COMMENTS on a future plan

-I have an idea based on something how to patch for the update switch.
---I found I need to do both the switch and the script_self_updater
-my preinst should avoid the move of man8 to man1 need for a patch
- deb packages will not worry about svn sites as well

thats all for now my brain needs C2H6O

just found a quiltrc that mentions its a fix for shell bug (will test later)
https://www.mirbsd.org/cvs.cgi/contrib/hosted/tg/deb/dot.quiltrc?rev=HEAD

the only forum I have found so far dedicated to quilt is
forum.kernelnewbies.org/list.php?22

They need to learn some spam control!
while I wait to see if a post there lands I have cross-posted at LQ

www.linuxquestions.org/questions/showthread.php?p=4780667#post4780667
Back to top
Display posts from previous:   

All times are GMT - 8 Hours