Re: Re: Specifying %{variable} in control file for use in post inst?

2011-06-11 Thread Amit Raj Gupta
Hi, I have a compiled kernel module for the specific kernel version and I want to create a deb package for it. I want to run "depmod -aeF /boot/System.map-$kvers $kvers" in postinst script. How can I define kvers in control file and access it in postinst script? I am using cons to compile the k

Re: Specifying %{variable} in control file for use in post inst?

2010-04-30 Thread Thomas Goirand
Ignacio Valdes wrote: > rpm doesn't. I am going through the joy of trying to reconcile the two > systems so as to not have two divergent code bases as much as > possible. > > -- IV > And I can't believe that any policy for any RPM based distro is advising to print such useless information. IMHO,

Re: Specifying %{variable} in control file for use in post inst?

2010-04-30 Thread Bernhard R. Link
* Ignacio Valdes [100430 18:04]: > rpm doesn't. I am going through the joy of trying to reconcile the two > systems so as to not have two divergent code bases as much as > possible. Sorry to say it that harsh: I doubt anyone here will be able to help you. We are focused on doing high-quality Debi

Re: Specifying %{variable} in control file for use in post inst?

2010-04-30 Thread Ignacio Valdes
rpm doesn't. I am going through the joy of trying to reconcile the two systems so as to not have two divergent code bases as much as possible. -- IV On Fri, Apr 30, 2010 at 9:57 AM, Goswin von Brederlow wrote: >> >> echo "The package: %{Package}-%{Version} is now installed." >> >> How would one

Re: Specifying %{variable} in control file for use in post inst?

2010-04-30 Thread Kris Deugau
Ignacio Valdes wrote: Required to produce versions for both rpm and deb. No introspection means not easy to convert this from rpm to deb which is where this started. This would make it much easier to produce both deb and rpm versions if it has the ability to introspect those variables. If all

Re: Specifying %{variable} in control file for use in post inst?

2010-04-30 Thread Goswin von Brederlow
Ignacio Valdes writes: > On Fri, Apr 30, 2010 at 6:45 AM, Thomas Goirand > > To my experience, it's a lot more easy to be able to maintain BOTH the > rpm >> and the Debian package rather than just porting from one to another. If you >> want to avoid redundancy and want to factor things a bit. Ma

Re: Specifying %{variable} in control file for use in post inst?

2010-04-30 Thread Boyd Stephen Smith Jr.
On Friday 30 April 2010 07:48:59 Ignacio Valdes wrote: > That is pretty much what I have been doing. But how about something as > simple as accomplishing this in postinst using the control file > variables? > > echo "The package: %{Package}-%{Version} is now installed." > > How would one accompli

Re: Specifying %{variable} in control file for use in post inst?

2010-04-30 Thread Ignacio Valdes
On Fri, Apr 30, 2010 at 6:45 AM, Thomas Goirand > To my experience, it's a lot more easy to be able to maintain BOTH the rpm > and the Debian package rather than just porting from one to another. If you > want to avoid redundancy and want to factor things a bit. Maybe you could > suggest some modi

Re: Specifying %{variable} in control file for use in post inst?

2010-04-30 Thread Thomas Goirand
Ignacio Valdes wrote: On Thu, Apr 29, 2010 at 9:03 PM, Thomas Goirand wrote: Ignacio Valdes wrote: It is a very complex, large package. Does anyone know the mechanics of doing introspection in postinst for the control file defined variables? Exactl

Re: Specifying %{variable} in control file for use in post inst?

2010-04-29 Thread Russ Allbery
Ignacio Valdes writes: > So there is no cross-compatibility between debian control file and rpm > spec file for introspecting their respective package variables? There is no cross-compatibility between Debian package building and RPMs at all. They are not even remotely similar systems. But yes

Re: Specifying %{variable} in control file for use in post inst?

2010-04-29 Thread Ignacio Valdes
So there is no cross-compatibility between debian control file and rpm spec file for introspecting their respective package variables? -- IV -- To UNSUBSCRIBE, email to debian-mentors-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive:

Re: Specifying %{variable} in control file for use in post inst?

2010-04-29 Thread Ignacio Valdes
On Thu, Apr 29, 2010 at 9:03 PM, Thomas Goirand wrote: > Ignacio Valdes wrote: >> It is a very complex, large package. >> Does anyone know the mechanics of doing introspection in postinst for >> the control file defined variables? >> > Exactly why the postinst generation method that has been given

Re: Specifying %{variable} in control file for use in post inst?

2010-04-29 Thread Thomas Goirand
Ignacio Valdes wrote: > It is a very complex, large package. > Does anyone know the mechanics of doing introspection in postinst for > the control file defined variables? > Exactly why the postinst generation method that has been given as a (pretty good) solution would not work? Thomas -- To

Re: Specifying %{variable} in control file for use in post inst?

2010-04-29 Thread Ignacio Valdes
On Thu, Apr 29, 2010 at 5:11 PM, Russ Allbery wrote: > Ignacio Valdes writes: >> On Thu, Apr 29, 2010 at 3:55 PM, Russ Allbery wrote: >>> Ignacio Valdes writes: > So what is the usual method of accessing control file values such as Package: in postinst? > >>> Generally, you don't, sin

Re: Specifying %{variable} in control file for use in post inst?

2010-04-29 Thread Russ Allbery
Ignacio Valdes writes: > On Thu, Apr 29, 2010 at 3:55 PM, Russ Allbery wrote: >> Ignacio Valdes writes: >>> So what is the usual method of accessing control file values such as >>> Package: in postinst? >> Generally, you don't, since generally there's no reason to do so.  I >> can't say I've e

Re: Specifying %{variable} in control file for use in post inst?

2010-04-29 Thread Ignacio Valdes
On Thu, Apr 29, 2010 at 3:55 PM, Russ Allbery wrote: > Ignacio Valdes writes: > >> So what is the usual method of accessing control file values such as >> Package: in postinst? > > Generally, you don't, since generally there's no reason to do so.  I can't > say I've ever had any reason to want to

Re: Specifying %{variable} in control file for use in post inst?

2010-04-29 Thread Russ Allbery
Ignacio Valdes writes: > So what is the usual method of accessing control file values such as > Package: in postinst? Generally, you don't, since generally there's no reason to do so. I can't say I've ever had any reason to want to do that in any of the Debian packages I maintain. If you do ne

Re: Specifying %{variable} in control file for use in post inst?

2010-04-29 Thread Ignacio Valdes
So what is the usual method of accessing control file values such as Package: in postinst? What is the usual method of accessing user-defined control file values such as XC-branding in postinst? I would have presume that using variables such as %{Package} or %{branding} in postinst would have don

Re: Specifying %{variable} in control file for use in post inst?

2010-04-25 Thread Goswin von Brederlow
Ignacio Valdes writes: > Hi, I want to define a variable such as package_initials in control > file and be able to access %{package_initials} in postinst file. Do I > define it in control file as: > > XC-package_initials: the_initials > > or some other way? > > -- IV mv debian/postinst debian/po

Re: Specifying %{variable} in control file for use in post inst?

2010-04-24 Thread Ignacio Valdes
Have to package two .deb flavors as well as two .rpm versions. Can do this with rpm using .rpmmacros but looking for the equivalent in .deb. Is this not possible? The manuals seem to indicate that it is but not exactly how. -- IV On Sat, Apr 24, 2010 at 10:37 PM, Paul Wise wrote: > Why do you wa

Re: Specifying %{variable} in control file for use in post inst?

2010-04-24 Thread Paul Wise
Why do you want to do this? -- bye, pabs http://wiki.debian.org/PaulWise -- 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/r2ke13a36b31004242037j5fcea87r1cb00d808f

Specifying %{variable} in control file for use in post inst?

2010-04-24 Thread Ignacio Valdes
Hi, I want to define a variable such as package_initials in control file and be able to access %{package_initials} in postinst file. Do I define it in control file as: XC-package_initials: the_initials or some other way? -- IV -- To UNSUBSCRIBE, email to debian-mentors-requ...@lists.debian.or