Compare commits

...

7 Commits

Author SHA1 Message Date
clrbuilder f12e7e48ea Update packages file for version 21340
Signed-off-by: clrbuilder <david.j.klimesh@intel.com>
2018-03-14 12:01:52 -07:00
clrbuilder f269683632 Update packages file for version 21310
Signed-off-by: clrbuilder <david.j.klimesh@intel.com>
2018-03-13 15:52:23 -07:00
clrbuilder a2c4413083 Update packages file for version 21220
Signed-off-by: clrbuilder <david.j.klimesh@intel.com>
2018-03-08 17:29:54 -08:00
Patrick McCarty cc6e70bb29 Enable local repo notice for autospec commands
Similar to how a notice is printed for 'make build', enable the same
notice for 'make autospec' and 'make autospecnew'.

Signed-off-by: Patrick McCarty <patrick.mccarty@intel.com>
2018-03-08 14:01:48 -08:00
Patrick McCarty f3989c0d5a Enable local repo support for autospec
Local repo support was recently added for 'make build', so do the same
for 'make autospec' and 'make autospecnew'.

Note that to make mock invocations work at both package-level and
toplevel, I am resolving MOCK_CONFIG_VAL with the realpath function.

Signed-off-by: Patrick McCarty <patrick.mccarty@intel.com>
2018-03-07 16:36:41 -08:00
Patrick McCarty f697b227e8 Rename Makefile.functions to Makefile.shared
The name "shared" makes more sense at this point, since the makefile
does not contain only functions, and it is meant to be shared between
Makefile.common and Makefile.toplevel.

Also, reorder the makefile includes, since Makefile.shared should be
able to use variables defined in Makefile.config.

Signed-off-by: Patrick McCarty <patrick.mccarty@intel.com>
2018-03-07 16:00:24 -08:00
clrbuilder 01e548b268 Update packages file for version 21180
Signed-off-by: clrbuilder <david.j.klimesh@intel.com>
2018-03-07 12:02:02 -08:00
4 changed files with 57 additions and 20 deletions
+8 -17
View File
@@ -4,8 +4,8 @@ all: build
TOPLVL = ../.. TOPLVL = ../..
include $(TOPLVL)/projects/common/Makefile.functions
include $(TOPLVL)/projects/common/Makefile.config include $(TOPLVL)/projects/common/Makefile.config
include $(TOPLVL)/projects/common/Makefile.shared
SHELL = /bin/bash SHELL = /bin/bash
@@ -19,12 +19,9 @@ RPMS ?= $(LATEST_RPMS)
WITH_SUDO = $(shell cmp /usr/bin/mock /usr/sbin/mock &> /dev/null && echo sudo ) WITH_SUDO = $(shell cmp /usr/bin/mock /usr/sbin/mock &> /dev/null && echo sudo )
ifeq ($(wildcard $(TOPLVL)/repo/clear.cfg),) # MOCK_CONFIG_VAL is set in Makefile.shared
MOCK ?= $(WITH_SUDO) /usr/bin/mock -r $(MOCK_CONF) MOCK ?= $(WITH_SUDO) /usr/bin/mock -r $(MOCK_CONFIG_VAL)
else
MOCK ?= $(WITH_SUDO) /usr/bin/mock -r $(TOPLVL)/repo/clear.cfg
USE_LOCAL_REPO = 1
endif
ifneq ($(wildcard upstream),) ifneq ($(wildcard upstream),)
__allsources := $(notdir $(strip $(shell cat upstream))) __allsources := $(notdir $(strip $(shell cat upstream)))
@@ -118,15 +115,8 @@ shell:
# Always rebuild the source rpm # Always rebuild the source rpm
.PHONY: $(SRPMFILE) .PHONY: $(SRPMFILE)
$(SRPMFILE): $(SPECFILE) $(__allsources) $(SRPMFILE): $(SPECFILE) $(__allsources) localreponotice
@$(MAKE) spdxcheck @$(MAKE) spdxcheck
@if [ -n "${USE_LOCAL_REPO}" ]; then \
printf '\n\n** NOTICE: Using local repo for the build. Continuing after 3 seconds.\n'; \
printf '** If this is not desired, run `make repodisable`.\n'; \
printf '** The repo can be re-enabled later with `make repoenable`.\n'; \
printf '** Run `touch $(TOPLVL)/repo/opt-in-build` to prevent the 3 second delay.\n\n\n'; \
[ -f $(TOPLVL)/repo/opt-in-build ] || sleep 3; \
fi >&2
$(MOCK) --buildsrpm --source=./ --spec=$(SPECFILE) --result=results/ --no-cleanup-after --uniqueext=$(PKG_NAME) $(MOCK) --buildsrpm --source=./ --spec=$(SPECFILE) --result=results/ --no-cleanup-after --uniqueext=$(PKG_NAME)
# Do a git fetch and a git rebase rather than a git pull so aborting # Do a git fetch and a git rebase rather than a git pull so aborting
@@ -154,7 +144,7 @@ pullrebase:
#help already a specfile, it will be overwritten. Several files used by #help already a specfile, it will be overwritten. Several files used by
#help autospec will be created in the process. For more information, see #help autospec will be created in the process. For more information, see
#help the project at https://github.com/clearlinux/autospec #help the project at https://github.com/clearlinux/autospec
autospec: pullrebase autospec: pullrebase localreponotice
rm -f results/*src.rpm rm -f results/*src.rpm
@if [ -e $(SPECFILE) ] && ! grep -q "# Generated by: autospec.py" $(SPECFILE) ; then \ @if [ -e $(SPECFILE) ] && ! grep -q "# Generated by: autospec.py" $(SPECFILE) ; then \
echo "Specfile already exists and was not created by autospec.py! Aborting."; \ echo "Specfile already exists and was not created by autospec.py! Aborting."; \
@@ -164,7 +154,8 @@ autospec: pullrebase
python3 $(TOPLVL)/projects/autospec/autospec/autospec.py -t . --integrity \ python3 $(TOPLVL)/projects/autospec/autospec/autospec.py -t . --integrity \
${NON_INTERACTIVE} --config "$(AUTOSPEC_CONF)" ${SKIP_GIT} \ ${NON_INTERACTIVE} --config "$(AUTOSPEC_CONF)" ${SKIP_GIT} \
$(firstword $(NEWURL) $(URL)) --name $(PKG_NAME) ${CLEANUP} \ $(firstword $(NEWURL) $(URL)) --name $(PKG_NAME) ${CLEANUP} \
$${SETVERSION:+ -v $${SETVERSION}} -a $(ARCHIVES) $${SETVERSION:+ -v $${SETVERSION}} -a $(ARCHIVES) \
-m $(MOCK_CONFIG_VAL)
@$(MAKE) spdxcheck @$(MAKE) spdxcheck
@$(MAKE) checkblacklist @$(MAKE) checkblacklist
@if [ -e update_changelog.sh ] && [ -z "$$SKIP_GIT" ] ; then \ @if [ -e update_changelog.sh ] && [ -z "$$SKIP_GIT" ] ; then \
+18
View File
@@ -119,6 +119,24 @@ localrepostatus:
fi; \ fi; \
) )
# Detection of whether to use the local RPM repo occurs on-the-fly. Normally,
# variable definitions appear in Makefile.config, but these variables are not
# intended to be user-modifiable.
ifeq ($(wildcard $(TOPLVL)/repo/clear.cfg),)
MOCK_CONFIG_VAL = $(realpath $(MOCK_CONF))
else
MOCK_CONFIG_VAL = $(realpath $(TOPLVL)/repo/clear.cfg)
USE_LOCAL_REPO = 1
endif
localreponotice:
@if [ -n "${USE_LOCAL_REPO}" ]; then \
printf '\n\n** NOTICE: Using local repo for the build. Continuing after 3 seconds.\n'; \
printf '** If this is not desired, run `make repodisable`.\n'; \
printf '** The repo can be re-enabled later with `make repoenable`.\n'; \
printf '** Run `touch $(TOPLVL)/repo/opt-in-build` to prevent the 3 second delay.\n\n\n'; \
[ -f $(TOPLVL)/repo/opt-in-build ] || sleep 3; \
fi >&2
.PHONY: help .PHONY: help
##### Code ##### Code
+3 -3
View File
@@ -4,8 +4,8 @@ all: clone
TOPLVL = . TOPLVL = .
include $(TOPLVL)/projects/common/Makefile.functions
include $(TOPLVL)/projects/common/Makefile.config include $(TOPLVL)/projects/common/Makefile.config
include $(TOPLVL)/projects/common/Makefile.shared
SHELL = /bin/bash SHELL = /bin/bash
@@ -188,7 +188,7 @@ provides:
#help autospecnew: Creates a new autospec package with for a given URL=$(URL) #help autospecnew: Creates a new autospec package with for a given URL=$(URL)
#help with NAME=$(NAME). Several files used by autospec will be created in the #help with NAME=$(NAME). Several files used by autospec will be created in the
#help process. For more information about autospec, see the project page on Github https://github.com/clearlinux/autospec #help process. For more information about autospec, see the project page on Github https://github.com/clearlinux/autospec
autospecnew: autospecnew: localreponotice
@if [ -z $(NAME) ] || [ -z $(URL) ]; then \ @if [ -z $(NAME) ] || [ -z $(URL) ]; then \
echo "Please specify NAME and URL. The ARCHIVES variable is optional."; \ echo "Please specify NAME and URL. The ARCHIVES variable is optional."; \
exit 1; \ exit 1; \
@@ -204,7 +204,7 @@ autospecnew:
$(call subjectprefix,$(NAME)); \ $(call subjectprefix,$(NAME)); \
); \ ); \
printf 'PKG_NAME := %s\nURL = %s\nARCHIVES = %s\n\ninclude ../common/Makefile.common\n' $(NAME) '$(value URL)' '$(value ARCHIVES)' > $(TOPLVL)/packages/$(NAME)/Makefile; \ printf 'PKG_NAME := %s\nURL = %s\nARCHIVES = %s\n\ninclude ../common/Makefile.common\n' $(NAME) '$(value URL)' '$(value ARCHIVES)' > $(TOPLVL)/packages/$(NAME)/Makefile; \
python3 $(TOPLVL)/projects/autospec/autospec/autospec.py --integrity -t packages/$(NAME) --config $(AUTOSPEC_CONF) $(URL) --name $(NAME); \ python3 $(TOPLVL)/projects/autospec/autospec/autospec.py --integrity -t packages/$(NAME) --config $(AUTOSPEC_CONF) $(URL) --name $(NAME) -m $(MOCK_CONFIG_VAL); \
$(TOPLVL)/projects/common/checkblacklist.sh $(TOPLVL)/projects/common/blacklist $(TOPLVL)/packages/${NAME}/results/*.rpm; \ $(TOPLVL)/projects/common/checkblacklist.sh $(TOPLVL)/projects/common/blacklist $(TOPLVL)/packages/${NAME}/results/*.rpm; \
else \ else \
echo "$(NAME) already exists at $(TOPLVL)/packages/$(NAME)"; \ echo "$(NAME) already exists at $(TOPLVL)/packages/$(NAME)"; \
+28
View File
@@ -182,6 +182,8 @@ accountsservice
acl acl
acme acme
acpica-unix2 acpica-unix2
acrn-devicemodel
acrn-hypervisor
adwaita-icon-theme adwaita-icon-theme
aeon aeon
alabaster alabaster
@@ -233,6 +235,7 @@ babl
backports.functools_lru_cache backports.functools_lru_cache
backports.ssl_match_hostname backports.ssl_match_hostname
backports.weakref backports.weakref
baobab
bash bash
bash-completion bash-completion
bash_kernel bash_kernel
@@ -273,6 +276,7 @@ cabextract
cached-property cached-property
cairo cairo
cairomm cairomm
cantarell-fonts
cargo cargo
caribou caribou
catch2 catch2
@@ -413,6 +417,7 @@ docbook-xml
docker docker
docker-py docker-py
docutils docutils
dogtail
dos2unix dos2unix
dosfstools dosfstools
double-conversion double-conversion
@@ -477,6 +482,7 @@ flex
flmsg flmsg
flnet flnet
fltk fltk
folks
font-adobe-100dpi font-adobe-100dpi
font-adobe-75dpi font-adobe-75dpi
font-bitstream-type1 font-bitstream-type1
@@ -514,6 +520,7 @@ geocode-glib
gettext gettext
gevent gevent
gexiv2 gexiv2
gfbgraph
gflags gflags
ghostscript ghostscript
gimp gimp
@@ -542,6 +549,7 @@ gnome-bluetooth
gnome-calculator gnome-calculator
gnome-calendar gnome-calendar
gnome-characters gnome-characters
gnome-color-manager
gnome-common gnome-common
gnome-control-center gnome-control-center
gnome-desktop gnome-desktop
@@ -550,17 +558,26 @@ gnome-font-viewer
gnome-icon-theme gnome-icon-theme
gnome-initial-setup gnome-initial-setup
gnome-keyring gnome-keyring
gnome-logs
gnome-maps
gnome-menus gnome-menus
gnome-music
gnome-online-accounts gnome-online-accounts
gnome-panel gnome-panel
gnome-photos
gnome-screenshot gnome-screenshot
gnome-session gnome-session
gnome-settings-daemon gnome-settings-daemon
gnome-shell gnome-shell
gnome-shell-extensions gnome-shell-extensions
gnome-system-monitor
gnome-terminal gnome-terminal
gnome-themes-standard gnome-themes-standard
gnome-todo
gnome-tweak-tool gnome-tweak-tool
gnome-user-docs
gnome-video-effects
gnome-weather
gnu-efi gnu-efi
gnupg gnupg
gnuplot gnuplot
@@ -568,6 +585,7 @@ gnutls
go go
gobject-introspection gobject-introspection
golang-github-cpuguy83-go-md2man golang-github-cpuguy83-go-md2man
gom
goocanvas goocanvas
google-api-python-client google-api-python-client
google-apitools google-apitools
@@ -580,6 +598,7 @@ gpredict
gptfdisk gptfdisk
gradle gradle
gradle-dep gradle-dep
graphene
graphviz graphviz
greenlet greenlet
grep grep
@@ -590,6 +609,7 @@ groff
grub grub
gsettings-desktop-schemas gsettings-desktop-schemas
gsl gsl
gsound
gspell gspell
gst-plugins-bad gst-plugins-bad
gst-plugins-base gst-plugins-base
@@ -649,6 +669,7 @@ init-rdahead
inotify-tools inotify-tools
inputproto inputproto
intltool intltool
invm-frameworks
ioping ioping
iotop iotop
ipaddr ipaddr
@@ -755,6 +776,7 @@ libcap
libcap-ng libcap-ng
libcdio libcdio
libcgroup libcgroup
libchamplain
libcomps libcomps
libconfig libconfig
libcroco libcroco
@@ -773,6 +795,7 @@ libgcrypt
libgd libgd
libgdata libgdata
libgee libgee
libgepub
libgfortran-avx libgfortran-avx
libgfortran-compat-soname3 libgfortran-compat-soname3
libgit2 libgit2
@@ -1195,6 +1218,7 @@ pyOpenSSL
pyaml pyaml
pyasn1 pyasn1
pyasn1-modules pyasn1-modules
pyatspi
pycairo pycairo
pycodestyle pycodestyle
pycparser pycparser
@@ -1320,6 +1344,7 @@ screen
scripttest scripttest
scrnsaverproto scrnsaverproto
seaborn seaborn
seahorse
secretstorage secretstorage
sed sed
setproctitle setproctitle
@@ -1421,6 +1446,7 @@ tqdm
traceback2 traceback2
traceroute traceroute
tracker tracker
tracker-miners
traitlets traitlets
tree tree
typed-ast typed-ast
@@ -1452,6 +1478,7 @@ videoproto
vim vim
vim-go vim-go
vinagre vinagre
vino
virt-manager virt-manager
virt-viewer virt-viewer
virtualenv virtualenv
@@ -1469,6 +1496,7 @@ webencodings
webkitgtk webkitgtk
websocket_client websocket_client
websockify websockify
weechat
weston weston
wget wget
wheel wheel