Skip to content

allow out_data_dirs to be referenced through output groups#1451

Merged
cerisier merged 1 commit intobazel-contrib:mainfrom
chouquette:chouquette/out_data_dirs
Jan 12, 2026
Merged

allow out_data_dirs to be referenced through output groups#1451
cerisier merged 1 commit intobazel-contrib:mainfrom
chouquette:chouquette/out_data_dirs

Conversation

@chouquette
Copy link
Copy Markdown
Contributor

This change allows one to easily reference the content of folders listed in out_data_dirs through an output group, instead of relying on gen_dir & genrule

dd-mergequeue bot pushed a commit to DataDog/datadog-agent that referenced this pull request Dec 18, 2025
### What does this PR do?

Build krb5 with bazel

### Motivation

Migration of our 3rd party dependencies to bazel
https://datadoghq.atlassian.net/browse/ABLD-274

### Describe how you validated your changes

Local build for linux x86_64

### Additional Notes

This PR also contains a patch that can be seen as a PR upstream: bazel-contrib/rules_foreign_cc#1451

This will drop all the executables that we currently install:
```
bin/compile_et  
bin/gss-client  
bin/k5srvutil   
bin/kadmin      
bin/kdestroy    
bin/kinit       
bin/klist       
bin/kpasswd     
bin/krb5-config 
bin/ksu         
bin/kswitch     
bin/ktutil      
bin/kvno        
bin/sclient     
bin/sim_client  
bin/uuclient    
```
and
```
sbin/gss-server   
sbin/kadmin.local 
sbin/kadmind      
sbin/kdb5_util    
sbin/kprop        
sbin/kpropd       
sbin/kproplog     
sbin/krb5-send-pr 
sbin/krb5kdc      
sbin/sim_server   
sbin/sserver      
sbin/uuserver     
```

Co-authored-by: hugo.beauzee <hugo.beauzee@datadoghq.com>
mwdd146980 pushed a commit to DataDog/datadog-agent that referenced this pull request Dec 23, 2025
### What does this PR do?

Build krb5 with bazel

### Motivation

Migration of our 3rd party dependencies to bazel
https://datadoghq.atlassian.net/browse/ABLD-274

### Describe how you validated your changes

Local build for linux x86_64

### Additional Notes

This PR also contains a patch that can be seen as a PR upstream: bazel-contrib/rules_foreign_cc#1451

This will drop all the executables that we currently install:
```
bin/compile_et
bin/gss-client
bin/k5srvutil
bin/kadmin
bin/kdestroy
bin/kinit
bin/klist
bin/kpasswd
bin/krb5-config
bin/ksu
bin/kswitch
bin/ktutil
bin/kvno
bin/sclient
bin/sim_client
bin/uuclient
```
and
```
sbin/gss-server
sbin/kadmin.local
sbin/kadmind
sbin/kdb5_util
sbin/kprop
sbin/kpropd
sbin/kproplog
sbin/krb5-send-pr
sbin/krb5kdc
sbin/sim_server
sbin/sserver
sbin/uuserver
```

Co-authored-by: hugo.beauzee <hugo.beauzee@datadoghq.com>
Copy link
Copy Markdown
Collaborator

@cerisier cerisier left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fine with me !

@rdesgroppes
Copy link
Copy Markdown
Contributor

@cerisier Would you consider merging it?

@cerisier cerisier merged commit a3cef63 into bazel-contrib:main Jan 12, 2026
2 checks passed
@chouquette chouquette deleted the chouquette/out_data_dirs branch January 15, 2026 10:21
rdesgroppes added a commit to DataDog/datadog-agent that referenced this pull request Mar 12, 2026
Switch rules_foreign_cc from single_version_override on 0.15.1 to a
git_override on main (e4068330) to pick up three upstream fixes:

- bazel-contrib/rules_foreign_cc#1451: out_data_dirs in output groups
  (our patch 0001 verbatim — drop it)
- bazel-contrib/rules_foreign_cc#1465: resource_set integration, which
  lets Bazel's scheduler respect CPU/RAM budgets and avoids build action
  overcommitting
- bazel-contrib/rules_foreign_cc#1470: forward -isystem flags to
  configure scripts

Patch 0002 (LD_LIBRARY_PATH propagation) is kept locally as
bazel-contrib/rules_foreign_cc#1452 is still open.

bazel-contrib/rules_foreign_cc#1462 bumps bazel_lib to 3.2.0; follow
up to 3.2.2 to get path-mapping compatibility with Bazel 9.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
rdesgroppes added a commit to DataDog/datadog-agent that referenced this pull request Mar 12, 2026
Switch rules_foreign_cc from single_version_override on 0.15.1 to a
git_override on main (e4068330) to pick up three upstream fixes:

- bazel-contrib/rules_foreign_cc#1451: out_data_dirs in output groups
  (our patch 0001 verbatim — drop it)
- bazel-contrib/rules_foreign_cc#1465: resource_set integration, which
  lets Bazel's scheduler respect CPU/RAM budgets and avoids build action
  overcommitting
- bazel-contrib/rules_foreign_cc#1470: forward -isystem flags to
  configure scripts

Patch 0002 (LD_LIBRARY_PATH propagation) is kept locally as
bazel-contrib/rules_foreign_cc#1452 is still open.

bazel-contrib/rules_foreign_cc#1462 bumps bazel_lib to 3.2.0; follow
up to 3.2.2 to get path-mapping compatibility with Bazel 9.
gh-worker-dd-mergequeue-cf854d bot pushed a commit to DataDog/datadog-agent that referenced this pull request Mar 13, 2026
### What does this PR do?
Switch `rules_foreign_cc` from `single_version_override` on 0.15.1 to a `git_override` on `main`.

Implies to bump `bazel_lib` to 3.2+ (see bazel-contrib/rules_foreign_cc#1462).

### Motivation
Pick up three upstream fixes:
1. bazel-contrib/rules_foreign_cc#1451 (allows to **drop our corresponding patch**),
2. bazel-contrib/rules_foreign_cc#1465 (avoids build action **over-committing**),
3. bazel-contrib/rules_foreign_cc#1470.

### Additional Notes
Patch 0002 (LD_LIBRARY_PATH propagation) is kept locally as bazel-contrib/rules_foreign_cc#1452 is still open.

Co-authored-by: regis.desgroppes <regis.desgroppes@datadoghq.com>
theop-dd pushed a commit to DataDog/datadog-agent that referenced this pull request Mar 16, 2026
### What does this PR do?
Switch `rules_foreign_cc` from `single_version_override` on 0.15.1 to a `git_override` on `main`.

Implies to bump `bazel_lib` to 3.2+ (see bazel-contrib/rules_foreign_cc#1462).

### Motivation
Pick up three upstream fixes:
1. bazel-contrib/rules_foreign_cc#1451 (allows to **drop our corresponding patch**),
2. bazel-contrib/rules_foreign_cc#1465 (avoids build action **over-committing**),
3. bazel-contrib/rules_foreign_cc#1470.

### Additional Notes
Patch 0002 (LD_LIBRARY_PATH propagation) is kept locally as bazel-contrib/rules_foreign_cc#1452 is still open.

Co-authored-by: regis.desgroppes <regis.desgroppes@datadoghq.com>
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.

3 participants