You are not logged in.

#1 2019-05-23 14:18:22

schard
Member
From: Hannover
Registered: 2016-05-06
Posts: 489
Website

[SOLVED] makechrootpkg - empty archive extension

I am trying to build repotool in a clean chroot.
The package seems to build fine, but I get the following warning:

$ makechrootpkg -cr /home/buildroot
==> Synchronizing chroot copy [/home/buildroot/root] -> [build]...done
==> Making package: repotool 1.0.0-1 (Thu May 23 16:13:29 2019)
==> Retrieving sources...
  -> Updating repotool git repo...
Fetching origin
==> Validating source files with md5sums...
    repotool ... Skipped
==> Validating source files with md5sums...
    repotool ... Skipped
==> Making package: repotool 1.0.0-1 (Thu 23 May 2019 04:13:34 PM CEST)
==> Checking runtime dependencies...
==> Installing missing dependencies...
resolving dependencies...
looking for conflicting packages...

Packages (2) libnsl-1.2.0-1  python-3.7.3-1

Total Installed Size:  146.14 MiB

:: Proceed with installation? [Y/n] 
(2/2) checking keys in keyring                                                                                                 [#############################################################################] 100%
(2/2) checking package integrity                                                                                               [#############################################################################] 100%
(2/2) loading package files                                                                                                    [#############################################################################] 100%
(2/2) checking for file conflicts                                                                                              [#############################################################################] 100%
(2/2) checking available disk space                                                                                            [#############################################################################] 100%
:: Processing package changes...
(1/2) installing libnsl                                                                                                        [#############################################################################] 100%
(2/2) installing python                                                                                                        [#############################################################################] 100%
Optional dependencies for python
    python-setuptools
    python-pip
    sqlite [installed]
    mpdecimal: for decimal
    xz: for lzma [installed]
    tk: for tkinter
:: Running post-transaction hooks...
(1/1) Arming ConditionNeedsUpdate...
==> Checking buildtime dependencies...
==> Retrieving sources...
==> WARNING: Skipping all source file integrity checks.
==> Extracting sources...
  -> Creating working copy of repotool git repo...
Cloning into 'repotool'...
done.
Switched to a new branch 'makepkg'
==> Entering fakeroot environment...
==> Starting package()...
running install
running build
running build_py
creating build
creating build/lib
copying repotool.py -> build/lib
running build_scripts
creating build/scripts-3.7
copying and adjusting repotool -> build/scripts-3.7
changing mode of build/scripts-3.7/repotool from 644 to 755
running install_lib
creating /build/repotool/pkg/repotool/usr
creating /build/repotool/pkg/repotool/usr/lib
creating /build/repotool/pkg/repotool/usr/lib/python3.7
creating /build/repotool/pkg/repotool/usr/lib/python3.7/site-packages
copying build/lib/repotool.py -> /build/repotool/pkg/repotool/usr/lib/python3.7/site-packages
byte-compiling /build/repotool/pkg/repotool/usr/lib/python3.7/site-packages/repotool.py to repotool.cpython-37.pyc
writing byte-compilation script '/tmp/tmpiyb_wcr4.py'
/usr/bin/python /tmp/tmpiyb_wcr4.py
removing /tmp/tmpiyb_wcr4.py
running install_scripts
creating /build/repotool/pkg/repotool/usr/bin
copying build/scripts-3.7/repotool -> /build/repotool/pkg/repotool/usr/bin
changing mode of /build/repotool/pkg/repotool/usr/bin/repotool to 755
running install_egg_info
Writing /build/repotool/pkg/repotool/usr/lib/python3.7/site-packages/repotool-latest-py3.7.egg-info
==> Tidying install...
==> Checking for packaging issues...
==> Creating package "repotool"...
  -> Generating .PKGINFO file...
  -> Generating .BUILDINFO file...
  -> Generating .MTREE file...
  -> Compressing package...
==> WARNING: '' is not a valid archive extension.
==> Leaving fakeroot environment.
==> Finished making: repotool 1.0.0-1 (Thu 23 May 2019 04:13:43 PM CEST)

The package then looks like this:

$ LANG=C ls -la
total 72
drwxr-xr-x  4 build build  4096 May 23 16:13 .
drwx------ 17 build build  4096 May 23 16:03 ..
-rw-r--r--  1 build build   305 May 23 16:03 .SRCINFO
drwxr-xr-x  8 build build  4096 May 23 16:03 .git
-rw-r--r--  1 build build    20 May 23 16:03 .gitignore
-rw-r--r--  1 build build   441 May 23 16:03 PKGBUILD
drwxr-xr-x  7 build build  4096 May 23 16:10 repotool
-rw-r--r--  1 build build  1177 May 23 16:13 repotool-1.0.0-1--package.log
-rw-r--r--  1 build build 40960 May 23 16:13 repotool-1.0.0-1-any

And the package is not compressed:

$ file -i repotool-1.0.0-1-any
repotool-1.0.0-1-any: application/x-tar; charset=binary

I followed the Wiki exactly.
What am I missing?
Solved:
I created the chroot with the ~/.makepkg.conf instead of /etc/makepkg.conf.
So a lot of important settings were missing. *facepalm*

Last edited by schard (2019-05-23 14:30:19)

Offline

Board footer

Powered by FluxBB