Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 27

Thread: problem with checkinstall

  1. #11
    Join Date
    Feb 2009
    Location
    Spain
    Posts
    25,547

    Default Re: problem with checkinstall

    On 2013-07-22 19:06, jony127 wrote:


    > Code:
    > --------------------
    > Creando la lista de archivos...OK
    > /usr/sbin/checkinstall: línea 2306: [: RPM: se esperaba una expresión entera
    > /usr/sbin/checkinstall: línea 2314: [: RPM: se esperaba una expresión entera
    > /usr/sbin/checkinstall: línea 2334: [: RPM: se esperaba una expresión entera
    >
    > Creando paquete RPM... FAILED!
    >
    > *** La creación del paquete falló
    > --------------------


    Those lines -- assuming you have the same opeSUSE version as I have,
    which I do not know because you do not say -- are:

    Code:
    
    > if [ $RPM_MAJOR_VERSION -eq 4 -a $RPM_PATCH_LEVEL -lt 3 ]; then
    >    RPM_TARGET_FLAG="--target="
    > else
    >    RPM_TARGET_FLAG="--target "
    > fi
    
    ....
    
    > if [ $RPM_MAJOR_VERSION -eq 4 ]; then
    >    RPMBUILD="rpmbuild"
    > else
    >    RPMBUILD="rpm"
    > fi
    
    ....
    
    > if ! [ "$RPMSOURCEDIR" ]; then
    >    if [ $RPM_MAJOR_VERSION -eq 3 -a $RPM_PATCH_LEVEL -ge 3 -o $RPM_MAJOR_VERSION -gt 3 ]; then
    >       RPMSOURCEDIR="$(rpm --eval=%_topdir)"
    >    else
    >       RPMSOURCEDIR="NOT-FOUND"
    >       for directory in packages OpenLinux redhat RedHat rpm RPM "" ; do
    >          [ -d /usr/src/${directory}/SOURCES ] && RPMSOURCEDIR="/usr/src/${directory}"
    >       done
    >    fi
    > fi
    So you should verify what that line is really getting.

    --
    Cheers / Saludos,

    Carlos E. R.
    (from 12.3 x86_64 "Dartmouth" at Telcontar)

  2. #12

    Default Re: problem with checkinstall

    A few thoughts:

    1) Is the integer expression expected error similar to this issue where the problem was with the sources dir?
    Mandriva - bugs - [Bug 47290] checkinstall, NEW: [checkinstall]NOT-FOUND has no SOURCES directory.

    2) As suggested there try running with checkinstall -d2 for debug output

    3) I've found many nebulous errors I've encountered with checkinstall can be circumvented by doing a make install and then running checkinstall. Yes, it's backwards. But often missing paths get created during make install and then checkinstall can actually run. You can then install the rpm over the top of the make install.

    4) Checkinstall seems to have lots of issues. An alternative way to make packages is fpm:
    https://github.com/jordansissel/fpm/wiki

  3. #13
    Join Date
    Feb 2009
    Location
    Spain
    Posts
    25,547

    Default Re: problem with checkinstall

    On 2013-07-23 03:56, LewsTherinTelemon wrote:

    > 3) I've found many nebulous errors I've encountered with checkinstall
    > can be circumvented by doing a make install and then running
    > checkinstall. Yes, it's backwards. But often missing paths get created
    > during make install and then checkinstall can actually run. You can then
    > install the rpm over the top of the make install.


    Me too.

    > 4) Checkinstall seems to have lots of issues. An alternative way to
    > make packages is fpm: https://github.com/jordansissel/fpm/wiki


    Mmm? I will have to look at it...

    --
    Cheers / Saludos,

    Carlos E. R.
    (from 11.4, with Evergreen, x86_64 "Celadon" (Minas Tirith))

  4. #14
    Join Date
    Feb 2009
    Location
    Spain
    Posts
    25,547

    Default Re: problem with checkinstall

    On 2013-07-22 21:36, jony127 wrote:

    > *** The "rpmbuild" program is not in your PATH!


    That is your problem, install it.

    --
    Cheers / Saludos,

    Carlos E. R.
    (from 11.4, with Evergreen, x86_64 "Celadon" (Minas Tirith))

  5. #15

    Default Re: problem with checkinstall

    Quote Originally Posted by robin_listas View Post
    On 2013-07-22 21:36, jony127 wrote:

    > *** The "rpmbuild" program is not in your PATH!


    That is your problem, install it.
    The package is called "rpm-build".

  6. #16

    Default Re: problem with checkinstall

    Before he had installed rpm-build but checkinstall did not work. If I run checkinstall just gives me the same errors.

    Example:

    Code:
    OpenSuse:/home/jonatan/compilar/oxygen-transparent/build # checkinstall
    
    checkinstall 1.6.2, Copyright 2002 Felipe Eduardo Sanchez Diaz Duran
               Este software es distribuído de acuerdo a la GNU GPL
    
    
    The package documentation directory ./doc-pak does not exist. 
    Should I create a default set of package docs?  [y]: n
    
    Por favor escoge el método de empaquetado que quieres usar.
    ¿Slackware [S], RPM [R] o Debian [D]? R
    
    
    Por favor escribe una descripción para el paquete.
    Termina tu descripcion con una linea vacia o con EOF.
    >> 
    
    **************************************
    **** RPM package creation selected ***
    **************************************
    
    Este paquete será creado de acuerdo a estos valores:
    
    1 -  Summary: [ Package created with checkinstall 1.6.2 ]
    2 -  Name:    [ build ]
    3 -  Version: [ 20130723 ]
    4 -  Release: [ 1 ]
    5 -  License: [ GPL ]
    6 -  Group:   [ Applications/System ]
    7 -  Architecture: [ x86_64 ]
    8 -  Source location: [ build ]
    9 -  Alternate source location: [  ]
    10 - Requires: [  ]
    11 - Provides: [ build ]
    
    Introduce un número para cambiar algún dato u oprime ENTER para continuar:2
    Introduce el nuevo nombre:
    >> oxygen-transparent
    
    Este paquete será creado de acuerdo a estos valores:
    
    1 -  Summary: [ Package created with checkinstall 1.6.2 ]
    2 -  Name:    [ oxygen-transparent ]
    3 -  Version: [ 20130723 ]
    4 -  Release: [ 1 ]
    5 -  License: [ GPL ]
    6 -  Group:   [ Applications/System ]
    7 -  Architecture: [ x86_64 ]
    8 -  Source location: [ build ]
    9 -  Alternate source location: [  ]
    10 - Requires: [  ]
    11 - Provides: [ build ]
    
    Introduce un número para cambiar algún dato u oprime ENTER para continuar:
    
    Installing with make...Installing with install...
    
    ====================== Resultados de la instalación  =====================
    [  0%] Built target oxygentransparentstyle_automoc
    [  9%] Built target oxygentransparentstyle
    [  9%] Built target oxygentransparentstyleconfig_automoc
    [ 20%] Built target oxygentransparentstyleconfig
    [ 20%] Built target kwin3_oxygen_transparent_automoc
    [ 29%] Built target kwin3_oxygen_transparent
    [ 29%] Built target kwin_oxygen_transparent_config_automoc
    [ 41%] Built target kwin_oxygen_transparent_config
    [ 41%] Built target oxygen_transparent_automoc
    [ 88%] Built target oxygen_transparent
    [ 88%] Built target kstyle_oxygen_transparent_config_automoc
    [ 97%] Built target kstyle_oxygen_transparent_config
    [ 97%] Built target oxygen-transparent-settings_automoc
    [100%] Built target oxygen-transparent-settings
    Install the project...
    -- Install configuration: "release"
    -- Up-to-date: /usr/lib64/liboxygentransparentstyle.so.4.10.5
    -- Up-to-date: /usr/lib64/liboxygentransparentstyle.so.4
    -- Up-to-date: /usr/lib64/liboxygentransparentstyle.so
    -- Up-to-date: /usr/lib64/liboxygentransparentstyleconfig.so.4.10.5
    -- Up-to-date: /usr/lib64/liboxygentransparentstyleconfig.so.4
    -- Up-to-date: /usr/lib64/liboxygentransparentstyleconfig.so
    -- Up-to-date: /usr/lib64/kde4/kwin3_oxygen_transparent.so
    -- Up-to-date: /usr/share/kde4/apps/kwin/oxygentransparentclient.desktop
    -- Up-to-date: /usr/lib64/kde4/kwin_oxygen_transparent_config.so
    -- Up-to-date: /usr/lib64/kde4/plugins/styles/oxygen_transparent.so
    -- Up-to-date: /usr/share/kde4/apps/kstyle/themes/oxygen_transparent.themerc
    -- Up-to-date: /usr/lib64/kde4/kstyle_oxygen_transparent_config.so
    -- Up-to-date: /usr/bin/oxygen-transparent-settings
    
    ========================== Instalación exitosa ===========================
    
    Some of the files created by the installation are inside the home directory: /home
    
    You probably don't want them to be included in the package.
    ¿Quieres que los liste para tí? [n]: 
    ¿Debo excluirlos del paquete (Decir que sí es una buena idea) [n]: yes
    
    Copiando los archivos al directorio temporal...OK
    
    Stripping ELF binaries and libraries...OK
    
    Comprimiendo las páginas de manual...OK
    
    Creando la lista de archivos...OK
    /usr/sbin/checkinstall: línea 2306: [: RPM: se esperaba una expresión entera
    /usr/sbin/checkinstall: línea 2314: [: RPM: se esperaba una expresión entera
    /usr/sbin/checkinstall: línea 2334: [: RPM: se esperaba una expresión entera
    
    Creando paquete RPM... FAILED!
    
    *** La creación del paquete falló
    
    ¿Quieres ver el archivo de bitácora? [y]: n
    
    Borrando directorios temporales...OK
    
    Borrando el directorio doc-pak...OK
    
    Escribiendo el paquete de respaldoOK
    OK
    
    Borrando el directorio temporal...OK
    Now run LANG = en_US.UTF-8 checkinstall and entirely correct.

    Code:
    OpenSuse:/home/jonatan/compilar/oxygen-transparent/build # LANG=en_US.UTF-8 checkinstall 
    
    checkinstall 1.6.2, 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]: n
    
    Please choose the packaging method you want to use.
    Slackware [S], RPM [R] or Debian [D]? R
    
    
    Please write a description for the package.
    End your description with an empty line or EOF.
    >> Tema transparente para KDE 4.10
    >> 
    
    **************************************
    **** RPM package creation selected ***
    **************************************
    
    This package will be built according to these values: 
    
    1 -  Summary: [ Tema transparente para KDE 4.10 ]
    2 -  Name:    [ build ]
    3 -  Version: [ 20130723 ]
    4 -  Release: [ 1 ]
    5 -  License: [ GPL ]
    6 -  Group:   [ Applications/System ]
    7 -  Architecture: [ x86_64 ]
    8 -  Source location: [ build ]
    9 -  Alternate source location: [  ]
    10 - Requires: [  ]
    11 - Provides: [ build ]
    
    Enter a number to change any of them or press ENTER to continue: 2
    Enter new name: 
    >> oxygen-transparent
    
    This package will be built according to these values: 
    
    1 -  Summary: [ Tema transparente para KDE 4.10 ]
    2 -  Name:    [ oxygen-transparent ]
    3 -  Version: [ 20130723 ]
    4 -  Release: [ 1 ]
    5 -  License: [ GPL ]
    6 -  Group:   [ Applications/System ]
    7 -  Architecture: [ x86_64 ]
    8 -  Source location: [ build ]
    9 -  Alternate source location: [  ]
    10 - Requires: [  ]
    11 - Provides: [ build ]
    
    Enter a number to change any of them or press ENTER to continue: 
    
    Installing with make...Installing with install...
    
    ========================= Installation results ===========================
    [  0%] Built target oxygentransparentstyle_automoc
    [  9%] Built target oxygentransparentstyle
    [  9%] Built target oxygentransparentstyleconfig_automoc
    [ 20%] Built target oxygentransparentstyleconfig
    [ 20%] Built target kwin3_oxygen_transparent_automoc
    [ 29%] Built target kwin3_oxygen_transparent
    [ 29%] Built target kwin_oxygen_transparent_config_automoc
    [ 41%] Built target kwin_oxygen_transparent_config
    [ 41%] Built target oxygen_transparent_automoc
    [ 88%] Built target oxygen_transparent
    [ 88%] Built target kstyle_oxygen_transparent_config_automoc
    [ 97%] Built target kstyle_oxygen_transparent_config
    [ 97%] Built target oxygen-transparent-settings_automoc
    [100%] Built target oxygen-transparent-settings
    Install the project...
    -- Install configuration: "release"
    -- Up-to-date: /usr/lib64/liboxygentransparentstyle.so.4.10.5
    -- Up-to-date: /usr/lib64/liboxygentransparentstyle.so.4
    -- Up-to-date: /usr/lib64/liboxygentransparentstyle.so
    -- Up-to-date: /usr/lib64/liboxygentransparentstyleconfig.so.4.10.5
    -- Up-to-date: /usr/lib64/liboxygentransparentstyleconfig.so.4
    -- Up-to-date: /usr/lib64/liboxygentransparentstyleconfig.so
    -- Up-to-date: /usr/lib64/kde4/kwin3_oxygen_transparent.so
    -- Up-to-date: /usr/share/kde4/apps/kwin/oxygentransparentclient.desktop
    -- Up-to-date: /usr/lib64/kde4/kwin_oxygen_transparent_config.so
    -- Up-to-date: /usr/lib64/kde4/plugins/styles/oxygen_transparent.so
    -- Up-to-date: /usr/share/kde4/apps/kstyle/themes/oxygen_transparent.themerc
    -- Up-to-date: /usr/lib64/kde4/kstyle_oxygen_transparent_config.so
    -- Up-to-date: /usr/bin/oxygen-transparent-settings
    
    ======================== Installation successful ==========================
    
    Some of the files created by the installation are inside the home directory: /home
    
    You probably don't want them to be included in the package.
    Do you want me to list them?  [n]: 
    Should I exclude them from the package? (Saying yes is a good idea)  [n]: yes
    
    Copying files to the temporary directory...OK
    
    Stripping ELF binaries and libraries...OK
    
    Compressing man pages...OK
    
    Building file list...OK
    
    Building RPM package...OK
    
    NOTE: The package will not be installed
    
    Erasing temporary files...OK
    
    Deleting doc-pak directory...OK
    
    Writing backup package...OK
    OK
    
    Deleting temp dir...OK
    
    
    **********************************************************************
    
     Done. The new package has been saved to
    
     /usr/src/packages/RPMS/x86_64/oxygen-transparent-20130723-1.x86_64.rpm
     You can install it in your system anytime using: 
    
          rpm -i oxygen-transparent-20130723-1.x86_64.rpm
    
    **********************************************************************
    What happens?

  7. #17

    Default Re: problem with checkinstall

    Quote Originally Posted by jony127 View Post
    What happens?
    That's the rpm version check.

    Apparently checkinstall doesn't like the output of "rpm --version" in your locale. Could you post that output please?

  8. #18

    Default Re: problem with checkinstall

    rpm --version
    versión de RPM 4.10.2

  9. #19

    Default Re: problem with checkinstall

    Quote Originally Posted by jony127 View Post
    rpm --version
    versión de RPM 4.10.2
    Right.
    Normally it's something like:
    Code:
    wolfi@amiga:~> rpm --version
    RPM version 4.10.2
    checkinstall takes the 3rd field as version number: (see line 2284 of /usr/sbin/checkinstall)
    Code:
    RPM_VERSION=$(rpm --version | awk '{ print $3 }')
    But in your case the 3rd field is "RPM" (the version number would be the 4th field).
    Since "RPM" is not a valid version number, there's an error afterwards.

    To fix this, change line 2284 of /usr/sbin/checkinstall to:
    Code:
    RPM_VERSION=$(LANG=C rpm --version | awk '{ print $3 }')
    or call checkinstall like:
    Code:
    LANG=C checkinstall
    or set root's locale to "C" (I think that's the default anyway, isn't it?)

    Nonetheless I would call this a bug in checkinstall that should be reported.

  10. #20
    Join Date
    Feb 2009
    Location
    Spain
    Posts
    25,547

    Default Re: problem with checkinstall

    On 2013-07-23 14:36, wolfi323 wrote:
    >
    > But in your case the 3rd field is "RPM" (the version number would be
    > the 4th field).
    > Since "RPM" is not a valid version number, there's an error afterwards.


    Interesting bug. :-o



    > or set root's locale to "C" (I think that's the default anyway, isn't
    > it?)


    Nope. It is whatever you use for the system.

    Code:
    ## Type:        string(ctype)
    ## Default:     ctype
    #
    # This defines if the user "root" should use the locale settings
    # which are defined here.
    # Value "ctype" means that root uses just LC_CTYPE.
    #
    ROOT_USES_LANG="ctype"

    > Nonetheless I would call this a bug in checkinstall that should be
    > reported.
    >
    >



    --
    Cheers / Saludos,

    Carlos E. R.
    (from 11.4, with Evergreen, x86_64 "Celadon" (Minas Tirith))

Page 2 of 3 FirstFirst 123 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •