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

make makedeb buildable for non-amd64 architectures. #580

Merged
merged 1 commit into from
Jan 22, 2019
Merged

make makedeb buildable for non-amd64 architectures. #580

merged 1 commit into from
Jan 22, 2019

Conversation

julialongtin
Copy link
Contributor

No description provided.

@CLAassistant
Copy link

CLAassistant commented Jan 22, 2019

CLA assistant check
All committers have signed the CLA.

@@ -2,10 +2,11 @@ LANG := en_US.UTF-8
SHELL := /usr/bin/env bash
NAME := makedeb
VERSION ?=
ARCH := $(shell [ -f "`which dpkg-architecture`" ] && dpkg-architecture -qDEB_HOST_ARCH )
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What happens if [ ! -f "`which dpkg-architecture`" ]? That probably shouldn't happen, so maybe throw a helpful error?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it quietly does nothing, and if you don't have dpkg-architecture, you do not have the ability to build debian packages anyways, as you are not on a debian-alike system.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it quietly does nothing, and if you don't have dpkg-architecture, you do not have the ability to build debian packages anyways, as you are not on a debian-alike system.

then wouldn't it be better to just do this?:

Suggested change
ARCH := $(shell [ -f "`which dpkg-architecture`" ] && dpkg-architecture -qDEB_HOST_ARCH )
ARCH := $(shell dpkg-architecture -qDEB_HOST_ARCH )

i prefer "complain loudly" over "quietly do nothing" if what i clearly intend to do is not going to work. (i'm talking about the general concept, in this case it's not that big a deal, so i already approved.)

@julialongtin julialongtin merged commit d715556 into wireapp:develop Jan 22, 2019
@julialongtin julialongtin deleted the arch-jel-1 branch January 22, 2019 11:23
@julialongtin
Copy link
Contributor Author

julialongtin commented Jan 22, 2019 via email

@fisx fisx mentioned this pull request Jan 24, 2019
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

Successfully merging this pull request may close these issues.

None yet

4 participants