Bug#812470: kernel-package: cannot produce debs anymore

2016-02-15 Thread Manoj Srivastava
Hi,

I had time to look into this. The basic issue is that you are
 using sudo, which is deprecated. It creates ./debian as root; but clean
 is not run as root. 

cannot unlink file for
debian/linux-headers-4.4.0+/usr/src/linux-headers-4.4.0+/include/dt-bindings/input/linux-event-codes.h:
Permission denied at /usr/bin/make-kpkg line 950.


I have now documented this in the man page and in the --targets
 execution.  If you use sudo, run sudo make-kpkg clean as well.

manoj

 --rootcmd foo
The command that provides a means of gaining super user access
(for example, `sudo' or `fakeroot') as needed by
dpkg-buildpackage's -r option. This option does not work for
three of the targets, namely, binary, binary-indep, and
binary-arch.  For those targets the entire make-kpkg command
must be run as (fake)root.


-- 
I think we're in trouble. Han Solo
Manoj Srivastava    
4096R/C5779A1C E37E 5EC5 2A01 DA25 AD20  05B6 CF48 9438 C577 9A1C


smime.p7s
Description: S/MIME cryptographic signature


Bug#812470: kernel-package: cannot produce debs anymore

2016-01-26 Thread Manoj Srivastava
Hi,

Yes, I think I broke things pretty badly. I think kernel-package
 has bitrotted a bit in the last few years, and needs some care. I am
 going to see if I can steal from the upstream  method of making debian
 packages, and move the resulting rules files to use debhelper, and get
 this back to a useable state.

manoj
-- 
We cannot do everything at once, but we can do something at once. Calvin
Coolidge
Manoj Srivastava    
4096R/C5779A1C E37E 5EC5 2A01 DA25 AD20  05B6 CF48 9438 C577 9A1C


smime.p7s
Description: S/MIME cryptographic signature


Bug#812470: kernel-package: cannot produce debs anymore

2016-01-24 Thread Ritesh Raj Sarraf
Package: kernel-package
Version: 13.016
Severity: important

It looks like the latest changes from 2016 have broken kernel-package.
It cannot produce .debs anymore.

rrs@chutzpah:~/Community/linux (stable-44)$ make-kpkg --rootcmd sudo -j4
--initrd kernel_headers kernel_image kernel_debug
cannot unlink file for
debian/linux-headers-4.4.0+/usr/src/linux-headers-4.4.0+/include/dt-bindings/input/linux-event-codes.h:
Permission denied at /usr/bin/make-kpkg line 950.
cannot restore permissions to 0120777 for
debian/linux-headers-4.4.0+/usr/src/linux-headers-4.4.0+/include/dt-bindings/input/linux-event-codes.h:
at /usr/bin/make-kpkg line 950.
cannot unlink file for
debian/linux-headers-4.4.0+/usr/src/linux-headers-4.4.0+/include/asm/asm-x86:
Permission denied at /usr/bin/make-kpkg line 950.
cannot restore permissions to 0120777 for
debian/linux-headers-4.4.0+/usr/src/linux-headers-4.4.0+/include/asm/asm-x86:
Permission denied at /usr/bin/make-kpkg line 950.
cannot unlink file for
debian/linux-image-4.4.0+-dbg/usr/lib/debug/lib/modules/4.4.0+/source:
Permission denied at /usr/bin/make-kpkg line 950.
cannot restore permissions to 0120777 for
debian/linux-image-4.4.0+-dbg/usr/lib/debug/lib/modules/4.4.0+/source:
Permission denied at /usr/bin/make-kpkg line 950.
cannot unlink file for
debian/linux-image-4.4.0+-dbg/usr/lib/debug/lib/modules/4.4.0+/build:
Permission denied at /usr/bin/make-kpkg line 950.
cannot restore permissions to 0120777 for
debian/linux-image-4.4.0+-dbg/usr/lib/debug/lib/modules/4.4.0+/build:
Permission denied at /usr/bin/make-kpkg line 950.
cannot unlink file for
debian/linux-image-4.4.0+/lib/modules/4.4.0+/source: Permission denied
at /usr/bin/make-kpkg line 950.
cannot restore permissions to 0120777 for
debian/linux-image-4.4.0+/lib/modules/4.4.0+/source: Permission denied
at /usr/bin/make-kpkg line 950.
cannot unlink file for
debian/linux-image-4.4.0+/lib/modules/4.4.0+/build: Permission denied at
/usr/bin/make-kpkg line 950.
cannot restore permissions to 0120777 for
debian/linux-image-4.4.0+/lib/modules/4.4.0+/build: Permission denied at
/usr/bin/make-kpkg line 950.
cannot remove directory for debian/stamp: Directory not empty at
/usr/bin/make-kpkg line 950.
cannot remove directory for debian: Directory not empty at
/usr/bin/make-kpkg line 950.
exec make kpkg_version=13.016 -f
/usr/share/kernel-package/ruleset/minimal.mk debian INITRD=YES
ROOT_CMD=sudo 

make[1]: Entering directory '/home/rrs/Community/linux'
1  CHK include/config/kernel.release
  CHK include/generated/uapi/linux/version.h
  CHK include/generated/utsrelease.h
  CHK include/generated/timeconst.h
  CHK include/generated/bounds.h
  CHK include/generated/asm-offsets.h
  CALLscripts/checksyscalls.sh
  CHK include/generated/compile.h
Kernel: arch/x86/boot/bzImage is ready  (#2)
make[1]: Leaving directory '/home/rrs/Community/linux'
/usr/bin/make -j4   ARCH=x86_64 \
 modules
make[1]: Entering directory '/home/rrs/Community/linux'
  CHK include/config/kernel.release
  CHK include/generated/uapi/linux/version.h
  CHK include/generated/utsrelease.h
  CHK include/generated/timeconst.h
  CHK include/generated/bounds.h
  CHK include/generated/asm-offsets.h
  CALLscripts/checksyscalls.sh
  Building modules, stage 2.
  MODPOST 4491 modules
make[1]: Leaving directory '/home/rrs/Community/linux'
COLUMNS=150 dpkg -l 'gcc*' perl dpkg 'libc6*' binutils make dpkg-dev |\
 awk '$1 ~ /[hi]i/ { printf("%s-%s\n", $2, $3) }'> debian/stamp/build/info
uname -a >> debian/stamp/build/info
echo using the compiler: >> debian/stamp/build/info
if [ -f include/generated/compile.h ]; then  \
   grep LINUX_COMPILER include/generated/compile.h | \
 sed -e 's/.*LINUX_COMPILER "//' -e 's/"$//' >> \
   debian/stamp/build/info;  \
elif [ -f include/linux/compile.h  ]; then   \
grep LINUX_COMPILER include/linux/compile.h |\
  sed -e 's/.*LINUX_COMPILER "//' -e 's/"$//' >>\
debian/stamp/build/info; \
 fi
echo done > debian/stamp/build/kernel
sudo /usr/bin/make -f ./debian/rules 
debian/stamp/binary/pre-linux-headers-4.4.0+
sudo /usr/bin/make -f ./debian/rules
debian/stamp/binary/pre-linux-image-4.4.0+
sudo /usr/bin/make -f ./debian/rules
debian/stamp/binary/pre-linux-image-4.4.0+-dbg
make: 'debian/stamp/binary/pre-linux-image-4.4.0+' is up to date.
make: 'debian/stamp/binary/pre-linux-headers-4.4.0+' is up to date.
make: 'debian/stamp/binary/pre-linux-image-4.4.0+-dbg' is up to date.



-- System Information:
Debian Release: stretch/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable'), (100, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.3.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_IN, LC_CTYPE=en_IN