Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow MIRRORSITE to pass sudo #192

Merged
merged 1 commit into from Jan 15, 2019
Merged

Allow MIRRORSITE to pass sudo #192

merged 1 commit into from Jan 15, 2019

Conversation

jgoerzen
Copy link
Contributor

@jgoerzen jgoerzen commented Feb 4, 2018

cowbuilder always passes a --mirror. When one system is used to build both Debian and Ubuntu packages, it is necessary to specify a MIRRORSITE for at least some of them. This permits it to cross sudo.

cowbuilder always passes a --mirror.  When one system is used to build both Debian and Ubuntu packages, it is necessary to specify a MIRRORSITE for at least some of them.  This permits it to cross sudo.
@bmiklautz
Copy link
Contributor

@jgoerzen I hit the same problem (building Debian packages on Ubuntu) and bypassed it by using the PBUILDER_CONFIG.

PBUILDER_CONFIG=$(tempfile)
export PBUILDER_CONFIG
echo 'MIRRORSITE="http://ftp.debian.org/debian"' > $PBUILDER_CONFIG
echo 'DEBOOTSTRAPOPTS=("--keyring=/usr/share/keyrings/debian-archive-keyring.gpg")' >> $PBUILDER_CONFIG

Maybe this solution could also work for you.

@mika mika merged commit d9d9b8f into mika:master Jan 15, 2019
@mika
Copy link
Owner

mika commented Jan 15, 2019

Sorry for the long delay in getting to this, the workaround suggested by @bmiklautz is indeed a solution which saw + use in other setups as well, though the change @jgoerzen proposed should make it easier esp. for new users, so merged! Thanks @jgoerzen + @bmiklautz!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants