Difference between revisions of "Talk:OpenRC"

From ArchWiki
Jump to navigation Jump to search
Line 5: Line 5:
 
Steps include:
 
Steps include:
  
 +
# One time
 
  mkdir -p ~/builds && cd ~/builds
 
  mkdir -p ~/builds && cd ~/builds
 
  git clone https://github.com/udeved/pkgbuilds openrc-eudev
 
  git clone https://github.com/udeved/pkgbuilds openrc-eudev
  
 +
# To keep up to date
 
  cd ~/builds/openrc-eudev
 
  cd ~/builds/openrc-eudev
 +
git pull
 
  cd sysvinit && makepkg -s
 
  cd sysvinit && makepkg -s
 
  cd ..
 
  cd ..
  cd openrc-core && makepkg -sd # to ignore sysvinit dependency
+
  cd openrc-core && makepkg -d # to ignore sysvinit dependency
 
  cd ..
 
  cd ..
 
  cd openrc-base && makepkg -s
 
  cd openrc-base && makepkg -s
Line 23: Line 26:
 
  cd eudev && makepkg -s
 
  cd eudev && makepkg -s
 
  cd ..
 
  cd ..
  cd eudev-systemdcompat && makepkg -sd # to ignore eudev dependency
+
  cd eudev-systemdcompat && makepkg -d # to ignore eudev dependency
 
  cd ..
 
  cd ..
  cd upower-pm-utils && makepkg -sd
+
  cd upower-pm-utils && makepkg -d
 
  cd ..
 
  cd ..
  
 +
# Copying built packages in one place
 
  mkdir -p ~/builds/openrc-eudev/packages
 
  mkdir -p ~/builds/openrc-eudev/packages
 
  cp ~/builds/openrc-eudev/*/*.pkg.tar.xz ~/builds/openrc-eudev/packages
 
  cp ~/builds/openrc-eudev/*/*.pkg.tar.xz ~/builds/openrc-eudev/packages
Line 39: Line 43:
 
  sudo pacman -S eudev-base
 
  sudo pacman -S eudev-base
  
{{Unsigned|26 January 2015|Aaditya}}
+
[[User:Aaditya|Aaditya]] ([[User talk:Aaditya|talk]]) 17:05, 28 January 2015 (UTC)
 +
 
 
:Here's a "slightly" more complex script to automate this:
 
:Here's a "slightly" more complex script to automate this:
  
Line 63: Line 68:
  
 
:-- [[User:Alad|Alad]] ([[User talk:Alad|talk]]) 13:30, 28 January 2015 (UTC)
 
:-- [[User:Alad|Alad]] ([[User talk:Alad|talk]]) 13:30, 28 January 2015 (UTC)
 +
 +
:: Interesting script, I did not know about ''pushd'' and ''popd'', thx. [[User:Aaditya|Aaditya]] ([[User talk:Aaditya|talk]]) 17:05, 28 January 2015 (UTC)
  
 
== Clarification ==
 
== Clarification ==

Revision as of 17:05, 28 January 2015

Alternative way to install OpenRC and eudev (artoo's way)

Instead of the AUR, one can simply build from artoo's git repo, add all the packages to a local repo, and install from that.

Steps include:

# One time
mkdir -p ~/builds && cd ~/builds
git clone https://github.com/udeved/pkgbuilds openrc-eudev
# To keep up to date
cd ~/builds/openrc-eudev
git pull
cd sysvinit && makepkg -s
cd ..
cd openrc-core && makepkg -d # to ignore sysvinit dependency
cd ..
cd openrc-base && makepkg -s
cd ..
cd openrc-desktop && makepkg -s
cd ..
cd polkit-consolekit && makepkg -s
cd ..
cd consolekit && makepkg -s
cd ..
cd eudev && makepkg -s
cd ..
cd eudev-systemdcompat && makepkg -d # to ignore eudev dependency
cd ..
cd upower-pm-utils && makepkg -d
cd ..
# Copying built packages in one place
mkdir -p ~/builds/openrc-eudev/packages
cp ~/builds/openrc-eudev/*/*.pkg.tar.xz ~/builds/openrc-eudev/packages

This probably takes care of the base. The built packages could be added to a pacman local repo.

After that the built packages could be installed as:

sudo pacman -S openrc-base
sudo pacman -S openrc-desktop
sudo pacman -S eudev-base

Aaditya (talk) 17:05, 28 January 2015 (UTC)

Here's a "slightly" more complex script to automate this:
#/usr/bin/env bash
[[ -d openrc-eudev ]] || git clone https://github.com/udeved/pkgbuilds openrc-eudev
cd openrc-eudev       || exit 1

_nodep=(openrc-core eudev-systemdcompat upower-pm-utils)
_dep=(sysvinit openrc-base openrc-desktop polkit-consolekit consolekit eudev)
_fail() { echo "$i failed to build." > ../fail.log; }

for i in "${_dep[@]}"; do
    pushd "$i" && { makepkg -sr || _fail; }; popd
done

for i in "${_nodep[@]}"; do
    pushd "$i" && { makepkg -d  || _fail; }; popd
done

mkdir -p packages && cp */*.pkg.tar.xz packages/
-- Alad (talk) 13:30, 28 January 2015 (UTC)
Interesting script, I did not know about pushd and popd, thx. Aaditya (talk) 17:05, 28 January 2015 (UTC)

Clarification

In

Here the main package is openrc-core (and corresponding set of scripts belonging to the openrc-base group).

it's needed a clarification: it implies that we have to install openrc-core only? openrc-core plus openrc-base? Is the installation of openrc-base optional? If we install openrc-base, then we also install openrc-core?

Please clarify it. Overall for people installing it from AUR.--Xan (talk) 17:52, 24 January 2015 (UTC)

openrc core + openrc base (openrc-core is a dependency of openrc-base), I will clarify that point Aaditya (talk) 03:39, 26 January 2015 (UTC)
Thanks--Xan (talk) 07:59, 26 January 2015 (UTC)

Why delete webpage and repo

Hi,

Why do you delete tips and tricks? Why it's not available?--Xan (talk) 15:55, 27 January 2015 (UTC)

Hi Xan, I felt I was unable to keep the repo up to date due to increased efforts, but I will see if I can bring it back, with perhaps less effort from my side. Aaditya (talk) 16:12, 27 January 2015 (UTC)