Results 1 to 3 of 3

Thread: RPMBUILD - MYSQL 5.6 - Unable to make an rpm file from script

  1. #1
    Join Date
    Jun 2008
    Location
    South-West France
    Posts
    1,031

    Default RPMBUILD - MYSQL 5.6 - Unable to make an rpm file from script

    The RPM BUILD TREE is on /local/002_rpmbuild/rpmbuild/SOURCES, SPECS, .....
    The process is run under normal user ( not root ) from a script named rpmbuild_project_mysql.

    Here somme screen logs :
    user@asus:~> rpmbuild_project_mysql
    MAIN - 2 parametres
    MAIN - PARAM0 : /home/user/bin/rpmbuild_project
    MAIN - PARAM1 : mysql-5.6.14.tar.gz
    MAIN - PARAM2 : .tar.gz
    CMD : cd /local/002_rpmbuild/rpmbuild/SOURCES
    CMD : tar -vzxf ./mysql-5.6.14.tar.gz > /tmp/000_rpmbuild_mysql_untar.txt
    tar: mysql-5.6.14/Docs: Cannot utime: Operation not permitted
    tar: mysql-5.6.14/Docs: Cannot change mode to rwxr-xr-x: Operation not permitted
    tar: mysql-5.6.14/packaging/rpm-uln: Cannot utime: Operation not permitted
    tar: mysql-5.6.14/packaging/rpm-uln: Cannot change mode to rwxr-xr-x: Operation not permitted
    tar: mysql-5.6.14/packaging/solaris: Cannot utime: Operation not permitted
    tar: mysql-5.6.14/packaging/solaris: Cannot change mode to rwxr-xr-x: Operation not permitted
    tar: mysql-5.6.14/packaging/WiX/ca: Cannot utime: Operation not permitted
    tar: mysql-5.6.14/packaging/WiX/ca: Cannot change mode to rwxr-xr-x: Operation not permitted
    .................
    .................
    .................
    .................
    .................
    tar: mysql-5.6.14/mysql-test/lib/My: Cannot utime: Operation not permitted
    tar: mysql-5.6.14/mysql-test/lib/My: Cannot change mode to rwxr-xr-x: Operation not permitted
    tar: mysql-5.6.14/mysql-test/lib: Cannot utime: Operation not permitted
    tar: mysql-5.6.14/mysql-test/lib: Cannot change mode to rwxr-xr-x: Operation not permitted
    tar: mysql-5.6.14/mysql-test: Cannot utime: Operation not permitted
    tar: mysql-5.6.14/mysql-test: Cannot change mode to rwxr-xr-x: Operation not permitted
    tar: mysql-5.6.14: Cannot utime: Operation not permitted
    tar: mysql-5.6.14: Cannot change mode to rwxr-xr-x: Operation not permitted
    tar: Exiting with failure status due to previous errors
    SOURCE_NAME : mysql-5.6.14
    EXT_NAME : .tar.gz
    CMD : cd /local/002_rpmbuild/rpmbuild/SOURCES/mysql-5.6.14/support-files
    CMD : cp -v mysql-5.6.14.spec /local/002_rpmbuild/rpmbuild/SPECS
    ‘mysql-5.6./m.14.spec’ -> ‘/local/002_rpmbuild/rpmbuild/SPECS/mysql-5.6.14.spec’
    CMD : cd /local/002_rpmbuild/rpmbuild/SPECS/
    CMD : rpmbuild -vv -bb --clean mysql-5.6.14.spec
    error: line 246: Tag takes single token only: Release: 1.linux_glibcse version 2.17 (git c758a6861537)

    Here is line 256 of mysql-5.6.14.spec :

    Release: %{release}%{?distro_releasetag:.%{distro_releasetag}}


    and here line 33 of mysql-5.6.14.spec

    %global release 1

    ----------

    by the way the file mysql-5.6.14/support-files/mysql.5.6.14.spec should be named
    mysql-5.6.14.spec

    Any help is welcome.

    Thank you for helping
    Thanks for helping. JCD
    __________

    server leap 15-- ASUS g75vw KDE leap 42.3 -- ASUS g750JZ KDE leap 42.3 -- acer aspire s13 win 10 home -- HP Omen win 10 home - scan EPSON V500 - Brother HL2250DN - Samsung CLP-325W

  2. #2
    Join Date
    Jun 2008
    Location
    West Yorkshire, UK
    Posts
    3,448

    Default Re: RPMBUILD - MYSQL 5.6 - Unable to make an rpm file from script

    It looks as if you do not have the privileges to do what you want to do. In which case, you probably shouldn't be doing what you are trying to do.

  3. #3
    Join Date
    Jun 2008
    Location
    Groningen, Netherlands
    Posts
    19,806
    Blog Entries
    14

    Default Re: RPMBUILD - MYSQL 5.6 - Unable to make an rpm file from script

    You're running rpmbuild as a user.

    BTW, why not use OBS, it's so easy. Specially since you already have knowledge about specfiles.
    ° Appreciate my reply? Click the star and let me know why.

    ° Perfection is not gonna happen. No way.

    https://en.opensuse.org/openSUSE:Board#Members
    http://en.opensuse.org/User:Knurpht
    http://nl.opensuse.org/Gebruiker:Knurpht

Posting Permissions

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