Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
Cpython
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
sip
Cpython
Commits
abdd69c9
Unverified
Commit
abdd69c9
authored
Apr 1, 2022
by
Christian Heimes
Committed by
GitHub
Apr 1, 2022
Browse files
Options
Downloads
Patches
Plain Diff
bpo-46023: makesetup: skip all duplicate modules (GH-32234)
parent
079143df
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
Misc/NEWS.d/next/Build/2022-04-01-16-12-53.bpo-46023.1Z1OcC.rst
+2
-0
2 additions, 0 deletions
...EWS.d/next/Build/2022-04-01-16-12-53.bpo-46023.1Z1OcC.rst
Modules/makesetup
+12
-6
12 additions, 6 deletions
Modules/makesetup
with
14 additions
and
6 deletions
Misc/NEWS.d/next/Build/2022-04-01-16-12-53.bpo-46023.1Z1OcC.rst
0 → 100644
+
2
−
0
View file @
abdd69c9
``makesetup`` now detects and skips all duplicated module definitions. The
first entry wins.
This diff is collapsed.
Click to expand it.
Modules/makesetup
+
12
−
6
View file @
abdd69c9
...
@@ -117,6 +117,7 @@ sed -e 's/[ ]*#.*//' -e '/^[ ]*$/d' |
...
@@ -117,6 +117,7 @@ sed -e 's/[ ]*#.*//' -e '/^[ ]*$/d' |
BUILT
=
BUILT
=
BUILT_SHARED
=
BUILT_SHARED
=
DISABLED
=
DISABLED
=
CONFIGURED
=
MODS
=
MODS
=
SHAREDMODS
=
SHAREDMODS
=
OBJS
=
OBJS
=
...
@@ -206,12 +207,17 @@ sed -e 's/[ ]*#.*//' -e '/^[ ]*$/d' |
...
@@ -206,12 +207,17 @@ sed -e 's/[ ]*#.*//' -e '/^[ ]*$/d' |
cpps
=
"
\$
(MODULE_
${
mods_upper
}
_CFLAGS)"
cpps
=
"
\$
(MODULE_
${
mods_upper
}
_CFLAGS)"
libs
=
"
\$
(MODULE_
${
mods_upper
}
_LDFLAGS)"
libs
=
"
\$
(MODULE_
${
mods_upper
}
_LDFLAGS)"
fi
fi
case
$DISABLED
in
for
mod
in
$mods
*
$mods
*
)
do
# disabled by previous rule / Setup file
case
$CONFIGURED
in
continue
*
,
${
mod
}
,
*
)
;;
# Detected multiple rules for a module, first rule wins. This
# allows users to disable modules in Setup.local.
echo
1>&2
"maksetup: '
$mod
' was handled by previous rule."
continue
2
;;
esac
esac
CONFIGURED
=
"
$CONFIGURED
,
${
mod
}
,"
done
case
$doconfig
in
case
$doconfig
in
yes
)
yes
)
LIBS
=
"
$LIBS
$libs
"
LIBS
=
"
$LIBS
$libs
"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment