LINUX.ORG.RU

pkgver is not allowed to be empty.

 , ,


0

1

Пытаюсь сделать такое:

pkgver() {
  cd "$srcdir/$_gitname"
  git describe --always | sed 's|-|.|g'
}

(стыбрино отсюда: https://wiki.archlinux.org/index.php/VCS_PKGBUILD_Guidelines).

Не хочет работать:

p1@qemu-git-lite$ makepkg 
==> Making package: qemu-git-lite -1 (Fri May 17 10:21:17 CEST 2013)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
==> Extracting sources...
==> Starting pkgver()...
==> Updated version: qemu-git-lite -1
==> ERROR: pkgver is not allowed to be empty.

**Что делать?**

EBUILDPKGBUILD: http://dpaste.com/hold/1172195/

★★★★★

Разве makepkg не научился в последнем релизе сам версию из git,svn и т.п. подставлять?

madgnu ★★★★★
()
Ответ на: комментарий от true_admin
USING VCS SOURCES
       Building a developmental version of a package using sources from a version control system (VCS) 
       is enabled by specifying the source in the form source=('folder::url#fragment'). Currently makepkg supports the bzr, git, hg and
       svn protocols.

       The source URL is divided into three components:

       folder
           (optional) Specifies an alternate folder name for makepkg to download the VCS source into.

       url
           The url to the VCS repo. This must include the the vcs in the URL protocol for makepkg to recognize this as a VCS source. 
           If the protocol does not include the VCS name, it can be added by prefixing the URL with vcs+. For
           example, using a git repository over http would have a source URL in the form git+http://....

       fragment
           (optional) Allows specifying a revision number or branch for makepkg to checkout from the VCS. For example, to checkout a given revision,
           the source line would have the format source=(url#revision=123). The available
           fragments depends on the VCS being used:

           bzr
               revision (see 'bzr help revisionspec' for details)

           git
               branch, commit, tag

           hg
               branch, revision, tag

           svn
               revision

Похоже, что не умеет.

madgnu ★★★★★
()
Ответ на: комментарий от true_admin

А оно умеет делать git clone --depth=0? Я из-за этого и заморачиваюсь со своим prepare().

Нет, и делать так разработчики, судя по всему, не хотят.

Можно почитать длинную дискуссию на эту тему в рассылке: https://mailman.archlinux.org/pipermail/aur-general/2013-April/022938.html

risenshnobel ★★★
()
Ответ на: комментарий от risenshnobel

Прочитал, из-за пары неадекватов среди разрабов всё коту под хвост :(

true_admin ★★★★★
() автор топика
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.