Mailinglist Archive: opensuse-packaging (104 mails)

< Previous Next >
Re: [opensuse-packaging] %fdupes not expanding correctly
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�������Ǩ�
< Previous Next >