Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 675848 - unknown option --rebuild
Summary: unknown option --rebuild
Status: CONFIRMED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Interface (emerge) (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-01-19 14:31 UTC by Fabio Rossi
Modified: 2019-10-24 09:40 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
pkg_list.txt.bz2 (pkg_list.txt.bz2,2.49 KB, application/x-bzip)
2019-01-19 14:31 UTC, Fabio Rossi
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Fabio Rossi 2019-01-19 14:31:00 UTC
Created attachment 562170 [details]
pkg_list.txt.bz2

Portage 2.3.51 (python 2.7.15-final-0, default/linux/amd64/17.0, gcc-7.3.0, glibc-2.27-r6, 4.19.12-gentoo x86_64)
=================================================================
System uname: Linux-4.19.12-gentoo-x86_64-Intel-R-_Core-TM-_i7_CPU_920_@_2.67GHz-with-gentoo-2.6
KiB Mem:     8150500 total,   1038608 free
KiB Swap:   12000548 total,  11999524 free
Timestamp of repository gentoo: Sat, 19 Jan 2019 08:15:01 +0000
Head commit of repository gentoo: b2e95f815ab7363494323a15b22a7ac0e086f8be
sh bash 4.4_p12
ld GNU ld (Gentoo 2.30 p5) 2.30.0
distcc 3.2rc1 x86_64-pc-linux-gnu [disabled]
app-shells/bash:          4.4_p12::gentoo
dev-java/java-config:     2.2.0-r4::gentoo
dev-lang/perl:            5.26.2::gentoo
dev-lang/python:          2.7.15::gentoo, 3.5.5::gentoo, 3.6.5::gentoo
dev-util/cmake:           3.9.6::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.6-r1::gentoo
sys-apps/openrc:          0.38.3-r1::gentoo
sys-apps/sandbox:         2.13::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.11.6-r3::gentoo, 1.14.1-r2::gentoo, 1.15.1-r2::gentoo, 1.16.1-r1::gentoo
sys-devel/binutils:       2.30-r4::gentoo
sys-devel/gcc:            6.4.0-r1::gentoo, 7.3.0-r3::gentoo
sys-devel/gcc-config:     2.0::gentoo
sys-devel/libtool:        2.4.6-r3::gentoo
sys-devel/make:           4.2.1-r4::gentoo
sys-kernel/linux-headers: 4.14-r1::gentoo (virtual/os-headers)
sys-libs/glibc:           2.27-r6::gentoo


The emerge man page cites a --rebuild option

       --rebuild-exclude ATOMS
              A space separated list of package names or slot atoms. Emerge will not rebuild matching packages due to --rebuild.

       --rebuild-ignore ATOMS
              A  space separated list of package names or slot atoms. Emerge will not rebuild packages that depend on matching packages due to
              --rebuild.

but the option doesn't exist:

# emerge --rebuild
usage: emerge [--info] [--search] [--regen] [--check-news] [--unmerge]
              [--metadata] [--sync] [--version] [--moo] [--depclean] [--prune]
              [--clean] [--list-sets] [--config] [--rage-clean] [--help]
              [--alphabetical] [--ask-enter-invalid] [--buildpkgonly]
              [--changed-use] [--changelog] [--columns] [--debug] [--digest]
              [--emptytree] [--verbose-conflicts] [--fetchonly]
              [--fetch-all-uri] [--ignore-default-opts] [--noconfmem]
              [--newrepo] [--newuse] [--nodeps] [--noreplace] [--nospinner]
              [--oneshot] [--onlydeps] [--pretend] [--quiet-repo-display]
              [--quiet-unmerge-warn] [--resume] [--searchdesc] [--skipfirst]
              [--tree] [--unordered-display] [--update] [-1] [-C] [-B] [-F]
              [-O] [-N] [-P] [-S] [-U] [-V] [-c] [-e] [-d] [-f] [-h] [-l] [-o]
              [-n] [-p] [-s] [-r] [-u] [-t] [--cols] [--skip-first]
              [--rebuild-if-new-slot {True,y,n}]
              [--reinstall-atoms REINSTALL_ATOMS] [--alert {True,y,n}]
              [--rebuilt-binaries-timestamp REBUILT_BINARIES_TIMESTAMP]
              [--jobs JOBS] [--usepkg-exclude USEPKG_EXCLUDE]
              [--usepkgonly {True,y,n}] [--autounmask-backtrack {y,n}]
              [--fail-clean {True,y,n}] [--search-index {y,n}]
              [--config-root CONFIG_ROOT] [--verbose {True,y,n}]
              [--autounmask {True,y,n}] [--reinstall {changed-use}]
              [--rebuilt-binaries {True,y,n}] [--quiet-build {True,y,n}]
              [--autounmask-continue {True,y,n}]
              [--complete-graph-if-new-ver {y,n}]
              [--use-ebuild-visibility {True,y,n}]
              [--onlydeps-with-rdeps {True,y,n}]
              [--verbose-slot-rebuilds {True,y,n}]
              [--complete-graph-if-new-use {y,n}] [--exclude EXCLUDE]
              [--dynamic-deps {y,n}] [--accept-properties ACCEPT_PROPERTIES]
              [--usepkg {True,y,n}] [--search-similarity SEARCH_SIMILARITY]
              [--buildpkg {True,y,n}] [--autounmask-only {True,y,n}]
              [--ignore-soname-deps {y,n}] [--select {True,y,n}]
              [--binpkg-changed-deps {True,y,n}] [--with-bdeps-auto {y,n}]
              [--prefix PREFIX] [--autounmask-unrestricted-atoms {True,y,n}]
              [--ignore-world {True,y,n}] [--rebuild-if-unbuilt {True,y,n}]
              [--with-test-deps {True,y,n}]
              [--rebuild-exclude REBUILD_EXCLUDE]
              [--ignore-built-slot-operator-deps {y,n}]
              [--changed-deps-report {True,y,n}]
              [--rebuild-if-new-ver {True,y,n}] [--changed-deps {True,y,n}]
              [--getbinpkgonly {True,y,n}] [--rebuild-ignore REBUILD_IGNORE]
              [--depclean-lib-check {True,y,n}]
              [--sync-submodule {glsa,news,profiles}] [--backtrack BACKTRACK]
              [--pkg-format PKG_FORMAT] [--autounmask-write {True,y,n}]
              [--autounmask-keep-masks {True,y,n}] [--sysroot SYSROOT]
              [--rebuild-if-new-rev {True,y,n}] [--package-moves {True,y,n}]
              [--changed-slot {True,y,n}] [--root ROOT]
              [--deselect {True,y,n}] [--deep DEEP] [--color {y,n}]
              [--useoldpkg-atoms USEOLDPKG_ATOMS] [--quiet {True,y,n}]
              [--ask {True,y,n}] [--getbinpkg {True,y,n}]
              [--buildpkg-exclude BUILDPKG_EXCLUDE]
              [--accept-restrict ACCEPT_RESTRICT] [--quiet-fail {True,y,n}]
              [--keep-going {True,y,n}] [--fuzzy-search {True,y,n}]
              [--read-news {True,y,n}] [--load-average LOAD_AVERAGE]
              [--complete-graph {True,y,n}] [--with-bdeps {y,n}]
              [--binpkg-respect-use {True,y,n}] [--selective {True,y,n}]
              [--misspell-suggestions {y,n}] [--root-deps {True,rdeps}]
              [--autounmask-keep-keywords {True,y,n}]
emerge: error: ambiguous option: --rebuild could match --rebuild-exclude, --rebuild-if-unbuilt, --rebuild-ignore, --rebuild-if-new-rev, --rebuild-if-new-ver, --rebuild-if-new-slot

Morever I cannot understand how the --rebuild-exclude option works. For instance:

# emerge -pvu icu > pkg_list.txt

which triggers many rebuilds due to slop operator dependencies. I would expect to use --rebuild-exclude to be able to modify the previous list but the following command 

# emerge -pvu --rebuild-exclude app-office/libreoffice icu

returns the same list of packages.