mirror of
				https://gitlab.archlinux.org/archlinux/devtools.git
				synced 2025-10-30 23:34:43 +01:00 
			
		
		
		
	Compare commits
	
		
			14 Commits
		
	
	
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
|   | 7fc22b9aba | ||
|   | f85fc32d78 | ||
|   | c5128dc45c | ||
|   | f1effdf989 | ||
|   | 38957783a2 | ||
|   | 5a7890f076 | ||
|   | ba45e06d3e | ||
|   | 393b9757cf | ||
|   | 3231cf8c36 | ||
|   | f5ef88ec59 | ||
|   | 80ba87881a | ||
|   | 763d8ffb53 | ||
|   | a1594ae1f6 | ||
|   | 49ad7e6dbe | 
							
								
								
									
										5
									
								
								Makefile
									
									
									
									
									
								
							
							
						
						
									
										5
									
								
								Makefile
									
									
									
									
									
								
							| @@ -1,4 +1,4 @@ | ||||
| V=20150228 | ||||
| V=20151129 | ||||
|  | ||||
| PREFIX = /usr/local | ||||
|  | ||||
| @@ -112,6 +112,7 @@ dist: | ||||
| 	gpg --detach-sign --use-agent devtools-$(V).tar.gz | ||||
|  | ||||
| upload: | ||||
| 	scp devtools-$(V).tar.gz devtools-$(V).tar.gz.sig nymeria.archlinux.org:/srv/ftp/other/devtools/ | ||||
| 	scp devtools-$(V).tar.gz devtools-$(V).tar.gz.sig repos.archlinux.org:/srv/ftp/other/devtools/ | ||||
|  | ||||
| .PHONY: all clean install uninstall dist upload | ||||
|  | ||||
|   | ||||
| @@ -96,7 +96,7 @@ copy_hostconf | ||||
|  | ||||
| eval $(grep '^CARCH=' "$working_dir/etc/makepkg.conf") | ||||
|  | ||||
| exec ${CARCH:+setarch "$CARCH"} systemd-nspawn 2>/dev/null \ | ||||
| exec ${CARCH:+setarch "$CARCH"} systemd-nspawn -q \ | ||||
| 	-D "$working_dir" \ | ||||
| 	--register=no \ | ||||
| 	"${mount_args[@]}" \ | ||||
|   | ||||
| @@ -11,9 +11,9 @@ fi | ||||
|  | ||||
| case $scriptname in | ||||
| 	archco) | ||||
| 		SVNURL="svn+ssh://svn-packages@nymeria.archlinux.org/srv/repos/svn-packages/svn";; | ||||
| 		SVNURL="svn+ssh://svn-packages@repos.archlinux.org/srv/repos/svn-packages/svn";; | ||||
| 	communityco) | ||||
| 		SVNURL="svn+ssh://svn-community@nymeria.archlinux.org/srv/repos/svn-community/svn";; | ||||
| 		SVNURL="svn+ssh://svn-community@repos.archlinux.org/srv/repos/svn-community/svn";; | ||||
| 	*) | ||||
| 		die "Couldn't find svn url for %s" "$scriptname" | ||||
| 		;; | ||||
|   | ||||
| @@ -92,7 +92,7 @@ for _arch in ${arch[@]}; do | ||||
| done | ||||
|  | ||||
| if [[ -z $server ]]; then | ||||
| 	server='nymeria.archlinux.org' | ||||
| 	server='repos.archlinux.org' | ||||
| fi | ||||
|  | ||||
| if [[ -n $(svn status -q) ]]; then | ||||
| @@ -147,7 +147,7 @@ for _arch in ${arch[@]}; do | ||||
| 			if [[ -n $GPGKEY ]]; then | ||||
| 				SIGNWITHKEY="-u ${GPGKEY}" | ||||
| 			fi | ||||
| 			gpg --detach-sign --use-agent ${SIGNWITHKEY} "${pkgfile}" || die | ||||
| 			gpg --detach-sign --use-agent --no-armor ${SIGNWITHKEY} "${pkgfile}" || die | ||||
| 		fi | ||||
| 		if ! gpg --verify "$sigfile" >/dev/null 2>&1; then | ||||
| 			die "Signature %s.sig is incorrect!" "$pkgfile" | ||||
|   | ||||
| @@ -29,7 +29,7 @@ case $scriptname in | ||||
| 		;; | ||||
| esac | ||||
|  | ||||
| server='nymeria.archlinux.org' | ||||
| server='repos.archlinux.org' | ||||
| source_svn="svn+ssh://svn-${source_name}@${server}/srv/repos/svn-${source_name}/svn" | ||||
| target_svn="svn+ssh://svn-${target_name}@${server}/srv/repos/svn-${target_name}/svn" | ||||
| source_dbscripts="/srv/repos/svn-${source_name}/dbscripts" | ||||
|   | ||||
| @@ -156,7 +156,8 @@ prepare_chroot() { | ||||
| 	# Read .makepkg.conf and gnupg pubring | ||||
| 	if [[ -r $USER_HOME/.gnupg/pubring.kbx ]]; then | ||||
| 		install -D "$USER_HOME/.gnupg/pubring.kbx" "$copydir/build/.gnupg/pubring.kbx" | ||||
| 	elif [[ -r $USER_HOME/.gnupg/pubring.gpg ]]; then | ||||
| 	fi | ||||
| 	if [[ -r $USER_HOME/.gnupg/pubring.gpg ]]; then | ||||
| 		install -D "$USER_HOME/.gnupg/pubring.gpg" "$copydir/build/.gnupg/pubring.gpg" | ||||
| 	fi | ||||
|  | ||||
| @@ -188,7 +189,7 @@ prepare_chroot() { | ||||
| 	# We can't use useradd without chrooting, otherwise it invokes PAM modules | ||||
| 	# which we might not be able to load (i.e. when building i686 packages on | ||||
| 	# an x86_64 host). | ||||
| 	printf 'builduser:x:%d:100:builduser:/:/usr/bin/nologin\n' "$builduser_uid" >>"$copydir/etc/passwd" | ||||
| 	printf 'builduser:x:%d:100:builduser:/build:/bin/bash\n' "$builduser_uid" >>"$copydir/etc/passwd" | ||||
| 	chown -R "$builduser_uid" "$copydir"/{build,pkgdest,srcpkgdest,logdest,srcdest,startdir} | ||||
|  | ||||
| 	if [[ -n $MAKEFLAGS ]]; then | ||||
| @@ -383,10 +384,10 @@ $update_first && arch-nspawn "$copydir" \ | ||||
|  | ||||
| [[ -n ${install_pkgs[*]} ]] && install_packages | ||||
|  | ||||
| prepare_chroot | ||||
|  | ||||
| download_sources | ||||
|  | ||||
| prepare_chroot | ||||
|  | ||||
| if arch-nspawn "$copydir" \ | ||||
| 	--bind-ro="$PWD:/startdir_host" \ | ||||
| 	--bind-ro="$SRCDEST:/srcdest_host" \ | ||||
|   | ||||
| @@ -19,7 +19,7 @@ DLAGENTS=('ftp::/usr/bin/curl -fC - --ftp-pasv --retry 3 --retry-delay 3 -o %o % | ||||
| # /usr/bin/lftpget -c | ||||
| # /usr/bin/wget | ||||
|  | ||||
| #-- The the package required by makepkg to download VCS sources | ||||
| #-- The package required by makepkg to download VCS sources | ||||
| #  Format: 'protocol::package' | ||||
| VCSCLIENTS=('bzr::bzr' | ||||
|             'git::git' | ||||
| @@ -37,8 +37,8 @@ CHOST="i686-pc-linux-gnu" | ||||
| # -march (or -mcpu) builds exclusively for an architecture | ||||
| # -mtune optimizes for an architecture, but builds for whole processor family | ||||
| CPPFLAGS="-D_FORTIFY_SOURCE=2" | ||||
| CFLAGS="-march=i686 -mtune=generic -O2 -pipe -fstack-protector-strong --param=ssp-buffer-size=4" | ||||
| CXXFLAGS="-march=i686 -mtune=generic -O2 -pipe -fstack-protector-strong --param=ssp-buffer-size=4" | ||||
| CFLAGS="-march=i686 -mtune=generic -O2 -pipe -fstack-protector-strong" | ||||
| CXXFLAGS="-march=i686 -mtune=generic -O2 -pipe -fstack-protector-strong" | ||||
| LDFLAGS="-Wl,-O1,--sort-common,--as-needed,-z,relro" | ||||
| #-- Make Flags: change this for DistCC/SMP systems | ||||
| #MAKEFLAGS="-j2" | ||||
| @@ -50,17 +50,16 @@ DEBUG_CXXFLAGS="-g -fvar-tracking-assignments" | ||||
| # BUILD ENVIRONMENT | ||||
| ######################################################################### | ||||
| # | ||||
| # Defaults: BUILDENV=(fakeroot !distcc color !ccache check !sign) | ||||
| # Defaults: BUILDENV=(!distcc color !ccache check !sign) | ||||
| #  A negated environment option will do the opposite of the comments below. | ||||
| # | ||||
| #-- fakeroot: Allow building packages as a non-root user | ||||
| #-- distcc:   Use the Distributed C/C++/ObjC compiler | ||||
| #-- color:    Colorize output messages | ||||
| #-- ccache:   Use ccache to cache compilation | ||||
| #-- check:    Run the check() function if present in the PKGBUILD | ||||
| #-- sign:     Generate PGP signature file | ||||
| # | ||||
| BUILDENV=(fakeroot !distcc color !ccache check !sign) | ||||
| BUILDENV=(!distcc color !ccache check !sign) | ||||
| # | ||||
| #-- If using DistCC, your MAKEFLAGS will also need modification. In addition, | ||||
| #-- specify a space-delimited list of hosts running in the DistCC cluster. | ||||
| @@ -74,7 +73,7 @@ BUILDENV=(fakeroot !distcc color !ccache check !sign) | ||||
| #   These are default values for the options=() settings | ||||
| ######################################################################### | ||||
| # | ||||
| # Default: OPTIONS=(strip docs !libtool !staticlibs emptydirs zipman purge !upx !debug) | ||||
| # Default: OPTIONS=(strip docs !libtool !staticlibs emptydirs zipman purge !optipng !upx !debug) | ||||
| #  A negated option will do the opposite of the comments below. | ||||
| # | ||||
| #-- strip:      Strip symbols from binaries/libraries | ||||
| @@ -85,9 +84,10 @@ BUILDENV=(fakeroot !distcc color !ccache check !sign) | ||||
| #-- zipman:     Compress manual (man and info) pages in MAN_DIRS with gzip | ||||
| #-- purge:      Remove files specified by PURGE_TARGETS | ||||
| #-- upx:        Compress binary executable files using UPX | ||||
| #-- optipng:    Optimize PNG images with optipng | ||||
| #-- debug:      Add debugging flags as specified in DEBUG_* variables | ||||
| # | ||||
| OPTIONS=(strip docs !libtool !staticlibs emptydirs zipman purge !upx !debug) | ||||
| OPTIONS=(strip docs !libtool !staticlibs emptydirs zipman purge !optipng !upx !debug) | ||||
|  | ||||
| #-- File integrity checks to use. Valid: md5, sha1, sha256, sha384, sha512 | ||||
| INTEGRITY_CHECK=(md5) | ||||
|   | ||||
| @@ -19,7 +19,7 @@ DLAGENTS=('ftp::/usr/bin/curl -fC - --ftp-pasv --retry 3 --retry-delay 3 -o %o % | ||||
| # /usr/bin/lftpget -c | ||||
| # /usr/bin/wget | ||||
|  | ||||
| #-- The the package required by makepkg to download VCS sources | ||||
| #-- The package required by makepkg to download VCS sources | ||||
| #  Format: 'protocol::package' | ||||
| VCSCLIENTS=('bzr::bzr' | ||||
|             'git::git' | ||||
| @@ -37,8 +37,8 @@ CHOST="x86_64-unknown-linux-gnu" | ||||
| # -march (or -mcpu) builds exclusively for an architecture | ||||
| # -mtune optimizes for an architecture, but builds for whole processor family | ||||
| CPPFLAGS="-D_FORTIFY_SOURCE=2" | ||||
| CFLAGS="-march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong --param=ssp-buffer-size=4" | ||||
| CXXFLAGS="-march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong --param=ssp-buffer-size=4" | ||||
| CFLAGS="-march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong" | ||||
| CXXFLAGS="-march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong" | ||||
| LDFLAGS="-Wl,-O1,--sort-common,--as-needed,-z,relro" | ||||
| #-- Make Flags: change this for DistCC/SMP systems | ||||
| #MAKEFLAGS="-j2" | ||||
| @@ -50,17 +50,16 @@ DEBUG_CXXFLAGS="-g -fvar-tracking-assignments" | ||||
| # BUILD ENVIRONMENT | ||||
| ######################################################################### | ||||
| # | ||||
| # Defaults: BUILDENV=(fakeroot !distcc color !ccache check !sign) | ||||
| # Defaults: BUILDENV=(!distcc color !ccache check !sign) | ||||
| #  A negated environment option will do the opposite of the comments below. | ||||
| # | ||||
| #-- fakeroot: Allow building packages as a non-root user | ||||
| #-- distcc:   Use the Distributed C/C++/ObjC compiler | ||||
| #-- color:    Colorize output messages | ||||
| #-- ccache:   Use ccache to cache compilation | ||||
| #-- check:    Run the check() function if present in the PKGBUILD | ||||
| #-- sign:     Generate PGP signature file | ||||
| # | ||||
| BUILDENV=(fakeroot !distcc color !ccache check !sign) | ||||
| BUILDENV=(!distcc color !ccache check !sign) | ||||
| # | ||||
| #-- If using DistCC, your MAKEFLAGS will also need modification. In addition, | ||||
| #-- specify a space-delimited list of hosts running in the DistCC cluster. | ||||
| @@ -74,7 +73,7 @@ BUILDENV=(fakeroot !distcc color !ccache check !sign) | ||||
| #   These are default values for the options=() settings | ||||
| ######################################################################### | ||||
| # | ||||
| # Default: OPTIONS=(strip docs !libtool !staticlibs emptydirs zipman purge !upx !debug) | ||||
| # Default: OPTIONS=(strip docs !libtool !staticlibs emptydirs zipman purge !optipng !upx !debug) | ||||
| #  A negated option will do the opposite of the comments below. | ||||
| # | ||||
| #-- strip:      Strip symbols from binaries/libraries | ||||
| @@ -85,9 +84,10 @@ BUILDENV=(fakeroot !distcc color !ccache check !sign) | ||||
| #-- zipman:     Compress manual (man and info) pages in MAN_DIRS with gzip | ||||
| #-- purge:      Remove files specified by PURGE_TARGETS | ||||
| #-- upx:        Compress binary executable files using UPX | ||||
| #-- optipng:    Optimize PNG images with optipng | ||||
| #-- debug:      Add debugging flags as specified in DEBUG_* variables | ||||
| # | ||||
| OPTIONS=(strip docs !libtool !staticlibs emptydirs zipman purge !upx !debug) | ||||
| OPTIONS=(strip docs !libtool !staticlibs emptydirs zipman purge !optipng !upx !debug) | ||||
|  | ||||
| #-- File integrity checks to use. Valid: md5, sha1, sha256, sha384, sha512 | ||||
| INTEGRITY_CHECK=(md5) | ||||
|   | ||||
| @@ -14,6 +14,7 @@ | ||||
| #CacheDir    = /var/cache/pacman/pkg/ | ||||
| #LogFile     = /var/log/pacman.log | ||||
| #GPGDir      = /etc/pacman.d/gnupg/ | ||||
| #HookDir     = /etc/pacman.d/hooks/ | ||||
| HoldPkg     = pacman glibc | ||||
| #XferCommand = /usr/bin/curl -C - -f %u > %o | ||||
| #XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u | ||||
|   | ||||
| @@ -14,6 +14,7 @@ | ||||
| #CacheDir    = /var/cache/pacman/pkg/ | ||||
| #LogFile     = /var/log/pacman.log | ||||
| #GPGDir      = /etc/pacman.d/gnupg/ | ||||
| #HookDir     = /etc/pacman.d/hooks/ | ||||
| HoldPkg     = pacman glibc | ||||
| #XferCommand = /usr/bin/curl -C - -f %u > %o | ||||
| #XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u | ||||
| @@ -72,6 +73,9 @@ LocalFileSigLevel = Optional | ||||
| [gnome-unstable] | ||||
| Include = /etc/pacman.d/mirrorlist | ||||
|  | ||||
| [staging] | ||||
| Include = /etc/pacman.d/mirrorlist | ||||
|  | ||||
| [testing] | ||||
| Include = /etc/pacman.d/mirrorlist | ||||
|  | ||||
| @@ -81,6 +85,9 @@ Include = /etc/pacman.d/mirrorlist | ||||
| [extra] | ||||
| Include = /etc/pacman.d/mirrorlist | ||||
|  | ||||
| [community-staging] | ||||
| Include = /etc/pacman.d/mirrorlist | ||||
|  | ||||
| [community-testing] | ||||
| Include = /etc/pacman.d/mirrorlist | ||||
|  | ||||
|   | ||||
| @@ -14,6 +14,7 @@ | ||||
| #CacheDir    = /var/cache/pacman/pkg/ | ||||
| #LogFile     = /var/log/pacman.log | ||||
| #GPGDir      = /etc/pacman.d/gnupg/ | ||||
| #HookDir     = /etc/pacman.d/hooks/ | ||||
| HoldPkg     = pacman glibc | ||||
| #XferCommand = /usr/bin/curl -C - -f %u > %o | ||||
| #XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u | ||||
|   | ||||
| @@ -14,6 +14,7 @@ | ||||
| #CacheDir    = /var/cache/pacman/pkg/ | ||||
| #LogFile     = /var/log/pacman.log | ||||
| #GPGDir      = /etc/pacman.d/gnupg/ | ||||
| #HookDir     = /etc/pacman.d/hooks/ | ||||
| HoldPkg     = pacman glibc | ||||
| #XferCommand = /usr/bin/curl -C - -f %u > %o | ||||
| #XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u | ||||
|   | ||||
| @@ -14,6 +14,7 @@ | ||||
| #CacheDir    = /var/cache/pacman/pkg/ | ||||
| #LogFile     = /var/log/pacman.log | ||||
| #GPGDir      = /etc/pacman.d/gnupg/ | ||||
| #HookDir     = /etc/pacman.d/hooks/ | ||||
| HoldPkg     = pacman glibc | ||||
| #XferCommand = /usr/bin/curl -C - -f %u > %o | ||||
| #XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u | ||||
|   | ||||
| @@ -14,6 +14,7 @@ | ||||
| #CacheDir    = /var/cache/pacman/pkg/ | ||||
| #LogFile     = /var/log/pacman.log | ||||
| #GPGDir      = /etc/pacman.d/gnupg/ | ||||
| #HookDir     = /etc/pacman.d/hooks/ | ||||
| HoldPkg     = pacman glibc | ||||
| #XferCommand = /usr/bin/curl -C - -f %u > %o | ||||
| #XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u | ||||
|   | ||||
| @@ -14,6 +14,7 @@ | ||||
| #CacheDir    = /var/cache/pacman/pkg/ | ||||
| #LogFile     = /var/log/pacman.log | ||||
| #GPGDir      = /etc/pacman.d/gnupg/ | ||||
| #HookDir     = /etc/pacman.d/hooks/ | ||||
| HoldPkg     = pacman glibc | ||||
| #XferCommand = /usr/bin/curl -C - -f %u > %o | ||||
| #XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u | ||||
|   | ||||
| @@ -14,6 +14,7 @@ | ||||
| #CacheDir    = /var/cache/pacman/pkg/ | ||||
| #LogFile     = /var/log/pacman.log | ||||
| #GPGDir      = /etc/pacman.d/gnupg/ | ||||
| #HookDir     = /etc/pacman.d/hooks/ | ||||
| HoldPkg     = pacman glibc | ||||
| #XferCommand = /usr/bin/curl -C - -f %u > %o | ||||
| #XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u | ||||
|   | ||||
| @@ -47,7 +47,7 @@ pkg_from_pkgbuild() { | ||||
| chrootdir="$1"; shift | ||||
| pkgs="$@" | ||||
|  | ||||
| SVNPATH='svn+ssh://nymeria.archlinux.org/srv/repos/svn-packages/svn' | ||||
| SVNPATH='svn+ssh://repos.archlinux.org/srv/repos/svn-packages/svn' | ||||
|  | ||||
| msg "Work will be done in $(pwd)/rebuilds" | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user