Re: Debian/Ubuntu patches

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



[ Please keep mailing list on cc otherwise might get lost or deleted
  in personal mails, thanks. ]

On Tue, Nov 09, 2010 at 02:51:16PM +0100, Jon Ander Hernandez wrote:
> 2010/11/9 maximilian attems <max@xxxxxxx>:
> > On Tue, Nov 09, 2010 at 12:11:58PM +0100, Jon Ander Hernandez wrote:
> >> diff -urN dracut/dracut-postinst.d dracut-007/dracut-postinst.d
> >> --- dracut/dracut-postinst.d  1970-01-01 01:00:00.000000000 +0100
> >> +++ dracut-007/dracut-postinst.d      2010-10-21 02:49:45.714564995 +0200
> >> @@ -0,0 +1,4 @@
> >> +#!/bin/bash
> >> +
> >> +version=$1
> >> +dracut-update-initramfs -c -k ${version}
> >
> > please have a look at /etc/kernel/postinst.d/initramfs-tools this
> > is far from complete.
> 
> Ops, I'm sorry I didn't know about those files, I wrote my scripts
> from scratch. I will complete them.

ok cool, if you have questions for them please just ask on mailinglist.

the redirect to stderr is needed as linux images might use debconf.
 
 
> >> - Create the man files when building the package. Make
> >> dpkg-buildpackage execute make all, instead of just make.
> >> The override_dh_auto_test line, prevents dpkg-buildpackage from
> >> executing make test.
> >>
> >> diff -urN dracut/debian/rules dracut-007/debian/rules
> >> --- dracut/debian/rules       2010-08-09 16:13:51.000000000 +0200
> >> +++ dracut-007/debian/rules   2010-10-21 02:49:45.714564995 +0200
> >> @@ -1,3 +1,10 @@
> >>  #!/usr/bin/make -f
> >>
> >> -include /usr/share/cdbs/1/rules/debhelper.mk
> >> +%:
> >> +     dh $@
> >> +
> >> +override_dh_auto_build:
> >> +     dh_auto_build -- all
> >> +
> >> +override_dh_auto_test:
> >> +
> >
> > the changelog vor this change is very confusing,
> > essentialy you change here from a cdbs source package to a dh one.
> 
> What I'm trying to do is to avoid this error :
> 
> dh_installman -pdracut
> dracut.8: No such file or directory at /usr/bin/dh_installman line 127.
> make: *** [binary-install/dracut] Error 2
> dpkg-buildpackage: error: fakeroot debian/rules binary gave error exit status 2
> 
> 
> From what I understand (I don't have much experience with debian
> packages), dpkg executes "make binary", which doesn't create the man
> files. So I found that using dh and overriding the dh_auto_build I
> could get it to call "make all" instead.

ufff, please look at b5c928d159623f617f872323b7064ebfbf19a269 from
initramfs-tools for a similar switch, you need to fix the control
appropriately:
http://git.debian.org/?p=kernel/initramfs-tools.git;a=commit;h=b5c928d159623f617f872323b7064ebfbf19a269


-- 
maks
--
To unsubscribe from this list: send the line "unsubscribe initramfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Kernel]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux SCSI]

  Powered by Linux