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

fixes for building debian (wheezy) packages from recent zfs git source #127

Conversation

bpkroth
Copy link

@bpkroth bpkroth commented Nov 20, 2014

Hi all, here are some patches to the Debian (wheezy) packaging system so that we can build more recent git versions of ZFS on Linux.

Let me know if you have any questions.

Thanks,
Brian

See Also: openzfs/zfs#2863

… build more recent git versions of ZFS on Linux.

See Also: openzfs/zfs#2863
@bpkroth
Copy link
Author

bpkroth commented Nov 20, 2014

BTW, pkg-spl currently has a merge conflict on the README.markdown between upstream and master/debian/wheezy (when following your directions). It's pretty trivial to fix so I didn't include a separate pull request for that, but it might affect others trying to build newer git releases in order to test out patches/fixes.

@FransUrbo
Copy link
Contributor

I'm sorry, but you've wasted your time. You should have asked first..

Please see https://github.com/zfsonlinux/pkg-zfs/tree/snapshot/debian/wheezy/0.6.3-21_7b2d78_wheezy. Can't get any fresher than that...

@FransUrbo FransUrbo closed this Nov 20, 2014
@bpkroth
Copy link
Author

bpkroth commented Nov 20, 2014

Awesome, though I swear that wasn't there last week. Thanks so much for your time and help.

Is there a similar snapshot for spl as well?

Thanks,
Brian

Turbo Fredriksson notifications@github.com 2014-11-20 11:43:

I'm sorry, but you've wasted your time... Please see
[1]https://github.com/zfsonlinux/pkg-zfs/tree/snapshot/debian/wheezy/0.6.3-21_7b2d78_wheezy.
Can't get any fresher than that...


Reply to this email directly or [2]view it on GitHub.

Reverse link: [3]unknown

References

Visible links

  1. https://github.com/zfsonlinux/pkg-zfs/tree/snapshot/debian/wheezy/0.6.3-21_7b2d78_wheezy
  2. fixes for building debian (wheezy) packages from recent zfs git source #127 (comment)
  3. fixes for building debian (wheezy) packages from recent zfs git source #127 (comment)

@FransUrbo
Copy link
Contributor

Awesome, though I swear that wasn't there last week.

It probably wasn't. I pushed that yesterday I think. But just slightly older have been there for a month or so...

Is there a similar snapshot for spl as well?

Yes. Check with 'git tag -l' and then find the one that looks latest.

currently that is:

snapshot/debian/wheezy/0.6.3-13_917fef_wheezy=

@bpkroth
Copy link
Author

bpkroth commented Nov 20, 2014

Turbo Fredriksson notifications@github.com 2014-11-20 12:30:

Awesome, though I swear that wasn't there last week.

It probably wasn't. I pushed that yesterday I think. But just slightly
older have been there for a month or so...

Yeah, the bug we're trying to debug is more recent than that though
which is why I started down this rabbit hole.

Is there a similar snapshot for spl as well?

Yes. Check with 'git tag -l' and then find the one that looks latest.

Der, I was looking in the branches view in github.

currently that is:

snapshot/debian/wheezy/0.6.3-13_917fef_wheezy=

Perfect. Thanks so much.

Cheers,
Brian

@bpkroth
Copy link
Author

bpkroth commented Nov 20, 2014

Brian Kroth bpkroth@gmail.com 2014-11-20 14:40:

Turbo Fredriksson notifications@github.com 2014-11-20 12:30:

Awesome, though I swear that wasn't there last week.

It probably wasn't. I pushed that yesterday I think. But just slightly
older have been there for a month or so...

Yeah, the bug we're trying to debug is more recent than that though
which is why I started down this rabbit hole.

Is there a similar snapshot for spl as well?

Yes. Check with 'git tag -l' and then find the one that looks latest.

Der, I was looking in the branches view in github.

currently that is:

snapshot/debian/wheezy/0.6.3-13_917fef_wheezy=

Perfect. Thanks so much.

Cheers,
Brian

Hate to bug you again, but the build instructions seem to have changed
somewhat. Here's what I did, does it seem about right to you?

Thanks,
Brian

Grab the code:

git clone https://github.com/zfsonlinux/pkg-spl.git

cd pkg-spl

git checkout snapshot/debian/wheezy/0.6.3-13_917fef_wheezy

Make a local branch:

git checkout -b $local_branch_name

Update the git-buildpackage config file with $local_branch_name
debian-branch and debian-tag:

sed -i "s|master/debian/wheezy|$local_branch_name|" debian/gbp.conf

Generate the control file (the various debian build scripts all seem to
error out without this):

./debian/rules override_dh_prep-base-deb-files

Build the package with git-buildpackage instead of dpkg-buildpackage
(since we have no source tarball):

git-buildpackage -uc -us

Similar for pkg-zfs, except that I had to add dh-systemd to the
Build-Depends in control.in since it's not installed on wheezy machines
by default (available in backports though).

@FransUrbo
Copy link
Contributor

Make a local branch:

git checkout -b $local_branch_name

You don't need to do that.

Update the git-buildpackage config file with $local_branch_name
debian-branch and debian-tag:

sed -i "s|master/debian/wheezy|$local_branch_name|" debian/gbp.conf

Nor this (because of the former).

Build the package with git-buildpackage instead of dpkg-buildpackage
(since we have no source tarball):

git-buildpackage -uc -us

I use:

git-buildpackage --git-ignore-branch --git-ignore-new

But since I sign my packages, you probably need the "-uc -us" as well.

Similar for pkg-zfs, except that I had to add dh-systemd to the
Build-Depends in control.in since it's not installed on wheezy machines
by default (available in backports though).

I know. I've missed that part. I have it in a local tag, but I didn't want to do a release
just because of that.

Otherwise, all commands seems just fine.=

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.

2 participants