-
Notifications
You must be signed in to change notification settings - Fork 326
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
Conversation
@@ -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 ) |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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?:
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.)
i went with 'be quiet' because the makefile allows someone to do a stack
build (in the compile rule), and a stack install (in the install rule),
without requiring you to build a .deb package. so it's possible to install
this, and install dpkg-deb, without being on debian. i've personally
installed dpkg-deb, without having dpkg-architecture, back in my slackware
days.
…On Tue, Jan 22, 2019 at 11:19 AM fisx ***@***.***> wrote:
***@***.**** commented on this pull request.
------------------------------
In tools/makedeb/Makefile
<#580 (comment)>:
> @@ -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 )
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.)
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#580 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AQDAAolgRyIF0Vf35Jt9p3i0v40ktDmbks5vFvPYgaJpZM4aMav4>
.
|
No description provided.