[opensuse-packaging] %fdupes not expanding correctly
Hi! I have tried to use the %fdupes macro in my aws-sdk-cpp package [1]: Index: aws-sdk-cpp.spec =================================================================== --- aws-sdk-cpp.spec (revision 27e40ee71aa9d59fa4dc57c72b2b274f) +++ aws-sdk-cpp.spec (working copy) @@ -52,7 +52,7 @@ low- and high-level SDKs, while minimizing dependencies and providing platform portability (Windows, OSX, Linux, and mobile). -This package contains the shared libaries. +This package contains the shared libraries. %package devel Summary: AWS SDK for C++ - development files @@ -86,7 +86,7 @@ %files devel %defattr(-,root,root) -%{_includedir}/aws/ -%{_libdir}/cmake/ -%{_libdir}/pkgconfig/ +%{_includedir}/aws +%fdupes -s %{_libdir}/cmake +%{_libdir}/pkgconfig %changelog However, when I try to build the package, the %fdupes macro is not expanding correctly and I get the following mess: [ 2425s] Processing files: aws-sdk-cpp-devel-1.5.7-0.x86_64 [ 2425s] error: File must begin with "/": _target=""; [ 2425s] error: File must begin with "/": _symlinks=0; [ 2425s] error: File must begin with "/": _symlinks=1; [ 2425s] error: File must begin with "/": fdupes [ 2425s] error: File must begin with "/": -q [ 2425s] error: File must begin with "/": -p [ 2425s] error: File must begin with "/": -n [ 2425s] error: File must begin with "/": -H [ 2425s] error: File must begin with "/": -o [ 2425s] error: File must begin with "/": name [ 2425s] error: File must begin with "/": -r [ 2425s] error: File must begin with "/": | [ 2425s] error: File must begin with "/": while [ 2425s] error: File must begin with "/": read [ 2425s] error: File must begin with "/": _file; [ 2425s] error: File must begin with "/": do [ 2425s] error: File must begin with "/": if [ 2425s] error: File must begin with "/": test [ 2425s] error: File must begin with "/": -z [ 2425s] error: File must begin with "/": $_target [ 2425s] error: File must begin with "/": ; [ 2425s] error: File must begin with "/": then [ 2425s] error: File must begin with "/": _target="$_file"; [ 2425s] error: File must begin with "/": else [ 2425s] error: File must begin with "/": if [ 2425s] error: File must begin with "/": test [ 2425s] error: File must begin with "/": -z [ 2425s] error: File must begin with "/": $_file [ 2425s] error: File must begin with "/": ; [ 2425s] error: File must begin with "/": then [ 2425s] error: File must begin with "/": _target=""; [ 2425s] error: File must begin with "/": continue [ 2425s] error: File must begin with "/": ; [ 2425s] error: File must begin with "/": fi [ 2425s] error: File must begin with "/": ; [ 2425s] error: File must begin with "/": if [ 2425s] error: File must begin with "/": test [ 2425s] error: File must begin with "/": $_symlinks [ 2425s] error: File must begin with "/": = [ 2425s] error: File must begin with "/": 1; [ 2425s] error: File must begin with "/": then [ 2425s] error: File must begin with "/": ln [ 2425s] error: File must begin with "/": -sf [ 2425s] error: File must begin with "/": ${_target#/home/abuild/rpmbuild/BUILDROOT/aws-sdk-cpp-1.5.7-0.x86_64} [ 2425s] error: File must begin with "/": $_file [ 2425s] error: File must begin with "/": ; [ 2425s] error: File must begin with "/": else [ 2425s] error: File must begin with "/": ln [ 2425s] error: File must begin with "/": -f [ 2425s] error: File must begin with "/": $_target [ 2425s] error: File must begin with "/": $_file [ 2425s] error: File must begin with "/": ; [ 2425s] error: File must begin with "/": fi [ 2425s] error: File must begin with "/": ; [ 2425s] error: File must begin with "/": fi [ 2425s] error: File must begin with "/": ; [ 2425s] error: File must begin with "/": done [ 2425s] [ 2425s] [ 2425s] RPM build errors: [ 2425s] File must begin with "/": _target=""; [ 2425s] File must begin with "/": _symlinks=0; [ 2425s] File must begin with "/": _symlinks=1; [ 2425s] File must begin with "/": fdupes [ 2425s] File must begin with "/": -q [ 2425s] File must begin with "/": -p [ 2425s] File must begin with "/": -n [ 2425s] File must begin with "/": -H [ 2425s] File must begin with "/": -o [ 2425s] File must begin with "/": name [ 2425s] File must begin with "/": -r [ 2425s] File must begin with "/": | [ 2425s] File must begin with "/": while [ 2425s] File must begin with "/": read [ 2425s] File must begin with "/": _file; [ 2425s] File must begin with "/": do [ 2425s] File must begin with "/": if [ 2425s] File must begin with "/": test [ 2425s] File must begin with "/": -z [ 2425s] File must begin with "/": $_target [ 2425s] File must begin with "/": ; [ 2425s] File must begin with "/": then [ 2425s] File must begin with "/": _target="$_file"; [ 2425s] File must begin with "/": else [ 2425s] File must begin with "/": if [ 2425s] File must begin with "/": test [ 2425s] File must begin with "/": -z [ 2425s] File must begin with "/": $_file [ 2425s] File must begin with "/": ; [ 2425s] File must begin with "/": then [ 2425s] File must begin with "/": _target=""; [ 2425s] File must begin with "/": continue [ 2425s] File must begin with "/": ; [ 2425s] File must begin with "/": fi [ 2425s] File must begin with "/": ; [ 2425s] File must begin with "/": if [ 2425s] File must begin with "/": test [ 2425s] File must begin with "/": $_symlinks [ 2425s] File must begin with "/": = [ 2425s] File must begin with "/": 1; [ 2425s] File must begin with "/": then [ 2425s] File must begin with "/": ln [ 2425s] File must begin with "/": -sf [ 2425s] File must begin with "/": ${_target#/home/abuild/rpmbuild/BUILDROOT/aws-sdk-cpp-1.5.7-0.x86_64} [ 2425s] File must begin with "/": $_file [ 2425s] File must begin with "/": ; [ 2425s] File must begin with "/": else [ 2425s] File must begin with "/": ln [ 2425s] File must begin with "/": -f [ 2425s] File must begin with "/": $_target [ 2425s] File must begin with "/": $_file [ 2425s] File must begin with "/": ; [ 2425s] File must begin with "/": fi [ 2425s] File must begin with "/": ; [ 2425s] File must begin with "/": fi [ 2425s] File must begin with "/": ; [ 2425s] File must begin with "/": done [ 2425s] [ 2425s] epyc failed "build aws-sdk-cpp.spec" at Wed Aug 8 11:42:34 UTC 2018. [ 2425s] Does anyone know what the problem is? I used %fdupes as documented in [2]. Adrian
[1] https://build.opensuse.org/package/show/home:glaubitz:branches:Cloud:Tools/a... [2] https://en.opensuse.org/openSUSE:Packaging_Conventions_RPM_Macros#.25fdupes -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
On 08 Aug 15:11, John Paul Adrian Glaubitz wrote:
Hi!
I have tried to use the %fdupes macro in my aws-sdk-cpp package [1]:
Index: aws-sdk-cpp.spec =================================================================== --- aws-sdk-cpp.spec (revision 27e40ee71aa9d59fa4dc57c72b2b274f) +++ aws-sdk-cpp.spec (working copy) @@ -52,7 +52,7 @@ low- and high-level SDKs, while minimizing dependencies and providing platform portability (Windows, OSX, Linux, and mobile).
-This package contains the shared libaries. +This package contains the shared libraries.
%package devel Summary: AWS SDK for C++ - development files @@ -86,7 +86,7 @@
%files devel %defattr(-,root,root) -%{_includedir}/aws/ -%{_libdir}/cmake/ -%{_libdir}/pkgconfig/ +%{_includedir}/aws +%fdupes -s %{_libdir}/cmake
Put it at the end of %install section, not %files. Regards, ismail -- SUSE Linux GmbH, GF: Felix Imendörffer, Jane Smithard, Graham Norton, HRB 21284 (AG Nürnberg)
On Wed, Aug 08, 2018 at 03:11:04PM +0200, John Paul Adrian Glaubitz wrote:
Hi!
I have tried to use the %fdupes macro in my aws-sdk-cpp package [1]:
Index: aws-sdk-cpp.spec =================================================================== --- aws-sdk-cpp.spec (revision 27e40ee71aa9d59fa4dc57c72b2b274f) +++ aws-sdk-cpp.spec (working copy) @@ -52,7 +52,7 @@ low- and high-level SDKs, while minimizing dependencies and providing platform portability (Windows, OSX, Linux, and mobile).
-This package contains the shared libaries. +This package contains the shared libraries.
%package devel Summary: AWS SDK for C++ - development files @@ -86,7 +86,7 @@
%files devel %defattr(-,root,root) -%{_includedir}/aws/ -%{_libdir}/cmake/ -%{_libdir}/pkgconfig/ +%{_includedir}/aws +%fdupes -s %{_libdir}/cmake +%{_libdir}/pkgconfig %changelog
However, when I try to build the package, the %fdupes macro is not expanding correctly and I get the following mess:
%fdupes is a macro that is multiple lines of commands, it is not supposed to be in the %files section, but in the %install section. Ciao, Marcus -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
On 08/08/2018 03:15 PM, Marcus Meissner wrote:
However, when I try to build the package, the %fdupes macro is not expanding correctly and I get the following mess:
%fdupes is a macro that is multiple lines of commands, it is not supposed to be in the %files section, but in the %install section.
Ah, my bad. Thanks a lot everyone for the quick help! Adrian -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
On 08/08/2018 03:22 PM, John Paul Adrian Glaubitz wrote:
On 08/08/2018 03:15 PM, Marcus Meissner wrote:
However, when I try to build the package, the %fdupes macro is not expanding correctly and I get the following mess:
%fdupes is a macro that is multiple lines of commands, it is not supposed to be in the %files section, but in the %install section.
Ah, my bad. Thanks a lot everyone for the quick help!
Hmm, I moved the statement to %install: %install %cmake_install %fdupes -s %{_libdir}/cmake but the duplicates aren't getting eliminated: [ 3169s] aws-sdk-cpp-devel.x86_64: W: files-duplicate /usr/lib64/cmake/aws-cpp-sdk-meteringmarketplace/aws-cpp-sdk-meteringmarketplace-config-version.cmake /usr/lib64/cmake/aws-cpp-sdk-AWSMigrationHub/aws-cpp-sdk-AWSMigrationHub-config-version.cmake:/usr/lib64/cmake/aws-cpp-sdk-access-management/aws-cpp-sdk-access-management-config-version.cmake:/usr/lib64/cmake/aws-cpp-sdk-acm-pca/aws-cpp-sdk-acm-pca-config-version.cmake:/usr/lib64/cmake/aws-cpp-sdk-acm/aws-cpp-sdk-acm-config-version.cmake:/usr/lib64/cmake/aws-cpp-sdk-alexaforbusiness/aws-cpp-sdk-alexaforbusiness-config-version.cmake:/usr/lib64/cmake/aws-cpp-sdk-apigateway/aws-cpp-sdk-apigateway-config-version.cmake:/usr/lib64/cmake/aws-cpp-sdk-application-autoscaling/aws-cpp-sdk-application-autoscaling-config-version.cmake:/usr/lib64/cmake/aws-cpp-sdk-appstream/aws-cpp-sdk-appstream-config-version.cmake:/usr/lib64/cmake/aws-cpp-sdk-appsync/aws-cpp-sdk-appsync-config-version.cmake:/usr/lib64/cmake/aws-cpp-sdk-athena/aws-cpp-sdk-athena-config-version.cmake:/usr/lib64/cmake/aws-cpp-sdk-autoscaling-plans/aws-cpp-sdk-autoscaling-plans-config-version.cmake:/usr/lib64/cmake/aws-cpp-sdk-autoscaling/aws-cpp-sdk-autoscaling-config-version.cmake:/usr/lib64/cmake/aws-cpp-sdk-batch/aws-cpp-sdk-batch-config-version.cmake:/usr/lib64/cmake/aws-cpp-sdk-budgets/aws-cpp-sdk-budgets-config-version.cmake:/usr/lib64/cmake/aws-cpp-sdk-ce/aws-cpp-sdk-ce-config-version.cmake:/usr/lib64/cmake/aws-cpp-sdk-cloud9/aws-cpp-sdk-cloud9-config-version.cmake:/usr/lib64/cmake/aws-cpp-sdk-clouddirectory/aws-cpp-sdk-clouddirectory-config-version.cmake:/usr/lib64/cmake/aws-cpp-sdk-cloudformation/aws-cpp-sdk-cloudformation-config-version.cmake:/usr/lib64/cmake/aws-cpp-sdk-cloudfront/aws-cpp-sdk-cloudfront-config-version.cmake:/usr/lib64/cmake/aws-cpp-sdk-cloudhsm/aws-cpp-sdk-cloudhsm-config-version.cmake:/usr/lib64/cmake/aws-cpp-sdk-cloudhsmv2/aws-cpp-sdk-cloudhsmv2-config-version.cmake:/usr/lib64/cmake/aws-cpp-sdk-cloudsearch/aws-cpp-sdk-cloudsearch-config-version.cmake:/usr/lib64/cmake/aws-cpp-sdk-cloudsearchdomain/aws-cpp-sdk-cloudsearchdomain-config-version.cmake:/usr/lib64/cmake/aws-cpp-sdk-cloudtrail/aws-cpp-sdk-cloudtrail-config-version.cmake:/usr/lib64/cmake/aws-cpp-sdk-codebuild/aws-cpp-sdk-codebuild-config-version.cmake:/usr/lib64/cmake/aws-cpp-sdk-codecommit/aws-cpp-sdk-codecommit-config-version.cmake:/usr/lib64/cmake/aws-cpp-sdk-codedeploy/aws-cpp-sdk-codedeploy-config-version.cmake:/usr/lib64/cmake/aws-cpp-sdk-codepipeline/aws-cpp-sdk-codepipeline-config-version.cmake:/usr/lib64/cmake/aws-cpp-sdk-codestar/aws-cpp-sdk-codestar-config-version.cmake:/usr/lib64/cmake/aws-cpp-sdk-cognito-identity/aws-cpp-sdk-cognito-identity-config-version.cmake:/usr/lib64/cmake/aws-cpp-sdk-cognito-idp/aws-cpp-sdk-cognito-idp-config-version.cmake:/usr/lib64/cmake/aws-cpp-sdk-cognito-sync/aws-cpp-sdk-cognito-sync-config-version.cmake:/usr/lib64/cmake/aws-cpp-sdk-comprehend/aws-cpp-sdk-comprehend-config-version.cmake:/usr/lib64/cmake/aws-cpp-sdk-config/aws-cpp-sdk-config-config-version.cmake:/usr/lib64/cmake/aws-cpp-sdk-connect/aws-cpp-sdk-connect-config-version.cmake:/usr/lib64/cmake/aws-cpp-sdk-core/aws-cpp-sdk-core-config-version.cmake:/usr/lib64/cmake/aws-cpp-sdk-cur/aws-cpp-sdk-cur-config-version.cmake:/usr/lib64/cmake/aws-cpp-sdk-datapipeline/aws-cpp-sdk-datapipeline-config-version.cmake:/usr/lib64/cmake/aws-cpp-sdk-dax/aws-cpp-sdk-dax-config-version.cmake:/usr/lib64/cmake/aws-cpp-sdk-devicefarm/aws-cpp-sdk-devicefarm-config-version.cmake:/usr/lib64/cmake/aws-cpp-sdk-directconnect/aws-cpp-sdk-directconnect-config-version.cmake:/usr/lib64/cmake/aws-cpp-sdk-discovery/aws-cpp-sdk-discovery-config-version.cmake:/usr/lib64/cmake/aws-cpp-sdk-dlm/aws-cpp-sdk-dlm-config-version.cmake:/usr/lib64/cmake/aws-cpp-sdk-dms/aws-cpp-sdk-dms-config-version.cmake:/usr/lib64/cmake/aws-cpp-sdk-ds/aws-cpp-sdk-ds-config-version.cmake:/usr/lib64/cmake/aws-cpp-sdk-dynamodb/aws-cpp-sdk-dynamodb-config-version.cmake:/usr/lib64/cmake/aws-cpp-sdk-dynamodbstreams/aws-cpp-sdk-dynamodbstreams-config-version.cmake:/usr/lib64/cmake/aws-cpp-sdk-ec2/aws-cpp-sdk-ec2-config-version.cmake:/usr/lib64/cmake/aws-cpp-sdk-ecr/aws-cpp-sdk-ecr-config-version.cmake:/usr/lib64/cmake/aws-cpp-sdk-ecs/aws-cpp-sdk-ecs-config-version.cmake:/usr/lib64/cmake/aws-cpp-sdk-eks/aws-cpp-sdk-eks-config-version.cmake:/usr/lib64/cmake/aws-cpp-sdk-elasticache/aws-cpp-sdk-elasticache-config-version.cmake:/usr/lib64/cmake/aws-cpp-sdk-elasticbeanstalk/aws-cpp-sdk-elasticbeanstalk-config-version.cmake:/usr/lib64/cmake/aws-cpp-sdk-elasticfilesystem/aws-cpp-sdk-elasticfilesystem-config-version.cmake:/usr/lib64/cmake/aws-cpp-sdk-elasticloadbalancing/aws-cpp-sdk-elasticloadbalancing-config-version.cmake:/usr/lib64/cmake/aws-cpp-sdk-elasticloadbalancingv2/aws-cpp-sdk-elasticloadbalancingv2-config-version.cmake:/usr/lib64/cmake/aws-cpp-sdk-elasticmapreduce/aws-cpp-sdk-elasticmapreduce-config-version.cmake:/usr/lib64/cmake/aws-cpp-sdk-elastictranscoder/aws-cpp-sdk-elastictranscoder-config-version.cmake:/usr/lib64/cmake/aws-cpp-sdk-email/aws-cpp-sdk-email-config-version.cmake:/usr/lib64/cmake/aws-cpp-sdk-es/aws-cpp-sdk-es-config-version.cmake:/usr/lib64/cmake/aws-cpp-sdk-events/aws-cpp-sdk-events-config-version.cmake:/usr/lib64/cmake/aws-cpp-sdk-firehose/aws-cpp-sdk-firehose-config-version.cmake:/usr/lib64/cmake/aws-cpp-sdk-fms/aws-cpp-sdk-fms-config-version.cmake:/usr/lib64/cmake/aws-cpp-sdk-gamelift/aws-cpp-sdk-gamelift-config-version.cmake:/usr/lib64/cmake/aws-cpp-sdk-glacier/aws-cpp-sdk-glacier-config-version.cmake:/usr/lib64/cmake/aws-cpp-sdk-glue/aws-cpp-sdk-glue-config-version.cmake:/usr/lib64/cmake/aws-cpp-sdk-greengrass/aws-cpp-sdk-greengrass-config-version.cmake:/usr/lib64/cmake/aws-cpp-sdk-guardduty/aws-cpp-sdk-guardduty-config-version.cmake:/usr/lib64/cmake/aws-cpp-sdk-health/aws-cpp-sdk-health-config-version.cmake:/usr/lib64/cmake/aws-cpp-sdk-iam/aws-cpp-sdk-iam-config-version.cmake:/usr/lib64/cmake/aws-cpp-sdk-identity-management/aws-cpp-sdk-identity-management-config-version.cmake:/usr/lib64/cmake/aws-cpp-sdk-importexport/aws-cpp-sdk-importexport-config-version.cmake:/usr/lib64/cmake/aws-cpp-sdk-inspector/aws-cpp-sdk-inspector-config-version.cmake:/usr/lib64/cmake/aws-cpp-sdk-iot-data/aws-cpp-sdk-iot-data-config-version.cmake:/usr/lib64/cmake/aws-cpp-sdk-iot-jobs-data/aws-cpp-sdk-iot-jobs-data-config-version.cmake:/usr/lib64/cmake/aws-cpp-sdk-iot/aws-cpp-sdk-iot-config-version.cmake:/usr/lib64/cmake/aws-cpp-sdk-iot1click-devices/aws-cpp-sdk-iot1click-devices-config-version.cmake:/usr/lib64/cmake/aws-cpp-sdk-iot1click-projects/aws-cpp-sdk-iot1click-projects-config-version.cmake:/usr/lib64/cmake/aws-cpp-sdk-iotanalytics/aws-cpp-sdk-iotanalytics-config-version.cmake:/usr/lib64/cmake/aws-cpp-sdk-kinesis-video-archived-media/aws-cpp-sdk-kinesis-video-archived-media-config-version.cmake:/usr/lib64/cmake/aws-cpp-sdk-kinesis-video-media/aws-cpp-sdk-kinesis-video-media-config-version.cmake:/usr/lib64/cmake/aws-cpp-sdk-kinesis/aws-cpp-sdk-kinesis-config-version.cmake:/usr/lib64/cmake/aws-cpp-sdk-kinesisanalytics/aws-cpp-sdk-kinesisanalytics-config-version.cmake:/usr/lib64/cmake/aws-cpp-sdk-kinesisvideo/aws-cpp-sdk-kinesisvideo-config-version.cmake:/usr/lib64/cmake/aws-cpp-sdk-kms/aws-cpp-sdk-kms-config-version.cmake:/usr/lib64/cmake/aws-cpp-sdk-lambda/aws-cpp-sdk-lambda-config-version.cmake:/usr/lib64/cmake/aws-cpp-sdk-lex-models/aws-cpp-sdk-lex-models-config-version.cmake:/usr/lib64/cmake/aws-cpp-sdk-lex/aws-cpp-sdk-lex-config-version.cmake:/usr/lib64/cmake/aws-cpp-sdk-lightsail/aws-cpp-sdk-lightsail-config-version.cmake:/usr/lib64/cmake/aws-cpp-sdk-logs/aws-cpp-sdk-logs-config-version.cmake:/usr/lib64/cmake/aws-cpp-sdk-machinelearning/aws-cpp-sdk-machinelearning-config-version.cmake:/usr/lib64/cmake/aws-cpp-sdk-macie/aws-cpp-sdk-macie-config-version.cmake:/usr/lib64/cmake/aws-cpp-sdk-marketplace-entitlement/aws-cpp-sdk-marketplace-entitlement-config-version.cmake:/usr/lib64/cmake/aws-cpp-sdk-marketplacecommerceanalytics/aws-cpp-sdk-marketplacecommerceanalytics-config-version.cmake:/usr/lib64/cmake/aws-cpp-sdk-mediaconvert/aws-cpp-sdk-mediaconvert-config-version.cmake:/usr/lib64/cmake/aws-cpp-sdk-medialive/aws-cpp-sdk-medialive-config-version.cmake:/usr/lib64/cmake/aws-cpp-sdk-mediapackage/aws-cpp-sdk-mediapackage-config-version.cmake:/usr/lib64/cmake/aws-cpp-sdk-mediastore-data/aws-cpp-sdk-mediastore-data-config-version.cmake:/usr/lib64/cmake/aws-cpp-sdk-mediastore/aws-cpp-sdk-mediastore-config-version.cmake:/usr/lib64/cmake/aws-cpp-sdk-mediatailor/aws-cpp-sdk-mediatailor-config-version.cmake:/usr/lib64/cmake/aws-cpp-sdk-mobile/aws-cpp-sdk-mobile-config-version.cmake:/usr/lib64/cmake/aws-cpp-sdk-mobileanalytics/aws-cpp-sdk-mobileanalytics-config-version.cmake:/usr/lib64/cmake/aws-cpp-sdk-monitoring/aws-cpp-sdk-monitoring-config-version.cmake:/usr/lib64/cmake/aws-cpp-sdk-mq/aws-cpp-sdk-mq-config-version.cmake:/usr/lib64/cmake/aws-cpp-sdk-mturk-requester/aws-cpp-sdk-mturk-requester-config-version.cmake:/usr/lib64/cmake/aws-cpp-sdk-neptune/aws-cpp-sdk-neptune-config-version.cmake:/usr/lib64/cmake/aws-cpp-sdk-opsworks/aws-cpp-sdk-opsworks-config-version.cmake:/usr/lib64/cmake/aws-cpp-sdk-opsworkscm/aws-cpp-sdk-opsworkscm-config-version.cmake:/usr/lib64/cmake/aws-cpp-sdk-organizations/aws-cpp-sdk-organizations-config-version.cmake:/usr/lib64/cmake/aws-cpp-sdk-pi/aws-cpp-sdk-pi-config-version.cmake:/usr/lib64/cmake/aws-cpp-sdk-pinpoint/aws-cpp-sdk-pinpoint-config-version.cmake:/usr/lib64/cmake/aws-cpp-sdk-polly/aws-cpp-sdk-polly-config-version.cmake:/usr/lib64/cmake/aws-cpp-sdk-pricing/aws-cpp-sdk-pricing-config-version.cmake:/usr/lib64/cmake/aws-cpp-sdk-queues/aws-cpp-sdk-queues-config-version.cmake:/usr/lib64/cmake/aws-cpp-sdk-rds/aws-cpp-sdk-rds-config-version.cmake:/usr/lib64/cmake/aws-cpp-sdk-redshift/aws-cpp-sdk-redshift-config-version.cmake:/usr/lib64/cmake/aws-cpp-sdk-rekognition/aws-cpp-sdk-rekognition-config-version.cmake:/usr/lib64/cmake/aws-cpp-sdk-resource-groups/aws-cpp-sdk-resource-groups-config-version.cmake:/usr/lib64/cmake/aws-cpp-sdk-resourcegroupstaggingapi/aws-cpp-sdk-resourcegroupstaggingapi-config-version.cmake:/usr/lib64/cmake/aws-cpp-sdk-route53/aws-cpp-sdk-route53-config-version.cmake:/usr/lib64/cmake/aws-cpp-sdk-route53domains/aws-cpp-sdk-route53domains-config-version.cmake:/usr/lib64/cmake/aws-cpp-sdk-s3-encryption/aws-cpp-sdk-s3-encryption-config-version.cmake:/usr/lib64/cmake/aws-cpp-sdk-s3/aws-cpp-sdk-s3-config-version.cmake:/usr/lib64/cmake/aws-cpp-sdk-sagemaker-runtime/aws-cpp-sdk-sagemaker-runtime-config-version.cmake:/usr/lib64/cmake/aws-cpp-sdk-sagemaker/aws-cpp-sdk-sagemaker-config-version.cmake:/usr/lib64/cmake/aws-cpp-sdk-sdb/aws-cpp-sdk-sdb-config-version.cmake:/usr/lib64/cmake/aws-cpp-sdk-secretsmanager/aws-cpp-sdk-secretsmanager-config-version.cmake:/usr/lib64/cmake/aws-cpp-sdk-serverlessrepo/aws-cpp-sdk-serverlessrepo-config-version.cmake:/usr/lib64/cmake/aws-cpp-sdk-servicecatalog/aws-cpp-sdk-servicecatalog-config-version.cmake:/usr/lib64/cmake/aws-cpp-sdk-servicediscovery/aws-cpp-sdk-servicediscovery-config-version.cmake:/usr/lib64/cmake/aws-cpp-sdk-shield/aws-cpp-sdk-shield-config-version.cmake:/usr/lib64/cmake/aws-cpp-sdk-sms/aws-cpp-sdk-sms-config-version.cmake:/usr/lib64/cmake/aws-cpp-sdk-snowball/aws-cpp-sdk-snowball-config-version.cmake:/usr/lib64/cmake/aws-cpp-sdk-sns/aws-cpp-sdk-sns-config-version.cmake:/usr/lib64/cmake/aws-cpp-sdk-sqs/aws-cpp-sdk-sqs-config-version.cmake:/usr/lib64/cmake/aws-cpp-sdk-ssm/aws-cpp-sdk-ssm-config-version.cmake:/usr/lib64/cmake/aws-cpp-sdk-states/aws-cpp-sdk-states-config-version.cmake:/usr/lib64/cmake/aws-cpp-sdk-storagegateway/aws-cpp-sdk-storagegateway-config-version.cmake:/usr/lib64/cmake/aws-cpp-sdk-sts/aws-cpp-sdk-sts-config-version.cmake:/usr/lib64/cmake/aws-cpp-sdk-support/aws-cpp-sdk-support-config-version.cmake:/usr/lib64/cmake/aws-cpp-sdk-swf/aws-cpp-sdk-swf-config-version.cmake:/usr/lib64/cmake/aws-cpp-sdk-text-to-speech/aws-cpp-sdk-text-to-speech-config-version.cmake:/usr/lib64/cmake/aws-cpp-sdk-transcribe/aws-cpp-sdk-transcribe-config-version.cmake:/usr/lib64/cmake/aws-cpp-sdk-transfer/aws-cpp-sdk-transfer-config-version.cmake:/usr/lib64/cmake/aws-cpp-sdk-translate/aws-cpp-sdk-translate-config-version.cmake:/usr/lib64/cmake/aws-cpp-sdk-waf-regional/aws-cpp-sdk-waf-regional-config-version.cmake:/usr/lib64/cmake/aws-cpp-sdk-waf/aws-cpp-sdk-waf-config-version.cmake:/usr/lib64/cmake/aws-cpp-sdk-workdocs/aws-cpp-sdk-workdocs-config-version.cmake:/usr/lib64/cmake/aws-cpp-sdk-workmail/aws-cpp-sdk-workmail-config-version.cmake:/usr/lib64/cmake/aws-cpp-sdk-workspaces/aws-cpp-sdk-workspaces-config-version.cmake:/usr/lib64/cmake/aws-cpp-sdk-xray/aws-cpp-sdk-xray-config-version.cmake [ 3169s] aws-sdk-cpp-devel.x86_64: W: invalid-license Apache 2.0 [ 3169s] aws-sdk-cpp-libs.x86_64: W: invalid-license Apache 2.0 [ 3169s] aws-sdk-cpp.src: W: invalid-license Apache 2.0 [ 3169s] The specified license string is not recognized. Please refer to [ 3169s] https://spdx.org/licenses/ for the list of known licenses and their exact [ 3169s] spelling. [ 3169s] [ 3169s] aws-sdk-cpp-libs.x86_64: W: shlib-policy-missing-suffix [ 3169s] Your package containing shared libraries does not end in a digit and should [ 3169s] probably be split. [ 3169s] [ 3169s] aws-sdk-cpp-devel.x86_64: E: files-duplicated-waste (Badness: 100) 191619 [ 3169s] Your package contains duplicated files that are not hard- or symlinks. You [ 3169s] should use the %fdupes macro to link the files to one. [ 3169s] [ 3169s] 3 packages and 0 specfiles checked; 1 errors, 5 warnings. Any ideas? Adrian N�����r��y隊Z)z{.��ZrF��x>�{.n�+������Ǩ��r��i�m��0��ޙ���������$j���0�����Ǩ�
John Paul Adrian Glaubitz píše v St 08. 08. 2018 v 16:19 +0200:
On 08/08/2018 03:22 PM, John Paul Adrian Glaubitz wrote:
On 08/08/2018 03:15 PM, Marcus Meissner wrote:
However, when I try to build the package, the %fdupes macro is not expanding correctly and I get the following mess:
%fdupes is a macro that is multiple lines of commands, it is not supposed to be in the %files section, but in the %install section.
Ah, my bad. Thanks a lot everyone for the quick help!
Hmm, I moved the statement to %install:
%install %cmake_install %fdupes -s %{_libdir}/cmake
%fdupes %{buildroot}%{_libdir}/cmake Tom
Hello, On Aug 8 16:24 Tomas Chvatal wrote (excerpt):
John Paul Adrian Glaubitz píše v St 08. 08. 2018 v 16:19 +0200:
On 08/08/2018 03:22 PM, John Paul Adrian Glaubitz wrote:
On 08/08/2018 03:15 PM, Marcus Meissner wrote:
However, when I try to build the package, the %fdupes macro is not expanding correctly and I get the following mess:
%fdupes is a macro that is multiple lines of commands, it is not supposed to be in the %files section, but in the %install section.
Ah, my bad. Thanks a lot everyone for the quick help!
Hmm, I moved the statement to %install:
%install %cmake_install %fdupes -s %{_libdir}/cmake
%fdupes %{buildroot}%{_libdir}/cmake
As addendum a general side note regarding fdupes see https://en.opensuse.org/openSUSE:Packaging_Conventions_RPM_Macros#.25fdupes which talks in particular about how to be careful when using it. As an older example see in OBS Printing/hplip/hplip.spec how it could be used together with links to older bugzilla bugs about fdupes issues. I don't know if and how more safer fdupes may have become since which particular newer openSUSE version. Kind Regards Johannes Meixner -- SUSE LINUX GmbH - GF: Felix Imendoerffer, Jane Smithard, Graham Norton - HRB 21284 (AG Nuernberg)
On 08 Aug 16:19, John Paul Adrian Glaubitz wrote:
On 08/08/2018 03:22 PM, John Paul Adrian Glaubitz wrote:
On 08/08/2018 03:15 PM, Marcus Meissner wrote:
However, when I try to build the package, the %fdupes macro is not expanding correctly and I get the following mess:
%fdupes is a macro that is multiple lines of commands, it is not supposed to be in the %files section, but in the %install section.
Ah, my bad. Thanks a lot everyone for the quick help!
Hmm, I moved the statement to %install:
%install %cmake_install %fdupes -s %{_libdir}/cmake
You need to operate in %{buildroot} not filesystem itself: %fdupes -s %{buildroot}%{_libdir}/cmake Regards, ismail -- SUSE Linux GmbH, GF: Felix Imendörffer, Jane Smithard, Graham Norton, HRB 21284 (AG Nürnberg)
On Wed, Aug 8, 2018 at 3:11 PM John Paul Adrian Glaubitz <adrian.glaubitz@suse.com> wrote:
Hi!
I have tried to use the %fdupes macro in my aws-sdk-cpp package [1]:
%fdupes should _never_ be used in %files. It should be used in %install. -- 真実はいつも一つ!/ Always, there's only one truth! -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
participants (6)
-
İsmail Dönmez
-
Johannes Meixner
-
John Paul Adrian Glaubitz
-
Marcus Meissner
-
Neal Gompa
-
Tomas Chvatal