Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error running makepkg in Manjaro (Arch Linux) #6

Open
PRO2XY opened this issue May 20, 2019 · 5 comments
Open

Error running makepkg in Manjaro (Arch Linux) #6

PRO2XY opened this issue May 20, 2019 · 5 comments

Comments

@PRO2XY
Copy link

PRO2XY commented May 20, 2019

After cloning this repo to a folder on my Manjaro laptop.

$ git clone https://github.com/mongoose-os/mos.git
$ cd mos/mos/archlinux_pkgbuild/mos-release
$ makepkg
==> Making package: mos 2.13.1-1 (Mon 20 May 2019 12:24:37 PM IST)
==> Checking runtime dependencies...
...
==> Validating source files with md5sums...
    mos-tool ... Skipped
==> Extracting sources...
  -> Creating working copy of mos-tool git repo...
Cloning into 'mos-tool'...
done.
Switched to a new branch 'makepkg'
==> Starting prepare()...
mv: cannot stat '/media/storage/Tools/mos/mos/archlinux_pkgbuild/mos-release/src/mos': No such file or directory
==> ERROR: A failure occurred in prepare().
    Aborting...

Before this I had installed the dependencies. Just required to install ...

sudo pacman -S libftdi-compat
sudo pacman -S go jshon

How to install?

@PRO2XY
Copy link
Author

PRO2XY commented May 20, 2019

When running makepkg for mos-latest

Switched to a new branch 'makepkg'
==> Starting prepare()...
==> Starting pkgver()...
==> ERROR: pkgver is not allowed to be empty.
==> ERROR: pkgver() generated an invalid version: 

Further debugging leads to modifying PKGBUILD:
make version/version.json > /dev/null 2>&1 changed to
make version/version.json in pkgver()
which gives the following output:

==> Starting prepare()...
==> Starting pkgver()...
make[1]: *** No rule to make target 'version/version.json'.  Stop.
make: *** [Makefile:4: version/version.json] Error 2
==> ERROR: pkgver is not allowed to contain colons, forward slashes, hyphens or whitespace.
==> ERROR: pkgver() generated an invalid version: make -C mos version/version.json
make[1]: Entering directory '/media/storage/Tools/mos/mos/archlinux_pkgbuild/mos-latest/src/go/src/github.com/mongoose-os/mos/mos'
make[1]: Leaving directory '/media/storage/Tools/mos/mos/archlinux_pkgbuild/mos-latest/src/go/src/github.com/mongoose-os/mos/mos'

@PRO2XY
Copy link
Author

PRO2XY commented May 20, 2019

More debugging.

$ pwd
/media/storage/Tools/mos/mos/archlinux_pkgbuild/mos-latest/src/go/src/github.com/mongoose-os/mos

$ make version/version.json
make -C mos version/version.json
make[1]: Entering directory '/media/storage/Tools/mos/mos/archlinux_pkgbuild/mos-latest/src/go/src/github.com/mongoose-os/mos/mos'
make[1]: Nothing to be done for 'version/version.json'.
make[1]: Leaving directory '/media/storage/Tools/mos/mos/archlinux_pkgbuild/mos-latest/src/go/src/github.com/mongoose-os/mos/mos'

$ ls
common  fwbuild  go  LICENSE  Makefile  mos  README.md  tools  vendor

So no version/version.json exists...

@rojer
Copy link
Contributor

rojer commented May 20, 2019

version/version.json is generated here

if you can fix this, a PR will be appreciated.

@PRO2XY
Copy link
Author

PRO2XY commented May 20, 2019

I am not exactly sure how to do that.
I had a look at the Makefile at mos/archlinux_pkgbuild/mos-latest/src/go/src/github.com/mongoose-os/mos/ which had only this in it..

.DEFAULT_GOAL := all

%:
	$(MAKE) -C mos $*

I am not sure what to add in here.
Any help would be appreciated. I will make a PR once I can get this working.

@PRO2XY
Copy link
Author

PRO2XY commented May 20, 2019

Also there seems to be a lot of recursive directories... Is it supposed to be so?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants