Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5947647
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T16:59:37+00:00 2026-05-22T16:59:37+00:00

If a user attempting to build an rpm from a specfile has CONFIG_SITE set

  • 0

If a user attempting to build an rpm from a specfile has CONFIG_SITE set in the environment when running rpmbuild, and the specfile builds with “./configure –prefix=/usr && make”, then the user’s settings in the CONFIG_SITE can completely mangle the build. (As a concrete example, suppose /usr/share/config.site has the line “prefix=/bar”. Then the spec file’s file manifest will be completely wrong and the rpmbuild will fail.)

What is the best practice for dealing with this issue? It seems like common practice is to ignore it. I’ve decided to set CONFIG_SITE=true in the specfile:

CONFIG_SITE=true ./configure --prefix=/usr ...

Is it more common to assume a pristine environment when invoking rpmbuild, and that there is no silliness like resetting prefix in /usr/share/config.site? Or is the maintainer responsible for ensuring that the spec file will build the rpm as expected?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T16:59:38+00:00Added an answer on May 22, 2026 at 4:59 pm

    I think if users set up a stupid config.site file, it’s their own fault. There are certainly countless other ways besides this one to cripple a system; I wouldn’t worry about it. I have never seen an rpm or deb build script that worries about this. So that’s perhaps your “best practice”.

    What you can see occasionally is that a package brings along its own config.site file, but that is then usually supplied by the packager to override what a perhaps broken configure check in the original package would produce.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm attempting to pull data from a page that a user is viewing and
I'm attempting to connect to an api and get a user from a donation
I'm attempting to build an application that builds and saves routes similar to map
I am attempting to set up a Windows XP Test Agent running Ruby on
I'm attempting to set up a CI environment for an iOS application. So far
I'm attempting to build a CheckedListBox in WPF and bind it to the user
I'm attempting to set up a pub/sub system. My technical director has suggested using
I am attempting to build a small local-purpose 3d engine, which has to be
I am attempting to build some programming quizzes where we can save user responses
I'm attempting to build and fix UCL RAT for running on windows compiled with

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.