Skip to content

Commit e244628

Browse files
authored
Merge pull request git-lfs#3697 from bk2204/debian-buster
Add support for Debian 10
2 parents a292335 + ac40463 commit e244628

File tree

6 files changed

+17
-17
lines changed

6 files changed

+17
-17
lines changed

debian/control

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ Source: git-lfs
22
Section: vcs
33
Priority: optional
44
Maintainer: Stephen Gelman <[email protected]>
5-
Build-Depends: debhelper (>= 9), dh-golang, golang-go:native (>= 1.3.0), git (>= 1.8.2), ruby-ronn
5+
Build-Depends: debhelper (>= 9), dh-golang, golang-go:native (>= 1.3.0), git (>= 1.8.2), ruby-ronn, ronn | ruby-ronn (<< 0.8.0-1)
66
Standards-Version: 3.9.6
77

88
Package: git-lfs

debian/rules

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
#!/usr/bin/make -f
22

33
export DH_OPTIONS
4-
export GO111MODULE=on
54

65
#dh_golang doesn't do this for you
76
ifeq ($(DEB_HOST_ARCH), i386)
@@ -25,7 +24,8 @@ export PATH := $(CURDIR)/$(BUILD_DIR)/bin:$(PATH)
2524
export DH_GOLANG_INSTALL_ALL := 1
2625

2726
%:
28-
dh $@ --buildsystem=golang --with=golang
27+
mkdir -p /tmp/gocache
28+
GO111MODULE=on GOFLAGS=-mod=vendor GOCACHE=/tmp/gocache dh $@ --buildsystem=golang --with=golang
2929

3030
override_dh_clean:
3131
rm -f debian/debhelper.log
@@ -37,7 +37,6 @@ override_dh_auto_build:
3737
#dh_golang doesn't do anything here in deb 8, and it's needed in both
3838
if [ "$(DEB_HOST_GNU_TYPE)" != "$(DEB_BUILD_GNU_TYPE)" ]; then\
3939
cp -rf $(BUILD_DIR)/bin/*/* $(BUILD_DIR)/bin/; \
40-
cp -rf $(BUILD_DIR)/pkg/*/* $(BUILD_DIR)/pkg/; \
4140
fi
4241
rm $(BUILD_DIR)/bin/script
4342
rm $(BUILD_DIR)/bin/man

docker/run_dockers.bsh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ done
5555

5656
if [[ ${#IMAGES[@]} == 0 ]]; then
5757
# If you change this list, change script/upload as well.
58-
IMAGES=(centos_6 centos_7 debian_7 debian_8 debian_9)
58+
IMAGES=(centos_6 centos_7 debian_8 debian_9 debian_10)
5959
fi
6060

6161
mkdir -p "${PACKAGE_DIR}"

script/packagecloud.rb

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,6 @@
5656
# Debian EOL https://wiki.debian.org/LTS/
5757
# Ubuntu EOL https://wiki.ubuntu.com/Releases
5858
# Mint EOL https://linuxmint.com/download_all.php
59-
"debian/7" => [
60-
"debian/wheezy", # EOL 31st May 2018
61-
"ubuntu/precise" # ESM April 2019
62-
],
6359
"debian/8" => [
6460
"debian/jessie", # EOL June 30, 2020
6561
"linuxmint/qiana", # EOL April 2019
@@ -72,7 +68,6 @@
7268
],
7369
"debian/9" => [
7470
"debian/stretch", # EOL June 2022
75-
"debian/buster", # Current
7671
"linuxmint/sarah", # EOL April 2021
7772
"linuxmint/serena", # EOL April 2021
7873
"linuxmint/sonya", # EOL April 2021
@@ -87,6 +82,9 @@
8782
"ubuntu/cosmic", # EOL July 2019
8883
"ubuntu/disco", # EOL April 2020
8984
],
85+
"debian/10" => [
86+
"debian/buster", # Current
87+
]
9088
}
9189

9290
# caches distro id lookups
@@ -129,12 +127,12 @@ def distro_names_for(filename)
129127
next if full_path.include?("SRPM") || full_path.include?("i386") || full_path.include?("i686")
130128
next unless full_path =~ /\/git-lfs[-|_]\d/
131129
os, distro = case full_path
132-
when /debian\/7/ then ["Debian 7", "debian/wheezy"]
133-
when /debian\/8/ then ["Debian 8", "debian/jessie"]
134-
when /debian\/9/ then ["Debian 9", "debian/stretch"]
135-
when /centos\/5/ then ["RPM RHEL 5/CentOS 5", "el/5"]
136-
when /centos\/6/ then ["RPM RHEL 6/CentOS 6", "el/6"]
137-
when /centos\/7/ then ["RPM RHEL 7/CentOS 7", "el/7"]
130+
when /debian\/8/ then ["Debian 8", "debian/jessie"]
131+
when /debian\/9/ then ["Debian 9", "debian/stretch"]
132+
when /debian\/10/ then ["Debian 10", "debian/buster"]
133+
when /centos\/5/ then ["RPM RHEL 5/CentOS 5", "el/5"]
134+
when /centos\/6/ then ["RPM RHEL 6/CentOS 6", "el/6"]
135+
when /centos\/7/ then ["RPM RHEL 7/CentOS 7", "el/7"]
138136
end
139137

140138
next unless os

script/upload

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,9 +147,9 @@ Up to date packages are available on [PackageCloud](https://packagecloud.io/gith
147147
148148
[RPM RHEL 6/CentOS 6](https://packagecloud.io/github/git-lfs/packages/el/6/git-lfs-VERSION-1.el6.x86_64.rpm/download)
149149
[RPM RHEL 7/CentOS 7](https://packagecloud.io/github/git-lfs/packages/el/7/git-lfs-VERSION-1.el7.x86_64.rpm/download)
150-
[Debian 7](https://packagecloud.io/github/git-lfs/packages/debian/wheezy/git-lfs_VERSION_amd64.deb/download)
151150
[Debian 8](https://packagecloud.io/github/git-lfs/packages/debian/jessie/git-lfs_VERSION_amd64.deb/download)
152151
[Debian 9](https://packagecloud.io/github/git-lfs/packages/debian/stretch/git-lfs_VERSION_amd64.deb/download)
152+
[Debian 10](https://packagecloud.io/github/git-lfs/packages/debian/buster/git-lfs_VERSION_amd64.deb/download)
153153
154154
## SHA-256 hashes:
155155
EOM

t/t-install.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,9 @@ begin_test "install --local with failed permissions"
232232
# Windows lacks POSIX permissions.
233233
[ "$IS_WINDOWS" -eq 1 ] && exit 0
234234

235+
# Root is exempt from permissions.
236+
[ "$(id -u)" -eq 0 ] && exit 0
237+
235238
# old values that should be ignored by `install --local`
236239
git config --global filter.lfs.smudge "git lfs smudge %f"
237240
git config --global filter.lfs.clean "git lfs clean %f"

0 commit comments

Comments
 (0)