editing former patches

2010-06-04 Thread Mihamina Rakotomandimby
Manao ahoana, Hello, Bonjour,

Let's consider the package slim, from here: 
https://launchpad.net/ubuntu/lucid/+source/slim/1.3.1-4/+files/

When I get it with apt-get source the untared folder is already
patched.

I dont like the way it's patched because it defaults to the Debian
theme. And also, most of the patch is the Debian theme 
(debian-moreblue-orbit).

I would like to build a separate package for themes and keep the other
patches, which are, I think, necessary:
- adding the debian/ directory
- patching the original code for various reasons

How to? Would you please help me?

Misaotra, Thanks, Merci.

-- 
   Architecte Informatique chez Blueline/Gulfsat:
Administration Systeme, Recherche  Developpement
 +261 3456 000 19


-- 
To UNSUBSCRIBE, email to debian-mentors-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20100604144432.60d1e...@pbmiha.malagasy.com



Re: editing former patches

2010-06-04 Thread Joachim Wiedorn
Mihamina Rakotomandimby miham...@gulfsat.mg wrote on 2010-06-04 14:44:
 When I get it with apt-get source the untared folder is already
 patched.

This is the new behaviour with Debian's source format 3.0 (quilt).

 I would like to build a separate package for themes and keep the other
 patches, which are, I think, necessary:
 - adding the debian/ directory
 - patching the original code for various reasons
 
 How to? Would you please help me?

Simple use this command:
  dpkg-source -x --skip-patches  foo.dsc

Then the patches will no more executed.


Fondest regards,
 Joachim Wiedorn



signature.asc
Description: PGP signature


Re: editing former patches

2010-06-04 Thread Niels Thykier
Joachim Wiedorn wrote:
 Mihamina Rakotomandimby miham...@gulfsat.mg wrote on 2010-06-04 14:44:
 When I get it with apt-get source the untared folder is already
 patched.
 
 This is the new behaviour with Debian's source format 3.0 (quilt).
 

Nope, the slim package referred to is a 1.0 package. From what I can
tell (but I did not dig too deep) the theme is put in to the debian/
part, not sure if the build part includes it from there or not (I never
looked up the debian/rules).

 I would like to build a separate package for themes and keep the other
 patches, which are, I think, necessary:
 - adding the debian/ directory
 - patching the original code for various reasons

 How to? Would you please help me?
 
 Simple use this command:
   dpkg-source -x --skip-patches  foo.dsc
 
 Then the patches will no more executed.
 
 
 Fondest regards,
  Joachim Wiedorn
 

~Niels



signature.asc
Description: OpenPGP digital signature


Re: editing former patches

2010-06-04 Thread Joachim Wiedorn
Niels Thykier ni...@thykier.net wrote on 2010-06-04 14:46:
 Nope, the slim package referred to is a 1.0 package. From what I can
 tell (but I did not dig too deep) the theme is put in to the debian/
 part, not sure if the build part includes it from there or not (I never
 looked up the debian/rules).

No I have looked into the package. 
 
The themes can be found in the debian directory as: 
 - debian-moreblue.shar
 - debian-moreblue-orbit.shar
Both files are bash-files and they will be executed by debian/rules.
Only the theme text04 theme is inside the original source
(slim_1.3.1.orig.tar.gz)


Fondest regards,
 Joachim Wiedorn



signature.asc
Description: PGP signature


Re: editing former patches

2010-06-04 Thread Mihamina Rakotomandimby
 Joachim Wiedorn ad_deb...@joonet.de :
Simple use this command:
  dpkg-source -x --skip-patches  foo.dsc

This will skip all the patches. It helps me.
Now, how to split the diff.gz in order to select the only patches I
want?

Is there a tool for that?

-- 
   Architecte Informatique chez Blueline/Gulfsat:
Administration Systeme, Recherche  Developpement
 +261 3456 000 19


-- 
To UNSUBSCRIBE, email to debian-mentors-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20100604171039.4da16...@pbmiha.malagasy.com



Re: editing former patches

2010-06-04 Thread Joachim Wiedorn
Mihamina Rakotomandimby miham...@gulfsat.mg wrote on 2010-06-04 17:10:
 This will skip all the patches. It helps me.
 Now, how to split the diff.gz in order to select the only patches I
 want?

For this work I recommend to make the usual unpack:

dpkg-source -x --skip-patches  foo.dsc   (for format 3.0)
  or
dpkg-source -x foo.dsc  (for format 1.0)

and then use the both theme files inside debian directory:
 - debian/debian-moreblue.shar
 - debian/debian-moreblue-orbit.shar

Start these script files as shown in debian/rules:
  sh debian/debian-moreblue.shar
  sh debian/debian-moreblue-orbit.shar

The result should be:
 - debian/debian-moreblue/
 - debian/debian-moreblue-orbit/

Then you need to change a line in slim.conf (see one patch file):
 # current theme, use comma separated list to specify a set to 
 # randomly choose from
-current_theme   default
+current_theme   debian-moreblue-orbit


Fondest regards,
 Joachim Wiedorn



signature.asc
Description: PGP signature


Re: editing former patches

2010-06-04 Thread Mihamina Rakotomandimby
 Joachim Wiedorn ad_deb...@joonet.de :
Mihamina Rakotomandimby miham...@gulfsat.mg wrote on 2010-06-04
17:10:
 This will skip all the patches. It helps me.
 Now, how to split the diff.gz in order to select the only patches I
 want?
and then use the both theme files inside debian directory:
 - debian/debian-moreblue.shar
 - debian/debian-moreblue-orbit.shar
Start these script files as shown in debian/rules:
  sh debian/debian-moreblue.shar
  sh debian/debian-moreblue-orbit.shar
The result should be:
 - debian/debian-moreblue/
 - debian/debian-moreblue-orbit/
-current_theme   default
+current_theme   debian-moreblue-orbit

Hum... Joachim, I just want to do the opposite:
- remove patches related to the debian-more-blue
- keep all remaining patches


-- 
   Architecte Informatique chez Blueline/Gulfsat:
Administration Systeme, Recherche  Developpement
 +261 3456 000 19


-- 
To UNSUBSCRIBE, email to debian-mentors-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20100604181118.2f72b...@pbmiha.malagasy.com



Re: editing former patches

2010-06-04 Thread Rogério Brito
On Jun 04 2010, Mihamina Rakotomandimby wrote:
 This will skip all the patches. It helps me.
 Now, how to split the diff.gz in order to select the only patches I
 want?

Have a look at filterdiff, lsdiff and friends. And, for the love of
$DEITY, split the patches in sets that make things like this easier, if
they are not split yet.

And contribute back what you've done.


Regards,

-- 
Rogério Brito : rbr...@{ime.usp.br,gmail.com} : GPG key 1024D/7C2CAEB8
http://rb.doesntexist.org : Packages for LaTeX : algorithms.berlios.de
DebianQA: http://qa.debian.org/developer.php?login=rbrito%40ime.usp.br


-- 
To UNSUBSCRIBE, email to debian-mentors-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20100604213630.ga16...@ime.usp.br