Univention Bugzilla – Attachment 4505 Details for
Bug 27836
Zirkuläre Abhängigkeit: univention-lib - univention-config-registry
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
Sort (and build) package by build dependency order
psort (text/plain), 1.23 KB, created by
Philipp Hahn
on 2012-07-05 15:07:49 CEST
(
hide
)
Description:
Sort (and build) package by build dependency order
Filename:
MIME Type:
Creator:
Philipp Hahn
Created:
2012-07-05 15:07:49 CEST
Size:
1.23 KB
patch
obsolete
>#!/bin/bash ># ># Sort packages in build order ># >BASE="$HOME/GIT/branches/ucs-3.0/ucs" > >get () { > if [ -n "$1" ] > then > local section="^Package: $1\$" > else > local section="^Source: " > fi > local key=$2 > ldapsearch-wrapper <control | sed -nre "/$section/,/^\$/{/^($key): /{s/^($key): //;s/ \|[^,]+(,|\$)//g;s/( \([^)]+\))?(,|\$)/\n/gp}}" >} > >tmp=$(mktemp) >trap "rm -f '$tmp'" EXIT > >find "$BASE" -name packaging -prune -o -name control -printf '%h\n' | while read d >do > cd "$d" > rd=${d#$BASE/} > src=$(get '' 'Source') > pre=$(get '' 'Build-Depends(-Indep)?') > for pkg in $pre > do > echo "s:$src b:$pkg" > done > pkgs=$(get '.+' 'Package') > for post in $pkgs > do > echo "b:$post s:$src" > pre=$(get "$post" 'Depends|Pre-Depends' | grep -v '${.*}') > for pkg in $pre > do > echo "b:$post b:$pkg" > done > done >done | tsort | sed -ne 's/^s://p' | tac | tee "$tmp" > >read -p Continue > >while read p >do > set -e > cd "$BASE" > case "$p" in > \#*) continue ;; > esac > dpkg-scanpackages . >Packages > aptitude update > aptitude -y upgrade > echo "===== $p" > cd "$BASE"/*/"$p" > LC_ALL=C dpkg-checkbuilddeps 2>&1 | sed -ne 's/([^)]\+)//g;s/dpkg-checkbuilddeps: Unmet build dependencies: //p' | xargs --no-run-if-empty aptitude -y install > dpkg-buildpackage -uc -us -b >done <"$tmp"
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 27836
: 4505 |
4507