Help!

Bug#398533: tp-smapi packaging


Post new topic   General Reply to Topic (not reply to a specific post)    Forums Home -> Bugs Dist RSS
Next:  Bug#288806: WINNING NOTIFICATION RESULT ( CONGRAT..  
Author Message
Joe Nahmias
External


Since: Apr 08, 2004
Posts: 30



PostPosted: Mon Jul 30, 2007 2:12 am    Post subject: Bug#398533: tp-smapi packaging
Archived from groups: linux>debian>bugs>dist (more info?)

Hello Evgeni,

Well, I wish I had checked WNPP a few hours earlier... I ended up
building my own tp-smapi kernel module package... oh well, I have only
myself to blame... serves me right...

In any case, are you still interested in maintaining a kernel module
source package for this? If so, I'd be happy to take a look at your
package and sponsor you.

Let me know,
--Joe


--
To UNSUBSCRIBE, email to debian-bugs-dist-REQUEST.TakeThisOut@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster.TakeThisOut@lists.debian.org
Back to top
Joe Nahmias
External


Since: May 16, 2007
Posts: 4



PostPosted: Fri Aug 10, 2007 2:11 am    Post subject: Bug#398533: tp-smapi packaging [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On Thu, Aug 09, 2007 at 07:22:36PM +0200, Evgeni Golov wrote:
> Yeah, I've just finished it. You can get it here:
> http://mentors.debian.net/debian/pool/main/t/tp-smapi/tp-smapi_0.32-1.dsc
>
> I think it is in good shape, builds fine here, so you are welcome to
> upload it, if you think it is okay too.

OK, I've a number of comments; here's round one:

- The _source_ package should not require kernel >= 2.6.19 in order to
build it. You will have to patch the Makefile to disable that check
when building the source package, but require it during the build of
the binary module packages.

- Your use of dpatch in the clean target is incorrect. It does not
allow for using a patched clean target within the Makefile. You
should have the following instead:

clean: clean-patched unpatch
clean-patched:
dh_testdir
dh_testroot
# etc....
$(MAKE) clean
dh_clean

- Also, on the same topic, you should not be ignoring the error when
the Makefile is not present -- it is not generated by autoconf, so
if it's missing there's a problem!

- Your second rules file is mis-named. It should probably be called
rules.modules since it is the debian/rules that used to build the
modules packages.

- It would be better if you could combine the two rules files that you
have so that there is only one place to make changes when necessary.
This shouldn't be too difficult since they will call different
targets depending on whether it's a source or module build.

- In both rules you don't export CFLAGS, so the noopt handling in
DEB_BUILD_OPTIONS will not make it to the actual compiles.

- In README.Debian, the third option should mention that the user will
need to manually compile the module -- not just unpack & install.

- The source package does not need to depend on make and bzip2,
mod-ass will pull those in for you.

- Using dpkg-divert is the wrong solution for kernel modules. You
should use the updates sub-dir to override the regular hdaps module.
See, for example, the alsa-source package.

- You should run `depmod -a` in the postinst and postrm scripts of the
module packages so that the modules can be found / removed by
modprobe.

- I'm not sure what debian/tp-smapi-source.links is supposed to
accomplish. Can you explain this to me.

Well, that's enough for one round. Let me know when you've fixed up and
uploaded a 0.32-2 package and I'll take another look.

--Joe

PS - You might want to take a look at the package I created for some
tips. It's available from http://people.debian.org/~jello/.


--
To UNSUBSCRIBE, email to debian-bugs-dist-REQUEST.RemoveThis@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster.RemoveThis@lists.debian.org
Back to top
Display posts from previous:   
Post new topic   General Reply to Topic (not reply to a specific post)    Forums Home -> Bugs Dist All times are: Eastern Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum