Skip to content

Commit

Permalink
alvistack/v2.4.1
Browse files Browse the repository at this point in the history
    git clean -xdf
    git submodule sync --recursive
    git submodule update --recursive --init
    git submodule foreach --recursive git clean -xdf
    gem build vagrant.gemspec -o ../vagrant-2.4.1.gem
    bundle config set --local path ./bundle
    bundle install --verbose --standalone
    bundle config set --local cache_all true
    bundle config set --local cache_all_platforms true
    bundle cache
    mv ../vagrant-2.4.1.gem ./vendor/cache/
    rm -rf .bundle bundle vendor/bundle Gemfile.lock
    tar zcvf ../vagrant_2.4.1.orig.tar.gz --exclude=.git .
    debuild -uc -us
    cp vagrant.spec ../vagrant_2.4.1-1.spec
    cp vagrant.rpmlintrc /osc/home\:alvistack/hashicorp-vagrant-2.4.1/
    cp ../vagrant*2.4.1*.{gz,xz,spec,dsc} /osc/home\:alvistack/hashicorp-vagrant-2.4.1/
    rm -rf ../vagrant*2.4.1*.*

See https://salsa.debian.org/ruby-team/vagrant/-/blob/master/debian/patches/0001-bin-vagrant-silence-warning-about-installer.patch
See https://salsa.debian.org/ruby-team/vagrant/-/blob/master/debian/patches/0005-Relax-dependency-resolution.patch
See https://build.opensuse.org/package/show/openSUSE:Factory/vagrant
See hashicorp#13390
See hashicorp#13499
See hashicorp#13503

Signed-off-by: Wong Hoi Sing Edison <[email protected]>
  • Loading branch information
hswong3i committed Sep 18, 2024
1 parent 720b68f commit 5c18229
Show file tree
Hide file tree
Showing 37 changed files with 1,419 additions and 37 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -80,3 +80,7 @@ lib/vagrant/vagrant_ssl.so

# direnv directory
.direnv

bundle
embedded
vendor
6 changes: 0 additions & 6 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,3 @@
source "https://rubygems.org"

gemspec

if File.exist?(File.expand_path("../../vagrant-spec", __FILE__))
gem 'vagrant-spec', path: "../vagrant-spec"
else
gem 'vagrant-spec', git: "https://github.com/hashicorp/vagrant-spec.git", branch: :main
end
5 changes: 0 additions & 5 deletions bin/vagrant
Original file line number Diff line number Diff line change
Expand Up @@ -221,11 +221,6 @@ begin
end
end

if !Vagrant.in_installer? && !Vagrant.very_quiet?
# If we're not in the installer, warn.
env.ui.warn(I18n.t("vagrant.general.not_in_installer") + "\n", prefix: false)
end

# Acceptable experimental flag values include:
#
# Unset - Disables experimental features
Expand Down
6 changes: 6 additions & 0 deletions debian/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
*.substvars
*debhelper*
.debhelper
files
vagrant
tmp
5 changes: 5 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
vagrant (100:2.4.1-1) UNRELEASED; urgency=medium

* https://github.com/hashicorp/vagrant/releases/tag/v2.4.1

-- Wong Hoi Sing Edison <[email protected]> Sat, 20 Jan 2024 11:04:06 +0800
31 changes: 31 additions & 0 deletions debian/control
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
Source: vagrant
Section: admin
Priority: optional
Standards-Version: 4.5.0
Maintainer: Wong Hoi Sing Edison <[email protected]>
Homepage: https://github.com/hashicorp/vagrant/tags
Vcs-Browser: https://github.com/alvistack/hashicorp-vagrant
Vcs-Git: https://github.com/alvistack/hashicorp-vagrant.git
Build-Depends:
debhelper,
debhelper-compat (= 10),
chrpath,
fdupes,
libffi-dev,
ruby-bundler,
ruby-dev (>= 3.0),

Package: vagrant
Architecture: amd64
Description: Build and distribute virtualized development environments
Vagrant is a tool for building and distributing virtualized development
environments.
Depends:
${misc:Depends},
${shlibs:Depends},
curl,
libarchive-tools,
openssh-client,
rsync,
ruby (>= 3.0),
ruby-bundler,
21 changes: 21 additions & 0 deletions debian/copyright
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/

Files: debian/*
Copyright: 2024 Wong Hoi Sing Edison <[email protected]>
License: Apache-2.0

License: Apache-2.0
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
.
http://www.apache.org/licenses/LICENSE-2.0
.
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
.
The complete text of the Apache version 2.0 license
can be found in "/usr/share/common-licenses/Apache-2.0".
46 changes: 46 additions & 0 deletions debian/rules
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
#!/usr/bin/make -f

SHELL := /bin/bash

override_dh_auto_build:
mkdir -p bin
bundle config set --local without development
bundle config set --local path ./bundle
bundle install --verbose --local --standalone
bundle config set --local deployment true
bundle install --verbose --local --standalone

override_dh_auto_install:
install -Dpm755 -d debian/tmp/usr/bin
install -Dpm755 -d debian/tmp/usr/share/bash-completion/completions
install -Dpm755 -d debian/tmp/opt
install -Dpm644 contrib/bash/completion.sh debian/tmp/usr/share/bash-completion/completions/vagrant
mkdir -p debian/tmp/opt/vagrant
tar xf ./vendor/cache/vagrant-2.4.1.gem data.tar.gz -O | tar zx -C debian/tmp/opt/vagrant
cp -rfp .bundle bundle Gemfile.lock debian/tmp/opt/vagrant/
pushd debian/tmp/opt/vagrant && \
bundle binstubs --all --force --path binstubs && \
bundle exec vagrant --version && \
popd
ln -fs /opt/vagrant/binstubs/vagrant debian/tmp/usr/bin/vagrant
fdupes -qnrps debian/tmp
find debian/tmp -type f -name '*.so' -exec chrpath -d {} \;
find debian/tmp -type f -exec sed -i 's?$(CURDIR)/debian/tmp??g' {} \;
find debian/tmp -type f -exec sed -i 's?^#!.*ruby.*?#!/usr/bin/ruby?g' {} \;

override_dh_strip:

override_dh_strip_nondeterminism:

override_dh_shlibdeps:

override_dh_makeshlibs:

override_dh_dwz:

override_dh_auto_test:

override_dh_auto_clean:

%:
dh $@
1 change: 1 addition & 0 deletions debian/source/format
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.0 (quilt)
3 changes: 3 additions & 0 deletions debian/source/lintian-overrides
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
vagrant source: file-without-copyright-information
vagrant source: missing-notice-file-for-apache-license
vagrant source: no-debian-changes
3 changes: 3 additions & 0 deletions debian/vagrant.install
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
opt/vagrant
usr/bin/*
usr/share/bash-completion/completions/*
17 changes: 17 additions & 0 deletions debian/vagrant.lintian-overrides
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
vagrant: copyright-without-copyright-notice
vagrant: custom-library-search-path
vagrant: dir-or-file-in-opt
vagrant: embedded-library
vagrant: executable-not-elf-or-script
vagrant: hardening-no-pie
vagrant: initial-upload-closes-no-bugs
vagrant: mismatched-override embedded-library
vagrant: no-manual-page
vagrant: package-contains-vcs-control-file
vagrant: ruby-script-but-no-ruby-dep
vagrant: script-not-executable
vagrant: shared-library-lacks-prerequisites
vagrant: statically-linked-binary
vagrant: unstripped-binary-or-object
vagrant: windows-devel-file-in-package
vagrant: zero-byte-file-in-doc-directory
2 changes: 1 addition & 1 deletion plugins/guests/alt/cap/configure_networks.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

require "tempfile"

require_relative "../../../../lib/vagrant/util/template_renderer"
require "vagrant/util/template_renderer"

module VagrantPlugins
module GuestALT
Expand Down
2 changes: 1 addition & 1 deletion plugins/guests/arch/cap/configure_networks.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
require "socket"
require "tempfile"

require_relative "../../../../lib/vagrant/util/template_renderer"
require "vagrant/util/template_renderer"

module VagrantPlugins
module GuestArch
Expand Down
2 changes: 1 addition & 1 deletion plugins/guests/coreos/cap/configure_networks.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
require "tempfile"
require "yaml"

require_relative "../../../../lib/vagrant/util/template_renderer"
require "vagrant/util/template_renderer"

module VagrantPlugins
module GuestCoreOS
Expand Down
2 changes: 1 addition & 1 deletion plugins/guests/debian/cap/configure_networks.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

require "tempfile"

require_relative "../../../../lib/vagrant/util/template_renderer"
require "vagrant/util/template_renderer"

module VagrantPlugins
module GuestDebian
Expand Down
2 changes: 1 addition & 1 deletion plugins/guests/freebsd/cap/configure_networks.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

require "tempfile"

require_relative "../../../../lib/vagrant/util/template_renderer"
require "vagrant/util/template_renderer"

module VagrantPlugins
module GuestFreeBSD
Expand Down
2 changes: 1 addition & 1 deletion plugins/guests/funtoo/cap/configure_networks.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

require "tempfile"

require_relative "../../../../lib/vagrant/util/template_renderer"
require "vagrant/util/template_renderer"

module VagrantPlugins
module GuestFuntoo
Expand Down
2 changes: 1 addition & 1 deletion plugins/guests/gentoo/cap/configure_networks.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
require "tempfile"
require "ipaddr"

require_relative "../../../../lib/vagrant/util/template_renderer"
require "vagrant/util/template_renderer"

module VagrantPlugins
module GuestGentoo
Expand Down
2 changes: 1 addition & 1 deletion plugins/guests/netbsd/cap/configure_networks.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

require "tempfile"

require_relative "../../../../lib/vagrant/util/template_renderer"
require "vagrant/util/template_renderer"

module VagrantPlugins
module GuestNetBSD
Expand Down
2 changes: 1 addition & 1 deletion plugins/guests/nixos/cap/change_host_name.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

require "tempfile"

require_relative "../../../../lib/vagrant/util/template_renderer"
require "vagrant/util/template_renderer"

module VagrantPlugins
module GuestNixos
Expand Down
2 changes: 1 addition & 1 deletion plugins/guests/nixos/cap/configure_networks.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
require "ipaddr"
require "tempfile"

require_relative "../../../../lib/vagrant/util/template_renderer"
require "vagrant/util/template_renderer"

module VagrantPlugins
module GuestNixos
Expand Down
2 changes: 1 addition & 1 deletion plugins/guests/openbsd/cap/configure_networks.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

require "tempfile"

require_relative "../../../../lib/vagrant/util/template_renderer"
require "vagrant/util/template_renderer"

module VagrantPlugins
module GuestOpenBSD
Expand Down
2 changes: 1 addition & 1 deletion plugins/guests/redhat/cap/configure_networks.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

require "tempfile"

require_relative "../../../../lib/vagrant/util/template_renderer"
require "vagrant/util/template_renderer"

module VagrantPlugins
module GuestRedHat
Expand Down
2 changes: 1 addition & 1 deletion plugins/guests/slackware/cap/configure_networks.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

require "tempfile"

require_relative "../../../../lib/vagrant/util/template_renderer"
require "vagrant/util/template_renderer"

module VagrantPlugins
module GuestSlackware
Expand Down
2 changes: 1 addition & 1 deletion plugins/guests/suse/cap/configure_networks.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

require "tempfile"

require_relative "../../../../lib/vagrant/util/template_renderer"
require "vagrant/util/template_renderer"

module VagrantPlugins
module GuestSUSE
Expand Down
2 changes: 1 addition & 1 deletion plugins/providers/docker/config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

require "pathname"

require_relative "../../../lib/vagrant/util/platform"
require "vagrant/util/platform"

module VagrantPlugins
module DockerProvider
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

require "fileutils"

require_relative "../../../../lib/vagrant/action/general/package_setup_folders"
require "vagrant/action/general/package"

module VagrantPlugins
module ProviderVirtualBox
Expand Down
1 change: 1 addition & 0 deletions plugins/providers/virtualbox/driver/meta.rb
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ def initialize(uuid=nil)
"6.0" => Version_6_0,
"6.1" => Version_6_1,
"7.0" => Version_7_0,
"7.1" => Version_7_1,
}

if @@version.start_with?("4.2.14")
Expand Down
Loading

0 comments on commit 5c18229

Please sign in to comment.