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

deb/rpm packages #3

Open
alanfranz opened this issue Apr 18, 2016 · 10 comments
Open

deb/rpm packages #3

alanfranz opened this issue Apr 18, 2016 · 10 comments

Comments

@alanfranz
Copy link

alanfranz commented Apr 18, 2016

Hello,
I've used su-exec and I like it since it's smaller than gosu, but most distributions don't package it (yet).

I could setup a build system for deb and rpm packages, so that those could be uploaded on github directly and pulled from there via curl/wget.

Would you be interested in such a contribution?

@ncopa
Copy link
Owner

ncopa commented Apr 18, 2016

Hi,

Thank you for this. I think I would be more interested in getting the deb into debian repository and the rpm into fedora.

I suppose a build system with recipies for dep and rpm would be a step in that direction.

@alanfranz
Copy link
Author

I understand, but I won't help with that, I'm sorry. Upstream packaging
guidelines have killed more than one developer :-)

I'll contribute a packaging system (which surely won't be ok for upstream
merging), then you can choose what you'd like to do.

On Mon, Apr 18, 2016 at 2:46 PM, Natanael Copa notifications@github.com
wrote:

Hi,

Thank you for this. I think I would be more interested in getting the deb
into debian repository and the rpm into fedora.

I suppose a build system with recipies for dep and rpm would be a step in
that direction.


You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub
#3 (comment)

@neg3ntropy
Copy link

Is there a static binary somewhere in the meantime?

@alanfranz
Copy link
Author

@soulrebel which distro do you need? I did the packaging example for Ubuntu Trusty, I haven't created a PR back yet, but I can add others in the meantime (actually there's one test that fails and I don't know why).

@alanfranz
Copy link
Author

PR #4 was opened.

@blaggacao
Copy link

blaggacao commented May 16, 2016

I also would prefer a statically linked binary: it has a nice use case for embedded systems, where basically nothing is present. I'm working with buildroot for some containers.

@neg3ntropy
Copy link

@alanfranz Packaging is nice when it's done upstream and you can just apt-get (or whatever) stuff. The next best thing, especially for dockers is a wget oneliner that works on all distros.

@alanfranz
Copy link
Author

alanfranz commented May 16, 2016

@soulrebel one thing does not imply nor exclude the other.

I'd say: feel free to contribute a pull request that statically compiles the binary, without hijacking a totally different PR for which I invested some of my personal time, even though you don't need such approach.

By the way, I host a lot of repositories of self-built software that works fine with apt-get. Pushing things upstream in distributions is very useful, but usually it's an extremely slow and painful process.

Example
https://github.com/alanfranz/apt-current

You'll find both repositories and .deb files under "Releases". I find it very useful in docker contexts.

@javabean
Copy link

For your convenience, I have compiled binaries for amd64 (base OS: Ubuntu 16.04), i386 (base OS: Debian 8) and armhf (Raspbian 8) at https://github.com/javabean/su-exec/releases
Usage: curl -fsSLR -o /usr/local/bin/su-exec https://github.com/javabean/su-exec/releases/download/v0.2/su-exec.$(dpkg --print-architecture | awk -F- '{ print $NF }')
You should of course never trust me and compile your own binaries! :-)

@alanfranz
Copy link
Author

@javabean surely I won't trust you, don't worry:

$ file ./su-exec.amd64 
./su-exec.amd64: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 2.6.32, BuildID[sha1]=d9d132c8452b2f7b86c7bfe88f11e1824096f321, not stripped

this issue is for DEB/RPM packaging. Somebody asked for statically linked binaries. You provided dynamically linked binaries! What for?

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

5 participants