Package: checkinstall
Version: 1.6.0-1
Severity: minor
Tags: patch

Hello:

I download and build the checkinstall-1.6.0-1 source package for play with it
in a Sarge environment. In Sarge I used to build my packages with
checkinstall-1.5.3-3, and for make a "good" package and have a
/usr/share/doc/pkgname doc directory, I used to change the name of the build
directory from /pkgname-x.y.z to /pkgname. With this change, the doc directory
(with the proper config in /etc/checkinstallrc, and the proper version number
in the "package values" of checkinstall) was always /usr/share/doc/pkgname
:-D.

With the "new" version, checkinstall always make the doc dir as
/usr/share/doc/pkgname-x.y.z, with the reported change and without it (see
this two examples):

WITHOUT THE CHANGE:

[EMAIL PROTECTED]:~/pruebas/flrec-0.10.1$ sudo checkinstall --install=no

checkinstall 1.6.0, Copyright 2002 Felipe Eduardo Sanchez Diaz Duran
           This software is released under the GNU GPL.

The package documentation directory ./doc-pak does not exist.
Should I create a default set of package docs?  [y]:

Preparing package documentation...OK

*****************************************
**** Debian package creation selected ***
*****************************************

This package will be built according to these values:

0 -  Maintainer: [ [EMAIL PROTECTED] ]
1 -  Summary: [ Simple audio hard-disk recorder and player (sox frontend). ]
2 -  Name:    [ flrec ]
3 -  Version: [ 0.10.1 ]
4 -  Release: [ 1 ]
5 -  License: [ GPL ]
6 -  Group:   [ checkinstall ]
7 -  Architecture: [ i386 ]
8 -  Source location: [ flrec-0.10.1 ]
9 -  Alternate source location: [  ]
10 - Requires: [  ]

Enter a number to change any of them or press ENTER to continue:

Installing with make install...

========================= Installation results ===========================
install -d /usr/local/bin /usr/local/man/man1
install -s flrec /usr/local/bin
install: setting permissions for `/usr/local/bin/flrec': No such file or
directory
install -m 644 flrec.1.gz /usr/local/share/man/man1
install: setting permissions for `/usr/local/share/man/man1/flrec.1.gz': No
such file or directory

======================== Installation successful ==========================

Copying documentation directory...
./
./LICENSE
./README

Copying files to the temporary directory...OK

Striping ELF binaries and libraries...OK

Compressing man pages...OK

Building file list...OK

Building Debian package...OK

NOTE: The package will not be installed

Erasing temporary files...OK

Deleting temp dir...OK

**********************************************************************

 Done. The new package has been saved to

 /home/martintxo/pruebas/flrec-0.10.1/flrec_0.10.1-1_i386.deb
 You can install it in your system anytime using:

      dpkg -i flrec_0.10.1-1_i386.deb

**********************************************************************

[EMAIL PROTECTED]:~/pruebas/flrec-0.10.1$ dpkg-deb -c flrec_0.10.1-1_i386.deb
drwxr-xr-x root/root         0 2006-08-17 11:52:41 ./
drwxr-xr-x root/root         0 2006-08-17 11:52:40 ./usr/
drwxr-xr-x root/root         0 2006-08-17 11:52:40 ./usr/share/
drwxr-xr-x root/root         0 2006-08-17 11:52:40 ./usr/share/doc/
drwxr-xr-x root/root         0 2006-08-17 11:52:17
./usr/share/doc/flrec-0.10.1/
-rw-r--r-- root/root      1870 2004-11-05 16:47:35
./usr/share/doc/flrec-0.10.1/LICENSE
-rw-r--r-- root/root      1206 2006-03-22 10:55:21
./usr/share/doc/flrec-0.10.1/README
drwxr-xr-x root/root         0 2006-08-17 11:52:40 ./usr/local/
drwxr-xr-x root/root         0 2006-08-17 11:52:40 ./usr/local/bin/
-rwxr-xr-x root/root    357960 2006-08-17 11:52:40 ./usr/local/bin/flrec
drwxr-xr-x root/root         0 2006-08-17 11:52:40 ./usr/local/share/
drwxr-xr-x root/root         0 2006-08-17 11:52:40 ./usr/local/share/man/
drwxr-xr-x root/root         0 2006-08-17 11:52:41 ./usr/local/share/man/man1/
-rw-r--r-- root/root      2172 2006-08-17 11:52:40
./usr/local/share/man/man1/flrec.1.gz


WHIT THE REFERED CHANGE:

[EMAIL PROTECTED]:~/pruebas/flrec$ sudo checkinstall --install=no

checkinstall 1.6.0, Copyright 2002 Felipe Eduardo Sanchez Diaz Duran
           This software is released under the GNU GPL.

The package documentation directory ./doc-pak does not exist.
Should I create a default set of package docs?  [y]:

Preparing package documentation...OK

*****************************************
**** Debian package creation selected ***
*****************************************

This package will be built according to these values:

0 -  Maintainer: [ [EMAIL PROTECTED] ]
1 -  Summary: [ Simple audio hard-disk recorder and player (sox frontend). ]
2 -  Name:    [ flrec ]
3 -  Version: [ 20060817 ]
4 -  Release: [ 1 ]
5 -  License: [ GPL ]
6 -  Group:   [ checkinstall ]
7 -  Architecture: [ i386 ]
8 -  Source location: [ flrec ]
9 -  Alternate source location: [  ]
10 - Requires: [  ]

Enter a number to change any of them or press ENTER to continue: 3
Enter new version:
>> 0.10.1

This package will be built according to these values:

0 -  Maintainer: [ [EMAIL PROTECTED] ]
1 -  Summary: [ Simple audio hard-disk recorder and player (sox frontend). ]
2 -  Name:    [ flrec ]
3 -  Version: [ 0.10.1 ]
4 -  Release: [ 1 ]
5 -  License: [ GPL ]
6 -  Group:   [ checkinstall ]
7 -  Architecture: [ i386 ]
8 -  Source location: [ flrec ]
9 -  Alternate source location: [  ]
10 - Requires: [  ]

Enter a number to change any of them or press ENTER to continue:

Installing with make install...

========================= Installation results ===========================
install -d /usr/local/bin /usr/local/man/man1
install -s flrec /usr/local/bin
install: setting permissions for `/usr/local/bin/flrec': No such file or
directory
install -m 644 flrec.1.gz /usr/local/share/man/man1
install: setting permissions for `/usr/local/share/man/man1/flrec.1.gz': No
such file or directory

======================== Installation successful ==========================

Copying documentation directory...
./
./LICENSE
./README

Copying files to the temporary directory...OK

Striping ELF binaries and libraries...OK

Compressing man pages...OK

Building file list...OK

Building Debian package...OK

NOTE: The package will not be installed

Erasing temporary files...OK

Deleting temp dir...OK

**********************************************************************

 Done. The new package has been saved to

 /home/martintxo/pruebas/flrec/flrec_0.10.1-1_i386.deb
 You can install it in your system anytime using:

      dpkg -i flrec_0.10.1-1_i386.deb

**********************************************************************

[EMAIL PROTECTED]:~/pruebas/flrec$ dpkg-deb -c flrec_0.10.1-1_i386.deb
drwxr-xr-x root/root         0 2006-08-17 11:57:37 ./
drwxr-xr-x root/root         0 2006-08-17 11:57:36 ./usr/
drwxr-xr-x root/root         0 2006-08-17 11:57:36 ./usr/share/
drwxr-xr-x root/root         0 2006-08-17 11:57:36 ./usr/share/doc/
drwxr-xr-x root/root         0 2006-08-17 11:57:12
./usr/share/doc/flrec-0.10.1/
-rw-r--r-- root/root      1870 2004-11-05 16:47:35
./usr/share/doc/flrec-0.10.1/LICENSE
-rw-r--r-- root/root      1206 2006-03-22 10:55:21
./usr/share/doc/flrec-0.10.1/README
drwxr-xr-x root/root         0 2006-08-17 11:57:36 ./usr/local/
drwxr-xr-x root/root         0 2006-08-17 11:57:36 ./usr/local/bin/
-rwxr-xr-x root/root    357960 2006-08-17 11:57:36 ./usr/local/bin/flrec
drwxr-xr-x root/root         0 2006-08-17 11:57:36 ./usr/local/share/
drwxr-xr-x root/root         0 2006-08-17 11:57:36 ./usr/local/share/man/
drwxr-xr-x root/root         0 2006-08-17 11:57:37 ./usr/local/share/man/man1/
-rw-r--r-- root/root      2172 2006-08-17 11:57:37
./usr/local/share/man/man1/flrec.1.gz



For change this behaviour, and make "good" Debian packages, now I must to
change the /usr/bin/checkinstall script. So this is the patch. It may be no
good for make rpm or Slackware packages (I don't know) but it works well for
made my Debian packages :-D:

Edit /usr/bin/checkinstall, lines 1468-1472 (the comented ones are the
original ones, and the not comented ones are my changes):

           echo "Copying documentation directory..."
#          mkdir -p "${BUILD_DIR}/${DOC_DIR}/${PKG_BASENAME}"
           mkdir -p "${BUILD_DIR}/${DOC_DIR}/${NAME}"
           (cd $DIRECTORIO_FUENTE/doc-pak;$TAR -cpf - .) |
#          (cd ${BUILD_DIR}/${DOC_DIR}/${PKG_BASENAME};$TAR -f - -xvp) 
           (cd ${BUILD_DIR}/${DOC_DIR}/${NAME};$TAR -f - -xvp) 
#          chown -R root.root "${BUILD_DIR}/${DOC_DIR}/${PKG_BASENAME}"
           chown -R root.root "${BUILD_DIR}/${DOC_DIR}/${NAME}"



Now, the build procese with checkinstall is good :-D:


[EMAIL PROTECTED]:~/pruebas/flrec-0.10.1$ sudo checkinstall --install=no

checkinstall 1.6.0, Copyright 2002 Felipe Eduardo Sanchez Diaz Duran
           This software is released under the GNU GPL.

The package documentation directory ./doc-pak does not exist.
Should I create a default set of package docs?  [y]:

Preparing package documentation...OK

*****************************************
**** Debian package creation selected ***
*****************************************

This package will be built according to these values:

0 -  Maintainer: [ [EMAIL PROTECTED] ]
1 -  Summary: [ Simple audio hard-disk recorder and player (sox frontend). ]
2 -  Name:    [ flrec ]
3 -  Version: [ 0.10.1 ]
4 -  Release: [ 1 ]
5 -  License: [ GPL ]
6 -  Group:   [ checkinstall ]
7 -  Architecture: [ i386 ]
8 -  Source location: [ flrec-0.10.1 ]
9 -  Alternate source location: [  ]
10 - Requires: [  ]

Enter a number to change any of them or press ENTER to continue:

Installing with make install...

========================= Installation results ===========================
install -d /usr/local/bin /usr/local/man/man1
install -s flrec /usr/local/bin
install: setting permissions for `/usr/local/bin/flrec': No such file or
directory
install -m 644 flrec.1.gz /usr/local/share/man/man1
install: setting permissions for `/usr/local/share/man/man1/flrec.1.gz': No
such file or directory

======================== Installation successful ==========================

Copying documentation directory...
./
./LICENSE
./README

Copying files to the temporary directory...OK

Striping ELF binaries and libraries...OK

Compressing man pages...OK

Building file list...OK

Building Debian package...OK

NOTE: The package will not be installed

Erasing temporary files...OK

Deleting temp dir...OK

**********************************************************************

 Done. The new package has been saved to

 /home/martintxo/pruebas/flrec-0.10.1/flrec_0.10.1-1_i386.deb
 You can install it in your system anytime using:

      dpkg -i flrec_0.10.1-1_i386.deb

**********************************************************************

[EMAIL PROTECTED]:~/pruebas/flrec-0.10.1$ dpkg-deb -c flrec_0.10.1-1_i386.deb
drwxr-xr-x root/root         0 2006-08-17 12:11:33 ./
drwxr-xr-x root/root         0 2006-08-17 12:11:33 ./usr/
drwxr-xr-x root/root         0 2006-08-17 12:11:33 ./usr/share/
drwxr-xr-x root/root         0 2006-08-17 12:11:33 ./usr/share/doc/
drwxr-xr-x root/root         0 2006-08-17 12:11:07 ./usr/share/doc/flrec/
-rw-r--r-- root/root      1870 2004-11-05 16:47:35
./usr/share/doc/flrec/LICENSE
-rw-r--r-- root/root      1206 2006-03-22 10:55:21
./usr/share/doc/flrec/README
drwxr-xr-x root/root         0 2006-08-17 12:11:33 ./usr/local/
drwxr-xr-x root/root         0 2006-08-17 12:11:33 ./usr/local/bin/
-rwxr-xr-x root/root    357960 2006-08-17 12:11:33 ./usr/local/bin/flrec
drwxr-xr-x root/root         0 2006-08-17 12:11:33 ./usr/local/share/
drwxr-xr-x root/root         0 2006-08-17 12:11:33 ./usr/local/share/man/
drwxr-xr-x root/root         0 2006-08-17 12:11:33 ./usr/local/share/man/man1/
-rw-r--r-- root/root      2172 2006-08-17 12:11:33
./usr/local/share/man/man1/flrec.1.gz


That's all. Thanks in advance for fix this issue, and for the great work in
the Debian distribution. Exuse my bad english (I'm a spanish spoker), and this
looong post. Greetings. Martintxo.


-- System Information:
Debian Release: 3.1
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)
Kernel: Linux 2.4.20-ck7
Locale: LANG=eu_ES, LC_CTYPE=eu_ES (charmap=ISO-8859-1)

Versions of packages checkinstall depends on:
ii  file                        4.12-1       Determines file type using
"magic"
ii  findutils                   4.1.20-6     utilities for finding
files--find,
ii  libc6                       2.3.2.ds1-22 GNU C Library: Shared libraries
an

-- no debconf information



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to